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 Y=["clone","length","set","join","/videoplayback","slice","G","v_","rW","&","X","push","scheme","/api/manifest","split","url","splice","catch","path","","1","1969-12-31T15:46:11.000-08:15","local","indexOf","cmo=pf","match","mn","get","toString","reverse","startsWith","---","S","fromCharCode","Rw78JYeWAh8550BmOL-_w8_","?","www.youtube.com","://","2gz7hT","signatureCipher","cmo","null",",","=","fq","s","cmo=","1969-12-31T12:15:05.000-11:45","%3D","assign","w4","}'[{","unshift","cmo=td", "Y","forEach","/initplayback","a1.googlevideo.com","prototype","n","redirector.googlevideo.com","1970-01-01T05:00:16.000+05:00","file","replace","/","1970-01-01T04:16:22.000+04:15","playerfallback","1969-12-31T20:31:18.000-03:30","rr","\\.a1\\.googlevideo\\.com$","5","fallback_count","sp","1969-12-31T15:03:11.000-09:00","zN","}']]","rr?[1-9].*\\.c\\.youtube\\.com$","undefined","Untrusted URL","\\.googlevideo\\.com$","fvip","//","pop","/file/index.m3u8",":","youtube.player.web_20250420_21_RC00","index.m3u8", ",,';]\u00e2","1969-12-31T15:31:11.000-08:30","r"],VZ,ViS,IUi,xv,dpZ,fUS,Np,eOA,si,YiZ,cr,zS,Mp,TS,nvv,jXX,lX,Lg,DpS,Jh,xpi,Xj,gA,EvX,Si,iX,QZ,mA,uX,NAv,pg,kv,hh,chh,zOi,nG,Mip,CXj,xf,E_,TAU,Hgr,wrA,bgp,s_,WAS,$pX,RG,KAp,l$,ROU,tiA,yc,yhh,AhZ,GSi,FAi,Sp,Qc,lUA,LAr,kf,JhA,eS,Yr,nD,D4,xr,Ez,BAi,Ni,sz,ct,gvi,igg,Mi,Upr,wo,Oz,GF,Fy,l_,LD,QXA,mpZ,Z4,Bt,Xy,ujX,pri,vvh,qiX,ovg,SS,i_,Uz,Q3,m7,pD,qi,VpX,oZ,hr,rl,Ic,dl,fJ,YE,Imp,nJ,j1,xE,amA,fmX,eYp,Em,sm,cz,My,CJ,wl,bb,sGh,cor,zYh,MpX,Om,C$i,Wz,$E,KJ,TPi, Rc,HGg,bGX,GP,lb,Zh,Bz,gl,$mU,WKi,Aog,tpS,FKX,Um,Qv,qy,JoU,X9i,ZGr,oc,hS,BPA,kE,an,ib,S_r,gfr,jG,ny,S1,iGZ,D5,ES,xx,sS,UmX,zI,MQ,Cy,TI,Hl,wX,mmi,ueX,bE,p9X,Wl,$x,q_v,tg,yE,ofA,Ag,GI,Ft,k6i,hYr,Jg,rrr,Z5,Xt,dii,Bl,gX,f4v,eJj,jZZ,Yzp,DiX,sZX,SG,NoX,xiO,iE,US,crj,QE,zJS,mG,C_U,MSO,Toh,HDj,qQ,Pl,wtS,bDX,ODX,on,kx,hg,W7i,tSv,rq,yrj,ArS,Jri,a3,L7h,GFX,Xti,SzO,e_,nr,Dg,j_,iDA,xq,uyp,ED,co,zB,Ms,TB,qzj,Ho,P_h,b0,OD,$q,rSj,tA,AA,FO,V1i,GB,IhA,dyp,l0,yn,Lr,JA,ahv,Zg,Bo,efh,gq,S_,i0,jch,pr,Dyh,xyX,EEr,Nlj,u0, mr,UD,YmX,nEi,scZ,zfh,M1S,Cbg,Po,o3,kq,Tlh,VL,dJ,aO,f9,HJr,YV,wzA,D8,jz,$yA,E$,Ne,KQv,RfX,s$,zs,Me,C9,Hv,Ts,bT,wJ,te,O$,$V,K9,ySj,Ae,ASX,Gs,Fg,Z8,Xg,Bv,lT,Je,L9,Sz,GPO,iT,FQS,QL,LQv,mv,uT,Wv,RO,p9,vv,qe,Pv,ZJp,oO,kV,he,rZ,VP,Ir,Xzj,dZ,BlU,ar,gEi,ea,fE,Yo,nE,DS,xo,E5,SmO,UyS,s5,QcS,myO,uwO,zY,M6,HM,vEj,wZ,qmZ,br,oEh,WM,hfX,$o,KE,Rr,rgi,tH,VGj,yP,I5v,dQr,AH,a5A,GY,F6,LE,JH,eig,BM,jnA,f5X,gZ,ir,U5,Exh,DQO,mU,pE,NXj,cgj,ziX,or,ko,hH,r7,VH,II,d7,CEO,TXO,Hyi,byr,Oyr,eX,YG,WGh,nj,$QX,KGg,tGg,FGX,jX,l5i, LGU,Jgi,ZyA,Xli,E6,BXg,gxg,SSj,TC,Cj,MG,iyp,UQp,Qnj,He,w7,bg,utv,RI,tV,yH,AV,GC,vxX,qSi,PEg,Lj,ZE,XY,ig,U6,ug,kIg,rAS,hiA,V_v,IgU,kG,dsZ,agv,hV,fgr,eFi,YDr,nqO,d6,V7,am,f$,eM,j3A,DsZ,xsj,Ye,n$,Eqj,jM,NqX,s3g,cAi,D_,zFh,xe,Eu,M_i,C0X,Tqr,HrZ,woA,brO,zq,MS,C$,Hn,$sX,w6,bv,KrS,Wrj,Tq,RFO,Ou,Wn,$e,Rm,K$,t_j,yAU,AAA,y7,FrO,AC,FvX,l8g,LvO,JeU,Z9A,XvO,BJg,gVj,lv,L$,JC,i9X,S$j,UeZ,QOX,Xn,mei,Bn,ugO,pvp,g6,SM,iv,vVv,Uu,ml,q$v,uv,p$,vn,qS,Pn,om,ke,hC,PTX,oVv,ksp,hlh,rN,rHh,ISv,VaX,It,dN,aSO,d6A,Y5r,D6X,jrv, at,x6i,Eop,NZh,cHZ,srv,zcO,f_,Mai,CrS,YM,TZZ,HEZ,wMA,bEU,n_,jw,OEA,Dn,WUr,xM,Ee,KUX,Nn,Rch,se,ch,taX,yHA,z0,C_,GYU,T0,AHA,FUZ,lSh,LUA,ZEU,Hh,XMh,Oe,Wh,goj,S5v,Qrj,m6i,$M,K_,Rt,tE,yk,AE,G0,FN,lt,L_,JE,Zn,XN,q5U,voZ,Prh,kYZ,ooX,rVi,pMX,hcS,u6A,Bh,gN,IEO,dGg,aEi,vh,qn,Ph,Sw,e0X,ot,VXv,nGA,jIZ,Y6v,kM,hE,rw,VC,DGA,fEA,xGZ,Iu,EGX,N7A,sIO,cVA,z0p,T7S,Hjh,wei,bjA,dw,au,fQ,Ojh,WZO,R0p,tXi,eD,nQ,AVS,jD,YI,FZU,GCv,lES,LZS,JVi,xI,Ea,XeZ,B7S,gGA,S6i,ijX,UGX,QIA,mGr,uYX,pei,sa,cY,zo,Ml,vGi,kCX,h0r,VMX,rCA,I_i, HY,ww,dSg,a_Z,f_X,bk,Oa,WY,$I,KQ,Ru,tm,yC,esZ,Am,neA,lk,jmj,DSp,LQ,Jm,Zz,Xp,xSi,Eeh,smX,BY,cCA,aI,wlO,QC,zsU,MMA,m0,CvX,Ua,H$j,T6U,ik,uk,pQ,wnv,b$X,O$p,Wlg,vY,$SX,ql,PgX,q6X,PY,ou,hm,rS,tMj,Vg,I0,a0,yCj,ACi,fR,JCj,Di,FlX,Llv,nR,Yi,zO,M4,Z$h,Hu,XnX,wS,bo,B6j,SuX,USj,t_,A_,pnX,vep,quZ,J_,hsi,KR,mSp,VwO,kqO,PvO,oeg,InX,rEA,Xs,Ss,anp,fnZ,eNg,Yeh,nMi,Un,jtp,mx,DnO,NNi,stX,uo,zNS,CtZ,Mwj,TNX,vu,o0,Vm,dY,ah,fb,ec,Y0,b_X,O_A,nb,WNi,jc,D3,Ih,x0,Ed,NF,Dz,sd,$nS,z3,twO,MF,Cb,AEp,yEv,G0Z,FNX,lng,T3,LNX,HA,wY, Z_X,gMX,SeU,ba,mnj,QtS,uNS,phg,vMA,Od,qep,i_S,WA,PtA,oMj,$0,hNg,rmO,VDO,IzS,dlr,Rh,azX,fzX,eEp,Yai,Dli,nIi,t5,ym,A5,G3,F1,la,Lb,J5,EIi,X1,Z3,NwZ,gY,zES,BA,MDZ,CkX,OQX,Twp,HQi,wYr,bQp,Sc,ia,Ud,W0U,Qm,mS,ua,pb,vA,qF,ymp,$lZ,h5,tDO,rW,REh,k0,PA,K0A,oh,IN,GoO,aN,dW,jk,D2,Nc,L0h,JmX,EK,z9,ZQg,Mc,F0O,gIv,SaO,iQv,H4,wW,bP,UlX,OK,W4,$y,Km,QuZ,RN,tz,ya,mlp,upv,lP,pYr,PkX,XhA,qai,oIX,koA,hEA,vIS,VsX,aiO,Jz,XK,eqU,YnO,nig,j0X,x4Z,Sk,gW,Eir,D4h,c_r,MsX,HRA,UK,wuX,iP,me,bRi,uP,v4,qc,ORi,Wxj,as,$4p,eN,Kxi,Rqv, cm,tsO,A_A,ze,GOS,FxU,XuZ,lir,Hm,w3,bF,Wm,$S,U4X,KL,Rs,tO,m4r,Ge,usA,puZ,Fk,qnh,LL,JO,ZX,Xk,oiX,Bm,SN,iF,U8,Qj,kOp,hqj,r5X,uF,pL,vm,qA,Pm,os,VcU,I3A,dFZ,a3i,f3i,ePp,kS,Ydi,f2,n0X,jhO,DFX,eP,n2,jP,Dc,NX,cy,z$,E0j,T$,Hy,w8,NYv,shr,b9,c5r,zPi,Wy,WSX,$Fv,KSU,$t,RPh,tch,G3X,Rq,l3v,FSv,y9,J5S,Zbj,G$,FF,XAO,l9,L2,JL,Zc,XF,By,g8,SP,i9,Uv,Q9,mk,u9,qX,BYp,g0j,SdA,oq,hL,ibi,dB,a6,f5,eJ,YQ,jJ,DJ,u1A,xQ,Eh,NL,v0U,pAg,UFj,zd,cR,k3A,ML,K5,Oh,R6,ta,rzi,Aa,a2v,I2r,dcg,e9g,xcS,YKZ,jNZ,DcU,hPZ,F7,Gd,NWj,L5,Ja,ZJ,sNr, Uh,czX,Qr,mg,ud,vR,z9j,PR,o6,MkO,kQ,ha,TWv,Ix,ax,fo,eb,Ym,no,jb,Dp,xm,E3,w4A,N1,zc,cJ,Omv,R9g,$cX,KeX,tkU,yzS,G9i,FeX,AzA,Lei,Tc,HJ,O3,JzX,Zmj,bQ,WJ,BWZ,gyU,QNX,Uch,tZ,yh,AZ,Gc,F2,Lo,uKh,p4h,vyO,iQ,U3,qKi,PPU,oyj,vJ,q1,PJ,k9h,h9v,VNr,dAj,rC,aXX,dC,Vs,eT,Yw,jT,fXv,M9,CH,Tv,HQ,bO,Os,$w,DAU,xAh,RY,ESZ,N3X,ys,ssX,cOi,A1,Gv,zGr,MNp,T3j,LH,wmA,bLA,Fu,OLg,WTj,KTp,$Ag,BQ,HLi,tNZ,yOr,m4,Us,AOO,Gev,uO,pH,FTg,lXA,PQ,LTS,JOi,ZLA,Xmg,VB,B3X,gSi,S8p,iLX,UAj,QsA,mAA,ukj,dQ,pmj,fA,q8X,PFj,oSj,keX,hGi,eF,Ec,VPi,acX, N0,fcg,Yvg,rLi,ntv,jqr,DXv,Ich,dXO,YA,nA,xA,e1X,DZ,jF,xXX,EtZ,N8r,sqi,cLp,z1g,wyj,MPi,M0,Oc,$A,Wkg,R1r,Kkh,WH,tB,tPi,GT,yLU,G$Z,ZZ,ALX,Svr,FkZ,gtZ,SF,i2j,mXS,iw,gQ,UXr,QqO,uFv,QB,vtX,qvX,P9i,otg,k$S,h1X,rai,pyg,IJi,dLh,aJi,e8i,fJi,nQi,vH,j6X,q0,PH,o1,DLS,xLg,rT,Vw,NBj,EQO,IM,s6v,z8v,CdZ,MJp,TBX,b5g,H5X,Nu,HZ,Tg,O5g,sJ,wT,bi,OJ,WZ,Wgv,KV,KgX,yw,tv,Gg,Fb,li,LV,R8X,Jv,Xb,tJA,gT,ii,UJ,yaZ,Aav,Gdr,FgS,Qw,ui,lJv,pV,vZ,qu,Jah,PZ,oM,Z5X,hv,I9,Vo,rj,dj,a9,gQi,u7g,vQX,mLv,Q6A,pRg,YR,DD,kdi,qhA,Pdr,oQv,BBg, Y3X,HG,eHj,D1g,fph,eU,wj,sy,CO,nmj,Ey,i5j,Shi,ULv,jU,apX,$R,zHh,KO,CQX,Tsg,HoA,t8,wJX,boj,OoX,$1X,KLr,GZ,tbr,FA,yZj,AZr,FLi,lpv,LO,LLv,Zoj,J8,XJh,ZD,XA,Es,QxO,q3r,Qo,omO,r1A,uc,IOi,d9g,aOU,aD,dF,fOv,Ve,$XU,h8,ID,rF,pO,EN,x5,sN,zi,YsO,MK,Ti,HL,nwA,jYU,ON,x9Z,EwS,NCg,sYi,c1X,z6i,MTX,COZ,TCA,HHS,RD,wQA,t2,A2,bHh,OHi,W4i,$9Z,Gi,K4h,R6X,J2,Zu,XU,tTi,BL,y1j,SA,Gvi,A1U,UN,Qe,m3,um,F4S,pB,vL,lOO,L4r,qK,PL,BCU,J1r,XQX,ZHS,oD,k5,h2,gwi,Ssr,iHh,rU,QYO,pQZ,uuS,VY,Io,dU,ao,fW,Y8,nW,jO,Df,x8,E9,vwO,qsi,POg,N5, s9,cC,zQ,CW,HC,h6X,kvO,bh,rBA,O9,WC,$8,KW,Ro,At,GQ,FI,lh,LW,Jt,Zf,XI,BC,gU,SO,d0S,U9,mR,aZX,uh,eVi,YcU,nAX,D0A,EAX,k8,NQh,r4,ht,zVp,MFX,Cwi,IE,d4,HAg,fq,eK,Cq,TX,bAX,HS,w4,bC,OAZ,OY,wHX,WS,$_,$0S,Wni,Kq,RE,ts,y2,GX,RVA,tFX,lC,Lq,ZP,XM,yBZ,Js,Fnr,lZh,Lnp,JBg,ZAj,XHi,BQi,g4,BS,GTA,iAi,SK,Q1i,m0O,uC,umg,UY,Q2,pHA,pq,qci,oAg,vS,qM,kTS,PS,rvj,oE,eLj,ajO,Vli,duX,Ijh,hs,rH,VI,Iy,dH,ay,fn,nn,nnU,xup,xT,yVg,ET,Env,sMv,sT,Cn,c1,Mw,zU,Mlj,zLr,cvj,CiS,TU,TTA,OVX,H1,be,$uj,OT,W1,$T,Kn,KfO,Ry,RLg,tlU,yI,le,Ln, Jp,ZR,Xo,B1,gH,SI,ie,UT,QI,mt,ue,yvA,AvZ,pn,v1,qw,P1,oy,kT,GgO,FfX,hp,du,Jvr,ZVh,ad,fX,wu,bI,BTg,$O,gnr,SJr,tk,iVv,QMi,Uuj,muX,ubh,pZi,vnO,qJv,PiU,kgS,onA,hLr,IDj,aDi,VUA,fDi,enh,nRg,Ak,Gr,Dov,j9X,Fi,lI,LX,ERA,Jk,Zq,Xi,s9X,c8A,Ba,Njg,gu,Ccj,S7,iI,UA,QG,mM,uI,pX,va,qT,Pa,od,kO,hk,rc,Vx,IH,dc,aH,fU,eH,YD,nU,jH,Dy,xD,EX,ND,sX,cw,z1,MD,CU,T1,Hw,wc,b6,OX,Ww,$D,KU,RH,tU,yx,AU,G1,Fx,l6,LU,JU,Zy,Xx,Bw,gc,SH,i6,UX,Qx,mh,u6,pU,vw,qD,Pw,oH,kD,hU,ri,VA,IV,di,fM,eC,HOA,Yp,q,nM,aV,jC,D9,xp,bOX,N_,WsA,Ep,$og,cE, KsS,M_,sp,CM,TM,HE,bj,tUj,y8i,A8i,GZX,GM,Fr,RV,lj,lDX,Lsj,J8Z,ZOU,Rnh,XGi,wi,Bji,gRS,Ji,SC,Z9,WE,SyA,Op,LM,Xr,ij,Uop,$p,KM,gi,BE,Q9S,Up,QA,m1,uj,moX,pM,vE,q_,PE,oV,uAg,pGU,qyZ,PcA,rk,V0,kZZ,Iv,IuX,aui,e_i,YNr,av,jDv,DKZ,Dr,xKU,xj,EO,Nb,sO,cs,zj,E5i,sDh,c2i,NFi,z_g,MAO,Hs,wk,OO,Kv,Rv,tw,Cmp,y0,TFA,Aw,Gj,bH,Lv,Jw,Zr,XS,HBi,lH,bBX,Bs,OBO,W3r,gk,$Kv,Sx,iH,K3i,R_O,UO,tAX,y2S,Q0,A2A,GiO,F3S,luU,m$,uH,L3X,J2i,pv,vs,qb,ZBZ,Ps,ov,kj,hw,XLA,rE,Vf,BFg,Ie,g5j,dE,SNX,iBA,UKX,QDA,mKO,uUp,ae,pLZ,v5p,qNr,fN,Pmi, eu,o5i,Yd,kii,nN,h_X,rti,ju,sU,VOA,cq,zk,MP,CN,Ifi,Tk,Hq,wE,bS,OU,d5i,afg,$d,KN,eji,Re,Y9A,n8v,ffi,joh,D5i,x5A,yf,E8S,A4,Gk,Fa,lS,NUi,LN,J4,Xa,soS,Bq,gE,ctr,iS,m6,UU,qP,Pq,zjU,oe,MOp,h4,rg,VU,ChU,dg,TUi,fI,eB,YY,pN,nI,jB,D$,HWg,xY,EV,N$,wCh,sV,cT,zH,M$,CI,TH,wg,bA,OV,WT,bWr,OWg,WRX,$5A,hY,$Y,rm,VS,KRX,Rji,tOr,IL,dm,aL,ytj,AtO,R2,GQS,FRp,fP,lfv,er,YX,jr,D7,xX,E7,NU,cb,zN,CP,TN,Hb,wm,MU,ZWA,XCA,O7,Wb,$X,BUA,RL,S9S,t3,yS,iWA,A3,GN,F9,LP,U5r,lf,J3,Z7,X9,QoO,Sr,uIj,pCS,v8r,QS,U7,q9U,PhZ,o8X,mH,hjg,KP, kQi,rsi,uf,VKA,pP,IPv,vb,dMg,aPh,fPO,eSZ,YYA,qU,jEg,n_Z,Pb,h3,DMA,rh,xMi,Vq,E_i,N4j,IS,sEr,csA,zSv,MKZ,dh,CCO,aS,Hqj,Y7,n1,bqi,wSi,OqX,WIO,$MS,De,x7,Ew,KIU,RSX,tKO,ysX,Asi,GXi,FIU,lPX,LIX,JsZ,cN,zn,ZqA,XSj,Mj,C1,B4i,Tn,HN,b2,g_j,Ow,WN,$7,SYi,K1,iqg,RS,UMi,t7,QEi,mMh,yq,uMr,pSA,v_U,A7,Gn,Fz,l2,L1,qYA,PCv,J7,Ze,Xz,o_j,BN,gh,So,i2,Uw,kXr,hSU,Qq,mp,rpg,u2,p1,vN,qj,vRi,VIZ,IRU,PN,dwg,aRA,fRv,oS,k7,h7,rI,V4,IT,dI,aT,ft,ey,Ys,eRr,YTi,so,c_,nTi,zA,Oo,Ct,lp,syA,THU,cpg,HnA,bnv,Ong,w1A,WtA,$wZ,KtX,up,ApZ,lRX, Ftj,Jpi,Znp,X1p,P_,oT,gTX,STA,mwA,ks,uor,ini,hQ,r_,VQ,Iw,vTr,oTZ,qTA,rkZ,YAU,eBg,V7A,nOO,aw,dTX,IqZ,xTA,sdh,NuX,CIr,ckZ,f3,en,OXv,jn,WMr,GrU,AkO,ykA,t7A,KMi,LMi,lqg,RBS,gOX,BuZ,SAU,sj,QdA,iXA,UTi,$TS,mTX,uiZ,D1,Ej,ZXj,JkX,XaA,paO,xl,FMi,qAg,oOX,hBA,VHX,ayr,fyi,YXO,nDZ,DDr,jHh,cUS,EDZ,xDr,z3g,Tch,HUh,wwA,bUi,$l,v_,$DU,OUj,yQ,AUv,FV,Fhp,lyv,G1A,l7,Lhg,L3,JJ,Mb,Z1,ypS,XV,Bc,g_,Sn,JUO,ZUA,i7,Xwi,BcU,gDX,Uj,QQ,mO,u7,p3,vc,qH,Pc,ow,SXi,iUg,kl,UDv,hJ,kX,rD,VV,mDj,QHj,I$,uxX,pwX,vDU,dD,a$,qXA,fw,P6A,oDS, Lti,yUS,k1h,e9,Cv,hi,cc,h3Z,riS,nw,bXg,Yl,VCv,K3,Rw,MH,zJ,d_,TJ,Iyi,e3A,C3,TuU,MHr,I9v,jdX,aqv,j9,Khv,qE,a9A,d_O,p1p,dDS,f9h,C6i,Oj,HXv,waA,EOj,rUX,krr,hRZ,PeO,Qyi,UwS,BHj,vOv,fqi,NcO,zBg,M7g,w_,b7,Hc,sHj,PIX,Ypi,eQZ,DH,xN,Ef,N3,sf,zK,TK,Hp,wD,bZ,Wp,$N,npv,cp,Of,Kw,R$,jVU,t0,D_i,x_X,A0,EpO,NiA,GK,Fc,lZ,Lw,J0,ZH,Xc,Bp,MCS,S9,Cjv,gD,Tiv,cii,zQA,HMg,iZ,Uf,wEO,bMA,QV,OMZ,xw,$_O,W1h,RQi,yig,AiA,tCj,l9p,L1S,ZMZ,Pp,o$,XES,BiA,kN,h0,gpi,SpZ,iMX,U_X,VN,QVj,dV,aC,urZ,pEX,Pji,kMO,hQX,opi,YC,jv,nc,rwX,VxS,fc, IrS,dbA,arX,frX,ev,jvO,DbZ,xbZ,njU,YOX,erU,Ejr,NkA,vpZ,svv,qpX,cwr,zrj,HvU,MxA,CHj,Tki,OvZ,wsh,bvZ,W$Z,$br,xC,txZ,K$Z,ywA,Rrh,Awi,GjU,F$X,lrv,L$v,Jwp,Zvj,Xsp,Bki,gjU,SOv,ivU,EG,Qvh,mbO,uSg,UbA,psA,vji,oji,sG,MO,Tb,kjO,H7,wV,bY,Ikv,akA,dPX,ehp,c4i,ndO,Aj,W7,fki,VuS,r4v,hrv,yN,$C,tj,Jj,ZQ,CSZ,Xq,B7,Lc,bNi,TEv,HNr,ONi,gV,Sv,$PA,UG,QN,mV,uY,pc,v7,qO,K6j,RhO,P7,oC,hj,y4v,A4X,kC,rr,lkv,L6O,VF,J4A,ai,ZNi,fh,Yk,Xqv,e6,nh,BES,DT,SUX,iNX,EC,Nx,Ch,Qep,cI,T2,wr,mPv,OC,Mx,HI,uai,WI,pqg,$k,vdS,sC,z2,UPr,bU,Kh, qUX,PSv,odr,Ri,kki,tX,yF,AX,G2,hhS,lU,FL,Lh,JX,rYA,VBZ,ZT,XL,BI,gr,S6,I$i,iU,UC,d$A,f$A,QF,mY,uU,YVA,e4i,ph,nYX,j2r,D$A,vI,x$r,EYU,Ngi,s2i,cYp,qx,PI,oi,kk,z4i,MBi,rb,CAS,VK,IJ,Tgh,HIA,db,wTX,bIi,KqA,R4p,OIZ,WqX,$$v,fp,eq,Y$,np,tBA,yYU,jq,AYX,FqO,GHg,NY,Eq,LqX,JYS,ZIr,XTv,sq,BgA,zh,MY,gYr,iIg,U$i,Th,Oq,pTj,NEA,Kc,qVr,PAO,oYO,kHA,h4Z,OG,H5,r3r,Kp,RJ,dUA,a7g,f7X,tD,jLZ,ezi,Y7p,xUZ,EXj,yK,Nmg,DUh,sLS,AD,Gh,F5,c3j,zzh,ls,Lp,Mrp,JD,CfU,ZA,W5,Sq,TmA,seU,YUZ,is,Uq,mc,us,pp,v5,qY,QK,k$,wbA,r$,OPv,Vi,$UO,KHA, WHA,bPA,Rzi,trX,y3A,fx,A3Z,GNj,l7A,e4,MuX,Yg,J3h,Xbj,Gb,BmZ,j4,S7Z,RC,gXi,jeX,xPv,Edh,LHA,DB,iPA,UUS,xg,QLh,Na,sL,c8,zt,Ma,mUi,Cx,Tt,u9i,pbO,H8,w$,bn,OL,W8,$g,q7S,vXZ,Kx,Pfv,kNZ,Rj,hzZ,oXj,v8,un,qa,oj,kg,d$,r7j,Ywp,yA,px,IU,xjZ,NhU,Lx,eQ,ln,Y9,Db,mD,x9,C2U,Er,NC,Thh,H1X,wNv,b1S,sr,O1h,WpX,ck,$jr,A7X,y7h,Kph,tor,RWA,zp,Gni,MC,Fpj,leA,J7p,Z1Z,XNh,Uji,bL,Or,uzX,Wk,$9,pNg,P2g,o7j,knA,hWS,Ki,rQi,IFi,dEv,Bk,Esr,YoX,nsS,sTS,gv,cQj,MyX,zMv,CpO,iL,mi,TIj,SQ,uL,pi,Hti,btA,$Eg,oU,Ia,Ya,Dd,BIZ,gsA,sQ,Nq,zV,Mq, SoA,QTj,UEi,mEi,TV,Ck,uQj,vsZ,qov,osh,b3,PpU,kAA,hMp,Wx,$a,Vnp,Pk,wt,tR,AQh,w_O,LEA,F8,cx,p_A,xHO,gt,nk,i3,UQ,swp,cJr,Mnj,zvv,j3,mm,u3,pk,T_X,vx,qq,H3X,xa,Px,itX,ka,evg,hR,wcX,RMS,KEj,Otp,r1,If,af,GJp,AJh,l1v,LOi,EM,sM,cF,NJ,MJ,C8,JJU,Tm,XcO,HF,glj,OM,B_X,WF,$6,Qwp,K8,pcA,vlA,y_,qjj,kJp,i5,Q_,md,vF,hvA,qJ,PF,rR,Vb,I5,dR,r0v,a5,f0,aHi,eW,Yu,fHS,edA,n0,Yfh,nNv,j$X,D3U,jW,DC,x3S,NDA,NW,sH,MW,C0,s$v,c0S,T4,HU,wR,bz,zdi,M9S,OH,CZj,TDU,WU,wpU,HwS,bwX,$u,WBZ,OwA,$3X,K0,R5,KBO,t9j,y0j,t$,yb,A$,A0Z,FBi,G4, lHj,lz,LBi,J0X,FX,L0,J$,ZC,gNA,iwA,ZwS,SfZ,U3g,Xpj,BDZ,Q$v,m3i,gR,ucX,vNg,oNp,hdU,kKX,vU,p0,o5,Vvg,ku,h$,rK,dOZ,Vz,aQA,IQU,Ig,YGv,dK,ag,nCi,fF,YP,jCj,DOp,xOh,ECX,NVU,nF,cjX,zDr,eMA,xEi,CYh,MvA,Hcg,TVj,w7A,DK,bcA,OcS,EP,KVZ,Nk,sP,cd,tvh,Gbh,CF,Tl,Hd,lQj,FVi,zl,LVj,Jjv,ZcA,BVi,wK,vCA,$P,KF,V6A,iz,dxp,aTv,fTg,eKO,YCi,tG,nkA,yz,AG,Gl,jii,LF,DxA,xxZ,JG,ZK,Ekg,Nrj,siA,cXX,zKS,X_,lG,M6i,CUv,Bd,Hhi,wIU,bhU,gK,OhA,WYj,$xj,KYX,RKi,t6X,yXO,AXX,G2U,FYX,Sf,LYv,iG,JXA,Qz,XIr,Zhg,gkO,pF,lTZ,UP,vd,qk,Pd,og,kP,hG, SCi,r2,ihX,IQ,pIv,PUh,okv,k2i,hKA,fT,rDr,qCA,uLv,VqO,d2,IAj,aAi,Vt,aQ,Qiv,mxZ,eg,fAg,eai,vki,UxZ,YqZ,n$O,jJr,nT,xYS,DYA,jg,zah,sJj,cDi,E$O,MqO,Ds,NbS,xh,E1,CsX,Tbp,Hph,NB,bpO,Opp,s1,WcA,cB,$YZ,Kcj,RaA,tqg,ADX,Ghp,FcS,g$A,JDi,qfA,yDg,ipA,UYj,Zpg,X5j,Lcg,Bbj,v$j,MB,lAg,SqO,PsO,p5i,u5g,mYi,QJi,TG,o$i,SW,HB,w2,b4,khA,hai,V4p,rKA,IBp,PU,dag,aBA,Qb,uz,ppA,WB,KT,ngj,jjX,DaA,tF,$h,O1,GG,eyZ,fBi,YLZ,FD,xah,EgS,uG,Brj,UH,l4,N$i,RQ,sjA,cKO,zyU,M4A,Cnp,LT,HxA,w8X,bxA,OxS,WDX,$aA,dYO,Zs,XD,Ryh,JF,t4O,fQj,eDS, BB,yKX,AKA,Gtp,FDS,g2,JKZ,lBA,ZxZ,B$X,LDr,ggU,ixA,SLZ,mai,Sg,Qt,vgi,p8i,kti,PnU,hyh,rIU,qLi,ogv,uGS,VQr,mj,Ibg,fbi,dCX,abA,pT,Tri,egU,YrA,n9i,jUi,DCj,vB,xCX,qB,E9S,PB,oQ,NvU,kh,sUA,cIZ,hF,zgv,MQi,CLp,TvX,rf,AjO,Vu,bii,IA,wkg,OiX,Wir,yjZ,Mk,$Ch,tQh,KiZ,aA,Rgi,JIS,Lii,j0,ZiX,lbA,g9h,Dx,SrA,iiX,mCp,u$A,v9v,QUr,qri,PLA,o9Z,kpp,hgA,V3Z,Idv,dqg,rRh,EF,df,fdS,UCg,eoU,pkj,N8,naZ,adU,xU,jaU,DqX,NtO,M3X,sah,C3A,zoi,cP,xqh,sF,Tth,Eag,Tz,Oki,$qi,WmA,KmU,RoA,t3X,bkh,yRU,ARO,zz,GVp,FmA,ldS,LmO,JRU,Btp,Xxg,ZkS, wf,gav,ikr,Uqh,QaX,mqv,u8S,WP,mF,pxp,vav,qQZ,kVj,oag,P3U,hoS,V$Z,ILp,r6i,Cf,Uaj,aLA,fLO,e2X,N1S,jfi,DJi,xJS,sfv,z2O,qqr,bR,n6j,YMX,c6r,qW,E6h,zG,m_,cRS,wFr,H8A,b8S,O8O,R2i,t$S,SQO,U1,i4,C5A,y6r,T1r,A6Z,GmZ,X8v,wxr,HkX,M$r,Qjr,RA,tM,lLj,yu,LdX,J6A,Z8U,XFg,B1v,SMA,i8i,udr,UJp,mJS,pFh,Gz,o6i,qMO,P5X,fxj,eCi,YFi,F0,nUi,AM,jAA,h2A,v6A,lR,D8v,QfU,x8Z,Lf,Nfh,EUA,cMU,zCi,M0U,sAU,rL,HfX,TfX,Ofg,bfX,wPU,WbO,$8X,VD,Kbi,RCi,yMA,AMX,t0A,Gzj,Zfi,lxZ,Lbi,JMv,XPh,Bfv,gUA,ifX,SFU,U8r,QAi,dL,u0g,pPZ,qFp,vUU,PRS,m8g, oUZ,hCX,rbp,Ivj,avr,Vjg,fZ,fvh,ewg,kzh,Yli,drO,ej,n4g,jbv,Drr,xrg,E4S,NLg,sbA,zwO,C8S,TLi,HZj,wiv,bZi,Y4,OZZ,nZ,$rO,KPi,El,tji,Nr,AbA,G_A,FPr,lvi,JbX,LPr,$Jh,BLr,g4Z,Wdh,sl,z_,ZZA,Xih,CZ,T_,iZX,SlO,Uri,Qbi,mrZ,v4X,uRA,o4A,Hi,pir,k_h,wL,d2j,hwi,Ol,Wi,aoi,b8,foh,$4,nZj,YtA,V2X,IoS,j4r,D2r,x2i,rfX,EZZ,KZ,Nnh,epr,ybi,Mr,cfX,tb,yD,zph,M2A,ClU,Tnp,HSX,wXO,bSA,OSi,W5U,Ab,$2h,K5i,t2j,yfg,AfA,Rpi,GLg,F5h,loZ,L5A,JfS,ZSS,FR,JtZ,XXj,Bnv,l8,gZA,StO,Jb,Q4A,m2p,Zv,pXA,vZO,uCA,U2p,Bi,LZ,iSh,i8,Sj,qtS,Ul,gL,hpA, IwX,awA,fwZ,YkA,oZj,dZU,nBX,kLX,j8v,DZX,vi,QD,NzA,s8A,xZZ,u8,MtU,CDA,Vtp,rWA,zAv,TzA,eAr,EBX,PlS,qr,Pi,ob,HYX,k4,K2i,OYZ,RAA,W2i,bYA,tti,wDp,Gur,yWO,rn,F2r,L2O,ZYX,XDp,Bzh,iYr,a4,UZX,gBA,pZ,ufO,pDZ,j2,YQZ,VR,vBv,qkA,oBA,PDp,kuX,mZS,e2,hAp,rup,VZh,d7X,Itp,dJi,fS,atg,etv,ftr,n1r,YIU,JWp,D7p,j7Z,YZ,I4,x7g,xZ,E1Z,NMi,s7A,cuX,ztX,Do,FbS,Skg,MZU,Fdr,mP,CxO,TMX,HlX,w3p,blr,Et,N2,Wur,$7p,KuZ,OlO,Rtj,cX,Gxg,yuh,AuA,FuO,zL,ltS,LuU,JuX,M2,Zlh,BMr,g1U,SIr,CS,X3A,TL,HX,ilh,U7A,Ot,wn,bl,Q7v,WX,m7X,ulX,p3O,qIi, v1A,Af,o1Z,kxj,PxA,hth,GL,rxv,FC,Vei,ll,IWU,dfv,YBp,e$X,DfA,aWA,nWv,LS,fWO,jBh,xfA,EWr,NxX,sBX,Zo,cxO,gn,XC,z$A,S2,il,CMX,Txg,QR,m5,Hei,Ut,wfv,ul,Oep,beA,vX,q2,PX,KWi,WWA,$fh,o4,R$X,GWS,yxj,ter,Axi,kZ,lWg,XfA,Bxi,rz,gWg,hf,LWv,JxS,Ufr,VX,I8,QBA,mfA,uhj,pfX,vWU,fY,oWv,kWU,h$A,et,PMZ,Vdg,a8,YB,nY,qBh,jt,IYh,dhr,Dw,aYX,fYj,exX,xB,YWX,Ek,nJh,j_i,DhX,xhS,EJO,N5X,s_v,MdZ,cqX,Cyr,T5Z,wWZ,OdU,WyZ,bdZ,KyA,RxZ,tdZ,bD,AqU,Gwi,XWZ,$B,SWj,Q_U,UhZ,idg,Jqr,ZdA,Fyj,lYj,B5A,KY,R8,uPA,L8,Sji,pWO,yX,Gu,qWi,vJX,gJU, oJi,kwi,hxi,Ff,rTZ,gz,IVi,dIX,aVO,euv,fVO,YRi,St,iD,ncZ,xIr,EcO,m2,DIU,NyU,sFO,jFO,vD,cTv,zuX,pY,MRg,CNX,Tyi,HKh,bKr,w$S,$IO,KXr,OKg,tRS,yTv,WXj,o8,kB,ATr,FXv,hW,G5j,lVi,JTX,LXA,ZKr,rM,X$v,Byh,gcg,SRg,iKi,UIr,QFi,uBh,mIS,p$i,vcA,qRA,PNi,oci,hui,I7,V1,dM,rni,Vmg,k5r,e5X,Ybv,nHX,xvi,Dvh,jph,EHj,NaS,a7,fl,spi,cnv,z5v,MmX,TaX,Hzh,Y1,wjO,eZ,jZ,CBA,bzg,Ozh,WwU,$vU,Kwi,x1,R5Z,tmO,GRX,EI,Fwi,AnZ,N7,sI,c3,JnA,lIS,Lwr,Zzp,XjX,Bap,SbU,Qpi,gHg,izA,M7,mvZ,pjr,vHS,PBA,oHr,Cl,Tx,kRA,u3X,Vhi,r9A,h5Z,H3,wM,dtU,INA, bx,OI,W3,aNr,$1,fNv,e7S,YZU,Kl,nFA,R7,jRr,tu,y1,EFS,N9X,sRi,z7i,MhX,Cqj,c9O,HCv,T9i,w0S,WCU,Fl,KCU,$tO,bCp,OCO,R7i,thO,lx,Ll,y9g,A9A,G7i,FCp,lNX,LCi,ZCi,X0g,uvO,SZi,iCA,B9S,vFO,SZ,UI,h7v,ryX,ux,pl,VEv,qZg,gM,P3,q7,Q1,dgi,aMi,o7,eIg,nKp,Y2A,k1,mu,B3,fMU,v3,Pqj,IMv,DgX,Ju,hu,xgr,EKX,ix,oFr,rx,V5,NOv,IB,dx,aB,ski,cyr,MEi,CKi,zIp,fe,ee,TOi,YW,H6g,ne,je,w2v,b6r,O6X,W8A,$gX,K8i,tEX,RIO,xW,DW,yyX,Gai,Ayr,EB,Nf,F8i,L8v,Jyp,sB,lMi,Z6Z,X2A,BOA,gKg,S2S,i6j,Ugv,zW,Mf,mgj,QkS,Ce,TW,p2Z,uJA,Hf,q2X,wx,vKS,PKv,kah, oKp,hIX,OB,rNX,VVj,$W,IGi,Ke,dVA,aGU,fGA,eUi,YEZ,jlg,DVp,xVh,n3v,E3g,NpZ,slv,cNS,zUj,MVj,Cui,TpS,GW,HuS,wOr,buZ,$VO,yNi,RUh,W9r,Le,K9A,OuA,tVO,Jx,Gfi,ANX,ZW,F9i,lGi,L9X,Ib,JNX,Zug,iuS,UVX,Qli,gx,mVA,Se,HP,uZS,iM,pOp,v3h,UB,qEX,VYX,vf,qf,Pf,kW,hx,dRZ,IlZ,PuX,r5,alX,flZ,Y0i,V6,nLh,jWA,DRr,oB,ELj,xRA,I_,d5,hUp,uM,N0A,sWS,cPS,zbA,o3S,kfi,pe,MYO,CJh,T0i,H7Z,WzS,$Rh,O7U,tYh,XX,BU,M8,G8j,FzA,APv,llA,Lzp,yPZ,wKZ,JPO,RbX,Z7i,KzX,AF,T$S,cWZ,a_,u4,b7p,B0Z,URr,ed,QWO,mRA,S0i,nd,uEi,pKA,XKv,vLA,i7X,q0S,jd,YJ, PJO,k8p,oLX,fd,rdA,EW,oli,DY,Nh,xJ,sW,Q8X,V5j,aaX,dzh,eeX,Y4X,fah,zw,cW,jKU,DzU,xzA,E2i,wgO,M5p,CWh,cdX,WJA,sKh,Tw,Rej,$zv,t5p,ydS,Cd,w5,by,laA,FJi,Gyg,WW,Hsj,tq,JdS,R_,OW,Xgj,Bdg,g2Z,Osh,Gw,ly,S4X,TdZ,LJO,$J,isr,HW,UzX,QKX,mzS,ZY,XP,ZsA,u4S,pgX,BW,g5,v2X,Kd,KJX,q4A,PWU,o2Z,FP,kyi,y6,heX,Aq,b5,rcv,I0i,Sd,iy,ddA,a0i,f0O,Jq,Ld,eXr,Iav,YgZ,nzS,jzr,DdA,xdj,UW,Q6,szA,MLS,TeS,Nev,RXA,tLX,ycv,Acr,GDS,FoX,l0j,JcS,LoA,my,uy,pd,ZaA,X6O,BeA,oL,gzO,vW,Sgv,qh,iaA,PW,o_,UdX,t4,QzU,kJ,R3S,kp,mdi,AJ,Whr,RRA,uWA, n3,p6O,tHj,vzX,Bb,gm,qgi,YN,P1X,ozO,GJ,GUU,kDp,hXi,hq,V8A,I6r,ry,IF,dy,dNj,ekg,YxA,aF,nbX,a6i,DNU,f6j,jPX,xNg,Ebv,NGi,sPv,fK,zki,wLi,Ws,f1,M8i,CVr,jo,clZ,FS,TGj,H4g,wVr,eR,bf,eo,O4X,Wai,Yc,nK,$NZ,jR,tJ,Kav,VM,Rkr,t8j,ylh,m5Z,DV,xc,Alr,ER,NI,GEv,sR,FaO,c$,z5,l6X,LaX,T4v,MI,JlX,Z4X,BGO,XVU,CK,T5,gbi,H$,Sxp,i4i,UNj,QPA,mNA,uHO,vbh,bN,pVO,qxj,PVi,obX,kEh,IU_,hkv,rhY,Vi6,aUY,eOP,Yic,nvf,fU6,OR,jXG,Dp6,xp_,EvG,NAf,$c,sX_,KK,RF,tT,cho,zO_,CXe,TAm,Hg9,wrK,Ogf,bgm,WA6,yM,AT,ROm,$p$,KAm,G5,tiK,yho,FB,lN,Ahc, LK,GS_,JT,FA_,ZV,XB,lUP,B$,gy,LA9,JhP,SR,iN,ZgY,UR,XrG,BAp,pK,v$,gv_,Sie,igG,mpc,QXK,qI,uj$,prp,vvo,tIg,Up9,PX_,ovG,hOG,rhO,DU;VZ=function(r){return function(){return rhO[r].apply(this,arguments)}}; g.ei=function(r,V){return rhO[r]=V}; ViS=function(r){var V=0;return function(){return V=this.length))return this[r]}; uX=function(r){return r?r:mA}; NAv=function(r,V,I){r instanceof String&&(r=String(r));for(var d=r.length-1;d>=0;d--){var a=r[d];if(V.call(I,a,d,r))return{u5:d,Q3:a}}return{u5:-1,Q3:void 0}}; pg=function(r){return r?r:function(V,I){return NAv(this,V,I).u5}}; g.qp=function(r,V,I){r=r.split(".");I=I||g.vr;for(var d;r.length&&(d=r.shift());)r.length||V===void 0?I[d]&&I[d]!==Object.prototype[d]?I=I[d]:I=I[d]={}:I[d]=V}; kv=function(r,V){var I=g.Pr("CLOSURE_FLAGS");r=I&&I[r];return r!=null?r:V}; g.Pr=function(r,V){r=r.split(".");V=V||g.vr;for(var I=0;I2){var d=Array.prototype.slice.call(arguments,2);return function(){var a=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(a,d);return r.apply(V,a)}}return function(){return r.apply(V,arguments)}}; g.aG=function(r,V,I){g.aG=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?chh:zOi;return g.aG.apply(null,arguments)}; g.ep=function(r,V){var I=Array.prototype.slice.call(arguments,1);return function(){var d=I.slice();d.push.apply(d,arguments);return r.apply(this,d)}}; g.Yf=function(){return Date.now()}; nG=function(r){return r}; g.Dm=function(r,V){function I(){} I.prototype=V.prototype;r.m9=V.prototype;r.prototype=new I;r.prototype.constructor=r;r.Pa=function(d,a,f){for(var e=Array(arguments.length-2),n=2;n=0;--I)I in d&&V.call(void 0,d[I],I,r)}; g.z6=function(r,V,I){V=s_(r,V,I);return V<0?null:typeof r==="string"?r.charAt(V):r[V]}; s_=function(r,V,I){for(var d=r.length,a=typeof r==="string"?r.split(""):r,f=0;f=0;d--)if(d in a&&V.call(I,a[d],d,r))return d;return-1}; g.CG=function(r,V){return Ogv(r,V)>=0}; WAS=function(r){if(!Array.isArray(r))for(var V=r.length-1;V>=0;V--)delete r[V];r.length=0}; g.H9=function(r,V){V=Ogv(r,V);var I;(I=V>=0)&&g.T6(r,V);return I}; g.T6=function(r,V){return Array.prototype.splice.call(r,V,1).length==1}; g.wP=function(r,V){V=s_(r,V);V>=0&&g.T6(r,V)}; $pX=function(r,V){var I=0;bgp(r,function(d,a){V.call(void 0,d,a,r)&&g.T6(r,a)&&I++})}; g.b$=function(r){return Array.prototype.concat.apply([],arguments)}; g.W9=function(r){var V=r.length;if(V>0){for(var I=Array(V),d=0;d>>1),D=void 0;I?D=V.call(void 0,r[n],n,r):D=V(d,r[n]);D>0?a=n+1:(f=n,e=!D)}return e?a:-a-1}; g.LG=function(r,V){r.sort(V||yc)}; tiA=function(r,V){var I=yc;g.LG(r,function(d,a){return I(V(d),V(a))})}; g.Zm=function(r,V,I){if(!g.rP(r)||!g.rP(V)||r.length!=V.length)return!1;var d=r.length;I=I||yhh;for(var a=0;aV?1:r0&&(V[a]=d)},r); return V}; gvi=function(r){r=ct(r);var V=[];g.i$(r,function(I,d){d in Object.prototype||typeof I!="undefined"&&V.push([d,":",I].join(""))}); return V}; igg=function(r){Ez(r,"od",Sij);Ez(r,"opac",zF).G=!0;Ez(r,"sbeos",zF).G=!0;Ez(r,"prf",zF).G=!0;Ez(r,"mwt",zF).G=!0;Ez(r,"iogeo",zF)}; Mi=function(r,V){return r.lastIndexOf(V,0)==0}; Upr=function(r,V){var I=r.length-V.length;return I>=0&&r.indexOf(V,I)==I}; g.CD=function(r){return/^[\s\xa0]*$/.test(r)}; g.Ht=function(r,V){return r.indexOf(V)!=-1}; wo=function(r,V){return g.Ht(r.toLowerCase(),V.toLowerCase())}; g.KD=function(r,V){var I=0;r=b_(String(r)).split(".");V=b_(String(V)).split(".");for(var d=Math.max(r.length,V.length),a=0;I==0&&aV?1:0}; g.RZ=function(){var r=g.vr.navigator;return r&&(r=r.userAgent)?r:""}; GF=function(r){if(!tr&&!y3||!Ar)return!1;for(var V=0;V0:!1}; LD=function(){return l_()?!1:Fy("Opera")}; QXA=function(){return l_()?!1:Fy("Trident")||Fy("MSIE")}; mpZ=function(){return l_()?GF("Microsoft Edge"):Fy("Edg/")}; Z4=function(){return Fy("Firefox")||Fy("FxiOS")}; Bt=function(){return Fy("Safari")&&!(Xy()||(l_()?0:Fy("Coast"))||LD()||(l_()?0:Fy("Edge"))||mpZ()||(l_()?GF("Opera"):Fy("OPR"))||Z4()||Fy("Silk")||Fy("Android"))}; Xy=function(){return l_()?GF("Chromium"):(Fy("Chrome")||Fy("CriOS"))&&!(l_()?0:Fy("Edge"))||Fy("Silk")}; ujX=function(){return Fy("Android")&&!(Xy()||Z4()||LD()||Fy("Silk"))}; pri=function(r){var V={};r.forEach(function(I){V[I[0]]=I[1]}); return function(I){return V[I.find(function(d){return d in V})]||""}}; vvh=function(r){var V=g.RZ();if(r==="Internet Explorer"){if(QXA())if((r=/rv: *([\d\.]*)/.exec(V))&&r[1])V=r[1];else{r="";var I=/MSIE +([\d\.]+)/.exec(V);if(I&&I[1])if(V=/Trident\/(\d.\d)/.exec(V),I[1]=="7.0")if(V&&V[1])switch(V[1]){case "4.0":r="8.0";break;case "5.0":r="9.0";break;case "6.0":r="10.0";break;case "7.0":r="11.0"}else r="7.0";else r=I[1];V=r}else V="";return V}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");I=[];for(var a;a=d.exec(V);)I.push([a[1],a[2],a[3]||void 0]); V=pri(I);switch(r){case "Opera":if(LD())return V(["Version","Opera"]);if(l_()?GF("Opera"):Fy("OPR"))return V(["OPR"]);break;case "Microsoft Edge":if(l_()?0:Fy("Edge"))return V(["Edge"]);if(mpZ())return V(["Edg"]);break;case "Chromium":if(Xy())return V(["Chrome","CriOS","HeadlessChrome"])}return r==="Firefox"&&Z4()||r==="Safari"&&Bt()||r==="Android Browser"&&ujX()||r==="Silk"&&Fy("Silk")?(V=I[2])&&V[1]||"":""}; qiX=function(r){if(l_()&&r!=="Silk"){var V=Ar.brands.find(function(I){return I.brand===r}); if(!V||!V.version)return NaN;V=V.version.split(".")}else{V=vvh(r);if(V==="")return NaN;V=V.split(".")}return V.length===0?NaN:Number(V[0])}; ovg=function(){var r=null;if(!PXi)return r;try{var V=function(I){return I}; r=PXi.createPolicy("goog#html",{createHTML:V,createScript:V,createScriptURL:V})}catch(I){}return r}; SS=function(){go===void 0&&(go=ovg());return go}; i_=function(r){this.G=r}; Uz=function(r){var V=SS();r=V?V.createScriptURL(r):r;return new i_(r)}; Q3=function(r){if(r instanceof i_)return r.G;throw Error("");}; m7=function(r){this.G=r}; g.u_=function(r){if(r instanceof m7)return r.G;throw Error("");}; pD=function(r){this.IL=r}; qi=function(r){return new pD(function(V){return V.substr(0,r.length+1).toLowerCase()===r+":"})}; g.Pt=function(r,V){V=V===void 0?kSZ:V;a:if(V=V===void 0?kSZ:V,!(r instanceof m7)){for(var I=0;I4);a++)V[sm(r[a])]||(I+="\nInner error "+d++ +": ",r[a].stack&&r[a].stack.indexOf(r[a].toString())==0||(I+=typeof r[a]==="string"?r[a]:r[a].message+"\n"),I+=Em(r[a],V));a")!=-1&&(r=r.replace(DmX,">")),r.indexOf('"')!=-1&&(r=r.replace(xmv,""")),r.indexOf("'")!=-1&&(r=r.replace(Efi,"'")),r.indexOf("\x00")!=-1&&(r=r.replace(NPv,"�")));return r}; g.Hz=function(r){return r==null?"":String(r)}; wl=function(r){for(var V=0,I=0;I>>0;return V}; bb=function(r){var V=Number(r);return V==0&&g.CD(r)?NaN:V}; sGh=function(r){return String(r).replace(/\-([a-z])/g,function(V,I){return I.toUpperCase()})}; cor=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; zYh=function(r){return r.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(V,I,d){return I+d.toUpperCase()})}; MpX=function(r){var V=1;r=r.split(":");for(var I=[];V>0&&r.length;)I.push(r.shift()),V--;r.length&&I.push(r.join(":"));return I}; Om=function(){return tr||y3?!!Ar&&!!Ar.platform:!1}; C$i=function(){return Om()?Ar.platform==="Android":Fy("Android")}; Wz=function(){return Fy("iPhone")&&!Fy("iPod")&&!Fy("iPad")}; $E=function(){return Wz()||Fy("iPad")||Fy("iPod")}; KJ=function(){return Om()?Ar.platform==="macOS":Fy("Macintosh")}; TPi=function(){return Om()?Ar.platform==="Windows":Fy("Windows")}; Rc=function(r){Rc[" "](r);return r}; HGg=function(r,V){try{return Rc(r[V]),!0}catch(I){}return!1}; bGX=function(r,V){var I=w9Z;return Object.prototype.hasOwnProperty.call(I,r)?I[r]:I[r]=V(r)}; g.tS=function(r){return bGX(r,function(){return g.KD(OGX,r)>=0})}; g.yv=function(r,V,I){return Math.min(Math.max(r,V),I)}; g.AS=function(r,V){r%=V;return r*V<0?r+V:r}; GP=function(r,V,I){return r+I*(V-r)}; g.Fw=function(r,V){this.x=r!==void 0?r:0;this.y=V!==void 0?V:0}; lb=function(r,V){return r==V?!0:r&&V?r.x==V.x&&r.y==V.y:!1}; g.LJ=function(r,V){this.width=r;this.height=V}; g.JS=function(r,V){return r==V?!0:r&&V?r.width==V.width&&r.height==V.height:!1}; Zh=function(r){return r.width*r.height}; Bz=function(r,V){this.G=r===Xw&&V||""}; gl=function(r){if(r instanceof rl)return r;r=String(r).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Ic(r)}; $mU=function(r){return WKi(r)}; WKi=function(r){var V=gl("");return Ic(r.map(function(I){return dl(gl(I))}).join(dl(V).toString()))}; Aog=function(r){var V;if(!KKg.test("div"))throw Error("");if(RYi.indexOf("DIV")!==-1)throw Error("");var I="":(r=$mU(V.map(function(d){return d instanceof rl?d:gl(String(d))})),I+=">"+r.toString()+""); return Ic(I)}; tpS=function(r){for(var V="",I=Object.keys(r),d=0;d2&&BPA(a,e,d,2);return e}; BPA=function(r,V,I,d){function a(n){n&&V.appendChild(typeof n==="string"?r.createTextNode(n):n)} for(;d0)a(f);else{a:{if(f&&typeof f.length=="number"){if(g.Vc(f)){var e=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){e=typeof f.item=="function";break a}}e=!1}g.B9(e?g.W9(f):f,a)}}}; g.rX=function(r){return kE(document,r)}; kE=function(r,V){V=String(V);r.contentType==="application/xhtml+xml"&&(V=V.toLowerCase());return r.createElement(V)}; g.VE=function(r){return document.createTextNode(String(r))}; g.In=function(r,V){r.appendChild(V)}; g.dX=function(r){for(var V;V=r.firstChild;)r.removeChild(V)}; an=function(r,V,I){r.insertBefore(V,r.childNodes[I]||null)}; g.fy=function(r){return r&&r.parentNode?r.parentNode.removeChild(r):null}; g.eG=function(r,V){if(!r||!V)return!1;if(r.contains&&V.nodeType==1)return r==V||r.contains(V);if(typeof r.compareDocumentPosition!="undefined")return r==V||!!(r.compareDocumentPosition(V)&16);for(;V&&r!=V;)V=V.parentNode;return V==r}; ib=function(r){return r.nodeType==9?r:r.ownerDocument||r.document}; g.Yx=function(r,V){if("textContent"in r)r.textContent=V;else if(r.nodeType==3)r.data=String(V);else if(r.firstChild&&r.firstChild.nodeType==3){for(;r.lastChild!=r.firstChild;)r.removeChild(r.lastChild);r.firstChild.data=String(V)}else g.dX(r),r.appendChild(ib(r).createTextNode(String(V)))}; S_r=function(r){return r.tagName=="A"&&r.hasAttribute("href")||r.tagName=="INPUT"||r.tagName=="TEXTAREA"||r.tagName=="SELECT"||r.tagName=="BUTTON"?!r.disabled&&(!r.hasAttribute("tabindex")||gfr(r)):r.hasAttribute("tabindex")&&gfr(r)}; gfr=function(r){r=r.tabIndex;return typeof r==="number"&&r>=0&&r<32768}; jG=function(r,V,I){if(!V&&!I)return null;var d=V?String(V).toUpperCase():null;return ny(r,function(a){return(!d||a.nodeName==d)&&(!I||typeof a.className==="string"&&g.CG(a.className.split(/\s+/),I))},!0)}; ny=function(r,V,I){r&&!I&&(r=r.parentNode);for(I=0;r;){if(V(r))return r;r=r.parentNode;I++}return null}; S1=function(r){this.G=r||g.vr.document||document}; iGZ=function(){this.G=this.dl=null}; D5=function(){}; ES=function(){if(!xx())throw Error();}; xx=function(){return!(!NQ||!NQ.performance)}; sS=function(r){return function(){return r}}; g.cl=function(){}; UmX=function(r){var V=V||0;return function(){return r.apply(this,Array.prototype.slice.call(arguments,0,V))}}; zI=function(r){var V=!1,I;return function(){V||(I=r(),V=!0);return I}}; MQ=function(r){var V=r;return function(){if(V){var I=V;V=null;I()}}}; Cy=function(r,V,I){var d=0;return function(a){g.vr.clearTimeout(d);var f=arguments;d=g.vr.setTimeout(function(){r.apply(I,f)},V)}}; TI=function(r){return r?r.passive&&QGr()?r:r.capture||!1:!1}; Hl=function(r,V,I,d){return r.addEventListener?(r.addEventListener(V,I,TI(d)),!0):!1}; wX=function(r){if(r.prerendering)return 3;var V;return(V={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[r.visibilityState||r.webkitVisibilityState||r.mozVisibilityState||""])!=null?V:0}; mmi=function(){}; ueX=function(r){return r}; bE=function(r){r.Z9M=!0;return r}; p9X=function(){return(tr||y3)&&Ar?Ar.mobile:!Wl()&&(Fy("iPod")||Fy("iPhone")||Fy("Android")||Fy("IEMobile"))}; Wl=function(){return(tr||y3)&&Ar?!Ar.mobile&&(Fy("iPad")||Fy("Android")||Fy("Silk")):Fy("iPad")||Fy("Android")&&!Fy("Mobile")||Fy("Silk")}; $x=function(r,V,I,d,a,f,e){var n="";r&&(n+=r+":");I&&(n+="//",V&&(n+=V+"@"),n+=I,d&&(n+=":"+d));a&&(n+=a);f&&(n+="?"+f);e&&(n+="#"+e);return n}; g.Ky=function(r){return r.match(vfg)}; q_v=function(r){return r?decodeURI(r):r}; g.Rn=function(r){return q_v(g.Ky(r)[3]||null)}; tg=function(r){return q_v(g.Ky(r)[5]||null)}; g.P$X=function(r){r=g.Ky(r);return $x(r[1],r[2],r[3],r[4])}; yE=function(r){r=g.Ky(r);return $x(null,null,null,null,r[5],r[6],r[7])}; ofA=function(r){var V=r.indexOf("#");return V<0?r:r.slice(0,V)}; Ag=function(r,V){if(r){r=r.split("&");for(var I=0;I=0){var f=r[I].substring(0,d);a=r[I].substring(d+1)}else f=r[I];V(f,a?My(a):"")}}}; GI=function(r,V){if(!V)return r;var I=r.indexOf("#");I<0&&(I=r.length);var d=r.indexOf("?");if(d<0||d>I){d=I;var a=""}else a=r.substring(d+1,I);r=[r.slice(0,d),a,r.slice(I)];I=r[1];r[1]=V?I?I+"&"+V:V:I;return r[0]+(r[1]?"?"+r[1]:"")+r[2]}; Ft=function(r,V,I){if(Array.isArray(V))for(var d=0;d=0&&VI)a=I;d+=V.length+1;return My(r.slice(d,a!==-1?a:0))}; Xt=function(r,V){for(var I=r.search(VSj),d=0,a,f=[];(a=rrr(r,d,V,I))>=0;)f.push(r.substring(d,a)),d=Math.min(r.indexOf("&",a)+1||I,I);f.push(r.slice(d));return f.join("").replace(I4A,"$1")}; dii=function(r,V,I){return Jg(Xt(r,V),V,I)}; Bl=function(r){try{return!!r&&r.location.href!=null&&HGg(r,"foo")}catch(V){return!1}}; gX=function(r,V){if(r)for(var I in r)Object.prototype.hasOwnProperty.call(r,I)&&V(r[I],I,r)}; f4v=function(){var r=[];gX(a4Z,function(V){r.push(V)}); return r}; eJj=function(r){var V,I;return(I=(V=/https?:\/\/[^\/]+/.exec(r))==null?void 0:V[0])!=null?I:""}; jZZ=function(){var r=Yzp("IFRAME"),V={};g.B9(nrX(),function(I){r.sandbox&&r.sandbox.supports&&r.sandbox.supports(I)&&(V[I]=!0)}); return V}; Yzp=function(r,V){V=V===void 0?document:V;return V.createElement(String(r).toLowerCase())}; DiX=function(r){for(var V=r;r&&r!=r.parent;)r=r.parent,Bl(r)&&(V=r);return V}; sZX=function(r){r=r||SG();for(var V=new xiO(g.vr.location.href,!1),I=null,d=r.length-1,a=d;a>=0;--a){var f=r[a];!I&&Erh.test(f.url)&&(I=f);if(f.url&&!f.G){V=f;break}}a=null;f=r.length&&r[d].url;V.depth!==0&&f&&(a=r[d]);return new NoX(V,a,I)}; SG=function(){var r=g.vr,V=[],I=null;do{var d=r;if(Bl(d)){var a=d.location.href;I=d.document&&d.document.referrer||null}else a=I,I=null;V.push(new xiO(a||""));try{r=d.parent}catch(f){r=null}}while(r&&d!==r);d=0;for(r=V.length-1;d<=r;++d)V[d].depth=r-d;d=g.vr;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length===V.length-1)for(r=1;rV&&(V=I.length);return 3997-V-r.S.length-1}; mG=function(r,V){this.G=r;this.depth=V}; C_U=function(){function r(n,D){return n==null?D:n} var V=SG(),I=Math.max(V.length-1,0),d=sZX(V);V=d.G;var a=d.X,f=d.S,e=[];f&&e.push(new mG([f.url,f.G?2:0],r(f.depth,1)));a&&a!=f&&e.push(new mG([a.url,2],0));V.url&&V!=f&&e.push(new mG([V.url,0],r(V.depth,I)));d=g.uE(e,function(n,D){return e.slice(0,e.length-D)}); !V.url||(f||a)&&V!=f||(a=eJj(V.url))&&d.push([new mG([a,1],r(V.depth,I))]);d.push([]);return g.uE(d,function(n){return MSO(I,n)})}; MSO=function(r,V){g.py(V,function(a){return a.depth>=0}); var I=vl(V,function(a,f){return Math.max(a,f.depth)},-1),d=AhZ(I+2); d[0]=r;g.B9(V,function(a){return d[a.depth+1]=a.G}); return d}; Toh=function(){var r=r===void 0?C_U():r;return r.map(function(V){return QE(V)})}; HDj=function(r){var V=!1;V=V===void 0?!1:V;NQ.google_image_requests||(NQ.google_image_requests=[]);var I=Yzp("IMG",NQ.document);V&&(I.attributionSrc="");I.src=r;NQ.google_image_requests.push(I)}; qQ=function(r){var V="JZ";if(r.JZ&&r.hasOwnProperty(V))return r.JZ;var I=new r;r.JZ=I;r.hasOwnProperty(V);return I}; Pl=function(){this.X=new mmi;this.G=xx()?new ES:new D5}; wtS=function(){on();var r=NQ.document;return!!(r&&r.body&&r.body.getBoundingClientRect&&typeof NQ.setInterval==="function"&&typeof NQ.clearInterval==="function"&&typeof NQ.setTimeout==="function"&&typeof NQ.clearTimeout==="function")}; bDX=function(){on();return Toh()}; ODX=function(){}; on=function(){var r=qQ(ODX);if(!r.G){if(!NQ)throw Error("Context has not been set and window is undefined.");r.G=qQ(Pl)}return r.G}; kx=function(r){return(r&192)!==128}; hg=function(){throw Error("Invalid UTF8");}; W7i=function(r,V){V=String.fromCharCode.apply(null,V);return r==null?V:r+V}; tSv=function(r){var V=!1;V=V===void 0?!1:V;if($iX){if(V&&(K7p?!r.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(r)))throw Error("Found an unpaired surrogate");r=(RJX||(RJX=new TextEncoder)).encode(r)}else{for(var I=0,d=new Uint8Array(3*r.length),a=0;a>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&a=56320&&e<=57343){f=(f-55296)*1024+ e-56320+65536;d[I++]=f>>18|240;d[I++]=f>>12&63|128;d[I++]=f>>6&63|128;d[I++]=f&63|128;continue}else a--}if(V)throw Error("Found an unpaired surrogate");f=65533}d[I++]=f>>12|224;d[I++]=f>>6&63|128}d[I++]=f&63|128}}r=I===d.length?d:d.subarray(0,I)}return r}; rq=function(r){g.vr.setTimeout(function(){throw r;},0)}; yrj=function(r){return Array.prototype.map.call(r,function(V){V=V.toString(16);return V.length>1?V:"0"+V}).join("")}; ArS=function(r){for(var V=[],I=0;I>6|192:((a&64512)==55296&&d+1>18|240,V[I++]=a>>12&63|128):V[I++]=a>>12|224,V[I++]=a>>6&63|128),V[I++]=a&63|128)}return V}; g.I3=function(r,V){V===void 0&&(V=0);GFX();V=F7p[V];for(var I=Array(Math.floor(r.length/3)),d=V[64]||"",a=0,f=0;a>2];e=V[(e&3)<<4|n>>4];n=V[(n&15)<<2|D>>6];D=V[D&63];I[f++]=""+x+e+n+D}x=0;D=d;switch(r.length-a){case 2:x=r[a+1],D=V[(x&15)<<2]||d;case 1:r=r[a],I[f]=""+V[r>>2]+V[(r&3)<<4|x>>4]+D+d}return I.join("")}; g.dq=function(r,V){if(l4Z&&!V)r=g.vr.btoa(r);else{for(var I=[],d=0,a=0;a255&&(I[d++]=f&255,f>>=8);I[d++]=f}r=g.I3(I,V)}return r}; Jri=function(r){var V=[];L7h(r,function(I){V.push(I)}); return V}; a3=function(r){var V=r.length,I=V*3/4;I%3?I=Math.floor(I):g.Ht("=.",r[V-1])&&(I=g.Ht("=.",r[V-2])?I-2:I-1);var d=new Uint8Array(I),a=0;L7h(r,function(f){d[a++]=f}); return a!==I?d.subarray(0,a):d}; L7h=function(r,V){function I(D){for(;d>4);e!=64&&(V(f<<4&240|e>>2),n!=64&&V(e<<6&192|n))}}; GFX=function(){if(!fr){fr={};for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),V=["+/=","+/","-_=","-_.","-_"],I=0;I<5;I++){var d=r.concat(V[I].split(""));F7p[I]=d;for(var a=0;a=V||(d[r]=I+1,r=Error(),fmX(r,"incident"),rq(r))}}; ED=function(r,V,I){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&r?Symbol.for(r):r!=null?Symbol(r):Symbol():V}; co=function(r,V){Ns||sD in r||ptv(r,vrA);r[sD]|=V}; zB=function(r,V){Ns||sD in r||ptv(r,vrA);r[sD]=V}; Ms=function(r){r[sD]&=-3}; TB=function(r,V){return V===void 0?r.G!==Cr&&!!(2&(r.kN[sD]|0)):!!(2&V)&&r.G!==Cr}; qzj=function(r,V){if(r!=null)if(typeof r==="string")r=r?new e_(r,Yq):nr();else if(r.constructor!==e_)if(QZj&&r!=null&&r instanceof Uint8Array)r=r.length?new e_(new Uint8Array(r),Yq):nr();else{if(!V)throw Error();r=void 0}return r}; Ho=function(r,V){if(typeof V!=="number"||V<0||V>=r.length)throw Error();}; P_h=function(r,V,I){var d=V&512?0:-1,a=r.length;if(V&64)V&=256;else if(V=!!a)V=r[a-1],V=V!=null&&typeof V==="object"&&V.constructor===Object;for(var f=a+(V?-1:0),e=0;eV.length)return!1;if(r.lengtha)return!1;if(d>>0;Kr=V;R3=(r-V)/4294967296>>>0}; AA=function(r){if(r<0){tA(0-r);var V=g.H(yn(Kr,R3));r=V.next().value;V=V.next().value;Kr=r>>>0;R3=V>>>0}else tA(r)}; FO=function(r,V){var I=V*4294967296+(r>>>0);return Number.isSafeInteger(I)?I:GB(r,V)}; V1i=function(r,V){var I=V&2147483648;I&&(r=~r+1>>>0,V=~V>>>0,r==0&&(V=V+1>>>0));r=FO(r,V);return typeof r==="number"?I?-r:r:I?"-"+r:r}; GB=function(r,V){V>>>=0;r>>>=0;if(V<=2097151)var I=""+(4294967296*V+r);else OD()?I=""+(BigInt(V)<>>24|V<<8)&16777215,V=V>>16&65535,r=(r&16777215)+I*6777216+V*6710656,I+=V*8147497,V*=2,r>=1E7&&(I+=r/1E7>>>0,r%=1E7),I>=1E7&&(V+=I/1E7>>>0,I%=1E7),I=V+IhA(I)+IhA(r));return I}; IhA=function(r){r=String(r);return"0000000".slice(r.length)+r}; dyp=function(){var r=Kr,V=R3;V&2147483648?OD()?r=""+(BigInt(V|0)<>>0)):(V=g.H(yn(r,V)),r=V.next().value,V=V.next().value,r="-"+GB(r,V)):r=GB(r,V);return r}; l0=function(r){if(r.length<16)AA(Number(r));else if(OD())r=BigInt(r),Kr=Number(r&BigInt(4294967295))>>>0,R3=Number(r>>BigInt(32)&BigInt(4294967295));else{var V=+(r[0]==="-");R3=Kr=0;for(var I=r.length,d=0+V,a=(I-V)%6+V;a<=I;d=a,a+=6)d=Number(r.slice(d,a)),R3*=1E6,Kr=Kr*1E6+d,Kr>=4294967296&&(R3+=Math.trunc(Kr/4294967296),R3>>>=0,Kr>>>=0);V&&(V=g.H(yn(Kr,R3)),r=V.next().value,V=V.next().value,Kr=r,R3=V)}}; yn=function(r,V){V=~V;r?r=~r+1:V+=1;return[r,V]}; Lr=function(r){return Array.prototype.slice.call(r)}; JA=function(r){if(r!=null&&typeof r!=="number")throw Error("Value of float/double field must be a number, found "+typeof r+": "+r);return r}; ahv=function(r){return r.displayName||r.name||"unknown type name"}; Zg=function(r){if(r!=null&&typeof r!=="boolean")throw Error("Expected boolean but got "+hh(r)+": "+r);return r}; Bo=function(r){switch(typeof r){case "bigint":return!0;case "number":return XO(r);case "string":return fhr.test(r);default:return!1}}; efh=function(r){if(typeof r!=="number")throw xq("int32");if(!XO(r))throw xq("int32");return r|0}; gq=function(r){return r==null?r:efh(r)}; S_=function(r){if(r==null)return r;if(typeof r==="string"&&r)r=+r;else if(typeof r!=="number")return;return XO(r)?r|0:void 0}; i0=function(r){if(r==null)return r;if(typeof r==="string"&&r)r=+r;else if(typeof r!=="number")return;return XO(r)?r>>>0:void 0}; jch=function(r){var V=0;V=V===void 0?0:V;if(!Bo(r))throw xq("int64");var I=typeof r;switch(V){case 2048:switch(I){case "string":return UD(r);case "bigint":return String(Qn(64,r));default:return mr(r)}case 4096:switch(I){case "string":return YmX(r);case "bigint":return $q(Qn(64,r));default:return nEi(r)}case 0:switch(I){case "string":return UD(r);case "bigint":return $q(Qn(64,r));default:return u0(r)}default:return hr(V,"Unknown format requested type for int64")}}; pr=function(r){return r==null?r:jch(r)}; Dyh=function(r){if(r[0]==="-")return!1;var V=r.length;return V<20?!0:V===20&&Number(r.substring(0,6))<184467}; xyX=function(r){var V=r.length;return r[0]==="-"?V<20?!0:V===20&&Number(r.substring(0,7))>-922337:V<19?!0:V===19&&Number(r.substring(0,6))<922337}; EEr=function(r){if(r<0){AA(r);var V=GB(Kr,R3);r=Number(V);return vo(r)?r:V}V=String(r);if(Dyh(V))return V;AA(r);return FO(Kr,R3)}; Nlj=function(r){if(xyX(r))return r;l0(r);return dyp()}; u0=function(r){Bo(r);r=qs(r);vo(r)||(AA(r),r=V1i(Kr,R3));return r}; mr=function(r){Bo(r);r=qs(r);if(vo(r))r=String(r);else{var V=String(r);xyX(V)?r=V:(AA(r),r=dyp())}return r}; UD=function(r){Bo(r);var V=qs(Number(r));if(vo(V))return String(V);V=r.indexOf(".");V!==-1&&(r=r.substring(0,V));return Nlj(r)}; YmX=function(r){var V=qs(Number(r));if(vo(V))return $q(V);V=r.indexOf(".");V!==-1&&(r=r.substring(0,V));return OD()?$q(Qn(64,BigInt(r))):$q(Nlj(r))}; nEi=function(r){return vo(r)?$q(u0(r)):$q(mr(r))}; scZ=function(r){if(r==null)return r;var V=typeof r;if(V==="bigint")return String(Qn(64,r));if(Bo(r)){if(V==="string")return UD(r);if(V==="number")return u0(r)}}; zfh=function(r){if(r==null)return r;var V=typeof r;if(V==="bigint")return String(cSv(64,r));if(Bo(r)){if(V==="string")return Bo(r),V=qs(Number(r)),vo(V)&&V>=0?r=String(V):(V=r.indexOf("."),V!==-1&&(r=r.substring(0,V)),Dyh(r)||(l0(r),r=GB(Kr,R3))),r;if(V==="number")return Bo(r),r=qs(r),r>=0&&vo(r)?r:EEr(r)}}; M1S=function(r){if(r==null||typeof r=="string"||r instanceof e_)return r}; Cbg=function(r){if(typeof r!=="string")throw Error();return r}; Po=function(r){if(r!=null&&typeof r!=="string")throw Error();return r}; o3=function(r){return r==null||typeof r==="string"?r:void 0}; kq=function(r,V){if(!(r instanceof V))throw Error("Expected instanceof "+ahv(V)+" but got "+(r&&ahv(r.constructor)));return r}; Tlh=function(r,V,I){if(r!=null&&typeof r==="object"&&r[hA]===rJ)return r;if(Array.isArray(r)){var d=r[sD]|0;I=d|I&32|I&2;I!==d&&zB(r,I);return new V(r)}}; VL=function(r){return r}; dJ=function(r){var V=nG(IO);return V?r[V]:void 0}; aO=function(){}; f9=function(r,V){for(var I in r)!isNaN(I)&&V(r,+I,r[I])}; HJr=function(r){var V=new aO;f9(r,function(I,d,a){V[d]=Lr(a)}); V.G=r.G;return V}; YV=function(r,V,I,d,a){var f=d?!!(V&32):void 0;d=[];var e=r.length,n=!1;if(V&64){if(V&256){e--;var D=r[e];var x=e}else x=4294967295,D=void 0;if(!(a||V&512)){n=!0;var E;var N=((E=ez)!=null?E:VL)(D?x- -1:V>>16&1023||536870912,-1,r,D);x=N+-1}}else x=4294967295,V&1||(D=e&&r[e-1],D!=null&&typeof D==="object"&&D.constructor===Object?(e--,x=e,N=0):D=void 0);E=void 0;for(var c=0;c=x){var M=void 0;((M=E)!=null?M:E={})[c- -1]=z}else d[c]=z}if(D)for(var w in D)e= D[w],e!=null&&(e=I(e,f))!=null&&(c=+w,c0?void 0:r===0?WQU||(WQU=[0,void 0]):[-r,void 0];case "string":return[0,r];case "object":return r}}; E$=function(r,V,I){r=KQv(r,V[0],V[1],I?1:2);V!==xV&&I&&co(r,8192);return r}; Ne=function(r,V,I){return KQv(r,V,I,3)}; KQv=function(r,V,I,d){if(r==null){var a=32;I?(r=[I],a|=512):r=[];V&&(a=a&-67043329|(V&1023)<<16)}else{if(!Array.isArray(r))throw Error("narr");a=r[sD]|0;16384&a&&!(2&a)&&RfX();if(a&1024)throw Error("farr");if(a&64)return d!==3||a&16384||zB(r,a|16384),r;if(I&&(a|=512,I!==r[0]))throw Error("mid");a:{I=r;a&=-257;var f=I.length;if(f){var e=f-1,n=I[e];if(n!=null&&typeof n==="object"&&n.constructor===Object){a|=256;V=a&512?0:-1;e-=V;if(e>=1024)throw Error("pvtlmt");for(var D in n)f=+D,f1024)throw Error("spvt");a=a&-67043329|(D&1023)<<16}}}a|=64;d===3&&(a|=16384);zB(r,a);return r}; RfX=function(){uyp(t1i,5)}; s$=function(r,V){if(typeof r!=="object")return r;if(Array.isArray(r)){var I=r[sD]|0;if(r.length===0&&I&1)return;if(I&2)return r;var d;if(d=V)d=(!!(32&I)||!(1&I))&&!(1&I&&!(16&I));return d?(co(r,34),I&4&&Object.freeze(r),r):YV(r,I,s$,V!==void 0,!0)}if(r[hA]===rJ)return V=r.kN,I=V[sD]|0,TB(r,I)?r:YV(V,I,s$,!0,!0);if(r instanceof e_)return r}; zs=function(r){var V=r.kN,I=V[sD]|0;if(!TB(r,I))return r;r=new r.constructor(YV(V,I,s$,!0,!0));Ms(r.kN);return r}; Me=function(r){if(r.G!==Cr)return!1;var V=r.kN;V=YV(V,V[sD]|0,s$,!0,!0);Ms(V);r.kN=V;r.G=void 0;return!0}; C9=function(r){if(!Me(r)&&TB(r,r.kN[sD]|0))throw Error();}; Hv=function(r,V,I){Object.isExtensible(r);return Ts(r.kN,V,I)}; Ts=function(r,V,I,d){if(V===-1)return null;var a=V+(I?0:-1),f=r.length-1;if(!(f<1+(I?0:-1))){if(a>=f){var e=r[f];if(e!=null&&typeof e==="object"&&e.constructor===Object){I=e[V];var n=!0}else if(a===f)I=e;else return}else I=r[a];if(d&&I!=null){d=d(I);if(d==null)return d;if(!Object.is(d,I))return n?e[V]=d:r[a]=d,d}return I}}; bT=function(r,V,I,d){C9(r);var a=r.kN;wJ(a,a[sD]|0,V,I,d);return r}; wJ=function(r,V,I,d,a){var f=I+(a?0:-1),e=r.length-1;if(e>=1+(a?0:-1)&&f>=e){var n=r[e];if(n!=null&&typeof n==="object"&&n.constructor===Object)return n[I]=d,V}if(f<=e)return r[f]=d,V;if(d!==void 0){var D;e=((D=V)!=null?D:V=r[sD]|0)>>16&1023||536870912;I>=e?d!=null&&(f={},r[e+(a?0:-1)]=(f[I]=d,f),V|=256,zB(r,V)):r[f]=d}return V}; te=function(r,V,I,d,a){var f=r.kN,e=f[sD]|0;d=TB(r,e)?1:d;a=!!a||d===3;d===2&&Me(r)&&(f=r.kN,e=f[sD]|0);r=O$(f,V);var n=r[sD]|0;if(!(4&n)){4&n&&(r=Lr(r),n=Wv(n,e),e=E_(wJ(f,e,V,r)));for(var D=0,x=0;D "+r)}; ar=function(r,V){if(typeof r==="string")return{buffer:SzO(r),C1:V};if(Array.isArray(r))return{buffer:new Uint8Array(r),C1:V};if(r.constructor===Uint8Array)return{buffer:r,C1:!1};if(r.constructor===ArrayBuffer)return{buffer:new Uint8Array(r),C1:!1};if(r.constructor===e_)return{buffer:j_(r)||new Uint8Array(0),C1:!0};if(r instanceof Uint8Array)return{buffer:new Uint8Array(r.buffer,r.byteOffset,r.byteLength),C1:!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"); }; gEi=function(r,V,I,d){this.X=null;this.W=!1;this.G=this.S=this.Y=0;this.init(r,V,I,d)}; ea=function(r){var V=0,I=0,d=0,a=r.X,f=r.G;do{var e=a[f++];V|=(e&127)<32&&(I|=(e&127)>>4);for(d=3;d<32&&e&128;d+=7)e=a[f++],I|=(e&127)<>>0,I>>>0);throw dZ();}; fE=function(r,V){r.G=V;if(V>r.S)throw BlU(r.S,V);}; Yo=function(r){var V=r.X,I=r.G,d=V[I++],a=d&127;if(d&128&&(d=V[I++],a|=(d&127)<<7,d&128&&(d=V[I++],a|=(d&127)<<14,d&128&&(d=V[I++],a|=(d&127)<<21,d&128&&(d=V[I++],a|=d<<28,d&128&&V[I++]&128&&V[I++]&128&&V[I++]&128&&V[I++]&128&&V[I++]&128)))))throw dZ();fE(r,I);return a}; nE=function(r){var V=r.X,I=r.G,d=V[I+0],a=V[I+1],f=V[I+2];V=V[I+3];fE(r,r.G+4);return(d<<0|a<<8|f<<16|V<<24)>>>0}; DS=function(r){var V=nE(r);r=nE(r);return FO(V,r)}; xo=function(r){var V=nE(r),I=nE(r);r=(I>>31)*2+1;var d=I>>>20&2047;V=4294967296*(I&1048575)+V;return d==2047?V?NaN:r*Infinity:d==0?r*4.9E-324*V:r*Math.pow(2,d-1075)*(V+4503599627370496)}; E5=function(r){for(var V=0,I=r.G,d=I+10,a=r.X;Ir.S)throw BlU(V,r.S-I);r.G=d;return I}; UyS=function(r,V){if(V==0)return nr();var I=SmO(r,V);r.Kg&&r.W?I=r.X.subarray(I,I+V):(r=r.X,V=I+V,I=I===V?new Uint8Array(0):iJX?r.slice(I,V):new Uint8Array(r.subarray(I,V)));return I.length==0?nr():new e_(I,Yq)}; s5=function(r,V,I,d){if(N6.length){var a=N6.pop();a.init(r,V,I,d);r=a}else r=new gEi(r,V,I,d);this.G=r;this.S=this.G.G;this.X=this.Y=-1;QcS(this,d)}; QcS=function(r,V){V=V===void 0?{}:V;r.oD=V.oD===void 0?!1:V.oD}; myO=function(r,V,I,d){if(cM.length){var a=cM.pop();QcS(a,d);a.G.init(r,V,I,d);return a}return new s5(r,V,I,d)}; uwO=function(r){var V=r.G;if(V.G==V.S)return!1;r.S=r.G.G;var I=Yo(r.G)>>>0;V=I>>>3;I&=7;if(!(I>=0&&I<=5))throw Xzj(I,r.S);if(V<1)throw Error("Invalid field number: "+V+" (at position "+r.S+")");r.Y=V;r.X=I;return!0}; zY=function(r){switch(r.X){case 0:r.X!=0?zY(r):E5(r.G);break;case 1:r=r.G;fE(r,r.G+8);break;case 2:if(r.X!=2)zY(r);else{var V=Yo(r.G)>>>0;r=r.G;fE(r,r.G+V)}break;case 5:r=r.G;fE(r,r.G+4);break;case 3:V=r.Y;do{if(!uwO(r))throw Error("Unmatched start-group tag: stream EOF");if(r.X==4){if(r.Y!=V)throw Error("Unmatched end-group tag");break}zY(r)}while(1);break;default:throw Xzj(r.X,r.S);}}; M6=function(r,V,I){var d=r.G.S,a=Yo(r.G)>>>0,f=r.G.G+a,e=f-d;e<=0&&(r.G.S=f,I(V,r,void 0,void 0,void 0),e=f-r.G.G);if(e)throw Error("Message parsing ended unexpectedly. Expected to read "+(a+" bytes, instead read "+(a-e)+" bytes, either the data ended unexpectedly or the message misreported its own length"));r.G.G=f;r.G.S=d}; HM=function(r){var V=Yo(r.G)>>>0;r=r.G;var I=SmO(r,V);r=r.X;if(pzj){var d=r,a;(a=CE)||(a=CE=new TextDecoder("utf-8",{fatal:!0}));V=I+V;d=I===0&&V===d.length?d:d.subarray(I,V);try{var f=a.decode(d)}catch(x){if(TY===void 0){try{a.decode(new Uint8Array([128]))}catch(E){}try{a.decode(new Uint8Array([97])),TY=!0}catch(E){TY=!1}}!TY&&(CE=void 0);throw x;}}else{f=I;V=f+V;I=[];for(var e=null,n,D;f=V?hg():(D=r[f++],n<194||kx(D)?(f--,hg()):I.push((n&31)<<6|D&63)):n<240? f>=V-1?hg():(D=r[f++],kx(D)||n===224&&D<160||n===237&&D>=160||kx(a=r[f++])?(f--,hg()):I.push((n&15)<<12|(D&63)<<6|a&63)):n<=244?f>=V-2?hg():(D=r[f++],kx(D)||(n<<28)+(D-144)>>30!==0||kx(a=r[f++])||kx(d=r[f++])?(f--,hg()):(n=(n&7)<<18|(D&63)<<12|(a&63)<<6|d&63,n-=65536,I.push((n>>10&1023)+55296,(n&1023)+56320))):hg(),I.length>=8192&&(e=W7i(e,I),I.length=0);f=W7i(e,I)}return f}; vEj=function(r){var V=Yo(r.G)>>>0;return UyS(r.G,V)}; wZ=function(r,V,I){this.kN=Ne(r,V,I)}; qmZ=function(r,V){if(V==null||V=="")return new r;V=JSON.parse(V);if(!Array.isArray(V))throw Error("dnarr");co(V,32);return new r(V)}; br=function(r,V){this.X=r>>>0;this.G=V>>>0}; oEh=function(r){if(!r)return Pbi||(Pbi=new br(0,0));if(!/^\d+$/.test(r))return null;l0(r);return new br(Kr,R3)}; WM=function(r,V){this.X=r>>>0;this.G=V>>>0}; hfX=function(r){if(!r)return kPA||(kPA=new WM(0,0));if(!/^-?\d+$/.test(r))return null;l0(r);return new WM(Kr,R3)}; $o=function(){this.G=[]}; KE=function(r,V,I){for(;I>0||V>127;)r.G.push(V&127|128),V=(V>>>7|I<<25)>>>0,I>>>=7;r.G.push(V)}; Rr=function(r,V){for(;V>127;)r.G.push(V&127|128),V>>>=7;r.G.push(V)}; rgi=function(r,V){if(V>=0)Rr(r,V);else{for(var I=0;I<9;I++)r.G.push(V&127|128),V>>=7;r.G.push(1)}}; tH=function(r,V){r.G.push(V>>>0&255);r.G.push(V>>>8&255);r.G.push(V>>>16&255);r.G.push(V>>>24&255)}; VGj=function(){this.S=[];this.X=0;this.G=new $o}; yP=function(r,V){V.length!==0&&(r.S.push(V),r.X+=V.length)}; I5v=function(r,V){AH(r,V,2);V=r.G.end();yP(r,V);V.push(r.X);return V}; dQr=function(r,V){var I=V.pop();for(I=r.X+r.G.length()-I;I>127;)V.push(I&127|128),I>>>=7,r.X++;V.push(I);r.X++}; AH=function(r,V,I){Rr(r.G,V*8+I)}; a5A=function(r,V,I){if(I!=null){switch(typeof I){case "string":oEh(I)}AH(r,V,1);switch(typeof I){case "number":r=r.G;tA(I);tH(r,Kr);tH(r,R3);break;case "bigint":I=BigInt.asUintN(64,I);I=new br(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));r=r.G;V=I.G;tH(r,I.X);tH(r,V);break;default:I=oEh(I),r=r.G,V=I.G,tH(r,I.X),tH(r,V)}}}; GY=function(r,V,I){AH(r,V,2);Rr(r.G,I.length);yP(r,r.G.end());yP(r,I)}; F6=function(){function r(){throw Error();} Object.setPrototypeOf(r,r.prototype);return r}; LE=function(r,V,I){this.Xy=r;this.q4=V;r=nG(lr);this.G=!!r&&I===r||!1}; JH=function(r,V){var I=I===void 0?lr:I;return new LE(r,V,I)}; eig=function(r,V,I,d,a){V=f5X(V,d);V!=null&&(I=I5v(r,I),a(V,r),dQr(r,I))}; BM=function(r,V,I,d){var a=d[r];if(a)return a;a={};a.lY=d;a.RR=g.J($yA(d[0]));var f=d[1],e=1;f&&f.constructor===Object&&(a.extensions=f,f=d[++e],typeof f==="function"&&(a.TH=!0,ZS!=null||(ZS=f),X6!=null||(X6=d[e+1]),f=d[e+=2]));for(var n={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var D=0;D>BigInt(32)));KE(r.G,I.X,I.G);break;default:I=hfX(V),KE(r.G,I.X,I.G)}}}; d7=function(r,V,I){V=S_(V);V!=null&&V!=null&&(AH(r,I,0),rgi(r.G,V))}; CEO=function(r,V,I){V=V==null||typeof V==="boolean"?V:typeof V==="number"?!!V:void 0;V!=null&&(AH(r,I,0),r.G.G.push(V?1:0))}; TXO=function(r,V,I){V=o3(V);V!=null&&GY(r,I,tSv(V))}; Hyi=function(r,V,I,d,a){V=f5X(V,d);V!=null&&(I=I5v(r,I),a(V,r),dQr(r,I))}; byr=function(){var r=aI;this.G=wlO;this.isRepeated=0;this.X=iT;this.defaultValue=void 0;this.S=r.messageId!=null?wq:void 0}; Oyr=function(r){return function(){var V=new VGj;cgj(this.kN,V,BM(ur,mU,pE,r));yP(V,V.G.end());for(var I=new Uint8Array(V.X),d=V.S,a=d.length,f=0,e=0;e-1)return V.apply(null,g.R(I));try{return r.G=r.S.G.now(),V.apply(null,g.R(I))}finally{r.Y+=r.S.G.now()-r.G,r.G=-1,r.X+=1}}}; $QX=function(r,V){this.X=r;this.S=V;this.G=new WGh(r)}; KGg=function(){this.G={}}; tGg=function(){var r=jX().flags,V=Rii;r=r.G[V.key];if(V.valueType==="proto"){try{var I=JSON.parse(r);if(Array.isArray(I))return I}catch(d){}return V.defaultValue}return typeof r===typeof V.defaultValue?r:V.defaultValue}; FGX=function(){this.S=void 0;this.X=this.C=0;this.W=-1;this.o8=new xr;Ez(this.o8,"mv",ygi).G=!0;Ez(this.o8,"omid",zF);Ez(this.o8,"epoh",zF).G=!0;Ez(this.o8,"epph",zF).G=!0;Ez(this.o8,"umt",zF).G=!0;Ez(this.o8,"phel",zF).G=!0;Ez(this.o8,"phell",zF).G=!0;Ez(this.o8,"oseid",AgX).G=!0;var r=this.o8;r.G.sloi||(r.G.sloi=new nD);r.G.sloi.G=!0;Ez(this.o8,"mm",DE);Ez(this.o8,"ovms",GIX).G=!0;Ez(this.o8,"xdi",zF).G=!0;Ez(this.o8,"amp",zF).G=!0;Ez(this.o8,"prf",zF).G=!0;Ez(this.o8,"gtx",zF).G=!0;Ez(this.o8, "mvp_lv",zF).G=!0;Ez(this.o8,"ssmol",zF).G=!0;Ez(this.o8,"fmd",zF).G=!0;Ez(this.o8,"gen204simple",zF);this.G=new $QX(on(),this.o8);this.Y=!1;this.flags=new KGg}; jX=function(){return qQ(FGX)}; l5i=function(r,V,I,d){if(Math.random()<(d||r.G))try{if(I instanceof iE)var a=I;else a=new iE,gX(I,function(e,n){var D=a,x=D.Y++;e=US(n,e);D.G.push(x);D.X[x]=e}); var f=a.fq(r.X,"pagead2.googlesyndication.com","/pagead/gen_204?id="+V+"&");f&&(on(),HDj(f))}catch(e){}}; LGU=function(r,V,I){I=I===void 0?{}:I;this.error=r;this.meta=I;this.context=V.context;this.msg=V.message||"";this.id=V.id||"jserror"}; Jgi=function(){var r=r===void 0?g.vr:r;return(r=r.performance)&&r.now&&r.timing?Math.floor(r.now()+r.timing.navigationStart):g.Yf()}; ZyA=function(){var r=r===void 0?g.vr:r;return(r=r.performance)&&r.now?r.now():null}; Xli=function(r,V,I){this.label=r;this.type=V;this.value=I;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; E6=function(){var r=window;this.events=[];this.X=r||g.vr;var V=null;r&&(r.google_js_reporting_queue=r.google_js_reporting_queue||[],this.events=r.google_js_reporting_queue,V=r.google_measure_js_timing);this.G=xG()||(V!=null?V:Math.random()<1)}; BXg=function(r){r&&NG&&xG()&&(NG.clearMarks("goog_"+r.label+"_"+r.uniqueId+"_start"),NG.clearMarks("goog_"+r.label+"_"+r.uniqueId+"_end"))}; gxg=function(){var r=s6;this.G=ce;this.uX="jserror";this.X0=!0;this.n7=null;this.X=this.Eb;this.MJ=r===void 0?null:r}; SSj=function(r,V,I){var d=zC;return nj(jX().G.G,function(){try{if(d.MJ&&d.MJ.G){var a=d.MJ.start(r.toString(),3);var f=V();d.MJ.end(a)}else f=V()}catch(n){var e=d.X0;try{BXg(a),e=d.X(r,new MG(Cj(n)),void 0,I)}catch(D){d.Eb(217,D)}if(!e)throw n;}return f})()}; TC=function(r,V,I,d){return nj(jX().G.G,function(){var a=g.ZU.apply(0,arguments);return SSj(r,function(){return V.apply(I,a)},d)})}; Cj=function(r){var V=r.toString();r.name&&V.indexOf(r.name)==-1&&(V+=": "+r.name);r.message&&V.indexOf(r.message)==-1&&(V+=": "+r.message);if(r.stack)a:{r=r.stack;var I=V;try{r.indexOf(I)==-1&&(r=I+"\n"+r);for(var d;r!=d;)d=r,r=r.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");V=r.replace(/\n */g,"\n");break a}catch(a){V=I;break a}V=void 0}return V}; MG=function(r){LGU.call(this,Error(r),{message:r})}; iyp=function(){NQ&&typeof NQ.google_measure_js_timing!="undefined"&&(NQ.google_measure_js_timing||s6.disable())}; UQp=function(r){zC.n7=function(V){g.B9(r,function(I){I(V)})}}; Qnj=function(r,V){return SSj(r,V)}; He=function(r,V){return TC(r,V)}; w7=function(r,V,I,d){zC.Eb(r,V,I,d)}; bg=function(){return Date.now()-mQA}; utv=function(){var r=jX().S,V=O6>=0?bg()-O6:-1,I=We?bg()-$G:-1,d=Kj>=0?bg()-Kj:-1;if(r==947190542)return 100;if(r==79463069)return 200;r=[2E3,4E3];var a=[250,500,1E3];w7(637,Error(),.001);var f=V;I!=-1&&I1500&&d<4E3?500:e}; RI=function(r,V,I,d){this.top=r;this.right=V;this.bottom=I;this.left=d}; tV=function(r){return r.right-r.left}; yH=function(r,V){return r==V?!0:r&&V?r.top==V.top&&r.right==V.right&&r.bottom==V.bottom&&r.left==V.left:!1}; AV=function(r,V,I){var d=new RI(0,0,0,0);this.time=r;this.volume=null;this.S=V;this.G=d;this.X=I}; GC=function(r,V,I,d,a,f,e,n){this.Y=r;this.L=V;this.S=I;this.C=d;this.G=a;this.W=f;this.X=e;this.j=n}; vxX=function(r){var V=r!==r.top,I=r.top===DiX(r),d=-1,a=0;if(V&&I&&r.top.mraid){d=3;var f=r.top.mraid}else d=(f=r.mraid)?V?I?2:1:0:-1;f&&(f.IS_GMA_SDK||(a=2),lUA(plp,function(e){return typeof f[e]==="function"})||(a=1)); return{sO:f,compatibility:a,HwQ:d}}; qSi=function(){var r=window.document;return r&&typeof r.elementFromPoint==="function"}; PEg=function(r,V,I){if(r&&V!==null&&V!=V.top){if(!V.top)return new g.LJ(-12245933,-12245933);V=V.top}try{return(I===void 0?0:I)?(new g.LJ(V.innerWidth,V.innerHeight)).round():JoU(V||window).round()}catch(d){return new g.LJ(-12245933,-12245933)}}; Lj=function(r,V,I){try{if(r){if(!V.top)return new RI(-12245933,-12245933,-12245933,-12245933);V=V.top}var d=PEg(r,V,I),a=d.height,f=d.width;if(f===-12245933)return new RI(f,f,f,f);var e=Um(V.document);var n=X9i(e.G);var D=n.x,x=n.y;return new RI(x,D+f,x+a,D)}catch(E){return new RI(-12245933,-12245933,-12245933,-12245933)}}; g.JV=function(r,V,I,d){this.left=r;this.top=V;this.width=I;this.height=d}; ZE=function(r,V){return r==V?!0:r&&V?r.left==V.left&&r.width==V.width&&r.top==V.top&&r.height==V.height:!1}; g.Be=function(r,V,I){if(typeof V==="string")(V=XY(r,V))&&(r.style[V]=I);else for(var d in V){I=r;var a=V[d],f=XY(I,d);f&&(I.style[f]=a)}}; XY=function(r,V){var I=oxj[V];if(!I){var d=sGh(V);I=d;r.style[d]===void 0&&(d=(g.Pz?"Webkit":g7?"Moz":null)+zYh(d),r.style[d]!==void 0&&(I=d));oxj[V]=I}return I}; g.SX=function(r,V){var I=r.style[sGh(V)];return typeof I!=="undefined"?I:r.style[XY(r,V)]||""}; ig=function(r,V){var I=ib(r);return I.defaultView&&I.defaultView.getComputedStyle&&(r=I.defaultView.getComputedStyle(r,null))?r[V]||r.getPropertyValue(V)||"":""}; U6=function(r,V){return ig(r,V)||(r.currentStyle?r.currentStyle[V]:null)||r.style&&r.style[V]}; g.mZ=function(r,V,I){if(V instanceof g.Fw){var d=V.x;V=V.y}else d=V,V=I;r.style.left=g.QH(d,!1);r.style.top=g.QH(V,!1)}; ug=function(r){try{return r.getBoundingClientRect()}catch(V){return{left:0,top:0,right:0,bottom:0}}}; kIg=function(r){var V=ib(r),I=U6(r,"position"),d=I=="fixed"||I=="absolute";for(r=r.parentNode;r&&r!=V;r=r.parentNode)if(r.nodeType==11&&r.host&&(r=r.host),I=U6(r,"position"),d=d&&I=="static"&&r!=V.documentElement&&r!=V.body,!d&&(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight||I=="fixed"||I=="absolute"||I=="relative"))return r;return null}; g.pj=function(r){var V=ib(r),I=new g.Fw(0,0);if(r==(V?ib(V):document).documentElement)return I;r=ug(r);V=Um(V);V=X9i(V.G);I.x=r.left+V.x;I.y=r.top+V.y;return I}; rAS=function(r,V){var I=new g.Fw(0,0),d=oc(ib(r));if(!HGg(d,"parent"))return I;do{var a=d==V?g.pj(r):hiA(r);I.x+=a.x;I.y+=a.y}while(d&&d!=V&&d!=d.parent&&(r=d.frameElement)&&(d=d.parent));return I}; g.ve=function(r,V){r=V_v(r);V=V_v(V);return new g.Fw(r.x-V.x,r.y-V.y)}; hiA=function(r){r=ug(r);return new g.Fw(r.left,r.top)}; V_v=function(r){if(r.nodeType==1)return hiA(r);r=r.changedTouches?r.changedTouches[0]:r;return new g.Fw(r.clientX,r.clientY)}; g.qG=function(r,V,I){if(V instanceof g.LJ)I=V.height,V=V.width;else if(I==void 0)throw Error("missing height argument");r.style.width=g.QH(V,!0);r.style.height=g.QH(I,!0)}; g.QH=function(r,V){typeof r=="number"&&(r=(V?Math.round(r):r)+"px");return r}; g.Pe=function(r){var V=IgU;if(U6(r,"display")!="none")return V(r);var I=r.style,d=I.display,a=I.visibility,f=I.position;I.visibility="hidden";I.position="absolute";I.display="inline";r=V(r);I.display=d;I.position=f;I.visibility=a;return r}; IgU=function(r){var V=r.offsetWidth,I=r.offsetHeight,d=g.Pz&&!V&&!I;return(V===void 0||d)&&r.getBoundingClientRect?(r=ug(r),new g.LJ(r.right-r.left,r.bottom-r.top)):new g.LJ(V,I)}; g.oI=function(r,V){r.style.display=V?"":"none"}; kG=function(r,V){V=Math.pow(10,V);return Math.floor(r*V)/V}; dsZ=function(r){return new RI(r.top,r.right,r.bottom,r.left)}; agv=function(r){var V=r.top||0,I=r.left||0;return new RI(V,I+(r.width||0),V+(r.height||0),I)}; hV=function(r){return r!=null&&r>=0&&r<=1}; fgr=function(){var r=g.RZ();return r?r6("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(V){return wo(r,V)})||wo(r,"OMI/")&&!wo(r,"XiaoMi/")?!0:wo(r,"Presto")&&wo(r,"Linux")&&!wo(r,"X11")&&!wo(r,"Android")&&!wo(r,"Mobi"):!1}; eFi=function(){this.S=!Bl(NQ.top);this.isMobileDevice=Wl()||p9X();var r=SG();this.domain=r.length>0&&r[r.length-1]!=null&&r[r.length-1].url!=null?g.Rn(r[r.length-1].url)||"":"";this.G=new RI(0,0,0,0);this.Y=new g.LJ(0,0);this.W=new g.LJ(0,0);this.L=new RI(0,0,0,0);this.frameOffset=new g.Fw(0,0);this.C=0;this.j=!1;this.X=!(!NQ||!vxX(NQ).sO);this.update(NQ)}; YDr=function(r,V){V&&V.screen&&(r.Y=new g.LJ(V.screen.width,V.screen.height))}; nqO=function(r,V){a:{var I=r.G?new g.LJ(tV(r.G),r.G.getHeight()):new g.LJ(0,0);V=V===void 0?NQ:V;V!==null&&V!=V.top&&(V=V.top);var d=0,a=0;try{var f=V.document,e=f.body,n=f.documentElement;if(f.compatMode=="CSS1Compat"&&n.scrollHeight)d=n.scrollHeight!=I.height?n.scrollHeight:n.offsetHeight,a=n.scrollWidth!=I.width?n.scrollWidth:n.offsetWidth;else{var D=n.scrollHeight,x=n.scrollWidth,E=n.offsetHeight,N=n.offsetWidth;n.clientHeight!=E&&(D=e.scrollHeight,x=e.scrollWidth,E=e.offsetHeight,N=e.offsetWidth); D>I.height?D>E?(d=D,a=x):(d=E,a=N):D0||r.j)return!0;r=on().X.isVisible();var V=wX(Im)===0;return r||V}; V7=function(){return qQ(eFi)}; am=function(r){this.S=r;this.X=0;this.G=null}; f$=function(r,V,I){this.S=r;this.TQ=I===void 0?"na":I;this.W=[];this.isInitialized=!1;this.Y=new AV(-1,!0,this);this.G=this;this.j=V;this.QH=this.V=!1;this.n8="uk";this.GQ=!1;this.C=!0}; eM=function(r,V){g.CG(r.W,V)||(r.W.push(V),V.Lr(r.G),V.pU(r.Y),V.nR()&&(r.V=!0))}; j3A=function(r){r=r.G;r.mY();r.bN();var V=V7();V.L=Lj(!1,r.S,V.isMobileDevice);nqO(V7(),r.S);r.Y.G=r.C0()}; DsZ=function(r){r.V=r.W.length?r6(r.W,function(V){return V.nR()}):!1}; xsj=function(r){var V=g.W9(r.W);g.B9(V,function(I){I.pU(r.Y)})}; Ye=function(r){var V=g.W9(r.W);g.B9(V,function(I){I.Lr(r.G)}); r.G!=r||xsj(r)}; n$=function(r,V,I,d){this.element=r;this.G=new RI(0,0,0,0);this.S=null;this.C=new RI(0,0,0,0);this.X=V;this.o8=I;this.GQ=d;this.bL=!1;this.timestamp=-1;this.V=new GC(V.Y,this.element,this.G,new RI(0,0,0,0),0,0,bg(),0);this.W=void 0}; Eqj=function(r,V){return r.W?new RI(Math.max(V.top+r.W.top,V.top),Math.min(V.left+r.W.right,V.right),Math.min(V.top+r.W.bottom,V.bottom),Math.max(V.left+r.W.left,V.left)):V.clone()}; jM=function(r){this.W=!1;this.G=r;this.Y=function(){}}; NqX=function(r,V,I){this.S=I===void 0?0:I;this.X=r;this.G=V==null?"":V}; s3g=function(r){switch(Math.trunc(r.S)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; cAi=function(r,V){return r.SV.S?!1:r.XV.X?!1:typeof r.Gtypeof V.G?!1:r.G0?d[I]-d[I-1]:d[I]})}; Ou=function(){this.X=new MS;this.TQ=this.p8=0;this.L8=new zq;this.kc=this.L=-1;this.Mk=1E3;this.DM=new MS([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.n8=this.bL=-1}; Wn=function(r,V){return $sX(r.X,V===void 0?!0:V)}; $e=function(r,V,I,d){var a=a===void 0?!1:a;I=TC(d,I);Hl(r,V,I,{capture:a})}; Rm=function(r,V){V=K$(V);return V===0?0:K$(r)/V}; K$=function(r){return Math.max(r.bottom-r.top,0)*Math.max(r.right-r.left,0)}; t_j=function(r,V){if(!r||!V)return!1;for(var I=0;r!==null&&I++<100;){if(r===V)return!0;try{if(r=r.parentElement||r){var d=ib(r),a=d&&oc(d),f=a&&a.frameElement;f&&(r=f)}}catch(e){break}}return!1}; yAU=function(r,V,I){if(!r||!V)return!1;V=r.clone().translate(-V.left,-V.top);r=(V.left+V.right)/2;V=(V.top+V.bottom)/2;Bl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!qSi())return!1;r=window.document.elementFromPoint(r,V);if(!r)return!1;V=(V=(V=ib(I))&&V.defaultView&&V.defaultView.frameElement)&&t_j(V,r);var d=r===I;r=!d&&r&&ny(r,function(a){return a===I}); return!(V||d||r)}; AAA=function(r,V,I,d){return V7().S?!1:tV(r)<=0||r.getHeight()<=0?!0:I&&d?Qnj(208,function(){return yAU(r,V,I)}):!1}; y7=function(r,V,I){g.X.call(this);this.position=GBS.clone();this.S_=this.Hn();this.IK=-2;this.timeCreated=Date.now();this.SH=-1;this.MR=V;this.D1=null;this.DA=!1;this.u2=null;this.opacity=-1;this.requestSource=I;this.jQQ=!1;this.aK=function(){}; this.Nj=function(){}; this.oO=new iGZ;this.oO.dl=r;this.oO.G=r;this.sP=!1;this.Bo={Dy:null,xt:null};this.vY=!0;this.mW=null;this.BD=this.z0k=!1;jX().C++;this.Y9=this.S5();this.mC=-1;this.NG=null;this.hasCompleted=this.ocC=!1;this.o8=new xr;igg(this.o8);FrO(this);this.requestSource==1?Ni(this.o8,"od",1):Ni(this.o8,"od",0)}; FrO=function(r){r=r.oO.dl;var V;if(V=r&&r.getAttribute)V=/-[a-z]/.test("googleAvInapp")?!1:Gsi&&r.dataset?"googleAvInapp"in r.dataset:r.hasAttribute?r.hasAttribute("data-"+cor()):!!r.getAttribute("data-"+cor());V&&(V7().X=!0)}; AC=function(r,V){V!=r.BD&&(r.BD=V,r=V7(),V?r.C++:r.C>0&&r.C--)}; FvX=function(r,V){if(r.NG){if(V.getName()===r.NG.getName())return;r.NG.dispose();r.NG=null}V=V.create(r.oO.G,r.o8,r.nR());if(V=V!=null&&V.observe()?V:null)r.NG=V}; l8g=function(r,V,I){if(!r.D1||r.MR==-1||V.X===-1||r.D1.X===-1)return 0;r=V.X-r.D1.X;return r>I?0:r}; LvO=function(r,V,I){if(r.NG){r.NG.NZ();var d=r.NG.V,a=d.Y,f=a.G;if(d.C!=null){var e=d.S;r.u2=new g.Fw(e.left-f.left,e.top-f.top)}f=r.Ts()?Math.max(d.G,d.W):d.G;e={};a.volume!==null&&(e.volume=a.volume);a=r.G_(d);r.D1=d;r.UE(f,V,I,!1,e,a,d.j)}}; JeU=function(r){if(r.DA&&r.mW){var V=sz(r.o8,"od")==1,I=V7().G,d=r.mW,a=r.NG?r.NG.getName():"ns",f=r.u2,e=new g.LJ(tV(I),I.getHeight());I=r.Ts();r={SIs:a,u2:f,erM:e,Ts:I,jx:r.Y9.jx,lmC:V};if(V=d.X){V.NZ();a=V.V;f=a.Y.G;var n=e=null;a.C!=null&&f&&(e=a.S,e=new g.Fw(e.left-f.left,e.top-f.top),n=new g.LJ(f.right-f.left,f.bottom-f.top));a=I?Math.max(a.G,a.W):a.G;I={SIs:V.getName(),u2:e,erM:n,Ts:I,lmC:!1,jx:a}}else I=null;I&&brO(d,r,I)}}; Z9A=function(r,V,I){V&&(r.aK=V);I&&(r.Nj=I)}; g.Gq=function(){}; g.Fn=function(r){return{value:r,done:!1}}; XvO=function(){this.Y=this.G=this.S=this.X=this.W=0}; BJg=function(r){var V={};var I=g.Yf()-r.W;V=(V.ptlt=I,V);(I=r.X)&&(V.pnk=I);(I=r.S)&&(V.pnc=I);(I=r.Y)&&(V.pnmm=I);(r=r.G)&&(V.pns=r);return V}; gVj=function(){Sp.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; lv=function(r){return hV(r.volume)&&r.volume>0}; L$=function(r,V,I,d){I=I===void 0?!0:I;d=d===void 0?function(){return!0}:d; return function(a){var f=a[r];if(Array.isArray(f)&&d(a))return S$j(f,V,I)}}; JC=function(r,V){return function(I){return V(I)?I[r]:void 0}}; i9X=function(r){return function(V){for(var I=0;I0?f[a-1]+1:0,d+1).reduce(function(e,n){return e+n},0)})}; UeZ=function(){this.X=this.G=""}; QOX=function(){}; Xn=function(r,V){var I={};if(r!==void 0)if(V!=null)for(var d in V){var a=V[d];d in Object.prototype||a!=null&&(I[d]=typeof a==="function"?a(r):r[a])}else g.fD(I,r);return Eu(xe(new D_,I))}; mei=function(){var r={};this.X=(r.vs=[1,0],r.vw=[0,1],r.am=[2,2],r.a=[4,4],r.f=[8,8],r.bm=[16,16],r.b=[32,32],r.avw=[0,64],r.avs=[64,0],r.pv=[256,256],r.gdr=[0,512],r.p=[0,1024],r.r=[0,2048],r.m=[0,4096],r.um=[0,8192],r.ef=[0,16384],r.s=[0,32768],r.pmx=[0,16777216],r.mut=[33554432,33554432],r.umutb=[67108864,67108864],r.tvoff=[134217728,134217728],r);this.G={};for(var V in this.X)this.X[V][1]>0&&(this.G[V]=0);this.S=0}; Bn=function(r,V){var I=r.X[V],d=I[1];r.S+=I[0];d>0&&r.G[V]==0&&(r.G[V]=1)}; ugO=function(r){var V=g.v9(r.X),I=0,d;for(d in r.G)g.CG(V,d)&&r.G[d]==1&&(I+=r.X[d][1],r.G[d]=2);return I}; pvp=function(r){var V=0,I;for(I in r.G){var d=r.G[I];if(d==1||d==2)V+=r.X[I][1]}return V}; g6=function(){this.G=this.X=0}; SM=function(){Ou.call(this);this.S=new zq;this.Ws=this.V=this.GQ=0;this.j=-1;this.ya=new zq;this.W=new zq;this.G=new MS;this.C=this.Y=-1;this.QH=new zq;this.Mk=2E3;this.R7=new g6;this.a7=new g6;this.EE=new g6}; iv=function(r,V,I){var d=r.Ws;We||I||r.j==-1||(d+=V-r.j);return d}; vVv=function(){this.S=!1}; Uu=function(r,V){this.S=!1;this.Y=r;this.V=V;this.W=0}; ml=function(r,V){Uu.call(this,r,V);this.L=[]}; q$v=function(){}; uv=function(){}; p$=function(r,V,I,d){n$.call(this,r,V,I,d)}; vn=function(r,V,I){n$.call(this,null,r,V,I);this.j=r.isActive();this.L=0}; qS=function(r){return[r.top,r.left,r.bottom,r.right]}; Pn=function(r,V,I,d,a,f){f=f===void 0?new uv:f;y7.call(this,V,I,d);this.Qm=a;this.hv=0;this.zD={};this.AT=new mei;this.P5={};this.nM="";this.EE=null;this.rH=!1;this.G=[];this.Z3=f.X();this.C=f.S();this.Y=null;this.S=-1;this.TQ=this.V=void 0;this.kc=this.QH=0;this.n8=-1;this.Mk=this.a7=!1;this.GQ=this.j=this.X=this.gI=this.Qa=0;new MS;this.R7=this.Ws=0;this.L8=-1;this.AR=0;this.L=g.cl;this.bL=[this.Hn()];this.gH=2;this.O0={};this.O0.pause="p";this.O0.resume="r";this.O0.skip="s";this.O0.mute="m";this.O0.unmute= "um";this.O0.exitfullscreen="ef";this.W=null;this.DM=this.ya=!1;this.X_=Math.floor(Date.now()/1E3-1704067200);this.p8=0}; om=function(r){r.hasCompleted=!0;r.AR!=0&&(r.AR=3)}; ke=function(r){return r===void 0?r:Number(r)?kG(r,3):0}; hC=function(r,V){return r.bL[V!=null&&VMath.max(1E4,r.S/3)?0:V);var I=r.L(r)||{};I=I.currentTime!==void 0?I.currentTime:r.QH;var d=I-r.QH,a=0;d>=0?(r.kc+=V,r.R7+=Math.max(V-d,0),a=Math.min(d,r.kc)):r.Ws+=Math.abs(d);d!=0&&(r.kc=0);r.L8==-1&&d>0&&(r.L8=Kj>=0?bg()-Kj:-1);r.QH=I;return a}; ksp=function(r,V){r6(r.C,function(I){return I.Y==V.Y})||r.C.push(V)}; hlh=function(r){var V=Hn(r.KM().G,1);return rN(r,V)}; rN=function(r,V,I){return V>=15E3?!0:r.a7?(I===void 0?0:I)?!0:r.S>0?V>=r.S/2:r.n8>0?V>=r.n8:!1:!1}; rHh=function(r){var V=kG(r.Y9.jx,2),I=r.AT.S,d=r.Y9,a=hC(r),f=ke(a.Y),e=ke(a.C),n=ke(d.volume),D=kG(a.L,2),x=kG(a.kc,2),E=kG(d.jx,2),N=kG(a.bL,2),c=kG(a.n8,2);d=kG(d.rL,2);var z=r.by().clone().round();r=r.NG&&r.NG.S?(r.NG?r.NG.S:null).clone().round():null;a=Wn(a,!1);return{Oj0:V,MA:I,hg:f,b2:e,t1:n,R_:D,Fg:x,jx:E,T5:N,G5:c,rL:d,position:z,Kz:r,WB:a}}; ISv=function(r,V){VaX(r.G,V,function(){return{Oj0:0,MA:void 0,hg:-1,b2:-1,t1:-1,R_:-1,Fg:-1,jx:-1,T5:-1,G5:-1,rL:-1,position:void 0,Kz:void 0,WB:[]}}); r.G[V]=rHh(r)}; VaX=function(r,V,I){for(var d=r.length;d0?1:0;N.atos= C$(x.G);N.ssb=C$(x.DM,!1);N.amtos=$sX(x.G,!1);N.uac=r.Qa;N.vpt=x.S.G;E=="nio"&&(N.nio=1,N.avms="nio");N.gmm="4";N.gdr=rN(r,x.S.G,!0)?1:0;N.efpf=r.gH;if(E=="gsv"||E=="nis")E=r.NG,E.L>0&&(N.nnut=E.L);N.tcm=PTX(r);N.nmt=r.Ws;N.bt=r.R7;N.pst=r.L8;N.vpaid=r.V;N.dur=r.S;N.vmtime=r.QH;N.is=r.AT.S;r.G.length>=1&&(N.i0=r.G[0].MA,N.a0=[r.G[0].t1],N.c0=[r.G[0].jx],N.ss0=[r.G[0].rL],E=r.G[0].position,f=r.G[0].Kz,N.p0=E?qS(E):void 0,E&&f&&!yH(f,E)&&(N.cp0=qS(f)));r.G.length>=2&&(N.i1=r.G[1].MA,N.a1=dN(r.G[1].hg, r.G[1].t1,r.G[1].b2),N.c1=dN(r.G[1].R_,r.G[1].jx,r.G[1].Fg),N.ss1=dN(r.G[1].T5,r.G[1].rL,r.G[1].G5),E=r.G[1].position,f=r.G[1].Kz,N.p1=E?qS(E):void 0,E&&f&&!yH(f,E)&&(N.cp1=qS(f)),N.mtos1=r.G[1].WB);r.G.length>=3&&(N.i2=r.G[2].MA,N.a2=dN(r.G[2].hg,r.G[2].t1,r.G[2].b2),N.c2=dN(r.G[2].R_,r.G[2].jx,r.G[2].Fg),N.ss2=dN(r.G[2].T5,r.G[2].rL,r.G[2].G5),E=r.G[2].position,f=r.G[2].Kz,N.p2=E?qS(E):void 0,E&&f&&!yH(f,E)&&(N.cp2=qS(f)),N.mtos2=r.G[2].WB);r.G.length>=4&&(N.i3=r.G[3].MA,N.a3=dN(r.G[3].hg,r.G[3].t1, r.G[3].b2),N.c3=dN(r.G[3].R_,r.G[3].jx,r.G[3].Fg),N.ss3=dN(r.G[3].T5,r.G[3].rL,r.G[3].G5),E=r.G[3].position,f=r.G[3].Kz,N.p3=E?qS(E):void 0,E&&f&&!yH(f,E)&&(N.cp3=qS(f)),N.mtos3=r.G[3].WB);N.cs=pvp(r.AT);V&&(N.ic=ugO(r.AT),N.dvpt=x.S.X,N.dvs=bv(x.X,.5),N.dfvs=bv(x.X,1),N.davs=bv(x.G,.5),N.dafvs=bv(x.G,1),I&&(x.S.X=0,KrS(x.X),KrS(x.G)),r.f9()&&(N.dtos=x.GQ,N.dav=x.V,N.dtoss=r.hv+1,I&&(x.GQ=0,x.V=0,r.hv++)),N.dat=x.W.X,N.dft=x.QH.X,I&&(x.W.X=0,x.QH.X=0));N.ps=[n.W.width,n.W.height];N.bs=[tV(n.G),n.G.getHeight()]; N.scs=[n.Y.width,n.Y.height];N.dom=n.domain;r.gI&&(N.vds=r.gI);if(r.C.length>0||r.Z3)V=g.W9(r.C),r.Z3&&V.push(r.Z3),N.pings=g.uE(V,function(c){return c.toString()}); V=g.uE(g.Z_(r.C,function(c){return c.C()}),function(c){return c.getId()}); KAp(V);N.ces=V;r.X&&(N.vmer=r.X);r.j&&(N.vmmk=r.j);r.GQ&&(N.vmiec=r.GQ);N.avms=r.NG?r.NG.getName():"ns";r.NG&&g.fD(N,r.NG.rl());d?(N.c=kG(r.Y9.jx,2),N.ss=kG(r.Y9.rL,2)):N.tth=bg()-ecZ;N.mc=kG(x.kc,2);N.nc=kG(x.L,2);N.mv=ke(x.C);N.nv=ke(x.Y);N.lte=kG(r.IK,2);d=hC(r,a);Wn(x);N.qmtos=Wn(d);N.qnc=kG(d.L,2);N.qmv=ke(d.C);N.qnv=ke(d.Y);N.qas=d.Y>0?1:0;N.qi=r.nM;N.avms||(N.avms="geo");N.psm=x.R7.G;N.psv=x.R7.getValue();N.psfv=x.a7.getValue();N.psa=x.EE.getValue();D=gvi(D.o8);D.length&&(N.veid=D);r.W&&g.fD(N, BJg(r.W));N.avas=r.uw();N.vs=r.f0();N.co=Y5r(r);N.tm=x.p8;N.tu=x.TQ;return N}; d6A=function(r,V){if(g.CG(noA,V))return!0;var I=r.zD[V];return I!==void 0?(r.zD[V]=!0,!I):!1}; Y5r=function(r){var V=r.p8.toString(10).padStart(2,"0");V=""+r.X_+V;r.p8<99&&r.p8++;return V}; D6X=function(){this.G={};var r=oc();at(this,r,document);var V=jrv();try{if("1"==V){for(var I=r.parent;I!=r.top;I=I.parent)at(this,I,I.document);at(this,r.top,r.top.document)}}catch(d){}}; jrv=function(){var r=document.documentElement;try{if(!Bl(oc().top))return"2";var V=[],I=oc(r.ownerDocument);for(r=I;r!=I.top;r=r.parent)if(r.frameElement)V.push(r.frameElement);else break;return V&&V.length!=0?"1":"0"}catch(d){return"2"}}; at=function(r,V,I){$e(I,"mousedown",function(){return x6i(r)},301); $e(V,"scroll",function(){return Eop(r)},302); $e(I,"touchmove",function(){return NZh(r)},303); $e(I,"mousemove",function(){return srv(r)},304); $e(I,"keydown",function(){return cHZ(r)},305)}; x6i=function(r){g.i$(r.G,function(V){V.S>1E5||++V.S})}; Eop=function(r){g.i$(r.G,function(V){V.G>1E5||++V.G})}; NZh=function(r){g.i$(r.G,function(V){V.G>1E5||++V.G})}; cHZ=function(r){g.i$(r.G,function(V){V.X>1E5||++V.X})}; srv=function(r){g.i$(r.G,function(V){V.Y>1E5||++V.Y})}; zcO=function(){this.G=[];this.X=[]}; f_=function(r,V){return g.z6(r.G,function(I){return I.nM==V})}; Mai=function(r,V){return V?g.z6(r.G,function(I){return I.oO.dl==V}):null}; CrS=function(r,V){return g.z6(r.X,function(I){return I.fC()==2&&I.nM==V})}; YM=function(){var r=ew;return r.G.length==0?r.X:r.X.length==0?r.G:g.b$(r.X,r.G)}; TZZ=function(r,V){r=V.fC()==1?r.G:r.X;var I=s_(r,function(d){return d==V}); return I!=-1?(r.splice(I,1),V.NG&&V.NG.unobserve(),V.dispose(),!0):!1}; HEZ=function(r){var V=ew;if(TZZ(V,r)){switch(r.fC()){case 0:var I=function(){return null}; case 2:I=function(){return CrS(V,r.nM)}; break;case 1:I=function(){return f_(V,r.nM)}}for(var d=I();d;d=I())TZZ(V,d)}}; wMA=function(r){var V=ew;r=g.Z_(r,function(I){return!Mai(V,I.oO.dl)}); V.G.push.apply(V.G,g.R(r))}; bEU=function(r){var V=[];g.B9(r,function(I){r6(ew.G,function(d){return d.oO.dl===I.oO.dl&&d.nM===I.nM})||(ew.G.push(I),V.push(I))})}; n_=function(){this.G=this.X=null}; jw=function(r){return r.G!=null}; OEA=function(r,V){function I(d,a){V(d,a)} if(r.X==null)return!1;r.G=g.z6(r.X,function(d){return d!=null&&d.FY()}); r.G&&(r.G.init(I)?j3A(r.G.G):V(r.G.G.J8(),r.G));return r.G!=null}; Dn=function(r){r=WUr(r);jM.call(this,r.length?r[r.length-1]:new f$(NQ,0));this.S=r;this.X=null}; WUr=function(r){if(!r.length)return[];r=(0,g.Z_)(r,function(I){return I!=null&&I.Zi()}); for(var V=1;VI.time?V:I},r[0])}; se=function(r){r=r===void 0?NQ:r;jM.call(this,new f$(r,2))}; ch=function(){var r=taX();f$.call(this,NQ.top,r,"geo")}; taX=function(){jX();var r=V7();return r.S||r.X?0:2}; yHA=function(){}; z0=function(){this.done=!1;this.G={Il:0,Rh:0,tjC:0,LP:0,kt:-1,UT:0,fv:0,Lv:0,qIE:0};this.W=null;this.C=!1;this.S=null;this.L=0;this.X=new am(this)}; C_=function(){var r=Mn;r.C||(r.C=!0,AHA(r,function(){return r.Y.apply(r,g.R(g.ZU.apply(0,arguments)))}),r.Y())}; GYU=function(){qQ(yHA);var r=qQ(n_);jw(r)&&r.G.G?j3A(r.G.G):V7().update(NQ)}; T0=function(r,V,I){if(!r.done&&(r.X.cancel(),V.length!=0)){r.S=null;try{GYU();var d=bg();jX().W=d;if(jw(qQ(n_)))for(var a=0;a=0?bg()-O6:-1,n=bg();a.G.kt==-1&&(e=n);var D=V7(),x=jX(),E=ct(x.o8),N=YM();try{if(N.length>0){var c=D.G;c&&(E.bs=[tV(c),c.getHeight()]);var z=D.W;z&&(E.ps=[z.width,z.height]);NQ.screen&&(E.scs=[NQ.screen.width,NQ.screen.height])}else E.url=encodeURIComponent(NQ.location.href.substring(0,512)),f.referrer&&(E.referrer=encodeURIComponent(f.referrer.substring(0,512))); E.tt=e;E.pt=O6;E.bin=x.X;NQ.google_osd_load_pub_page_exp!==void 0&&(E.olpp=NQ.google_osd_load_pub_page_exp);E.deb=[1,a.G.Il,a.G.Rh,a.G.LP,a.G.kt,0,a.X.X,a.G.UT,a.G.fv,a.G.Lv,a.G.qIE,-1].join(";");E.tvt=lSh(a,n);D.X&&(E.inapp=1);if(NQ!==null&&NQ!=NQ.top){N.length>0&&(E.iframe_loc=encodeURIComponent(NQ.location.href.substring(0,512)));var M=D.L;E.is=[tV(M),M.getHeight()]}}catch(w){E.error=1}Mn.S=E}c=g.IZ(Mn.S);z=jX().G;sz(z.S,"prf")==1?(M=new YG,a=z.G,f=0,a.G>-1&&(f=a.S.G.now()-a.G),M=Gs(M,1,JA(a.Y+ f),0),a=z.G,M=Gs(M,5,gq(a.G>-1?a.X+1:a.X),0),M=Gs(M,2,pr(z.X.G.S()),"0"),M=Gs(M,3,pr(z.X.G.X()),"0"),z=Gs(M,4,pr(z.X.G.G()),"0"),M={},z=(M.pf=g.I3(z.X()),M)):z={};g.fD(c,z);g.fD(V,d,I,c,r())}])}; ZEU=function(){var r=JHA||NQ;if(!r)return"";var V=[];if(!r.location||!r.location.href)return"";V.push("url="+encodeURIComponent(r.location.href.substring(0,512)));r.document&&r.document.referrer&&V.push("referrer="+encodeURIComponent(r.document.referrer.substring(0,512)));return V.join("&")}; Hh=function(){var r="youtube.player.web_20250420_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250420_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250420_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250420_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),V;if(((V=r)==null?void 0:V.length)==2)return r[1];r="youtube.player.web_20250420_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var I;return((I=r)==null?void 0:I.length)==3?"20"+r[1]+r[2]:null}; XMh=function(){return"av.default_js".includes("ima_html5_sdk")?{nC:"ima",Yd:null}:"av.default_js".includes("ima_native_sdk")?{nC:"nima",Yd:null}:"av.default_js".includes("admob-native-video-javascript")?{nC:"an",Yd:null}:"youtube.player.web_20250420_21_RC00".includes("cast_js_sdk")?{nC:"cast",Yd:Hh()}:"youtube.player.web_20250420_21_RC00".includes("youtube.player.web")?{nC:"yw",Yd:Hh()}:"youtube.player.web_20250420_21_RC00".includes("outstream_web_client")?{nC:"out",Yd:Hh()}:"youtube.player.web_20250420_21_RC00".includes("drx_rewarded_web")? {nC:"r",Yd:Hh()}:"youtube.player.web_20250420_21_RC00".includes("gam_native_web_video")?{nC:"n",Yd:Hh()}:"youtube.player.web_20250420_21_RC00".includes("admob_interstitial_video")?{nC:"int",Yd:Hh()}:{nC:"j",Yd:null}}; Oe=function(r,V){var I={sv:"966"};wN!==null&&(I.v=wN);I.cb=BZj;I.nas=ew.G.length;I.msg=r;V!==void 0&&(r=goj(V))&&(I.e=bt[r]);return I}; Wh=function(r){return Mi(r,"custom_metric_viewable")}; goj=function(r){var V=Wh(r)?"custom_metric_viewable":r.toLowerCase();return kf(Vk,function(I){return I==V})}; S5v=function(){this.G=void 0;this.X=!1;this.S=0;this.Y=-1;this.W="tos"}; Qrj=function(r){try{var V=r.split(",");return V.length>g.v9(iEX).length?null:vl(V,function(I,d){d=d.toLowerCase().split("=");if(d.length!=2||U6X[d[0]]===void 0||!U6X[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");I[d[0]]=d[1];return I},{})}catch(I){return null}}; m6i=function(r,V){if(r.G==void 0)return 0;switch(r.W){case "mtos":return r.X?w6(V.G,r.G):w6(V.X,r.G);case "tos":return r.X?Hn(V.G,r.G):Hn(V.X,r.G)}return 0}; $M=function(r,V,I,d){Uu.call(this,V,d);this.L=r;this.j=I}; K_=function(){}; Rt=function(r){Uu.call(this,"fully_viewable_audible_half_duration_impression",r)}; tE=function(r){this.G=r}; yk=function(r,V){Uu.call(this,r,V)}; AE=function(r){ml.call(this,"measurable_impression",r)}; G0=function(){tE.apply(this,arguments)}; FN=function(r,V,I){vn.call(this,r,V,I)}; lt=function(r){r=r===void 0?NQ:r;jM.call(this,new f$(r,2))}; L_=function(r,V,I){vn.call(this,r,V,I)}; JE=function(r){r=r===void 0?NQ:r;jM.call(this,new f$(r,2))}; Zn=function(){f$.call(this,NQ,2,"mraid");this.R7=0;this.kc=this.bL=!1;this.L=null;this.X=vxX(this.S);this.Y.G=new RI(0,0,0,0);this.p8=!1}; XN=function(r,V,I){r.Sc("addEventListener",V,I)}; q5U=function(r){jX().Y=!!r.Sc("isViewable");XN(r,"viewableChange",u6A);r.Sc("getState")==="loading"?XN(r,"ready",pMX):voZ(r)}; voZ=function(r){typeof r.X.sO.AFMA_LIDAR==="string"?(r.bL=!0,Prh(r)):(r.X.compatibility=3,r.L="nc",r.kQ("w"))}; Prh=function(r){r.kc=!1;var V=sz(jX().o8,"rmmt")==1,I=!!r.Sc("isViewable");(V?!I:1)&&on().setTimeout(He(524,function(){r.kc||(ooX(r),w7(540,Error()),r.L="mt",r.kQ("w"))}),500); kYZ(r);XN(r,r.X.sO.AFMA_LIDAR,hcS)}; kYZ=function(r){var V=sz(jX().o8,"sneio")==1,I=r.X.sO.AFMA_LIDAR_EXP_1!==void 0,d=r.X.sO.AFMA_LIDAR_EXP_2!==void 0;(V=V&&d)&&(r.X.sO.AFMA_LIDAR_EXP_2=!0);I&&(r.X.sO.AFMA_LIDAR_EXP_1=!V)}; ooX=function(r){r.Sc("removeEventListener",r.X.sO.AFMA_LIDAR,hcS);r.bL=!1}; rVi=function(r,V){if(r.Sc("getState")==="loading")return new g.LJ(-1,-1);V=r.Sc(V);if(!V)return new g.LJ(-1,-1);r=parseInt(V.width,10);V=parseInt(V.height,10);return isNaN(r)||isNaN(V)?new g.LJ(-1,-1):new g.LJ(r,V)}; pMX=function(){try{var r=qQ(Zn);r.Sc("removeEventListener","ready",pMX);voZ(r)}catch(V){w7(541,V)}}; hcS=function(r,V){try{var I=qQ(Zn);I.kc=!0;var d=r?new RI(r.y,r.x+r.width,r.y+r.height,r.x):new RI(0,0,0,0);var a=bg(),f=d6();var e=new AV(a,f,I);e.G=d;e.volume=V;I.pU(e)}catch(n){w7(542,n)}}; u6A=function(r){var V=jX(),I=qQ(Zn);r&&!V.Y&&(V.Y=!0,I.p8=!0,I.L&&I.kQ("w",!0))}; Bh=function(){this.isInitialized=!1;this.G=this.X=null;var r={};this.L=(r.start=this.r0c,r.firstquartile=this.H8s,r.midpoint=this.kQE,r.thirdquartile=this.ws0,r.complete=this.Pq,r.error=this.y0z,r.pause=this.H8,r.resume=this.nV,r.skip=this.e07,r.viewable_impression=this.Ui,r.mute=this.MF,r.unmute=this.MF,r.fullscreen=this.Q7c,r.exitfullscreen=this.lMC,r.fully_viewable_audible_half_duration_impression=this.Ui,r.measurable_impression=this.Ui,r.abandon=this.H8,r.engagedview=this.Ui,r.impression=this.Ui, r.creativeview=this.Ui,r.progress=this.MF,r.custom_metric_viewable=this.Ui,r.bufferstart=this.H8,r.bufferfinish=this.nV,r.audio_measurable=this.Ui,r.audio_audible=this.Ui,r);r={};this.j=(r.overlay_resize=this.O80,r.abandon=this.Bh,r.close=this.Bh,r.collapse=this.Bh,r.overlay_unmeasurable_impression=function(V){return It(V,"overlay_unmeasurable_impression",d6())},r.overlay_viewable_immediate_impression=function(V){return It(V,"overlay_viewable_immediate_impression",d6())},r.overlay_unviewable_impression= function(V){return It(V,"overlay_unviewable_impression",d6())},r.overlay_viewable_end_of_session_impression=function(V){return It(V,"overlay_viewable_end_of_session_impression",d6())},r); jX().X=3;VXv(this);this.S=null}; gN=function(r,V,I,d){r=r.Tu(null,d,!0,V);r.Y=I;wMA([r]);return r}; IEO=function(r,V,I){FAi(V);var d=r.G;g.B9(V,function(a){var f=g.uE(a.criteria,function(e){var n=Qrj(e);if(n==null)e=null;else if(e=new S5v,n.visible!=null&&(e.G=n.visible/100),n.audible!=null&&(e.X=n.audible==1),n.time!=null){var D=n.timetype=="mtos"?"mtos":"tos",x=Upr(n.time,"%")?"%":"ms";n=parseInt(n.time,10);x=="%"&&(n/=100);e.setTime(n,x,D)}return e}); r6(f,function(e){return e==null})||ksp(I,new $M(a.id,a.event,f,d))})}; dGg=function(){var r=[],V=jX();r.push(qQ(ch));sz(V.o8,"mvp_lv")&&r.push(qQ(Zn));V=[new lt,new JE];V.push(new Dn(r));V.push(new se(NQ));return V}; aEi=function(r){if(!r.isInitialized){r.isInitialized=!0;try{var V=bg(),I=jX(),d=V7();O6=V;I.S=79463069;r.X!=="o"&&(JHA=DiX(NQ));if(wtS()){Mn.G.Rh=0;Mn.G.kt=bg()-V;var a=dGg(),f=qQ(n_);f.X=a;OEA(f,function(){Sw()})?Mn.done||(FUZ(),eM(f.G.G,r),C_()):d.S?Sw():C_()}else it=!0}catch(e){throw ew.reset(),e; }}}; vh=function(r){Mn.X.cancel();p_=r;Mn.done=!0}; qn=function(r){if(r.X)return r.X;var V=qQ(n_).G;if(V)switch(V.getName()){case "nis":r.X="n";break;case "gsv":r.X="m"}r.X||(r.X="h");return r.X}; Ph=function(r,V,I){if(r.G==null)return V.gI|=4,!1;r=fEA(r.G,I,V);V.gI|=r;return r==0}; Sw=function(){var r=[new se(NQ)],V=qQ(n_);V.X=r;OEA(V,function(){vh("i")})?Mn.done||(FUZ(),C_()):vh("i")}; e0X=function(r,V){if(!r.rH){var I=It(r,"start",d6());I=r.Qm.G(I).G;var d={id:"lidarv"};d.r=V;d.sv="966";wN!==null&&(d.v=wN);Ag(I,function(a,f){return d[a]=a=="mtos"||a=="tos"?f:encodeURIComponent(f)}); V=ZEU();Ag(V,function(a,f){return d[a]=encodeURIComponent(f)}); V="//pagead2.googlesyndication.com/pagead/gen_204?"+Eu(xe(new D_,d));HrZ(V);r.rH=!0}}; ot=function(r,V,I){T0(Mn,[r],!d6());ISv(r,I);I!=4&&VaX(r.bL,I,r.Hn);return It(r,V,d6())}; VXv=function(r){LUA(function(){var V=Y6v();r.X!=null&&(V.sdk=r.X);var I=qQ(n_);jw(I)&&(V.avms=I.G.getName());return V})}; nGA=function(r,V,I,d){var a=Mai(ew,I);a!==null&&a.nM!==V&&(r.qh(a),a=null);a||(V=r.Tu(I,bg(),!1,V),ew.X.length==0&&(jX().S=79463069),bEU([V]),a=V,a.Y=qn(r),d&&(a.EE=d));return a}; jIZ=function(r,V){var I=r[V];I!==void 0&&I>0&&(r[V]=Math.floor(I*1E3))}; Y6v=function(){var r=V7(),V={},I={},d={};return Object.assign({},(V.sv="966",V),wN!==null&&(I.v=wN,I),(d["if"]=r.S?"1":"0",d.nas=String(ew.G.length),d))}; kM=function(r){Uu.call(this,"audio_audible",r)}; hE=function(r){ml.call(this,"audio_measurable",r)}; rw=function(){tE.apply(this,arguments)}; VC=function(){}; DGA=function(r){this.G=r}; fEA=function(r,V,I){r=r.X();if(typeof r==="function"){var d={};var a={};d=Object.assign({},wN!==null&&(d.v=wN,d),(a.sv="966",a.cb=BZj,a.e=xGZ(V),a));a=It(I,V,d6());g.fD(d,a);I.P5[V]=a;d=I.fC()==2?Tqr(d).join("&"):I.Qm.G(d).G;try{return r(I.nM,d,V),0}catch(f){return 2}}else return 1}; xGZ=function(r){var V=Wh(r)?"custom_metric_viewable":r;r=kf(Vk,function(I){return I==V}); return bt[r]}; Iu=function(){Bh.call(this);this.C=null;this.W=!1;this.Y="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; EGX=function(r,V,I){I=I.opt_configurable_tracking_events;r.G!=null&&Array.isArray(I)&&IEO(r,I,V)}; N7A=function(r,V,I){var d=f_(ew,V);d||(d=I.opt_nativeTime||-1,d=gN(r,V,qn(r),d),I.opt_osdId&&(d.EE=I.opt_osdId));return d}; sIO=function(r,V,I){var d=f_(ew,V);d||(d=gN(r,V,"n",I.opt_nativeTime||-1));return d}; cVA=function(r,V){var I=f_(ew,V);I||(I=gN(r,V,"h",-1));return I}; z0p=function(r){jX();switch(qn(r)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; T7S=function(r,V,I,d){I=I===void 0?{}:I;var a={};g.fD(a,{opt_adElement:void 0,opt_fullscreen:void 0},I);var f=r.n4(V,I);I=f?f.Qm:r.mU();if(a.opt_bounds)return I.G(Oe("ol",d));if(d!==void 0)if(goj(d)!==void 0)if(it)r=Oe("ue",d);else if(aEi(r),p_=="i")r=Oe("i",d),r["if"]=0;else if(V=r.n4(V,a)){b:{p_=="i"&&(V.sP=!0);f=a.opt_fullscreen;f!==void 0&&AC(V,!!f);var e;if(f=!V7().X)(f=wo(g.RZ(),"CrKey")&&!(wo(g.RZ(),"CrKey")&&wo(g.RZ(),"SmartSpeaker"))||wo(g.RZ(),"PlayStation")||wo(g.RZ(),"Roku")||fgr()||wo(g.RZ(), "Xbox"))||(f=g.RZ(),f=wo(f,"AppleTV")||wo(f,"Apple TV")||wo(f,"CFNetwork")||wo(f,"tvOS")),f||(f=g.RZ(),f=wo(f,"sdk_google_atv_x86")||wo(f,"Android TV")),f=!f;f&&(on(),f=wX(Im)===0);if(e=f){switch(V.fC()){case 1:e0X(V,"pv");break;case 2:r.h6(V)}vh("pv")}f=d.toLowerCase();if(e=!e)e=sz(jX().o8,"ssmol")&&f==="loaded"?!1:g.CG(MXA,f);if(e&&V.AR==0){p_!="i"&&(Mn.done=!1);e=a!==void 0?a.opt_nativeTime:void 0;Kj=e=typeof e==="number"?e:bg();V.DA=!0;var n=d6();V.AR=1;V.zD={};V.zD.start=!1;V.zD.firstquartile= !1;V.zD.midpoint=!1;V.zD.thirdquartile=!1;V.zD.complete=!1;V.zD.resume=!1;V.zD.pause=!1;V.zD.skip=!1;V.zD.mute=!1;V.zD.unmute=!1;V.zD.viewable_impression=!1;V.zD.measurable_impression=!1;V.zD.fully_viewable_audible_half_duration_impression=!1;V.zD.fullscreen=!1;V.zD.exitfullscreen=!1;V.hv=0;n||(V.KM().j=e);T0(Mn,[V],!n)}(e=V.O0[f])&&Bn(V.AT,e);sz(jX().o8,"fmd")||g.CG(Cgg,f)&&V.Z3&&V.Z3.X(V,null);switch(V.fC()){case 1:var D=Wh(f)?r.L.custom_metric_viewable:r.L[f];break;case 2:D=r.j[f]}if(D&&(d=D.call(r, V,a,d),sz(jX().o8,"fmd")&&g.CG(Cgg,f)&&V.Z3&&V.Z3.X(V,null),d!==void 0)){a=Oe(void 0,f);g.fD(a,d);d=a;break b}d=void 0}V.AR==3&&r.qh(V);r=d}else r=Oe("nf",d);else r=void 0;else it?r=Oe("ue"):f?(r=Oe(),g.fD(r,aSO(f,!0,!1,!1))):r=Oe("nf");return typeof r==="string"?I.G():I.G(r)}; Hjh=function(r,V){V&&(r.Y=V)}; wei=function(r){var V={};return V.viewability=r.G,V.googleViewability=r.X,V}; bjA=function(r,V,I){I=I===void 0?{}:I;r=T7S(qQ(Iu),V,I,r);return wei(r)}; dw=function(r,V){return(r=(new RegExp("[^#]*[?&]"+V+"=([^&#]*)")).exec(r))?r[1]:null}; au=function(r){var V=g.ZU.apply(1,arguments).filter(Boolean).join("&");if(!V)return r;var I=r.match(/[?&]adurl=/);return I?r.slice(0,I.index+1)+V+"&"+r.slice(I.index+1):r+(r.indexOf("?")<0?"?":"&")+V}; fQ=function(r,V){return V?"&"+r+"="+encodeURIComponent(V):""}; Ojh=function(r){var V=r.url;r=r.Pfc;this.G=V;this.S=r;this.X=(new Date).getTime()-17040672E5}; WZO=function(r){r=r.S;if(!r)return"";var V=fQ("uap",r.platform)+fQ("uapv",r.platformVersion)+fQ("uafv",r.uaFullVersion)+fQ("uaa",r.architecture)+fQ("uam",r.model)+fQ("uab",r.bitness);r.fullVersionList&&(V+="&uafvl="+encodeURIComponent(r.fullVersionList.map(function(I){return encodeURIComponent(I.brand)+";"+encodeURIComponent(I.version)}).join("|"))); r.wow64!=null&&(V+="&uaw="+Number(r.wow64));return V.slice(1)}; R0p=function(r,V,I,d,a){var f=window;var e=e===void 0?!1:e;var n;I?n=(e===void 0?0:e)?"//ep1.adtrafficquality.google/bg/"+CJ(I)+".js":"//pagead2.googlesyndication.com/bg/"+CJ(I)+".js":n="";e=e===void 0?!1:e;I=f.document;var D={};V&&(D._scs_=V);D._bgu_=n;D._bgp_=d;D._li_="v_h.3.0.0.0";a&&(D._upb_=a);(V=f.GoogleTyFxhY)&&typeof V.push=="function"||(V=f.GoogleTyFxhY=[]);V.push(D);V=Um(I).createElement("SCRIPT");V.type="text/javascript";V.async=!0;r=(e===void 0?0:e)?FKX($GU,CJ(r)+".js"):FKX(KZi,CJ(r)+ ".js");g.Dh(V,r);(f=(f.GoogleTyFxhYEET||{})[V.src])?f():I.getElementsByTagName("head")[0].appendChild(V)}; tXi=function(){try{var r,V;return!!((r=window)==null?0:(V=r.top)==null?0:V.location.href)&&!1}catch(I){return!0}}; eD=function(r,V,I){I=I===void 0?Error():I;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=r;V+=":";I instanceof Error?(this.message=V+I.message,this.stack=I.stack||""):(this.message=V+String(I),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; nQ=function(){var r=yVg();r=r===void 0?"bevasrsg":r;return new Promise(function(V){var I=window===window.top?window:tXi()?window:window.top,d=I[r],a;((a=d)==null?0:a.bevasrs)?V(new YI(d.bevasrs)):(d||(d={},d=(d.nqfbel=[],d),I[r]=d),d.nqfbel.push(function(f){V(new YI(f))}))})}; AVS=function(r){var V={c:r.NS,e:r.fp,mc:r.hH,me:r.RC};r.I$&&(V.co={c:r.I$.WI,a:r.I$.Ze,s:r.I$.PY});return V}; jD=function(r){g.X.call(this);this.wpc=r}; YI=function(r){g.X.call(this);var V=this;this.x5=r;this.S="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.X=void 0;this.Pg=this.x5.p;this.Y=this.S3.bind(this);this.addOnDisposeCallback(function(){return void GCv(V)})}; FZU=function(r){var V;return g.L(function(I){if(I.X==1){if(!r.x5.wpc)throw new eD(30,"NWA");return r.G?I.return(r.G):g.G(I,r.x5.wpc(),2)}V=I.G;r.G=new jD(V);return I.return(r.G)})}; GCv=function(r){r.X!==void 0&&(r.S.forEach(function(V){var I;(I=r.X)==null||I.removeEventListener(V,r.Y)}),r.X=void 0)}; lES=function(r){var V=V===void 0?49:V;var I=[];QL(r,Dz,6).forEach(function(d){qe(d,2)<=V&&I.push(qe(d,1))}); return I}; LZS=function(r){var V=V===void 0?49:V;var I=[];QL(r,Dz,6).forEach(function(d){qe(d,2)>V&&I.push(qe(d,1))}); return I}; JVi=function(r){r.then(function(){},function(){})}; xI=function(){g.X.apply(this,arguments);this.Y=1;this[Zjj]=this.dispose}; Ea=function(r){return{fieldType:2,fieldName:r}}; g.Nl=function(r){return{fieldType:3,fieldName:r}}; XeZ=function(r){this.G=r;r.qM("/client_streamz/bg/frs",g.Nl("mk"))}; B7S=function(r){this.G=r;r.qM("/client_streamz/bg/wrl",g.Nl("mn"),Ea("ac"),Ea("sc"),g.Nl("rk"),g.Nl("mk"))}; gGA=function(r){this.G=r;r.Wu("/client_streamz/bg/ec",g.Nl("en"),g.Nl("mk"))}; S6i=function(r){this.G=r;r.qM("/client_streamz/bg/el",g.Nl("en"),g.Nl("mk"))}; ijX=function(r){this.G=r;r.Wu("/client_streamz/bg/cec",Ea("ec"),g.Nl("mk"))}; UGX=function(r){this.G=r;r.Wu("/client_streamz/bg/po/csc",Ea("cs"),g.Nl("mk"))}; QIA=function(r){this.G=r;r.Wu("/client_streamz/bg/po/ctav",g.Nl("av"),g.Nl("mk"))}; mGr=function(r){this.G=r;r.Wu("/client_streamz/bg/po/cwsc",g.Nl("su"),g.Nl("mk"))}; uYX=function(r){this.kN=Ne(r)}; pei=function(r,V){return ASX(r,V,efh)}; sa=function(r){this.kN=Ne(r)}; cY=function(r){this.kN=Ne(r)}; zo=function(r){this.kN=Ne(r)}; Ml=function(r){this.kN=Ne(r)}; vGi=function(r){this.kN=Ne(r)}; g.oGi=function(r){var V=new Ml;V=rZ(V,1,r.X);var I=q6X(r);V=ASX(V,I,Cbg);I=[];for(var d=[],a=g.H(r.G.keys()),f=a.next();!f.done;f=a.next())d.push(f.value.split(","));for(a=0;a>>31)&4294967295;N=a[0];var M=a[1],w=a[2],b=a[3],W=a[4];for(z=0;z<80;z++){if(z<40)if(z<20){var K=b^M&(w^b);var F=1518500249}else K=M^w^b,F=1859775393;else z<60?(K=M&w|b&(M|w),F=2400959708):(K=M^w^b,F=3395469782);K=((N<<5|N>>>27)&4294967295)+K+W+F+c[z]&4294967295;W=b;b=w;w=(M<<30|M>>>2)&4294967295;M=N;N=K}a[0]=a[0]+N&4294967295;a[1]=a[1]+M&4294967295;a[2]= a[2]+w&4294967295;a[3]=a[3]+b&4294967295;a[4]=a[4]+W&4294967295} function I(N,c){if(typeof N==="string"){N=unescape(encodeURIComponent(N));for(var z=[],M=0,w=N.length;M=56;z--)f[z]=c&255,c>>>=8;V(f);for(z=c=0;z<5;z++)for(var M=24;M>=0;M-=8)N[c++]=a[z]>>M&255;return N} for(var a=[],f=[],e=[],n=[128],D=1;D<64;++D)n[D]=0;var x,E;r();return{reset:r,update:I,digest:d,Dn:function(){for(var N=d(),c="",z=0;z1)));e=e.next)a||(f=e);a&&(I.G==0&&d==1?quZ(I,V):(f?(d=f,d.next==I.Y&&(I.Y=d),d.next=d.next.next):PvO(I),oeg(I,a,3,V)))}r.S=null}else KR(r,3,V)}; J_=function(r,V){r.X||r.G!=2&&r.G!=3||kqO(r);r.Y?r.Y.next=V:r.X=V;r.Y=V}; hsi=function(r,V,I,d){var a=t_(null,null,null);a.G=new g.R0(function(f,e){a.S=V?function(n){try{var D=V.call(d,n);f(D)}catch(x){e(x)}}:f; a.X=I?function(n){try{var D=I.call(d,n);D===void 0&&n instanceof Xs?e(n):f(D)}catch(x){e(x)}}:e}); a.G.S=r;J_(r,a);return a.G}; KR=function(r,V,I){r.G==0&&(r===I&&(V=3,I=new TypeError("Promise cannot resolve to itself")),r.G=1,mSp(I,r.at8,r.cZM,r)||(r.L=I,r.G=V,r.S=null,kqO(r),V!=3||I instanceof Xs||rEA(r,I)))}; mSp=function(r,V,I,d){if(r instanceof g.R0)return vep(r,V,I,d),!0;if(r)try{var a=!!r.$goog_Thenable}catch(e){a=!1}else a=!1;if(a)return r.then(V,I,d),!0;if(g.Vc(r))try{var f=r.then;if(typeof f==="function")return VwO(r,f,V,I,d),!0}catch(e){return I.call(d,e),!0}return!1}; VwO=function(r,V,I,d,a){function f(D){n||(n=!0,d.call(a,D))} function e(D){n||(n=!0,I.call(a,D))} var n=!1;try{V.call(r,e,f)}catch(D){f(D)}}; kqO=function(r){r.C||(r.C=!0,g.$i(r.o6,r))}; PvO=function(r){var V=null;r.X&&(V=r.X,r.X=V.next,V.next=null);r.X||(r.Y=null);return V}; oeg=function(r,V,I,d){if(I==3&&V.X&&!V.Y)for(;r&&r.W;r=r.S)r.W=!1;if(V.G)V.G.S=null,InX(V,I,d);else try{V.Y?V.S.call(V.context):InX(V,I,d)}catch(a){dnA.call(null,a)}Z$h(QmO,V)}; InX=function(r,V,I){V==2?r.S.call(r.context,I):r.X&&r.X.call(r.context,I)}; rEA=function(r,V){r.W=!0;g.$i(function(){r.W&&dnA.call(null,V)})}; Xs=function(r){xf.call(this,r)}; g.Bu=function(r,V){g.cu.call(this);this.wU=r||1;this.JX=V||g.vr;this.gN=(0,g.aG)(this.Wvs,this);this.d7=g.Yf()}; g.gS=function(r,V,I){if(typeof r==="function")I&&(r=(0,g.aG)(r,I));else if(r&&typeof r.handleEvent=="function")r=(0,g.aG)(r.handleEvent,r);else throw Error("Invalid listener argument");return Number(V)>2147483647?-1:g.vr.setTimeout(r,V||0)}; Ss=function(r,V){var I=null;return(new g.R0(function(d,a){I=g.gS(function(){d(V)},r); I==-1&&a(Error("Failed to schedule timer."))})).Q7(function(d){g.vr.clearTimeout(I); throw d;})}; g.io=function(r){g.X.call(this);this.L=r;this.Y=0;this.S=100;this.W=!1;this.X=new Map;this.C=new Set;this.flushInterval=3E4;this.G=new g.Bu(this.flushInterval);this.G.listen("tick",this.r4,!1,this);g.S(this,this.G)}; anp=function(r){r.G.enabled||r.G.start();r.Y++;r.Y>=r.S&&r.r4()}; fnZ=function(r,V){return r.C.has(V)?void 0:r.X.get(V)}; eNg=function(r){for(var V=0;V2?r.G.statusText:""}catch(I){V=""}r.Y=V+" ["+r.getStatus()+"]";Mwj(r)}}finally{vu(r)}}}; vu=function(r,V){if(r.G){r.C&&(clearTimeout(r.C),r.C=null);var I=r.G;r.G=null;V||r.dispatchEvent("ready");try{I.onreadystatechange=null}catch(d){}}}; o0=function(r){var V=r.getStatus();a:switch(V){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var I=!0;break a;default:I=!1}if(!I){if(V=V===0)r=g.Ky(String(r.j))[1]||null,!r&&g.vr.self&&g.vr.self.location&&(r=g.vr.self.location.protocol.slice(0,-1)),V=!H_i.test(r?r.toLowerCase():"");I=V}return I}; g.Pu=function(r){return r.G?r.G.readyState:0}; g.ki=function(r){try{return r.G?r.G.responseText:""}catch(V){return""}}; g.h_=function(r){try{if(!r.G)return null;if("response"in r.G)return r.G.response;switch(r.GQ){case "":case "text":return r.G.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in r.G)return r.G.mozResponseArrayBuffer}return null}catch(V){return null}}; g.whi=function(r){var V={};r=(r.G&&g.Pu(r)>=2?r.G.getAllResponseHeaders()||"":"").split("\r\n");for(var I=0;I>1,V),$0(r,r.length>>1)]}; rmO=function(r){var V=g.H(hNg(r,Kb));r=V.next().value;V=V.next().value;return r.toString(16)+V.toString(16)}; VDO=function(r,V){var I=hNg(V);r=new Uint32Array(r.buffer);V=r[0];var d=g.H(I);I=d.next().value;d=d.next().value;for(var a=1;a>>8|e<<24,e+=f|0,e^=n+38293,f=f<<3|f>>>29,f^=e,D=D>>>8|D<<24,D+=n|0,D^=x+38293,n=n<<3|n>>>29,n^=D;f=[f,e];r[a]^=f[0];a+1=I?(globalThis.sessionStorage.removeItem(r),["e"]):["a",new Uint8Array(d.buffer,V+4)]}; Rh=function(r,V,I){I=I===void 0?[]:I;this.maxItems=r;this.G=V===void 0?0:V;this.X=I}; azX=function(r){var V=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!V)return new Rh(r);var I=V.split(",");if(I.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Rh(r);V=I.slice(1);V.length===1&&V[0]===""&&(V=[]);I=Number(I[0]);return isNaN(I)||I<0||I>V.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Rh(r)):new Rh(r,I,V)}; fzX=function(r,V){this.logger=V;try{var I=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){I=!1}I&&(this.index=azX(r))}; eEp=function(r,V,I,d,a){var f=r.index?fb(r.logger,function(){return IzS(r.index,rmO(V),I,d,a)},"W"):"u"; r.logger.e_(f)}; Yai=function(r,V,I){var d=g.H(r.index?fb(r.logger,function(){return dlr(rmO(V),I)},"R"):["u"]),a=d.next().value; d=d.next().value;r.logger.Q2(a);return d}; Dli=function(r){function V(){I-=d;I-=a;I^=a>>>13;d-=a;d-=I;d^=I<<8;a-=I;a-=d;a^=d>>>13;I-=d;I-=a;I^=a>>>12;d-=a;d-=I;d^=I<<16;a-=I;a-=d;a^=d>>>5;I-=d;I-=a;I^=a>>>3;d-=a;d-=I;d^=I<<10;a-=I;a-=d;a^=d>>>15} r=nIi(r);for(var I=2654435769,d=2654435769,a=314159265,f=r.length,e=f,n=0;e>=12;e-=12,n+=12)I+=t5(r,n),d+=t5(r,n+4),a+=t5(r,n+8),V();a+=f;switch(e){case 11:a+=r[n+10]<<24;case 10:a+=r[n+9]<<16;case 9:a+=r[n+8]<<8;case 8:d+=r[n+7]<<24;case 7:d+=r[n+6]<<16;case 6:d+=r[n+5]<<8;case 5:d+=r[n+4];case 4:I+=r[n+3]<<24;case 3:I+=r[n+2]<<16;case 2:I+=r[n+1]<<8;case 1:I+=r[n+0]}V();return juA.toString(a)}; nIi=function(r){for(var V=[],I=0;I>7,r.error.code]);d.set(I,4);return d}; X1=function(r,V,I){ym.call(this,r);this.Y=V;this.clientState=I;this.G="S";this.X="q"}; Z3=function(r){return globalThis.TextEncoder?(new TextEncoder).encode(r):g.Vn(r)}; NwZ=function(r,V,I){return r instanceof wY?gMX(r,I,V,1):r.Ep(I)}; gY=function(r){g.X.call(this);var V=this;this.S=new g.cA;this.Y=0;this.X=void 0;this.state=2;this.x5=r.x5;this.Po=r.Po;this.tX=Object.assign({},suX,r.tX||{});this.logger=r.x5.Jy();var I;this.onError=(I=r.onError)!=null?I:function(){}; this.eX=r.eX||!1;if(cmS(r)){var d=this.x5;this.W=function(){return mnj(d).catch(function(e){e=V.reportError(new eD(V.G?20:32,"TRG:Disposed",e));V.X=e;var n;(n=V.G)==null||n.dispose();V.G=void 0;V.S.reject(e)})}; uNS(d,function(){return void BA(V)}); d.j===2&&BA(this)}else this.W=r.kCL,BA(this);var a=this.logger.share();a.xd("o");var f=new dY(a,"o");this.S.promise.then(function(){f.done();a.Pb();a.dispose()},function(){return void a.dispose()}); this.addOnDisposeCallback(function(){V.G?(V.G.dispose(),V.G=void 0):V.X?V.logger.Pb():(V.X=V.reportError(new eD(32,"TNP:Disposed")),V.logger.Pb(),V.S.reject(V.X))}); g.S(this,this.logger)}; zES=function(r,V){if(!(V instanceof eD))if(V instanceof Un){var I=Error(V.toString());I.stack=V.stack;V=new eD(11,"EBH:Error",I)}else V=new eD(12,"BSO:Unknown",V);return r.reportError(V)}; BA=function(r){var V,I,d,a,f,e,n,D,x,E,N,c,z,M,w;return g.L(function(b){switch(b.X){case 1:V=void 0;r.Y++;I=new g.cA;r.x5 instanceof ba&&r.x5.Y.push(I.promise);if(!r.eX){b.qk(2);break}d=new g.cA;setTimeout(function(){return void d.resolve()}); return g.G(b,d.promise,2);case 2:return a=r.logger.share(),g.wA(b,4,5),r.state=5,f={},e=[],g.G(b,WA(r.x5.snapshot({NS:f,l1:e}),r.tX.eXs,function(){return Promise.reject(new eD(15,"MDA:Timeout"))}),7); case 7:n=b.G;if(r.h0())throw new eD(r.G?20:32,"MDA:Disposed");D=e[0];r.state=6;return g.G(b,WA(NwZ(r.Po,a,n),r.tX.ZF,function(){return Promise.reject(new eD(10,"BWB:Timeout"))}),8); case 8:x=b.G;if(r.h0())throw new eD(r.G?20:32,"BWB:Disposed");r.state=7;V=fb(a,function(){var K=MDZ(r,x,I,D);K.S.promise.then(function(){return void r.W()}); return K},"i"); case 5:g.Ah(b);a.dispose();g.Fj(b,6);break;case 4:E=g.th(b);(N=V)==null||N.dispose();if(!r.X){c=zES(r,E);I.resolve();var W;if(W=r.x5 instanceof ba&&r.Y<2)a:if(E instanceof eD)W=E.code!==32&&E.code!==20&&E.code!==10;else{if(E instanceof Un)switch(E.code){case 2:case 13:case 14:case 4:break;default:W=!1;break a}W=!0}if(W)return z=(1+Math.random()*.25)*(r.G?6E4:1E3),M=setTimeout(function(){return void r.W()},z),r.addOnDisposeCallback(function(){return void clearTimeout(M)}),b.return(); r.X=c}a.ML(r.G?13:14);r.S.reject(r.X);return b.return();case 6:r.state=8,r.Y=0,(w=r.G)==null||w.dispose(),r.G=V,r.S.resolve(),g.Hr(b)}})}; MDZ=function(r,V,I,d){var a=Pv(V,2)*1E3;if(a<=0)throw new eD(31,"TTM:Invalid");if(oO(V,4))return new Lb(r.logger,oO(V,4),a);if(!Pv(V,3))return new la(r.logger,Dg(Ae(V,1)),a);if(!d)throw new eD(4,"PMD:Undefined");d=d(Dg(Ae(V,1)));if(!(d instanceof Function))throw new eD(16,"APF:Failed");r.C=Math.floor((Date.now()+a)/1E3);r=new F1(r.logger,d,Pv(V,3),a);r.addOnDisposeCallback(function(){return void I.resolve()}); return r}; CkX=function(r,V){V=V instanceof eD?V:new eD(5,"TVD:error",V);return r.reportError(V)}; OQX=function(r,V,I){try{if(r.h0())throw new eD(21,"BNT:disposed");if(!r.G&&r.X)throw r.X;var d,a;return(a=(d=Twp(r,V,I))!=null?d:HQi(r,V,I))!=null?a:wYr(r,V,I)}catch(f){if(!V.RC)throw CkX(r,f);return bQp(r,I,f)}}; Twp=function(r,V,I){var d;return(d=r.G)==null?void 0:G3(d,function(){return Sc(r,V)},I,function(a){var f; if(r.G instanceof F1&&((f=V.I$)==null?0:f.PY))try{var e;(e=r.cache)==null||eEp(e,Sc(r,V),a,V.I$.WI,r.C-120)}catch(n){r.reportError(new eD(24,"ELX:write",n))}})}; HQi=function(r,V,I){var d;if((d=V.I$)!=null&&d.Ze)try{var a,f=(a=r.cache)==null?void 0:Yai(a,Sc(r,V),V.I$.WI);return f?I?fb(r.logger,function(){return g.I3(f,2)},"a"):f:void 0}catch(e){r.reportError(new eD(23,"RXO:read",e))}}; wYr=function(r,V,I){var d={stack:[],error:void 0,hasError:!1};try{if(!V.hH)throw new eD(29,"SDF:notready");return G3(Mip(d,new X1(r.logger,0,r.state)),function(){return Sc(r,V)},I)}catch(a){d.error=a,d.hasError=!0}finally{CXj(d)}}; bQp=function(r,V,I){var d={stack:[],error:void 0,hasError:!1};try{var a=CkX(r,I);return G3(Mip(d,new J5(r.logger,a)),function(){return[]},V)}catch(f){d.error=f,d.hasError=!0}finally{CXj(d)}}; Sc=function(r,V){return V.fp?V.fp:V.NS?fb(r.logger,function(){return V.fp=Z3(V.NS)},"c"):[]}; ia=function(){var r=0,V;return function(I){V||(V=new ec);var d=new X1(V,r,1),a=G3(d,function(){return Z3(I)},!0); d.dispose();r++;return a}}; Ud=function(r){this.kN=Ne(r)}; W0U=function(r,V,I){this.FP=r;this.Sw=V;this.metadata=I}; Qm=function(r,V){V=V===void 0?{}:V;this.Yjs=r;this.metadata=V;this.status=null}; mS=function(r,V,I,d,a){this.name=r;this.methodType="unary";this.requestType=V;this.responseType=I;this.G=d;this.X=a}; ua=function(r){this.kN=Ne(r)}; pb=function(r){this.kN=Ne(r)}; vA=function(r){this.kN=Ne(r)}; qF=function(r,V){this.L=r.ppM;this.j=V;this.G=r.xhr;this.S=[];this.W=[];this.C=[];this.Y=[];this.X=[];this.L&&$lZ(this)}; ymp=function(r,V){var I=new K0A;g.es(r.G,"complete",function(){if(o0(r.G)){var d=g.ki(r.G);if(V&&r.G.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");d=atob(d)}try{var a=r.j(d)}catch(n){PA(r,oh(new Un(13,"Error when deserializing response data; error: "+n+(", response: "+d)),I));return}d=Yeh(r.G.getStatus());k0(r,h5(r));d==0?REh(r,a):PA(r,oh(new Un(d,"Xhr succeeded but the status code is not 200"),I))}else{d=g.ki(r.G);a=h5(r);if(d){var f=tDO(r, d);d=f.code;var e=f.details;f=f.metadata}else d=2,e="Rpc failed due to xhr error. uri: "+String(r.G.j)+", error code: "+r.G.X+", error: "+r.G.getLastError(),f=a;k0(r,a);PA(r,oh(new Un(d,e,f),I))}})}; $lZ=function(r){r.L.Nv("data",function(V){if("1"in V){var I=V["1"];try{var d=r.j(I)}catch(a){PA(r,new Un(13,"Error when deserializing response data; error: "+a+(", response: "+I)))}d&&REh(r,d)}if("2"in V)for(V=tDO(r,V["2"]),I=0;I-1&&r.splice(V,1)}; REh=function(r,V){for(var I=0;I>4&15).toString(16)+(r&15).toString(16)}; JmX=function(r){return r.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}; EK=function(r,V){this.X=this.G=null;this.S=r||null;this.Y=!!V}; z9=function(r){r.G||(r.G=new Map,r.X=0,r.S&&Ag(r.S,function(V,I){r.add(My(V),I)}))}; ZQg=function(r,V){z9(r);V=Mc(r,V);return r.G.has(V)}; g.XYj=function(r,V,I){r.remove(V);I.length>0&&(r.S=null,r.G.set(Mc(r,V),g.W9(I)),r.X=r.X+I.length)}; Mc=function(r,V){V=String(V);r.Y&&(V=V.toLowerCase());return V}; F0O=function(r,V){V&&!r.Y&&(z9(r),r.S=null,r.G.forEach(function(I,d){var a=d.toLowerCase();d!=a&&(this.remove(d),g.XYj(this,a,I))},r)); r.Y=V}; g.BwX=function(r){var V="";g.i$(r,function(I,d){V+=d;V+=":";V+=I;V+="\r\n"}); return V}; g.Cm=function(r,V,I){if(g.ho(I))return r;I=g.BwX(I);if(typeof r==="string")return Jg(r,g.zP(V),I);g.sK(r,V,I);return r}; g.T9=function(r){g.X.call(this);this.X=r;this.G={}}; gIv=function(r,V,I,d,a,f){if(Array.isArray(I))for(var e=0;e=0)return!0;try{var V=new g.fm(r)}catch(I){return g.z6(IiS,function(d){return r.search(d)>0})!=null}return V.C.match(d4j)?!0:g.z6(IiS,function(I){return r.match(I)!=null})!=null}; g.Lm=function(r,V){return r.replace(fiX,function(I,d){try{var a=g.ro(V,d);if(a==null||a.toString()==null)return I;a=a.toString();if(a==""||!g.CD(g.Hz(a)))return encodeURIComponent(a).replace(/%2C/g,",")}catch(f){}return I})}; Jz=function(r,V){return Object.is(r,V)}; XK=function(r){var V=Z2;Z2=r;return V}; eqU=function(r){if(r.vO!==void 0){var V=B4;B4=!0;try{for(var I=g.H(r.vO),d=I.next();!d.done;d=I.next()){var a=d.value;a.Hb||(r=void 0,a.Hb=!0,eqU(a),(r=a.nP)==null||r.call(a,a))}}finally{B4=V}}}; YnO=function(){var r;return((r=Z2)==null?void 0:r.Xi)!==!1}; nig=function(r){r&&(r.Uz=0);return XK(r)}; j0X=function(r,V){XK(V);if(r&&r.o1!==void 0&&r.b_!==void 0&&r.Xn!==void 0){if(gW(r))for(V=r.Uz;Vr.Uz;)r.o1.pop(),r.Xn.pop(),r.b_.pop()}}; x4Z=function(r,V,I){D4h(r);if(r.vO.length===0&&r.o1!==void 0)for(var d=0;d0}; Eir=function(r){r.o1!=null||(r.o1=[]);r.b_!=null||(r.b_=[]);r.Xn!=null||(r.Xn=[])}; D4h=function(r){r.vO!=null||(r.vO=[]);r.cw!=null||(r.cw=[])}; c_r=function(r){function V(){if(B4)throw Error("");if(Z2!==null){var d=Z2.Uz++;Eir(Z2);d0?" "+V:V))}}; g.DX=function(r,V){if(r.classList)Array.prototype.forEach.call(V,function(a){g.jN(r,a)}); else{var I={};Array.prototype.forEach.call(eN(r),function(a){I[a]=!0}); Array.prototype.forEach.call(V,function(a){I[a]=!0}); V="";for(var d in I)V+=V.length>0?" "+d:d;g.YS(r,V)}}; g.xS=function(r,V){r.classList?r.classList.remove(V):g.nL(r,V)&&g.YS(r,Array.prototype.filter.call(eN(r),function(I){return I!=V}).join(" "))}; g.E8=function(r,V){r.classList?Array.prototype.forEach.call(V,function(I){g.xS(r,I)}):g.YS(r,Array.prototype.filter.call(eN(r),function(I){return!g.CG(V,I)}).join(" "))}; g.NA=function(r,V,I){I?g.jN(r,V):g.xS(r,V)}; Kxi=function(r,V){var I=!g.nL(r,V);g.NA(r,V,I)}; g.s8=function(){g.cu.call(this);this.G=0;this.endTime=this.startTime=null}; Rqv=function(r,V){Array.isArray(V)||(V=[V]);V=V.map(function(I){return typeof I==="string"?I:I.property+" "+I.duration+"s "+I.timing+" "+I.delay+"s"}); g.Be(r,"transition",V.join(","))}; cm=function(r,V,I,d,a){g.s8.call(this);this.X=r;this.W=V;this.C=I;this.Y=d;this.L=Array.isArray(a)?a:[a]}; tsO=function(r,V,I,d){return new cm(r,V,{opacity:I},{opacity:d},{property:"opacity",duration:V,timing:"ease-in",delay:0})}; A_A=function(r){r=b_(r);if(r=="")return null;var V=String(r.slice(0,4)).toLowerCase();if(("url("1||r&&r.split(")"),null;if(r.indexOf("(")>0){if(/"|'/.test(r))return null;V=/([\-\w]+)\(/g;for(var I;I=V.exec(r);)if(!(I[1].toLowerCase()in y_A))return null}return r}; ze=function(r,V){r=g.vr[r];return r&&r.prototype?(V=Object.getOwnPropertyDescriptor(r.prototype,V))&&V.get||null:null}; GOS=function(r){var V=g.vr.CSSStyleDeclaration;return V&&V.prototype&&V.prototype[r]||null}; FxU=function(r,V,I,d){if(r)return r.apply(V,d);if(g.MA&&document.documentMode<10){if(!V[I].call)throw Error("IE Clobbering detected");}else if(typeof V[I]!="function")throw Error("Clobbering detected");return V[I].apply(V,d)}; XuZ=function(r){if(!r)return"";var V=document.createElement("div").style;lir(r).forEach(function(I){var d=g.Pz&&I in Lxp?I:I.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Mi(d,"--")||Mi(d,"var")||(I=FxU(J_v,r,r.getPropertyValue?"getPropertyValue":"getAttribute",[I])||"",I=A_A(I),I!=null&&FxU(ZRX,V,V.setProperty?"setProperty":"setAttribute",[d,I]))}); return V.cssText||""}; lir=function(r){g.rP(r)?r=g.W9(r):(r=g.v9(r),g.H9(r,"cssText"));return r}; g.Te=function(r){var V,I=V=0,d=!1;r=r.split(BSU);for(var a=0;a.4?-1:1;return(V==0?null:V)==-1?"rtl":"ltr"}; g.O8=function(r){if(r instanceof Hm||r instanceof w3||r instanceof bF)return r;if(typeof r.next=="function")return new Hm(function(){return r}); if(typeof r[Symbol.iterator]=="function")return new Hm(function(){return r[Symbol.iterator]()}); if(typeof r.oH=="function")return new Hm(function(){return r.oH()}); throw Error("Not an iterator or iterable.");}; Hm=function(r){this.X=r}; w3=function(r){this.X=r}; bF=function(r){Hm.call(this,function(){return r}); this.S=r}; Wm=function(r,V,I,d,a,f,e,n){this.G=r;this.L=V;this.S=I;this.W=d;this.Y=a;this.C=f;this.X=e;this.j=n}; $S=function(r,V){if(V==0)return r.G;if(V==1)return r.X;var I=GP(r.G,r.S,V),d=GP(r.S,r.Y,V);r=GP(r.Y,r.X,V);I=GP(I,d,V);d=GP(d,r,V);return GP(I,d,V)}; U4X=function(r,V){var I=(V-r.G)/(r.X-r.G);if(I<=0)return 0;if(I>=1)return 1;for(var d=0,a=1,f=0,e=0;e<8;e++){f=$S(r,I);var n=($S(r,I+1E-6)-f)/1E-6;if(Math.abs(f-V)<1E-6)return I;if(Math.abs(n)<1E-6)break;else f1E-6&&e<8;e++)f=0}; g.yj=function(r){g.X.call(this);this.C=1;this.S=[];this.Y=0;this.G=[];this.X={};this.L=!!r}; m4r=function(r,V,I){g.$i(function(){r.apply(V,I)})}; g.AO=function(r){this.G=r}; Ge=function(r){this.G=r}; usA=function(r){this.data=r}; puZ=function(r){return r===void 0||r instanceof usA?r:new usA(r)}; Fk=function(r){this.G=r}; g.viA=function(r){var V=r.creation;r=r.expiration;return!!r&&rg.Yf()}; g.lF=function(r){this.G=r}; qnh=function(){}; LL=function(){}; JO=function(r){this.G=r;this.X=null}; ZX=function(r){if(r.G==null)throw Error("Storage mechanism: Storage unavailable");var V;(Poj?r.isAvailable():(V=r.X)!=null?V:r.isAvailable())||rq(Error("Storage mechanism: Storage unavailable"))}; Xk=function(){var r=null;try{r=g.vr.localStorage||null}catch(V){}JO.call(this,r)}; oiX=function(){var r=null;try{r=g.vr.sessionStorage||null}catch(V){}JO.call(this,r)}; Bm=function(r,V){this.X=r;this.G=V+"::"}; g.g3=function(r){var V=new Xk;return V.isAvailable()?r?new Bm(V,r):V:null}; SN=function(r,V){this.G=r;this.X=V}; iF=function(r){this.G=[];if(r)a:{if(r instanceof iF){var V=r.yu();r=r.aH();if(this.G.length<=0){for(var I=this.G,d=0;d>>6:(f<65536?n[I++]=224|f>>>12:(n[I++]=240|f>>>18,n[I++]=128|f>>>12&63),n[I++]=128|f>>> 6&63),n[I++]=128|f&63);return n}; uF=function(r){for(var V=r.length;--V>=0;)r[V]=0}; pL=function(r,V,I,d,a){this.D8=r;this.zk=V;this.We=I;this.bb=d;this.HoM=a;this.Vb=r&&r.length}; vm=function(r,V){this.KP=r;this.tj=0;this.Uv=V}; qA=function(r,V){r.TY[r.pending++]=V&255;r.TY[r.pending++]=V>>>8&255}; Pm=function(r,V,I){r.jA>16-I?(r.fM|=V<>16-r.jA,r.jA+=I-16):(r.fM|=V<>>=1,I<<=1;while(--V>0);return I>>>1}; I3A=function(r,V,I){var d=Array(16),a=0,f;for(f=1;f<=15;f++)d[f]=a=a+I[f-1]<<1;for(I=0;I<=V;I++)a=r[I*2+1],a!==0&&(r[I*2]=VcU(d[a]++,a))}; dFZ=function(r){var V;for(V=0;V<286;V++)r.z6[V*2]=0;for(V=0;V<30;V++)r.DZ[V*2]=0;for(V=0;V<19;V++)r.yM[V*2]=0;r.z6[512]=1;r.Bb=r.K5=0;r.VF=r.matches=0}; a3i=function(r){r.jA>8?qA(r,r.fM):r.jA>0&&(r.TY[r.pending++]=r.fM);r.fM=0;r.jA=0}; f3i=function(r,V,I){a3i(r);qA(r,I);qA(r,~I);mT.Ly(r.TY,r.window,V,I,r.pending);r.pending+=I}; ePp=function(r,V,I,d){var a=V*2,f=I*2;return r[a]>>7)];os(r,e,I);n=d8[e];n!==0&&(a-=aq[e],Pm(r,a,n))}}while(d>1;e>=1;e--)kS(r,I,e);D=f;do e=r.Kn[1],r.Kn[1]=r.Kn[r.Ju--],kS(r,I,1),d=r.Kn[1],r.Kn[--r.Ii]=e,r.Kn[--r.Ii]=d,I[D*2]=I[e*2]+I[d*2],r.depth[D]=(r.depth[e]>=r.depth[d]?r.depth[e]:r.depth[d])+1,I[e*2+1]=I[d*2+1]=D,r.Kn[1]=D++,kS(r,I,1);while(r.Ju>= 2);r.Kn[--r.Ii]=r.Kn[1];e=V.KP;D=V.tj;d=V.Uv.D8;a=V.Uv.Vb;f=V.Uv.zk;var x=V.Uv.We,E=V.Uv.HoM,N,c=0;for(N=0;N<=15;N++)r.VG[N]=0;e[r.Kn[r.Ii]*2+1]=0;for(V=r.Ii+1;V<573;V++){var z=r.Kn[V];N=e[e[z*2+1]*2+1]+1;N>E&&(N=E,c++);e[z*2+1]=N;if(!(z>D)){r.VG[N]++;var M=0;z>=x&&(M=f[z-x]);var w=e[z*2];r.Bb+=w*(N+M);a&&(r.K5+=w*(d[z*2+1]+M))}}if(c!==0){do{for(N=E-1;r.VG[N]===0;)N--;r.VG[N]--;r.VG[N+1]+=2;r.VG[E]--;c-=2}while(c>0);for(N=E;N!==0;N--)for(z=r.VG[N];z!==0;)d=r.Kn[--V],d>D||(e[d*2+1]!==N&&(r.Bb+=(N- e[d*2+1])*e[d*2],e[d*2+1]=N),z--)}I3A(I,n,r.VG)}; n0X=function(r,V,I){var d,a=-1,f=V[1],e=0,n=7,D=4;f===0&&(n=138,D=3);V[(I+1)*2+1]=65535;for(d=0;d<=I;d++){var x=f;f=V[(d+1)*2+1];++e>>=1)if(V&1&&r.z6[I*2]!==0)return 0;if(r.z6[18]!==0||r.z6[20]!==0||r.z6[26]!==0)return 1;for(I=32;I<256;I++)if(r.z6[I*2]!==0)return 1;return 0}; eP=function(r,V,I){r.TY[r.vS+r.VF*2]=V>>>8&255;r.TY[r.vS+r.VF*2+1]=V&255;r.TY[r.zo+r.VF]=I&255;r.VF++;V===0?r.z6[I*2]++:(r.matches++,V--,r.z6[(hO[I]+256+1)*2]++,r.DZ[(V<256?Iq[V]:Iq[256+(V>>>7)])*2]++);return r.VF===r.YZ-1}; n2=function(r,V){r.msg=Yt[V];return V}; jP=function(r){for(var V=r.length;--V>=0;)r[V]=0}; Dc=function(r){var V=r.state,I=V.pending;I>r.Vs&&(I=r.Vs);I!==0&&(mT.Ly(r.output,V.TY,V.bx,I,r.Um),r.Um+=I,V.bx+=I,r.jG+=I,r.Vs-=I,V.pending-=I,V.pending===0&&(V.bx=0))}; NX=function(r,V){var I=r.dL>=0?r.dL:-1,d=r.JI-r.dL,a=0;if(r.level>0){r.Ee.Jv===2&&(r.Ee.Jv=DFX(r));f2(r,r.iH);f2(r,r.Gh);n0X(r,r.z6,r.iH.tj);n0X(r,r.DZ,r.Gh.tj);f2(r,r.iQ);for(a=18;a>=3&&r.yM[xFX[a]*2+1]===0;a--);r.Bb+=3*(a+1)+5+5+4;var f=r.Bb+3+7>>>3;var e=r.K5+3+7>>>3;e<=f&&(f=e)}else f=e=d+5;if(d+4<=f&&I!==-1)Pm(r,V?1:0,3),f3i(r,I,d);else if(r.strategy===4||e===f)Pm(r,2+(V?1:0),3),Ydi(r,xt,Ev);else{Pm(r,4+(V?1:0),3);I=r.iH.tj+1;d=r.Gh.tj+1;a+=1;Pm(r,I-257,5);Pm(r,d-1,5);Pm(r,a-4,4);for(f=0;f>>8&255;r.TY[r.pending++]=V&255}; E0j=function(r,V){var I=r.rf,d=r.JI,a=r.rB,f=r.f3,e=r.JI>r.hK-262?r.JI-(r.hK-262):0,n=r.window,D=r.cV,x=r.w5,E=r.JI+258,N=n[d+a-1],c=n[d+a];r.rB>=r.U_&&(I>>=2);f>r.Va&&(f=r.Va);do{var z=V;if(n[z+a]===c&&n[z+a-1]===N&&n[z]===n[d]&&n[++z]===n[d+1]){d+=2;for(z++;n[++d]===n[++z]&&n[++d]===n[++z]&&n[++d]===n[++z]&&n[++d]===n[++z]&&n[++d]===n[++z]&&n[++d]===n[++z]&&n[++d]===n[++z]&&n[++d]===n[++z]&&da){r.pW=V;a=z;if(z>=f)break;N=n[d+a-1];c=n[d+a]}}}while((V=x[V&D])>e&&--I!== 0);return a<=r.Va?a:r.Va}; T$=function(r){var V=r.hK,I;do{var d=r.Qv-r.Va-r.JI;if(r.JI>=V+(V-262)){mT.Ly(r.window,r.window,V,V,0);r.pW-=V;r.JI-=V;r.dL-=V;var a=I=r.zT;do{var f=r.head[--a];r.head[a]=f>=V?f-V:0}while(--I);a=I=V;do f=r.w5[--a],r.w5[a]=f>=V?f-V:0;while(--I);d+=V}if(r.Ee.z0===0)break;a=r.Ee;I=r.window;f=r.JI+r.Va;var e=a.z0;e>d&&(e=d);e===0?I=0:(a.z0-=e,mT.Ly(I,a.input,a.OY,e,f),a.state.wrap===1?a.RL=MX(a.RL,I,e,f):a.state.wrap===2&&(a.RL=C2(a.RL,I,e,f)),a.OY+=e,a.DB+=e,I=e);r.Va+=I;if(r.Va+r.aQ>=3)for(d=r.JI-r.aQ, r.A9=r.window[d],r.A9=(r.A9<=3&&(r.A9=(r.A9<=3)if(I=eP(r,r.JI-r.pW,r.FN-3),r.Va-=r.FN,r.FN<=r.u6&&r.Va>=3){r.FN--;do r.JI++,r.A9=(r.A9<=3&&(r.A9=(r.A9<4096)&&(r.FN=2));if(r.rB>=3&&r.FN<=r.rB){d=r.JI+r.Va-3;I=eP(r,r.JI-1-r.gt,r.rB-3);r.Va-=r.rB-1;r.rB-=2;do++r.JI<=d&&(r.A9=(r.A9<=3&&r.JI>0&&(d=r.JI-1,I=f[d],I===f[++d]&&I===f[++d]&&I===f[++d])){for(a=r.JI+258;I===f[++d]&&I===f[++d]&&I===f[++d]&&I===f[++d]&&I===f[++d]&&I===f[++d]&&I===f[++d]&&I===f[++d]&&dr.Va&&(r.FN=r.Va)}r.FN>=3?(I=eP(r,1,r.FN-3),r.Va-=r.FN,r.JI+=r.FN,r.FN=0):(I=eP(r,0,r.window[r.JI]),r.Va--,r.JI++);if(I&&(NX(r,!1),r.Ee.Vs===0))return 1}r.aQ=0;return V=== 4?(NX(r,!0),r.Ee.Vs===0?3:4):r.VF&&(NX(r,!1),r.Ee.Vs===0)?1:2}; shr=function(r,V){for(var I;;){if(r.Va===0&&(T$(r),r.Va===0)){if(V===0)return 1;break}r.FN=0;I=eP(r,0,r.window[r.JI]);r.Va--;r.JI++;if(I&&(NX(r,!1),r.Ee.Vs===0))return 1}r.aQ=0;return V===4?(NX(r,!0),r.Ee.Vs===0?3:4):r.VF&&(NX(r,!1),r.Ee.Vs===0)?1:2}; b9=function(r,V,I,d,a){this.UM=r;this.lVE=V;this.Yuz=I;this.yIs=d;this.func=a}; c5r=function(){this.Ee=null;this.status=0;this.TY=null;this.wrap=this.pending=this.bx=this.HG=0;this.Y5=null;this.wr=0;this.method=8;this.bD=-1;this.cV=this.rJ=this.hK=0;this.window=null;this.Qv=0;this.head=this.w5=null;this.f3=this.U_=this.strategy=this.level=this.u6=this.rf=this.rB=this.Va=this.pW=this.JI=this.gj=this.gt=this.FN=this.dL=this.p9=this.Y7=this.D0=this.zT=this.A9=0;this.z6=new mT.Ew(1146);this.DZ=new mT.Ew(122);this.yM=new mT.Ew(78);jP(this.z6);jP(this.DZ);jP(this.yM);this.iQ=this.Gh= this.iH=null;this.VG=new mT.Ew(16);this.Kn=new mT.Ew(573);jP(this.Kn);this.Ii=this.Ju=0;this.depth=new mT.Ew(573);jP(this.depth);this.jA=this.fM=this.aQ=this.matches=this.K5=this.Bb=this.vS=this.VF=this.YZ=this.zo=0}; zPi=function(r,V){if(!r||!r.state||V>5||V<0)return r?n2(r,-2):-2;var I=r.state;if(!r.output||!r.input&&r.z0!==0||I.status===666&&V!==4)return n2(r,r.Vs===0?-5:-2);I.Ee=r;var d=I.bD;I.bD=V;if(I.status===42)if(I.wrap===2)r.RL=0,cy(I,31),cy(I,139),cy(I,8),I.Y5?(cy(I,(I.Y5.text?1:0)+(I.Y5.tE?2:0)+(I.Y5.extra?4:0)+(I.Y5.name?8:0)+(I.Y5.comment?16:0)),cy(I,I.Y5.time&255),cy(I,I.Y5.time>>8&255),cy(I,I.Y5.time>>16&255),cy(I,I.Y5.time>>24&255),cy(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),cy(I,I.Y5.os& 255),I.Y5.extra&&I.Y5.extra.length&&(cy(I,I.Y5.extra.length&255),cy(I,I.Y5.extra.length>>8&255)),I.Y5.tE&&(r.RL=C2(r.RL,I.TY,I.pending,0)),I.wr=0,I.status=69):(cy(I,0),cy(I,0),cy(I,0),cy(I,0),cy(I,0),cy(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),cy(I,3),I.status=113);else{var a=8+(I.rJ-8<<4)<<8;a|=(I.strategy>=2||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6;I.JI!==0&&(a|=32);I.status=113;z$(I,a+(31-a%31));I.JI!==0&&(z$(I,r.RL>>>16),z$(I,r.RL&65535));r.RL=1}if(I.status===69)if(I.Y5.extra){for(a= I.pending;I.wr<(I.Y5.extra.length&65535)&&(I.pending!==I.HG||(I.Y5.tE&&I.pending>a&&(r.RL=C2(r.RL,I.TY,I.pending-a,a)),Dc(r),a=I.pending,I.pending!==I.HG));)cy(I,I.Y5.extra[I.wr]&255),I.wr++;I.Y5.tE&&I.pending>a&&(r.RL=C2(r.RL,I.TY,I.pending-a,a));I.wr===I.Y5.extra.length&&(I.wr=0,I.status=73)}else I.status=73;if(I.status===73)if(I.Y5.name){a=I.pending;do{if(I.pending===I.HG&&(I.Y5.tE&&I.pending>a&&(r.RL=C2(r.RL,I.TY,I.pending-a,a)),Dc(r),a=I.pending,I.pending===I.HG)){var f=1;break}f=I.wra&&(r.RL=C2(r.RL,I.TY,I.pending-a,a));f===0&&(I.wr=0,I.status=91)}else I.status=91;if(I.status===91)if(I.Y5.comment){a=I.pending;do{if(I.pending===I.HG&&(I.Y5.tE&&I.pending>a&&(r.RL=C2(r.RL,I.TY,I.pending-a,a)),Dc(r),a=I.pending,I.pending===I.HG)){f=1;break}f=I.wra&&(r.RL=C2(r.RL,I.TY,I.pending-a,a));f===0&&(I.status=103)}else I.status= 103;I.status===103&&(I.Y5.tE?(I.pending+2>I.HG&&Dc(r),I.pending+2<=I.HG&&(cy(I,r.RL&255),cy(I,r.RL>>8&255),r.RL=0,I.status=113)):I.status=113);if(I.pending!==0){if(Dc(r),r.Vs===0)return I.bD=-1,0}else if(r.z0===0&&(V<<1)-(V>4?9:0)<=(d<<1)-(d>4?9:0)&&V!==4)return n2(r,-5);if(I.status===666&&r.z0!==0)return n2(r,-5);if(r.z0!==0||I.Va!==0||V!==0&&I.status!==666){d=I.strategy===2?shr(I,V):I.strategy===3?NYv(I,V):Ov[I.level].func(I,V);if(d===3||d===4)I.status=666;if(d===1||d===3)return r.Vs===0&&(I.bD= -1),0;if(d===2&&(V===1?(Pm(I,2,3),os(I,256,xt),I.jA===16?(qA(I,I.fM),I.fM=0,I.jA=0):I.jA>=8&&(I.TY[I.pending++]=I.fM&255,I.fM>>=8,I.jA-=8)):V!==5&&(Pm(I,0,3),f3i(I,0,0),V===3&&(jP(I.head),I.Va===0&&(I.JI=0,I.dL=0,I.aQ=0))),Dc(r),r.Vs===0))return I.bD=-1,0}if(V!==4)return 0;if(I.wrap<=0)return 1;I.wrap===2?(cy(I,r.RL&255),cy(I,r.RL>>8&255),cy(I,r.RL>>16&255),cy(I,r.RL>>24&255),cy(I,r.DB&255),cy(I,r.DB>>8&255),cy(I,r.DB>>16&255),cy(I,r.DB>>24&255)):(z$(I,r.RL>>>16),z$(I,r.RL&65535));Dc(r);I.wrap>0&& (I.wrap=-I.wrap);return I.pending!==0?0:1}; Wy=function(r){if(!(this instanceof Wy))return new Wy(r);r=this.options=mT.assign({level:-1,method:8,chunkSize:16384,vV:15,rIM:8,strategy:0,to:""},r||{});r.raw&&r.vV>0?r.vV=-r.vV:r.Ls&&r.vV>0&&r.vV<16&&(r.vV+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Ee=new McX;this.Ee.Vs=0;var V=this.Ee;var I=r.level,d=r.method,a=r.vV,f=r.rIM,e=r.strategy;if(V){var n=1;I===-1&&(I=6);a<0?(n=0,a=-a):a>15&&(n=2,a-=16);if(f<1||f>9||d!==8||a<8||a>15||I<0||I>9||e<0||e>4)V=n2(V,-2);else{a===8&&(a=9); var D=new c5r;V.state=D;D.Ee=V;D.wrap=n;D.Y5=null;D.rJ=a;D.hK=1<>=7;f<30;f++)for(aq[f]=e<<7,a=0;a<1<=x.hK&&(V===0&&(jP(x.head),x.JI=0,x.dL=0,x.aQ=0),I=new mT.FO(x.hK),mT.Ly(I,f,e-x.hK,x.hK,0),f=I,e=x.hK);I=r.z0;d=r.OY;a=r.input;r.z0=e;r.OY=0;r.input=f;for(T$(x);x.Va>=3;){f=x.JI;e=x.Va-2;do x.A9=(x.A9<=0&&(I[61]!=-5&&((((0,I[71])((0,I[26])(I[53],I[42]),I[6],I[23],I[82]),(0,I[85])(I[82],I[15]),((0,I[75])(I[82],I[37],(0,I[77])()),I[74])(I[82]),I[27])(I[72],I[47]),I[84])(I[69],I[53]),Y[70])||((((0,I[27])(I[0],I[40]),I[49])(I[0],I[55]),I[30])((0,I[49])(I[82],I[4])^(0,I[58])(I[72]),I[58],(0,I[75])(I[72],I[37],(0,I[45])()),I[22]),I[75])(I[82],I[2],(0,I[77])())),I[1]<=-8&&(0,I[30])((0,I[49])(I[22],I[78]),I[35],(0,I[25])(I[33]),I[46],I[32%(new Date(Y[65])/1E3)+512-540]), I[54]<=-3&&(((0,I[22])((0,I[66])(I[69]),I[50],I[80],I[26]),I[6])(I[48],I[47]),(0,I[63])((0,I[63])((0,I[49])(I[48],I[78]),I[49],I[48],I[38]),I[49],I[81],I[7]),I[50])(I[75],I[52]),(I[72]>=0||((0,I[32])(I[16],I[66]),0))&&(0,I[22])(I[25],I[60],(0,I[20])()),I[1]!==8&&(I[41]<2?(0,I[5])(I[72],I[65]):(0,I[42])(I[219-1296%(new Date(Y[73])/1E3)],I[58])),I[20]!==-8&&(0,I[84])(((0,I[63])(I[41],I[83]),I[new Date(Y[21])/1E3])(I[6],I[37]),I[new Date(Y[88])/1E3],I[49],I[37])}catch(d){(0,I[42])(I[83],I[30]),(0,I[84])((0,I[80])(I[69], I[67],(0,I[78])()),I[53],I[83],I[4]),(0,I[27])(I[new Date(Y[61])/1E3],I[57]),(0,I[81])(I[16]),(0,I[39])((0,I[80])(I[83],I[67],(0,I[5])()),I[81],(0,I[42])(I[83],I[74]),I[69])}try{I[51]<=8&&((0,I[31])(((0,I[63])(I[56],I[16]),(0,I[18])(I[17],I[78]),(0,I[new Date(Y[67])/1E3])(I[41],I[27])),(0,I[11])(((0,I[76])(I[21],I[60]),(0,I[48])(I[74],I[22]),(0,I[62])(I[51],I[49],(0,I[6])())),I[45],I[57],I[51]),I[66],(((0,I[22])(I[55]),I[24])(I[65],I[0]),I[75])(I[51],I[61]),I[63],I[55])||new Date(Y[47])/1E3)||(0,I[21])(((((0,I[45])(I[20], I[65]),I[63])(I[55]),(0,I[66])((0,I[53])(I[30],I[84]),I[53],I[27],I[84]),I[62])(I[65],I[14],(0,I[43])()),I[21])(((0,I[62])(I[51],I[49],(0,I[60])()),I[75])(I[19],I[16]),I[24],(0,I[24])(I[55],I[3]),I[29],I[77]),I[24],(0,I[45])(I[80],I[55]),I[29],I[85]),(((0,I[62])(I[65],I[14],I[18]),I[63])(I[65]),I[62])(I[65],I[49],(0,I[60])())}catch(d){}}catch(d){return Y[34]+r}return V[Y[3]](Y[19])}; g.AL=function(r){this.name=r}; Zbj=function(r){this.kN=Ne(r)}; G$=function(r){this.kN=Ne(r)}; FF=function(r){this.kN=Ne(r)}; XAO=function(r){this.kN=Ne(r)}; l9=function(r){this.kN=Ne(r)}; L2=function(r){this.kN=Ne(r)}; JL=function(r){this.kN=Ne(r)}; Zc=function(r){this.kN=Ne(r)}; XF=function(r){this.kN=Ne(r)}; By=function(r){this.kN=Ne(r)}; g8=function(r){this.kN=Ne(r)}; SP=function(r){this.kN=Ne(r)}; i9=function(r){this.kN=Ne(r)}; Uv=function(r){this.kN=Ne(r)}; Q9=function(r){this.kN=Ne(r)}; mk=function(r){this.kN=Ne(r,500)}; u9=function(r){this.kN=Ne(r)}; qX=function(r){this.kN=Ne(r)}; BYp=function(r){this.kN=Ne(r)}; g0j=function(){return g.Pr("yt.ads.biscotti.lastId_")||""}; SdA=function(r){g.qp("yt.ads.biscotti.lastId_",r)}; oq=function(){var r=arguments,V=Py;r.length>1?V[r[0]]=r[1]:r.length===1&&Object.assign(V,r[0])}; g.kt=function(r,V){return r in Py?Py[r]:V}; hL=function(r){var V=Py.EXPERIMENT_FLAGS;return V?V[r]:void 0}; ibi=function(r){rB.forEach(function(V){return V(r)})}; g.I6=function(r){return r&&window.yterr?function(){try{return r.apply(this,arguments)}catch(V){g.Vr(V)}}:r}; g.Vr=function(r){var V=g.Pr("yt.logging.errors.log");V?V(r,"ERROR",void 0,void 0,void 0,void 0,void 0):(V=g.kt("ERRORS",[]),V.push([r,"ERROR",void 0,void 0,void 0,void 0,void 0]),oq("ERRORS",V));ibi(r)}; dB=function(r,V,I,d,a){var f=g.Pr("yt.logging.errors.log");f?f(r,"WARNING",V,I,d,void 0,a):(f=g.kt("ERRORS",[]),f.push([r,"WARNING",V,I,d,void 0,a]),oq("ERRORS",f))}; a6=function(r,V){V=r.split(V);for(var I={},d=0,a=V.length;d1?r[1]:r[0])):{}}; jJ=function(r,V){return u1A(r,V||{},!0)}; DJ=function(r,V){return u1A(r,V||{},!1)}; u1A=function(r,V,I){var d=r.split("#",2);r=d[0];d=d.length>1?"#"+d[1]:"";var a=r.split("?",2);r=a[0];a=eJ(a[1]||"");for(var f in V)if(I||!g.P9(a,f))a[f]=V[f];return g.Ly(r,a)+d}; xQ=function(r){if(!V)var V=window.location.href;var I=g.Ky(r)[1]||null,d=g.Rn(r);I&&d?(r=g.Ky(r),V=g.Ky(V),r=r[3]==V[3]&&r[1]==V[1]&&r[4]==V[4]):r=d?g.Rn(V)===d&&(Number(g.Ky(V)[4]||null)||null)===(Number(g.Ky(r)[4]||null)||null):!0;return r}; Eh=function(r){r||(r=document.location.href);r=g.Ky(r)[1]||null;return r!==null&&r==="https"}; NL=function(r){r=pAg(r);return r===null?!1:r[0]==="com"&&r[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; v0U=function(r){r=pAg(r);return r===null?!1:r[1]==="google"?!0:r[2]==="google"?r[0]==="au"&&r[1]==="com"?!0:r[0]==="uk"&&r[1]==="co"?!0:!1:!1}; pAg=function(r){r=g.Rn(r);return r!==null?r.split(".").reverse():null}; UFj=function(r){return r&&r.match(qdX)?r:My(r)}; zd=function(r){var V=sh;r=r===void 0?g0j():r;var I=Object,d=I.assign,a=cR(V);var f=V.G;try{var e=f.screenX;var n=f.screenY}catch(W){}try{var D=f.outerWidth;var x=f.outerHeight}catch(W){}try{var E=f.innerWidth;var N=f.innerHeight}catch(W){}try{var c=f.screenLeft;var z=f.screenTop}catch(W){}try{E=f.innerWidth,N=f.innerHeight}catch(W){}try{var M=f.screen.availWidth;var w=f.screen.availTop}catch(W){}f=[c,z,e,n,M,w,D,x,E,N];e=PEg(!1,V.G.top);n={};var b=b===void 0?g.vr:b;D=new me;"SVGElement"in b&&"createElementNS"in b.document&&D.set(0);x=jZZ();x["allow-top-navigation-by-user-activation"]&&D.set(1);x["allow-popups-to-escape-sandbox"]&&D.set(2);b.crypto&&b.crypto.subtle&&D.set(3);"TextDecoder"in b&&"TextEncoder"in b&&D.set(4);b=bRi(D);V=(n.bc=b,n.bih=e.height,n.biw=e.width,n.brdim=f.join(),n.vis=wX(V.X),n.wgl=!!NQ.WebGLRenderingContext,n);I=d.call(I,a,V);I.ca_type="image";r&&(I.bid=r);return I}; cR=function(r){var V={};V.dt=PaX;V.flash="0";a:{try{var I=r.G.top.location.href}catch(E){r=2;break a}r=I?I===r.X.location.href?0:1:2}V=(V.frm=r,V);try{V.u_tz=-(new Date).getTimezoneOffset();var d=d===void 0?NQ:d;try{var a=d.history.length}catch(E){a=0}V.u_his=a;var f;V.u_h=(f=NQ.screen)==null?void 0:f.height;var e;V.u_w=(e=NQ.screen)==null?void 0:e.width;var n;V.u_ah=(n=NQ.screen)==null?void 0:n.availHeight;var D;V.u_aw=(D=NQ.screen)==null?void 0:D.availWidth;var x;V.u_cd=(x=NQ.screen)==null?void 0: x.colorDepth}catch(E){}return V}; k3A=function(){if(!o0h)return null;var r=o0h();return"open"in r?r:null}; g.C5=function(r){switch(ML(r)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; ML=function(r){return r&&"status"in r?r.status:-1}; g.Td=function(r,V){typeof r==="function"&&(r=g.I6(r));return window.setTimeout(r,V)}; g.HR=function(r,V){typeof r==="function"&&(r=g.I6(r));return window.setInterval(r,V)}; g.wB=function(r){window.clearTimeout(r)}; g.bd=function(r){window.clearInterval(r)}; g.WR=function(r){r=Oh(r);return typeof r==="string"&&r==="false"?!1:!!r}; g.$Q=function(r,V){r=Oh(r);return r===void 0&&V!==void 0?V:Number(r||0)}; K5=function(){return g.kt("EXPERIMENTS_TOKEN","")}; Oh=function(r){return g.kt("EXPERIMENT_FLAGS",{})[r]}; R6=function(){for(var r=[],V=g.kt("EXPERIMENTS_FORCED_FLAGS",{}),I=g.H(Object.keys(V)),d=I.next();!d.done;d=I.next())d=d.value,r.push({key:d,value:String(V[d])});I=g.kt("EXPERIMENT_FLAGS",{});d=g.H(Object.keys(I));for(var a=d.next();!a.done;a=d.next())a=a.value,a.startsWith("force_")&&V[a]===void 0&&r.push({key:a,value:String(I[a])});return r}; ta=function(r,V,I,d,a,f,e,n){function D(){(x&&"readyState"in x?x.readyState:0)===4&&V&&g.I6(V)(x)} I=I===void 0?"GET":I;d=d===void 0?"":d;n=n===void 0?!1:n;var x=k3A();if(!x)return null;"onloadend"in x?x.addEventListener("loadend",D,!1):x.onreadystatechange=D;g.WR("debug_forward_web_query_parameters")&&(r=hPZ(r));x.open(I,r,!0);f&&(x.responseType=f);e&&(x.withCredentials=!0);I=I==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(a=rzi(r,a))for(var E in a)x.setRequestHeader(E,a[E]),"content-type"===E.toLowerCase()&&(I=!1);I&&x.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(n&&"setAttributionReporting"in XMLHttpRequest.prototype){r={eventSourceEligible:!0,triggerEligible:!1};try{x.setAttributionReporting(r)}catch(N){dB(N)}}x.send(d);return x}; rzi=function(r,V){V=V===void 0?{}:V;var I=xQ(r),d=g.kt("INNERTUBE_CLIENT_NAME"),a=g.WR("web_ajax_ignore_global_headers_if_set"),f;for(f in Vki){var e=g.kt(Vki[f]),n=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||e||(e=g.kt("VISITOR_DATA"));var D;if(!(D=!e)){if(!(D=I||(g.Rn(r)?!1:!0))){D=r;var x;if(x=g.WR("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&v0U(D))D=tg(D)||"",D=D.split("/"), D="/"+(D.length>1?D[1]:""),x=D==="/pagead";D=x?!0:!1}D=!D}D||a&&V[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&n||(V[f]=e)}"X-Goog-EOM-Visitor-Id"in V&&"X-Goog-Visitor-Id"in V&&delete V["X-Goog-Visitor-Id"];if(I||!g.Rn(r))V["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(I||!g.Rn(r)){try{var E=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}E&&(V["X-YouTube-Time-Zone"]=E)}document.location.hostname.endsWith("youtubeeducation.com")||!I&&g.Rn(r)||(V["X-YouTube-Ad-Signals"]= f5(zd()));return V}; Aa=function(r,V){V.method="POST";V.postParams||(V.postParams={});return g.yr(r,V)}; a2v=function(r,V){if(window.fetch&&V.format!=="XML"){var I={method:V.method||"GET",credentials:"same-origin"};V.headers&&(I.headers=V.headers);V.priority&&(I.priority=V.priority);r=I2r(r,V);var d=dcg(r,V);d&&(I.body=d);V.withCredentials&&(I.credentials="include");var a=V.context||g.vr,f=!1,e;fetch(r,I).then(function(n){if(!f){f=!0;e&&g.wB(e);var D=n.ok,x=function(E){E=E||{};D?V.onSuccess&&V.onSuccess.call(a,E,n):V.onError&&V.onError.call(a,E,n);V.onFinish&&V.onFinish.call(a,E,n)}; (V.format||"JSON")==="JSON"&&(D||n.status>=400&&n.status<500)?n.json().then(x,function(){x(null)}):x(null)}}).catch(function(){V.onError&&V.onError.call(a,{},{})}); r=V.timeout||0;V.onFetchTimeout&&r>0&&(e=g.Td(function(){f||(f=!0,g.wB(e),V.onFetchTimeout.call(V.context||g.vr))},r))}else g.yr(r,V)}; g.yr=function(r,V){var I=V.format||"JSON";r=I2r(r,V);var d=dcg(r,V),a=!1,f=f2Z(r,function(D){if(!a){a=!0;n&&g.wB(n);var x=g.C5(D),E=null,N=400<=D.status&&D.status<500,c=500<=D.status&&D.status<600;if(x||N||c)E=e9g(r,I,D,V.convertToSafeHtml);x&&(x=YKZ(I,D,E));E=E||{};N=V.context||g.vr;x?V.onSuccess&&V.onSuccess.call(N,D,E):V.onError&&V.onError.call(N,D,E);V.onFinish&&V.onFinish.call(N,D,E)}},V.method,d,V.headers,V.responseType,V.withCredentials); d=V.timeout||0;if(V.onTimeout&&d>0){var e=V.onTimeout;var n=g.Td(function(){a||(a=!0,f.abort(),g.wB(n),e.call(V.context||g.vr,f))},d)}return f}; I2r=function(r,V){V.includeDomain&&(r=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+r);var I=g.kt("XSRF_FIELD_NAME");if(V=V.urlParams)V[I]&&delete V[I],r=jJ(r,V);return r}; dcg=function(r,V){var I=g.kt("XSRF_FIELD_NAME"),d=g.kt("XSRF_TOKEN"),a=V.postBody||"",f=V.postParams,e=g.kt("XSRF_FIELD_NAME"),n;V.headers&&(n=V.headers["Content-Type"]);V.excludeXsrf||g.Rn(r)&&!V.withCredentials&&g.Rn(r)!==document.location.hostname||V.method!=="POST"||n&&n!=="application/x-www-form-urlencoded"||V.postParams&&V.postParams[e]||(f||(f={}),f[I]=d);(g.WR("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof a==="string"&&(a=eJ(a),g.fD(a,f),a=V.postBodyFormat&& V.postBodyFormat==="JSON"?JSON.stringify(a):g.lE(a));f=a||f&&!g.ho(f);!nyi&&f&&V.method!=="POST"&&(nyi=!0,g.Vr(Error("AJAX request with postData should use POST")));return a}; e9g=function(r,V,I,d){var a=null;switch(V){case "JSON":try{var f=I.responseText}catch(e){throw d=Error("Error reading responseText"),d.params=r,dB(d),e;}r=I.getResponseHeader("Content-Type")||"";f&&r.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),a=JSON.parse(f));break;case "XML":if(r=(r=I.responseXML)?jNZ(r):null)a={},g.B9(r.getElementsByTagName("*"),function(e){a[e.tagName]=DcU(e)})}d&&xcS(a); return a}; xcS=function(r){if(g.Vc(r))for(var V in r)V==="html_content"||Upr(V,"_html")?r[V]=Ic(r[V]):xcS(r[V])}; YKZ=function(r,V,I){if(V&&V.status===204)return!0;switch(r){case "JSON":return!!I;case "XML":return Number(I&&I.return_code)===0;case "RAW":return!0;default:return!!I}}; jNZ=function(r){return r?(r=("responseXML"in r?r.responseXML:r).getElementsByTagName("root"))&&r.length>0?r[0]:null:null}; DcU=function(r){var V="";g.B9(r.childNodes,function(I){V+=I.nodeValue}); return V}; hPZ=function(r){var V=window.location.search,I=g.Rn(r);g.WR("debug_handle_relative_url_for_query_forward_killswitch")||!I&&xQ(r)&&(I=document.location.hostname);var d=tg(r);d=(I=I&&(I.endsWith("youtube.com")||I.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!I||d)return r;var a=eJ(V),f={};g.B9(Eyv,function(e){a[e]&&(f[e]=a[e])}); return DJ(r,f)}; F7=function(r,V){var I=g.IZ(V),d;return(new g.R0(function(a,f){I.onSuccess=function(e){g.C5(e)?a(new NWj(e)):f(new Gd("Request failed, status="+ML(e),"net.badstatus",e))}; I.onError=function(e){f(new Gd("Unknown request error","net.unknown",e))}; I.onTimeout=function(e){f(new Gd("Request timed out","net.timeout",e))}; d=g.yr(r,I)})).Q7(function(a){if(a instanceof Xs){var f; (f=d)==null||f.abort()}return A_(a)})}; g.ld=function(r,V,I,d){function a(n,D,x){return n.Q7(function(E){if(D<=0||ML(E.xhr)===403)return A_(new Gd("Request retried too many times","net.retryexhausted",E.xhr,E));E=Math.pow(2,I-D+1)*x;var N=e>0?Math.min(e,E):E;return f(x).then(function(){return a(F7(r,V),D-1,N)})})} function f(n){return new g.R0(function(D){setTimeout(D,n)})} var e=e===void 0?-1:e;return a(F7(r,V),I-1,d)}; Gd=function(r,V,I){xf.call(this,r+", errorCode="+V);this.errorCode=V;this.xhr=I;this.name="PromiseAjaxError"}; NWj=function(r){this.xhr=r}; L5=function(r){this.G=r===void 0?null:r;this.X=0;this.S=null}; Ja=function(r){var V=new L5;r=r===void 0?null:r;V.X=2;V.S=r===void 0?null:r;return V}; ZJ=function(r){var V=new L5;r=r===void 0?null:r;V.X=1;V.S=r===void 0?null:r;return V}; g.gB=function(r,V,I,d,a){X7||BR.set(""+r,V,{CO:I,path:"/",domain:d===void 0?"youtube.com":d,secure:a===void 0?!1:a})}; g.SJ=function(r,V){if(!X7)return BR.get(""+r,V)}; g.id=function(r,V,I){X7||BR.remove(""+r,V===void 0?"/":V,I===void 0?"youtube.com":I)}; sNr=function(){if(g.WR("embeds_web_enable_cookie_detection_fix")){if(!g.vr.navigator.cookieEnabled)return!1}else if(!BR.isEnabled())return!1;if(!BR.isEmpty())return!0;g.WR("embeds_web_enable_cookie_detection_fix")?BR.set("TESTCOOKIESENABLED","1",{CO:60,CIs:"none",secure:!0}):BR.set("TESTCOOKIESENABLED","1",{CO:60});if(BR.get("TESTCOOKIESENABLED")!=="1")return!1;BR.remove("TESTCOOKIESENABLED");return!0}; g.U=function(r,V){if(r)return r[V.name]}; Uh=function(r){var V=g.kt("INNERTUBE_HOST_OVERRIDE");V&&(r=String(V)+String(yE(r)));return r}; czX=function(r){var V={};g.WR("json_condensed_response")&&(V.prettyPrint="false");return r=DJ(r,V)}; Qr=function(r,V){var I=I===void 0?{}:I;r={method:V===void 0?"POST":V,mode:xQ(r)?"same-origin":"cors",credentials:xQ(r)?"same-origin":"include"};V={};for(var d=g.H(Object.keys(I)),a=d.next();!a.done;a=d.next())a=a.value,I[a]&&(V[a]=I[a]);Object.keys(V).length>0&&(r.headers=V);return r}; mg=function(){var r=/Chrome\/(\d+)/.exec(g.RZ());return r?parseFloat(r[1]):NaN}; ud=function(){var r=/\sCobalt\/(\S+)\s/.exec(g.RZ());if(!r)return NaN;var V=[];r=g.H(r[1].split("."));for(var I=r.next();!I.done;I=r.next())I=parseInt(I.value,10),I>=0&&V.push(I);return parseFloat(V.join("."))}; vR=function(){return g.p5("android")&&g.p5("chrome")&&!(g.p5("trident/")||g.p5("edge/"))&&!g.p5("cobalt")}; z9j=function(){return g.p5("armv7")||g.p5("aarch64")||g.p5("android")}; g.qL=function(){return g.p5("cobalt")}; PR=function(){return g.p5("cobalt")&&g.p5("appletv")}; o6=function(){return g.p5("(ps3; leanback shell)")||g.p5("ps3")&&g.qL()}; MkO=function(){return g.p5("(ps4; leanback shell)")||g.p5("ps4")&&g.qL()}; g.CPi=function(){return g.qL()&&(g.p5("ps4 vr")||g.p5("ps4 pro vr"))}; kQ=function(){var r=/WebKit\/([0-9]+)/.exec(g.RZ());return!!(r&&parseInt(r[1],10)>=600)}; ha=function(){var r=/WebKit\/([0-9]+)/.exec(g.RZ());return!!(r&&parseInt(r[1],10)>=602)}; TWv=function(){return g.p5("iemobile")||g.p5("windows phone")&&g.p5("edge")}; Ix=function(){return(rs||Vh)&&g.p5("applewebkit")&&!g.p5("version")&&(!g.p5("safari")||g.p5("gsa/"))}; ax=function(){return g.ds&&g.p5("version/")}; fo=function(){return g.p5("smart-tv")&&g.p5("samsung")}; g.p5=function(r){var V=g.RZ();return V?V.toLowerCase().indexOf(r)>=0:!1}; eb=function(){return dSg()||Ix()||ax()?!0:g.kt("EOM_VISITOR_DATA")?!1:!0}; Ym=function(r,V){return V===void 0||V===null?r:V==="1"||V===!0||V===1||V==="True"?!0:!1}; no=function(r,V,I){for(var d in I)if(I[d]==V)return I[d];return r}; jb=function(r,V){return V===void 0||V===null?r:Number(V)}; Dp=function(r,V){return V===void 0||V===null?r:V.toString()}; xm=function(r,V){if(V){if(r==="fullwidth")return Infinity;if(r==="fullheight")return 0}return r&&(V=r.match(HmA))&&(r=Number(V[2]),V=Number(V[1]),!isNaN(r)&&!isNaN(V)&&r>0)?V/r:NaN}; E3=function(r){var V=r.docid||r.video_id||r.videoId||r.id;if(V)return V;V=r.raw_player_response;V||(r=r.player_response)&&(V=JSON.parse(r));return V&&V.videoDetails&&V.videoDetails.videoId||null}; w4A=function(r){return N1(r,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.s3=function(r){return r==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||r==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; N1=function(r,V){V=(V===void 0?0:V)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(V="EMBEDDED_PLAYER_MODE_PFL");var I=r.raw_embedded_player_response;if(!I&&(r=r.embedded_player_response))try{I=JSON.parse(r)}catch(d){return V}return I?no(V,I.embeddedPlayerMode,bmj):V}; zc=function(r){xf.call(this,r.message||r.description||r.name);this.isMissing=r instanceof cJ;this.isTimeout=r instanceof Gd&&r.errorCode=="net.timeout";this.isCanceled=r instanceof Xs}; cJ=function(){xf.call(this,"Biscotti ID is missing from server")}; Omv=function(){if(g.WR("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!eb())return Error("User has not consented - not fetching biscotti id.");var r=g.kt("PLAYER_VARS",{});if(g.ro(r,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(w4A(r))return Error("Biscotti id fetching has been disabled for pfl.")}; R9g=function(){var r=Omv();if(r!==void 0)return A_(r);M1||(M1=F7("//googleads.g.doubleclick.net/pagead/id",WeU).then($cX).Q7(function(V){return KeX(2,V)})); return M1}; $cX=function(r){r=r.xhr.responseText;if(!Mi(r,")]}'"))throw new cJ;r=JSON.parse(r.substr(4));if((r.type||1)>1)throw new cJ;r=r.id;SdA(r);M1=ZJ(r);tkU(18E5,2);return r}; KeX=function(r,V){V=new zc(V);SdA("");M1=Ja(V);r>0&&tkU(12E4,r-1);throw V;}; tkU=function(r,V){g.Td(function(){F7("//googleads.g.doubleclick.net/pagead/id",WeU).then($cX,function(I){return KeX(V,I)}).Q7(g.cl)},r)}; yzS=function(){try{var r=g.Pr("yt.ads.biscotti.getId_");return r?r():R9g()}catch(V){return A_(V)}}; G9i=function(r){r&&(r.dataset?r.dataset[AzA()]="true":amA(r))}; FeX=function(r){return r?r.dataset?r.dataset[AzA()]:r.getAttribute("data-loaded"):null}; AzA=function(){return l2Z.loaded||(l2Z.loaded="loaded".replace(/\-([a-z])/g,function(r,V){return V.toUpperCase()}))}; Lei=function(){var r=document;if("visibilityState"in r)return r.visibilityState;var V=Co+"VisibilityState";if(V in r)return r[V]}; Tc=function(r,V){var I;r6(r,function(d){I=V[d];return!!I}); return I}; HJ=function(r){if(r.requestFullscreen)r=r.requestFullscreen(void 0);else if(r.webkitRequestFullscreen)r=r.webkitRequestFullscreen();else if(r.mozRequestFullScreen)r=r.mozRequestFullScreen();else if(r.msRequestFullscreen)r=r.msRequestFullscreen();else if(r.webkitEnterFullscreen)r=r.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return r instanceof Promise?r:Promise.resolve()}; O3=function(r){var V;g.ws()?bQ()==r&&(V=document):V=r;return V&&(r=Tc(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],V))?(V=r.call(V),V instanceof Promise?V:Promise.resolve()):Promise.resolve()}; JzX=function(r){return g.z6(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(V){return"on"+V.toLowerCase()in r})}; Zmj=function(){var r=document;return g.z6(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(V){return"on"+V.toLowerCase()in r})}; g.ws=function(){return!!Tc(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; bQ=function(r){r=r===void 0?!1:r;var V=Tc(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(r)for(;V&&V.shadowRoot;)V=V.shadowRoot.fullscreenElement;return V?V:null}; WJ=function(r){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(r=r||window.event){this.event=r;for(var V in r)V in X4r||(this[V]=r[V]);this.scale=r.scale;this.rotation=r.rotation;var I=r.target||r.srcElement;I&&I.nodeType==3&&(I=I.parentNode);this.target=I;var d=r.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(a){d=null}else this.type=="mouseover"?d=r.fromElement:this.type=="mouseout"&&(d=r.toElement);this.relatedTarget=d;this.clientX=r.clientX!=void 0?r.clientX:r.pageX;this.clientY=r.clientY!=void 0?r.clientY:r.pageY;this.keyCode=r.keyCode?r.keyCode:r.which;this.charCode=r.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=r.altKey;this.ctrlKey=r.ctrlKey;this.shiftKey=r.shiftKey;this.metaKey=r.metaKey;this.G=r.pageX;this.X=r.pageY}}catch(a){}}; BWZ=function(r){if(document.body&&document.documentElement){var V=document.body.scrollTop+document.documentElement.scrollTop;r.G=r.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);r.X=r.clientY+V}}; gyU=function(r,V,I,d){d=d===void 0?{}:d;r.addEventListener&&(V!="mouseenter"||"onmouseenter"in document?V!="mouseleave"||"onmouseenter"in document?V=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(V="MozMousePixelScroll"):V="mouseout":V="mouseover");return kf($m,function(a){var f=typeof a[4]==="boolean"&&a[4]==!!d,e=g.Vc(a[4])&&g.Vc(d)&&g.V3(a[4],d);return!!a.length&&a[0]==r&&a[1]==V&&a[2]==I&&(f||e)})}; g.Ko=function(r,V,I,d){d=d===void 0?{}:d;if(!r||!r.addEventListener&&!r.attachEvent)return"";var a=gyU(r,V,I,d);if(a)return a;a=++SKX.count+"";var f=!(V!="mouseenter"&&V!="mouseleave"||!r.addEventListener||"onmouseenter"in document);var e=f?function(n){n=new WJ(n);if(!ny(n.relatedTarget,function(D){return D==r},!0))return n.currentTarget=r,n.type=V,I.call(r,n)}:function(n){n=new WJ(n); n.currentTarget=r;return I.call(r,n)}; e=g.I6(e);r.addEventListener?(V=="mouseenter"&&f?V="mouseover":V=="mouseleave"&&f?V="mouseout":V=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(V="MozMousePixelScroll"),imA()||typeof d==="boolean"?r.addEventListener(V,e,d):r.addEventListener(V,e,!!d.capture)):r.attachEvent("on"+V,e);$m[a]=[r,V,I,e,d];return a}; QNX=function(r){return Uch(r,function(V){return g.nL(V,"ytp-ad-has-logging-urls")})}; Uch=function(r,V){var I=document.body||document;return g.Ko(I,"click",function(d){var a=ny(d.target,function(f){return f===I||V(f)},!0); a&&a!==I&&!a.disabled&&(d.currentTarget=a,r.call(a,d))})}; g.Rx=function(r){r&&(typeof r=="string"&&(r=[r]),g.B9(r,function(V){if(V in $m){var I=$m[V],d=I[0],a=I[1],f=I[3];I=I[4];d.removeEventListener?imA()||typeof I==="boolean"?d.removeEventListener(a,f,I):d.removeEventListener(a,f,!!I.capture):d.detachEvent&&d.detachEvent("on"+a,f);delete $m[V]}}))}; tZ=function(r){for(var V in $m)$m[V][0]==r&&g.Rx(V)}; yh=function(r){r=r||window.event;var V;r.composedPath&&typeof r.composedPath==="function"?V=r.composedPath():V=r.path;V&&V.length?r=V[0]:(r=r||window.event,r=r.target||r.srcElement,r.nodeType==3&&(r=r.parentNode));return r}; AZ=function(r){this.L=r;this.G=null;this.Y=0;this.C=null;this.W=0;this.X=[];for(r=0;r<4;r++)this.X.push(0);this.S=0;this.kc=g.Ko(window,"mousemove",(0,g.aG)(this.V,this));this.j=g.HR((0,g.aG)(this.QH,this),25)}; Gc=function(r){g.X.call(this);this.j=[];this.X_=r||this}; F2=function(r,V,I,d){for(var a=0;a0?I:0;I=d?Date.now()+d*1E3:0;if((d=d?(0,g.JZ)():Zp())&&window.JSON){typeof V!=="string"&&(V=JSON.stringify(V,void 0));try{d.set(r,V,I)}catch(a){d.remove(r)}}}; g.BJ=function(r){var V=Zp(),I=(0,g.JZ)();if(!V&&!I||!window.JSON)return null;try{var d=V.get(r)}catch(a){}if(typeof d!=="string")try{d=I.get(r)}catch(a){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(a){}return d}; p4h=function(){var r=(0,g.JZ)();if(r&&(r=r.X("yt-player-quality")))return r.creation}; g.gs=function(r){try{var V=Zp(),I=(0,g.JZ)();V&&V.remove(r);I&&I.remove(r)}catch(d){}}; g.Sb=function(){return g.BJ("yt-remote-session-screen-id")}; vyO=function(r){var V=this;this.X=void 0;this.G=!1;r.addEventListener("beforeinstallprompt",function(I){I.preventDefault();V.X=I}); r.addEventListener("appinstalled",function(){V.G=!0},{once:!0})}; iQ=function(){if(!g.vr.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.vr.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.vr.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.vr.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.vr.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(r){return"WEB_DISPLAY_MODE_UNKNOWN"}}; U3=function(){this.OJ=!0}; qKi=function(){U3.instance||(U3.instance=new U3);return U3.instance}; PPU=function(r){switch(r){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}}; oyj=function(){this.G=g.kt("ALT_PREF_COOKIE_NAME","PREF");this.X=g.kt("ALT_PREF_COOKIE_DOMAIN","youtube.com");var r=g.SJ(this.G);r&&this.parse(r)}; g.mL=function(){Qh||(Qh=new oyj);return Qh}; g.uQ=function(r,V){return!!((k9h("f"+(Math.floor(V/31)+1))||0)&1<0;)switch(r=cQ.shift(),r.type){case "ERROR":DO.ML(r.payload);break;case "EVENT":DO.logEvent(r.eventType,r.payload)}}; M9=function(r){zv||(DO?DO.ML(r):(cQ.push({type:"ERROR",payload:r}),cQ.length>10&&cQ.shift()))}; CH=function(r,V){zv||(DO?DO.logEvent(r,V):(cQ.push({type:"EVENT",eventType:r,payload:V}),cQ.length>10&&cQ.shift()))}; Tv=function(r){if(r.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; HQ=function(r){return r.substr(0,r.indexOf(":"))||r}; g.wC=function(r,V,I,d,a){V=V===void 0?{}:V;I=I===void 0?eGX[r]:I;d=d===void 0?Y8v[r]:d;a=a===void 0?nSA[r]:a;g.ox.call(this,I,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:r},V));this.type=r;this.message=I;this.level=d;this.G=a;Object.setPrototypeOf(this,g.wC.prototype)}; bO=function(r,V){g.wC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:V,foundObjectStores:r},eGX.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,bO.prototype)}; Os=function(r,V){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.index=r;this.objectStore=V;Object.setPrototypeOf(this,Os.prototype)}; $w=function(r,V,I,d){V=HQ(V);var a=r instanceof Error?r:Error("Unexpected error: "+r);if(a instanceof g.wC)return a;r={objectStoreNames:I,dbName:V,dbVersion:d};if(a.name==="QuotaExceededError")return new g.wC("QUOTA_EXCEEDED",r);if(g.WQ&&a.name==="UnknownError")return new g.wC("QUOTA_MAYBE_EXCEEDED",r);if(a instanceof Os)return new g.wC("MISSING_INDEX",Object.assign({},r,{objectStore:a.objectStore,index:a.index}));if(a.name==="InvalidStateError"&&jsr.some(function(f){return a.message.includes(f)}))return new g.wC("EXECUTE_TRANSACTION_ON_CLOSED_DB", r); if(a.name==="AbortError")return new g.wC("UNKNOWN_ABORT",r,a.message);a.args=[Object.assign({},r,{name:"IdbError",FD:a.name})];a.level="WARNING";return a}; g.KH=function(r,V,I){var d=jT();return new g.wC("IDB_NOT_SUPPORTED",{context:{caller:r,publicName:V,version:I,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})}; DAU=function(r){if(!r)throw Error();throw r;}; xAh=function(r){return r}; RY=function(r){this.G=r}; g.t1=function(r){function V(a){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:a};a=g.H(d.X);for(var f=a.next();!f.done;f=a.next())f=f.value,f()}} function I(a){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:a};a=g.H(d.G);for(var f=a.next();!f.done;f=a.next())f=f.value,f()}} var d=this;this.state={status:"PENDING"};this.G=[];this.X=[];r=r.G;try{r(I,V)}catch(a){V(a)}}; ESZ=function(r,V,I,d,a){try{if(r.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var f=I(r.state.value);f instanceof g.t1?ys(r,V,f,d,a):d(f)}catch(e){a(e)}}; N3X=function(r,V,I,d,a){try{if(r.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var f=I(r.state.reason);f instanceof g.t1?ys(r,V,f,d,a):d(f)}catch(e){a(e)}}; ys=function(r,V,I,d,a){V===I?a(new TypeError("Circular promise chain detected.")):I.then(function(f){f instanceof g.t1?ys(r,V,f,d,a):d(f)},function(f){a(f)})}; ssX=function(r,V,I){function d(){I(r.error);f()} function a(){V(r.result);f()} function f(){try{r.removeEventListener("success",a),r.removeEventListener("error",d)}catch(e){}} r.addEventListener("success",a);r.addEventListener("error",d)}; cOi=function(r){return new Promise(function(V,I){ssX(r,V,I)})}; A1=function(r){return new g.t1(new RY(function(V,I){ssX(r,V,I)}))}; Gv=function(r,V){return new g.t1(new RY(function(I,d){function a(){var f=r?V(r):null;f?f.then(function(e){r=e;a()},d):I()} a()}))}; zGr=function(r,V){this.request=r;this.cursor=V}; MNp=function(r){return A1(r).then(function(V){return V?new zGr(r,V):null})}; g.CFr=function(r){r.cursor.continue(void 0);return MNp(r.request)}; T3j=function(r,V){this.G=r;this.options=V;this.transactionCount=0;this.S=Math.round((0,g.m)());this.X=!1}; g.lO=function(r,V,I){r=r.G.createObjectStore(V,I);return new Fu(r)}; LH=function(r,V){r.G.objectStoreNames.contains(V)&&r.G.deleteObjectStore(V)}; g.Xu=function(r,V,I){return g.J1(r,[V],{mode:"readwrite",Wp:!0},function(d){return g.ZO(d.objectStore(V),I)})}; g.J1=function(r,V,I,d){var a,f,e,n,D,x,E,N,c,z,M,w;return g.L(function(b){switch(b.X){case 1:var W={mode:"readonly",Wp:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof I==="string"?W.mode=I:Object.assign(W,I);a=W;r.transactionCount++;f=a.Wp?3:1;e=0;case 2:if(n){b.qk(4);break}e++;D=Math.round((0,g.m)());g.wA(b,5);x=r.G.transaction(V,a.mode);W=new BQ(x);W=HLi(W,d);return g.G(b,W,7);case 7:return E=b.G,N=Math.round((0,g.m)()),wmA(r,D,N,e,void 0,V.join(),a),b.return(E);case 5:c=g.th(b);z=Math.round((0,g.m)()); M=$w(c,r.G.name,V.join(),r.G.version);if((w=M instanceof g.wC&&!M.G)||e>=f)wmA(r,D,z,e,M,V.join(),a),n=M;b.qk(2);break;case 4:return b.return(Promise.reject(n))}})}; wmA=function(r,V,I,d,a,f,e){V=I-V;a?(a instanceof g.wC&&(a.type==="QUOTA_EXCEEDED"||a.type==="QUOTA_MAYBE_EXCEEDED")&&CH("QUOTA_EXCEEDED",{dbName:HQ(r.G.name),objectStoreNames:f,transactionCount:r.transactionCount,transactionMode:e.mode}),a instanceof g.wC&&a.type==="UNKNOWN_ABORT"&&(I-=r.S,I<0&&I>=2147483648&&(I=0),CH("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:V,transactionCount:r.transactionCount,dbDuration:I}),r.X=!0),bLA(r,!1,d,f,V,e.tag),M9(a)):bLA(r,!0,d,f,V, e.tag)}; bLA=function(r,V,I,d,a,f){CH("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:r.X,duration:a,isSuccessful:V,tryCount:I,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; Fu=function(r){this.G=r}; g.gC=function(r,V,I){r.G.createIndex(V,I,{unique:!1})}; OLg=function(r,V){return g.ST(r,{query:V},function(I){return I.delete().then(function(){return g.iO(I)})}).then(function(){})}; WTj=function(r,V,I){var d=[];return g.ST(r,{query:V},function(a){if(!(I!==void 0&&d.length>=I))return d.push(a.getValue()),g.iO(a)}).then(function(){return d})}; KTp=function(r){return"getAllKeys"in IDBObjectStore.prototype?A1(r.G.getAllKeys(void 0,void 0)):$Ag(r)}; $Ag=function(r){var V=[];return g.RGi(r,{query:void 0},function(I){V.push(I.cursor.primaryKey);return g.CFr(I)}).then(function(){return V})}; g.ZO=function(r,V,I){return A1(r.G.put(V,I))}; g.ST=function(r,V,I){r=r.G.openCursor(V.query,V.direction);return Us(r).then(function(d){return Gv(d,I)})}; g.RGi=function(r,V,I){var d=V.query;V=V.direction;r="openKeyCursor"in IDBObjectStore.prototype?r.G.openKeyCursor(d,V):r.G.openCursor(d,V);return MNp(r).then(function(a){return Gv(a,I)})}; BQ=function(r){var V=this;this.G=r;this.S=new Map;this.X=!1;this.done=new Promise(function(I,d){V.G.addEventListener("complete",function(){I()}); V.G.addEventListener("error",function(a){a.currentTarget===a.target&&d(V.G.error)}); V.G.addEventListener("abort",function(){var a=V.G.error;if(a)d(a);else if(!V.X){a=g.wC;for(var f=V.G.objectStoreNames,e=[],n=0;n=I))return d.push(a.getValue()),g.iO(a)}).then(function(){return d})}; g.Qs=function(r,V,I){r=r.G.openCursor(V.query===void 0?null:V.query,V.direction===void 0?"next":V.direction);return Us(r).then(function(d){return Gv(d,I)})}; m4=function(r,V){this.request=r;this.cursor=V}; Us=function(r){return A1(r).then(function(V){return V?new m4(r,V):null})}; g.iO=function(r){r.cursor.continue(void 0);return Us(r.request)}; AOO=function(r,V,I){return new Promise(function(d,a){function f(){c||(c=new T3j(e.result,{closed:N}));return c} var e=V!==void 0?self.indexedDB.open(r,V):self.indexedDB.open(r);var n=I.blocked,D=I.blocking,x=I.TY0,E=I.upgrade,N=I.closed,c;e.addEventListener("upgradeneeded",function(z){try{if(z.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(e.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");z.dataLoss&&z.dataLoss!=="none"&&CH("IDB_DATA_CORRUPTED",{reason:z.dataLossMessage||"unknown reason",dbName:HQ(r)});var M=f(),w=new BQ(e.transaction); E&&E(M,function(b){return z.oldVersion=b},w); w.done.catch(function(b){a(b)})}catch(b){a(b)}}); e.addEventListener("success",function(){var z=e.result;D&&z.addEventListener("versionchange",function(){D(f())}); z.addEventListener("close",function(){CH("IDB_UNEXPECTEDLY_CLOSED",{dbName:HQ(r),dbVersion:z.version});x&&x()}); d(f())}); e.addEventListener("error",function(){a(e.error)}); n&&e.addEventListener("blocked",function(){n()})})}; Gev=function(r,V,I){I=I===void 0?{}:I;return AOO(r,V,I)}; uO=function(r,V){V=V===void 0?{}:V;var I,d,a,f;return g.L(function(e){if(e.X==1)return g.wA(e,2),I=self.indexedDB.deleteDatabase(r),d=V,(a=d.blocked)&&I.addEventListener("blocked",function(){a()}),g.G(e,cOi(I),4); if(e.X!=2)return g.$v(e,0);f=g.th(e);throw $w(f,r,"",-1);})}; pH=function(r,V){this.name=r;this.options=V;this.S=!0;this.W=this.Y=0}; FTg=function(r,V){return new g.wC("INCOMPATIBLE_DB_VERSION",{dbName:r.name,oldVersion:r.options.version,newVersion:V})}; g.vQ=function(r,V){if(!V)throw g.KH("openWithToken",HQ(r.name));return r.open()}; lXA=function(r,V){var I;return g.L(function(d){if(d.X==1)return g.G(d,g.vQ(q9,V),2);I=d.G;return d.return(g.J1(I,["databases"],{Wp:!0,mode:"readwrite"},function(a){var f=a.objectStore("databases");return f.get(r.actualName).then(function(e){if(e?r.actualName!==e.actualName||r.publicName!==e.publicName||r.userIdentifier!==e.userIdentifier:1)return g.ZO(f,r).then(function(){})})}))})}; PQ=function(r,V){var I;return g.L(function(d){if(d.X==1)return r?g.G(d,g.vQ(q9,V),2):d.return();I=d.G;return d.return(I.delete("databases",r))})}; LTS=function(r,V){var I,d;return g.L(function(a){return a.X==1?(I=[],g.G(a,g.vQ(q9,V),2)):a.X!=3?(d=a.G,g.G(a,g.J1(d,["databases"],{Wp:!0,mode:"readonly"},function(f){I.length=0;return g.ST(f.objectStore("databases"),{},function(e){r(e.getValue())&&I.push(e.getValue());return g.iO(e)})}),3)):a.return(I)})}; JOi=function(r,V){return LTS(function(I){return I.publicName===r&&I.userIdentifier!==void 0},V)}; ZLA=function(){var r,V,I,d;return g.L(function(a){switch(a.X){case 1:r=jT();if((V=r)==null?0:V.hasSucceededOnce)return a.return(!0);if(oY&&kQ()&&!ha()||g.kw)return a.return(!1);try{if(I=self,!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore))return a.return(!1)}catch(f){return a.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return a.return(!1);g.wA(a,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.G(a,lXA(d,h1),4);case 4:return g.G(a,PQ("yt-idb-test-do-not-use",h1),5);case 5:return a.return(!0);case 2:return g.th(a),a.return(!1)}})}; Xmg=function(){if(rQ!==void 0)return rQ;zv=!0;return rQ=ZLA().then(function(r){zv=!1;var V;if((V=nH())!=null&&V.G){var I;V={hasSucceededOnce:((I=jT())==null?void 0:I.hasSucceededOnce)||r};var d;(d=nH())==null||d.set("LAST_RESULT_ENTRY_KEY",V,2592E3,!0)}return r})}; VB=function(){return g.Pr("ytglobal.idbToken_")||void 0}; g.I1=function(){var r=VB();return r?Promise.resolve(r):Xmg().then(function(V){(V=V?h1:void 0)&&g.qp("ytglobal.idbToken_",V);return V})}; B3X=function(r){if(!g.hZ())throw r=new g.wC("AUTH_INVALID",{dbName:r}),M9(r),r;var V=g.km();return{actualName:r+":"+V,publicName:r,userIdentifier:V}}; gSi=function(r,V,I,d){var a,f,e,n,D,x;return g.L(function(E){switch(E.X){case 1:return f=(a=Error().stack)!=null?a:"",g.G(E,g.I1(),2);case 2:e=E.G;if(!e)throw n=g.KH("openDbImpl",r,V),g.WR("ytidb_async_stack_killswitch")||(n.stack=n.stack+"\n"+f.substring(f.indexOf("\n")+1)),M9(n),n;Tv(r);D=I?{actualName:r,publicName:r,userIdentifier:void 0}:B3X(r);g.wA(E,3);return g.G(E,lXA(D,e),5);case 5:return g.G(E,Gev(D.actualName,V,d),6);case 6:return E.return(E.G);case 3:return x=g.th(E),g.wA(E,7),g.G(E,PQ(D.actualName, e),9);case 9:g.$v(E,8);break;case 7:g.th(E);case 8:throw x;}})}; S8p=function(r,V,I){I=I===void 0?{}:I;return gSi(r,V,!1,I)}; iLX=function(r,V,I){I=I===void 0?{}:I;return gSi(r,V,!0,I)}; UAj=function(r,V){V=V===void 0?{}:V;var I,d;return g.L(function(a){if(a.X==1)return g.G(a,g.I1(),2);if(a.X!=3){I=a.G;if(!I)return a.return();Tv(r);d=B3X(r);return g.G(a,uO(d.actualName,V),3)}return g.G(a,PQ(d.actualName,I),0)})}; QsA=function(r,V,I){r=r.map(function(d){return g.L(function(a){return a.X==1?g.G(a,uO(d.actualName,V),2):g.G(a,PQ(d.actualName,I),0)})}); return Promise.all(r).then(function(){})}; mAA=function(r){var V=V===void 0?{}:V;var I,d;return g.L(function(a){if(a.X==1)return g.G(a,g.I1(),2);if(a.X!=3){I=a.G;if(!I)return a.return();Tv(r);return g.G(a,JOi(r,I),3)}d=a.G;return g.G(a,QsA(d,V,I),0)})}; ukj=function(r,V){V=V===void 0?{}:V;var I;return g.L(function(d){if(d.X==1)return g.G(d,g.I1(),2);if(d.X!=3){I=d.G;if(!I)return d.return();Tv(r);return g.G(d,uO(r,V),3)}return g.G(d,PQ(r,I),0)})}; dQ=function(r,V){pH.call(this,r,V);this.options=V;Tv(r)}; pmj=function(r,V){var I;return function(){I||(I=new dQ(r,V));return I}}; g.a1=function(r,V){return pmj(r,V)}; fA=function(r){return g.vQ(vSg(),r)}; q8X=function(r,V,I,d){var a,f,e;return g.L(function(n){switch(n.X){case 1:return a={config:r,hashData:V,timestamp:d!==void 0?d:(0,g.m)()},g.G(n,fA(I),2);case 2:return f=n.G,g.G(n,f.clear("hotConfigStore"),3);case 3:return g.G(n,g.Xu(f,"hotConfigStore",a),4);case 4:return e=n.G,n.return(e)}})}; PFj=function(r,V,I,d,a){var f,e,n;return g.L(function(D){switch(D.X){case 1:return f={config:r,hashData:V,configData:I,timestamp:a!==void 0?a:(0,g.m)()},g.G(D,fA(d),2);case 2:return e=D.G,g.G(D,e.clear("coldConfigStore"),3);case 3:return g.G(D,g.Xu(e,"coldConfigStore",f),4);case 4:return n=D.G,D.return(n)}})}; oSj=function(r){var V,I;return g.L(function(d){return d.X==1?g.G(d,fA(r),2):d.X!=3?(V=d.G,I=void 0,g.G(d,g.J1(V,["coldConfigStore"],{mode:"readwrite",Wp:!0},function(a){return g.Qs(a.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){I=f.getValue()})}),3)):d.return(I)})}; keX=function(r){var V,I;return g.L(function(d){return d.X==1?g.G(d,fA(r),2):d.X!=3?(V=d.G,I=void 0,g.G(d,g.J1(V,["hotConfigStore"],{mode:"readwrite",Wp:!0},function(a){return g.Qs(a.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){I=f.getValue()})}),3)):d.return(I)})}; hGi=function(){return g.L(function(r){return g.G(r,mAA("ytGcfConfig"),0)})}; eF=function(){g.X.call(this);this.X=[];this.G=[];var r=g.Pr("yt.gcf.config.hotUpdateCallbacks");r?(this.X=[].concat(g.R(r)),this.G=r):(this.G=[],g.qp("yt.gcf.config.hotUpdateCallbacks",this.G))}; Ec=function(){var r=this;this.W=!1;this.S=this.Y=0;this.C=new eF;this.m_={zvc:function(){r.W=!0}, R4k:function(){return r.G}, L60:function(V){YA(r,V)}, OL:function(V){r.OL(V)}, oz0:function(V){nA(r,V)}, xH:function(){return r.coldHashData}, QP:function(){return r.hotHashData}, aU0:function(){return r.X}, ZRL:function(){return jF()}, jF0:function(){return DZ()}, Kac:function(){return g.Pr("yt.gcf.config.coldHashData")}, deL:function(){return g.Pr("yt.gcf.config.hotHashData")}, DZ7:function(){rLi(r)}, YLH:function(){r.OL(void 0);xA(r);delete Ec.instance}, zoC:function(V){r.S=V}, z4E:function(){return r.S}}}; VPi=function(){if(!Ec.instance){var r=new Ec;Ec.instance=r}return Ec.instance}; acX=function(r){var V;g.L(function(I){if(I.X==1)return g.WR("start_client_gcf")||g.WR("delete_gcf_config_db")?g.WR("start_client_gcf")?g.G(I,g.I1(),3):I.qk(2):I.return();I.X!=2&&((V=I.G)&&g.hZ()&&!g.WR("delete_gcf_config_db")?(r.W=!0,rLi(r)):(Ich(r),dXO(r)));return g.WR("delete_gcf_config_db")?g.G(I,hGi(),0):I.qk(0)})}; N0=function(){var r;return(r=DZ())!=null?r:g.kt("RAW_HOT_CONFIG_GROUP")}; fcg=function(r){var V,I,d,a,f,e;return g.L(function(n){switch(n.X){case 1:if(r.X)return n.return(DZ());if(!r.W)return V=g.KH("getHotConfig IDB not initialized"),dB(V),n.return(Promise.reject(V));I=VB();d=g.kt("TIME_CREATED_MS");if(!I){a=g.KH("getHotConfig token error");dB(a);n.qk(2);break}return g.G(n,keX(I),3);case 3:if((f=n.G)&&f.timestamp>d)return YA(r,f.config),r.OL(f.hashData),n.return(DZ());case 2:dXO(r);if(!(I&&r.X&&r.hotHashData)){n.qk(4);break}return g.G(n,q8X(r.X,r.hotHashData,I,d),4);case 4:return r.X? n.return(DZ()):(e=new g.ox("Config not available in ytConfig"),dB(e),n.return(Promise.reject(e)))}})}; Yvg=function(r){var V,I,d,a,f,e;return g.L(function(n){switch(n.X){case 1:if(r.G)return n.return(jF());if(!r.W)return V=g.KH("getColdConfig IDB not initialized"),dB(V),n.return(Promise.reject(V));I=VB();d=g.kt("TIME_CREATED_MS");if(!I){a=g.KH("getColdConfig");dB(a);n.qk(2);break}return g.G(n,oSj(I),3);case 3:if((f=n.G)&&f.timestamp>d)return nA(r,f.config),e1X(r,f.configData),xA(r,f.hashData),n.return(jF());case 2:Ich(r);if(!(I&&r.G&&r.coldHashData&&r.configData)){n.qk(4);break}return g.G(n,PFj(r.G, r.coldHashData,r.configData,I,d),4);case 4:return r.G?n.return(jF()):(e=new g.ox("Config not available in ytConfig"),dB(e),n.return(Promise.reject(e)))}})}; rLi=function(r){if(!r.X||!r.G){if(!VB()){var V=g.KH("scheduleGetConfigs");dB(V)}r.Y||(r.Y=g.Qa.Dm(function(){return g.L(function(I){switch(I.X){case 1:return g.wA(I,2),g.G(I,fcg(r),4);case 4:g.$v(I,3);break;case 2:g.th(I);case 3:return g.wA(I,5),g.G(I,Yvg(r),7);case 7:g.$v(I,6);break;case 5:g.th(I);case 6:r.Y&&(r.Y=0),g.Hr(I)}})},100))}}; ntv=function(r,V,I){var d,a,f;return g.L(function(e){switch(e.X){case 1:if(!g.WR("start_client_gcf")){e.qk(0);break}I&&YA(r,I);r.OL(V);d=VB();if(!d){e.qk(3);break}if(I){e.qk(4);break}return g.G(e,keX(d),5);case 5:a=e.G,I=(f=a)==null?void 0:f.config;case 4:return g.G(e,q8X(I,V,d),3);case 3:if(I)for(var n=I,D=g.H(r.C.G),x=D.next();!x.done;x=D.next())x=x.value,x(n);g.Hr(e)}})}; jqr=function(r,V,I){var d,a,f,e;return g.L(function(n){if(n.X==1){if(!g.WR("start_client_gcf"))return n.qk(0);xA(r,V);return(d=VB())?I?n.qk(4):g.G(n,oSj(d),5):n.qk(0)}n.X!=4&&(a=n.G,I=(f=a)==null?void 0:f.config);if(!I)return n.qk(0);e=I.configData;return g.G(n,PFj(I,V,e,d),0)})}; DXv=function(){var r=VPi(),V=(0,g.m)()-r.S;if(!(r.S!==0&&V0&&(V.request={internalExperimentFlags:I});EtZ(r,void 0,V);N8r(void 0,V);sqi(void 0,V);cLp(r,void 0,V);z1g(void 0,V);g.WR("start_client_gcf")&&MPi(void 0,V);g.kt("DELEGATED_SESSION_ID")&& !g.WR("pageid_as_header_web")&&(V.user={onBehalfOfUser:g.kt("DELEGATED_SESSION_ID")});!g.WR("fill_delegate_context_in_gel_killswitch")&&(r=g.kt("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(V.user=Object.assign({},V.user,{serializedDelegationContext:r}));r=g.kt("INNERTUBE_CONTEXT");var d;if(g.WR("enable_persistent_device_token")&&(r==null?0:(d=r.client)==null?0:d.rolloutToken)){var a;V.client.rolloutToken=r==null?void 0:(a=r.client)==null?void 0:a.rolloutToken}d=Object;a=d.assign;r=V.client; I={};for(var f=g.H(Object.entries(eJ(g.kt("DEVICE","")))),e=f.next();!e.done;e=f.next()){var n=g.H(e.value);e=n.next().value;n=n.next().value;e==="cbrand"?I.deviceMake=n:e==="cmodel"?I.deviceModel=n:e==="cbr"?I.browserName=n:e==="cbrver"?I.browserVersion=n:e==="cos"?I.osName=n:e==="cosver"?I.osVersion=n:e==="cplatform"&&(I.platform=n)}V.client=a.call(d,r,I);return V}; EtZ=function(r,V,I){r=r.Ob;if(r==="WEB"||r==="MWEB"||r===1||r===2)if(V){I=iT(V,FF,96)||new FF;var d=iQ();d=Object.keys(C9X).indexOf(d);d=d===-1?null:d;d!==null&&Ir(I,3,d);mv(V,FF,96,I)}else I&&(I.client.mainAppWebInfo=(d=I.client.mainAppWebInfo)!=null?d:{},I.client.mainAppWebInfo.webDisplayMode=iQ())}; N8r=function(r,V){var I=g.Pr("yt.embedded_player.embed_url");I&&(r?(V=iT(r,XF,7)||new XF,rZ(V,4,I),mv(r,XF,7,V)):V&&(V.thirdParty={embedUrl:I}))}; sqi=function(r,V){var I;if(g.WR("web_log_memory_total_kbytes")&&((I=g.vr.navigator)==null?0:I.deviceMemory)){var d;I=(d=g.vr.navigator)==null?void 0:d.deviceMemory;r?bT(r,95,pr(I*1E6)):V&&(V.client.memoryTotalKbytes=""+I*1E6)}}; cLp=function(r,V,I){if(r.appInstallData)if(V){var d;I=(d=iT(V,G$,62))!=null?d:new G$;rZ(I,6,r.appInstallData);mv(V,G$,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},I.client.configInfo.appInstallData=r.appInstallData)}; z1g=function(r,V){var I=VNr();I&&(r?Ir(r,61,T8j[I]):V&&(V.client.connectionType=I));g.WR("web_log_effective_connection_type")&&(I=dAj())&&(r?Ir(r,94,H2A[I]):V&&(V.client.effectiveConnectionType=I))}; wyj=function(r,V,I){I=I===void 0?{}:I;var d={};g.kt("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.kt("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":I.visitorData||g.kt("VISITOR_DATA","")};if(V&&V.includes("www.youtube-nocookie.com"))return d;V=I.dN||g.kt("AUTHORIZATION");V||(r?V="Bearer "+g.Pr("gapi.auth.getToken")().access_token:(r=qKi().X$(zT),g.WR("pageid_as_header_web")||delete r["X-Goog-PageId"],d=Object.assign({},d,r)));V&&(d.Authorization=V);return d}; MPi=function(r,V){var I=DXv();if(I){var d=I.coldConfigData,a=I.coldHashData;I=I.hotHashData;if(r){var f;V=(f=iT(r,G$,62))!=null?f:new G$;d=rZ(V,1,d);rZ(d,3,a).OL(I);mv(r,G$,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},d&&(V.client.configInfo.coldConfigData=d),a&&(V.client.configInfo.coldHashData=a),I&&(V.client.configInfo.hotHashData=I))}}; M0=function(r,V){this.version=r;this.args=V}; Oc=function(r,V){this.topic=r;this.G=V}; $A=function(r,V){var I=WH();I&&I.publish.call(I,r.toString(),r,V)}; Wkg=function(r){var V=b2h,I=WH();if(!I)return 0;var d=I.subscribe(V.toString(),function(a,f){var e=g.Pr("ytPubsub2Pubsub2SkipSubKey");e&&e==d||(e=function(){if(KA[d])try{if(f&&V instanceof Oc&&V!=a)try{var n=V.G,D=f;if(!D.args||!D.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!n.aE){var x=new n;n.aE=x.version}var E=n.aE}catch(N){}if(!E||D.version!=E)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(n, g.W9(D.args))}catch(N){throw N.message="yt.pubsub2.Data.deserialize(): "+N.message,N;}}catch(N){throw N.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+V.toString()+": "+N.message,N;}r.call(window,f)}catch(N){g.Vr(N)}},O2g[V.toString()]?g.fH()?g.Qa.Dm(e):g.Td(e,0):e())}); KA[d]=!0;R1[V.toString()]||(R1[V.toString()]=[]);R1[V.toString()].push(d);return d}; R1r=function(){var r=$XU,V=Wkg(function(I){r.apply(void 0,arguments);Kkh(V)}); return V}; Kkh=function(r){var V=WH();V&&(typeof r==="number"&&(r=[r]),g.B9(r,function(I){V.unsubscribeByKey(I);delete KA[I]}))}; WH=function(){return g.Pr("ytPubsub2Pubsub2Instance")}; tB=function(r,V,I){I=I===void 0?{sampleRate:.1}:I;Math.random()lcA||e=Xyi&&(BH++,g.WR("abandon_compression_after_N_slow_zips")?Xm===g.$Q("compression_disable_point")&&BH>B8p&&(LA=!1):LA=!1);gtZ(V);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=r;d.postParams=void 0;a(I,d)}; Svr=function(r){var V=V===void 0?!1:V;var I=I===void 0?!1:I;var d=(0,g.m)(),a={startTime:d,ticks:{},infos:{}},f=V?g.Pr("yt.logging.gzipForFetch",!1):!0;if(LA&&f){if(!r.body)return r;try{var e=I?r.body:typeof r.body==="string"?r.body:JSON.stringify(r.body);f=e;if(!I&&typeof e==="string"){var n=FkZ(e);if(n!=null&&(n>lcA||n=Xyi)if(BH++,g.WR("abandon_compression_after_N_slow_zips")||g.WR("abandon_compression_after_N_slow_zips_lr")){V=BH/Xm;var x=B8p/g.$Q("compression_disable_point");Xm>0&&Xm%g.$Q("compression_disable_point")===0&&V>=x&&(LA=!1)}else LA=!1;gtZ(a)}}r.headers=Object.assign({},{"Content-Encoding":"gzip"},r.headers||{});r.body=f;return r}catch(E){return dB(E),r}}else return r}; FkZ=function(r){try{return(new Blob(r.split(""))).size}catch(V){return dB(V),null}}; gtZ=function(r){g.WR("gel_compression_csi_killswitch")||!g.WR("log_gel_compression_latency")&&!g.WR("log_gel_compression_latency_lr")||tB("gel_compression",r,{sampleRate:.1})}; SF=function(r){var V=this;this.AJ=this.G=!1;this.potentialEsfErrorCounter=this.X=0;this.handleError=function(){}; this.Zb=function(){}; this.now=Date.now;this.A1=!1;this.m_={W68:function(E){V.PK=E}, Vj8:function(){V.ud()}, bY:function(){V.ZL()}, a9:function(E){return g.L(function(N){return g.G(N,V.a9(E),0)})}, xj:function(E,N){return V.xj(E,N)}, yK:function(){V.yK()}}; var I;this.wO=(I=r.wO)!=null?I:100;var d;this.pV=(d=r.pV)!=null?d:1;var a;this.w2=(a=r.w2)!=null?a:2592E6;var f;this.yW=(f=r.yW)!=null?f:12E4;var e;this.Yp=(e=r.Yp)!=null?e:5E3;var n;this.PK=(n=r.PK)!=null?n:void 0;this.t_=!!r.t_;var D;this.Q9=(D=r.Q9)!=null?D:.1;var x;this.WF=(x=r.WF)!=null?x:10;r.handleError&&(this.handleError=r.handleError);r.Zb&&(this.Zb=r.Zb);r.A1&&(this.A1=r.A1);r.AJ&&(this.AJ=r.AJ);this.uL=r.uL;this.tV=r.tV;this.MY=r.MY;this.sI=r.sI;this.sendFn=r.sendFn;this.g1=r.g1;this.Qr= r.Qr;gQ(this)&&(!this.uL||this.uL("networkless_logging"))&&i2j(this)}; i2j=function(r){gQ(r)&&!r.A1&&(r.G=!0,r.t_&&Math.random()<=r.Q9&&r.MY.Xj(r.PK),r.yK(),r.sI.hZ()&&r.ud(),r.sI.listen(r.g1,r.ud.bind(r)),r.sI.listen(r.Qr,r.ZL.bind(r)))}; mXS=function(r,V){if(!gQ(r))throw Error("IndexedDB is not supported: updateRequestHandlers");var I=V.options.onError?V.options.onError:function(){}; V.options.onError=function(a,f){var e,n,D,x;return g.L(function(E){switch(E.X){case 1:e=UXr(f);(n=QqO(f))&&r.uL&&r.uL("web_enable_error_204")&&r.handleError(Error("Request failed due to compression"),V.url,f);if(!(r.uL&&r.uL("nwl_consider_error_code")&&e||r.uL&&!r.uL("nwl_consider_error_code")&&r.potentialEsfErrorCounter<=r.WF)){E.qk(2);break}if(!r.sI.eL){E.qk(3);break}return g.G(E,r.sI.eL(),3);case 3:if(r.sI.hZ()){E.qk(2);break}I(a,f);if(!r.uL||!r.uL("nwl_consider_error_code")||((D=V)==null?void 0: D.id)===void 0){E.qk(6);break}return g.G(E,r.MY.z$(V.id,r.PK,!1),6);case 6:return E.return();case 2:if(r.uL&&r.uL("nwl_consider_error_code")&&!e&&r.potentialEsfErrorCounter>r.WF)return E.return();r.potentialEsfErrorCounter++;if(((x=V)==null?void 0:x.id)===void 0){E.qk(8);break}return V.sendCount=400&&r<=599?!1:!0}; QqO=function(r){var V;r=r==null?void 0:(V=r.error)==null?void 0:V.code;return!(r!==400&&r!==415)}; uFv=function(){if(Uc)return Uc();var r={};Uc=g.a1("LogsDatabaseV2",{IZ:(r.LogsRequestsStore={LS:2},r),shared:!1,upgrade:function(V,I,d){I(2)&&g.lO(V,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});I(3);I(5)&&(d=d.objectStore("LogsRequestsStore"),d.G.indexNames.contains("newRequest")&&d.G.deleteIndex("newRequest"),g.gC(d,"newRequestV2",["status","interface","timestamp"]));I(7)&&LH(V,"sapisid");I(9)&&LH(V,"SWHealthLog")}, version:9});return Uc()}; QB=function(r){return g.vQ(uFv(),r)}; vtX=function(r,V){var I,d,a,f;return g.L(function(e){if(e.X==1)return I={startTime:(0,g.m)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.G(e,QB(V),2);if(e.X!=3)return d=e.G,a=Object.assign({},r,{options:JSON.parse(JSON.stringify(r.options)),interface:g.kt("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.G(e,g.Xu(d,"LogsRequestsStore",a),3);f=e.G;I.ticks.tc=(0,g.m)();pyg(I);return e.return(f)})}; qvX=function(r,V){var I,d,a,f,e,n,D,x;return g.L(function(E){if(E.X==1)return I={startTime:(0,g.m)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.G(E,QB(V),2);if(E.X!=3)return d=E.G,a=g.kt("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[r,a,0],e=[r,a,(0,g.m)()],n=IDBKeyRange.bound(f,e),D="prev",g.WR("use_fifo_for_networkless")&&(D="next"),x=void 0,g.G(E,g.J1(d,["LogsRequestsStore"],{mode:"readwrite",Wp:!0},function(N){return g.Qs(N.objectStore("LogsRequestsStore").index("newRequestV2"), {query:n,direction:D},function(c){c.getValue()&&(x=c.getValue(),r==="NEW"&&(x.status="QUEUED",c.update(x)))})}),3); I.ticks.tc=(0,g.m)();pyg(I);return E.return(x)})}; P9i=function(r,V){var I;return g.L(function(d){if(d.X==1)return g.G(d,QB(V),2);I=d.G;return d.return(g.J1(I,["LogsRequestsStore"],{mode:"readwrite",Wp:!0},function(a){var f=a.objectStore("LogsRequestsStore");return f.get(r).then(function(e){if(e)return e.status="QUEUED",g.ZO(f,e).then(function(){return e})})}))})}; otg=function(r,V,I,d){I=I===void 0?!0:I;var a;return g.L(function(f){if(f.X==1)return g.G(f,QB(V),2);a=f.G;return f.return(g.J1(a,["LogsRequestsStore"],{mode:"readwrite",Wp:!0},function(e){var n=e.objectStore("LogsRequestsStore");return n.get(r).then(function(D){return D?(D.status="NEW",I&&(D.sendCount+=1),d!==void 0&&(D.options.compress=d),g.ZO(n,D).then(function(){return D})):g.t1.resolve(void 0)})}))})}; k$S=function(r,V){var I;return g.L(function(d){if(d.X==1)return g.G(d,QB(V),2);I=d.G;return d.return(I.delete("LogsRequestsStore",r))})}; h1X=function(r){var V,I;return g.L(function(d){if(d.X==1)return g.G(d,QB(r),2);V=d.G;I=(0,g.m)()-2592E6;return g.G(d,g.J1(V,["LogsRequestsStore"],{mode:"readwrite",Wp:!0},function(a){return g.ST(a.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=I)return f.delete().then(function(){return g.iO(f)})})}),0)})}; rai=function(){g.L(function(r){return g.G(r,mAA("LogsDatabaseV2"),0)})}; pyg=function(r){g.WR("nwl_csi_killswitch")||tB("networkless_performance",r,{sampleRate:1})}; IJi=function(r){return g.vQ(VJp(),r)}; dLh=function(r){var V,I;g.L(function(d){if(d.X==1)return g.G(d,IJi(r),2);V=d.G;I=(0,g.m)()-2592E6;return g.G(d,g.J1(V,["SWHealthLog"],{mode:"readwrite",Wp:!0},function(a){return g.ST(a.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=I)return f.delete().then(function(){return g.iO(f)})})}),0)})}; aJi=function(r){var V;return g.L(function(I){if(I.X==1)return g.G(I,IJi(r),2);V=I.G;return g.G(I,V.clear("SWHealthLog"),0)})}; g.mn=function(r,V,I,d,a,f,e){a=a===void 0?"":a;f=f===void 0?!1:f;e=e===void 0?!1:e;if(r)if(I&&!g.qL())dB(new g.ox("Legacy referrer-scrubbed ping detected")),r&&fJi(r,void 0,{scrubReferrer:!0});else if(a)ta(r,V,"POST",a,d);else if(g.kt("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||e)ta(r,V,"GET","",d,void 0,f,e);else{b:{try{c:{var n=new Ojh({url:r});if(dw(n.G,"dsh")==="1")var D=null;else{var x=dw(n.G,"ae");if(x==="1"){var E=dw(n.G,"adurl");if(E)try{D={version:3,Vd:decodeURIComponent(E),Do:au(n.G,"act=1", "ri=1",WZO(n))};break c}catch(z){}}D=x==="2"?{version:4,Vd:au(n.G,"dct=1","suid="+n.X,""),Do:au(n.G,"act=1","ri=1","suid="+n.X)}:null}}if(D){var N=tg(r);var c=!(!N||!N.endsWith("/aclk")||Z5(r,"ri")!=="1");break b}}catch(z){}c=!1}c?e8i(r)?(V&&V(),I=!0):I=!1:I=!1;I||fJi(r,V)}}; e8i=function(r,V){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(r,V===void 0?"":V))return!0}catch(I){}return!1}; fJi=function(r,V,I){I=I===void 0?{}:I;var d=new Image,a=""+Yhp++;uw[a]=d;d.onload=d.onerror=function(){V&&uw[a]&&V();delete uw[a]}; I.scrubReferrer&&(d.referrerPolicy="no-referrer");d.src=r}; nQi=function(r){var V;return((V=document.featurePolicy)==null?0:V.allowedFeatures().includes("attribution-reporting"))?r+"&nis=6":r+"&nis=5"}; vH=function(){pA||(pA=new Yw("yt.offline"));return pA}; j6X=function(r){if(g.WR("offline_error_handling")){var V=vH().get("errors",!0)||{};V[r.message]={name:r.name,stack:r.stack};r.level&&(V[r.message].level=r.level);vH().set("errors",V,2592E3,!0)}}; q0=function(){this.G=new Map;this.X=!1}; PH=function(){if(!q0.instance){var r=g.Pr("yt.networkRequestMonitor.instance")||new q0;g.qp("yt.networkRequestMonitor.instance",r);q0.instance=r}return q0.instance}; o1=function(){g.cu.call(this);var r=this;this.X=!1;this.G=wuX();this.G.listen("networkstatus-online",function(){if(r.X&&g.WR("offline_error_handling")){var V=vH().get("errors",!0);if(V){for(var I in V)if(V[I]){var d=new g.ox(I,"sent via offline_errors");d.name=V[I].name;d.stack=V[I].stack;d.level=V[I].level;g.Vr(d)}vH().set("errors",{},2592E3,!0)}}})}; DLS=function(){if(!o1.instance){var r=g.Pr("yt.networkStatusManager.instance")||new o1;g.qp("yt.networkStatusManager.instance",r);o1.instance=r}return o1.instance}; g.kA=function(r){r=r===void 0?{}:r;g.cu.call(this);var V=this;this.G=this.Y=0;this.X=DLS();var I=g.Pr("yt.networkStatusManager.instance.listen").bind(this.X);I&&(r.rateLimit?(this.rateLimit=r.rateLimit,I("networkstatus-online",function(){xLg(V,"publicytnetworkstatus-online")}),I("networkstatus-offline",function(){xLg(V,"publicytnetworkstatus-offline")})):(I("networkstatus-online",function(){V.dispatchEvent("publicytnetworkstatus-online")}),I("networkstatus-offline",function(){V.dispatchEvent("publicytnetworkstatus-offline")})))}; xLg=function(r,V){r.rateLimit?r.G?(g.Qa.hR(r.Y),r.Y=g.Qa.Dm(function(){r.S!==V&&(r.dispatchEvent(V),r.S=V,r.G=(0,g.m)())},r.rateLimit-((0,g.m)()-r.G))):(r.dispatchEvent(V),r.S=V,r.G=(0,g.m)()):r.dispatchEvent(V)}; rT=function(){var r=SF.call;hB||(hB=new g.kA({v7C:!0,AL7:!0}));r.call(SF,this,{MY:{Xj:h1X,PJ:k$S,XK:qvX,Dks:P9i,z$:otg,set:vtX},sI:hB,handleError:function(V,I,d){var a,f=d==null?void 0:(a=d.error)==null?void 0:a.code;if(f===400||f===415){var e;V=new g.ox(V.message,I,d==null?void 0:(e=d.error)==null?void 0:e.code);dB(V,void 0,void 0,void 0,!0)}else g.Vr(V)}, Zb:dB,sendFn:EQO,now:g.m,O7:j6X,tV:g.aY(),g1:"publicytnetworkstatus-online",Qr:"publicytnetworkstatus-offline",t_:!0,Q9:.1,WF:g.$Q("potential_esf_error_limit",10),uL:g.WR,A1:!(g.hZ()&&g.Rn(document.location.toString())!=="www.youtube-nocookie.com")});this.S=new g.cA;g.WR("networkless_immediately_drop_all_requests")&&rai();ukj("LogsDatabaseV2")}; Vw=function(){var r=g.Pr("yt.networklessRequestController.instance");r||(r=new rT,g.qp("yt.networklessRequestController.instance",r),g.WR("networkless_logging")&&g.I1().then(function(V){r.PK=V;i2j(r);r.S.resolve();r.t_&&Math.random()<=r.Q9&&r.PK&&dLh(r.PK);g.WR("networkless_immediately_drop_sw_health_store")&&NBj(r)})); return r}; NBj=function(r){var V;g.L(function(I){if(!r.PK)throw V=g.KH("clearSWHealthLogsDb"),V;return I.return(aJi(r.PK).catch(function(d){r.handleError(d)}))})}; EQO=function(r,V,I,d){d=d===void 0?!1:d;V=g.WR("web_fp_via_jspb")?Object.assign({},V):V;g.WR("use_cfr_monitor")&&s6v(r,V);if(g.WR("use_request_time_ms_header"))V.headers&&xQ(r)&&(V.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.m)())));else{var a;if((a=V.postParams)==null?0:a.requestTimeMs)V.postParams.requestTimeMs=Math.round((0,g.m)())}I&&Object.keys(V).length===0?g.mn(r):V.compress?V.postBody?(typeof V.postBody!=="string"&&(V.postBody=JSON.stringify(V.postBody)),ZZ(r,V.postBody, V,g.yr,d)):ZZ(r,JSON.stringify(V.postParams),V,Aa,d):g.yr(r,V)}; IM=function(r,V){g.WR("use_event_time_ms_header")&&xQ(r)&&(V.headers||(V.headers={}),V.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.m)())));return V}; s6v=function(r,V){var I=V.onError?V.onError:function(){}; V.onError=function(a,f){PH().requestComplete(r,!1);I(a,f)}; var d=V.onSuccess?V.onSuccess:function(){}; V.onSuccess=function(a,f){PH().requestComplete(r,!0);d(a,f)}}; g.dT=function(r){this.config_=null;r?this.config_=r:xXX()&&(this.config_=g.sc())}; g.aM=function(r,V,I,d){function a(x){try{if((x===void 0?0:x)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?Vw().writeThenSend(D,f):Vw().sendAndWrite(D,f);else if(d.compress){var E=!d.networklessOptions.writeThenSend;if(f.postBody){var N=f.postBody;typeof N!=="string"&&(N=JSON.stringify(f.postBody));ZZ(D,N,f,g.yr,E)}else ZZ(D,JSON.stringify(f.postParams),f,Aa,E)}else g.WR("web_all_payloads_via_jspb")?g.yr(D,f):Aa(D,f)}catch(c){if(c.name==="InvalidAccessError")dB(Error("An extension is blocking network request.")); else throw c;}} !g.kt("VISITOR_DATA")&&V!=="visitor_id"&&Math.random()<.01&&dB(new g.ox("Missing VISITOR_DATA when sending innertube request.",V,I,d));if(!r.isReady())throw r=new g.ox("innertube xhrclient not ready",V,I,d),g.Vr(r),r;var f={headers:d.headers||{},method:"POST",postParams:I,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(x,E){if(d.onSuccess)d.onSuccess(E)}, onFetchSuccess:function(x){if(d.onSuccess)d.onSuccess(x)}, onError:function(x,E){if(d.onError)d.onError(E)}, onFetchError:function(x){if(d.onError)d.onError(x)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");I="";var e=r.config_.n6;e&&(I=e);e=r.config_.Sk||!1;var n=wyj(e,I,d);Object.assign(f.headers,n);f.headers.Authorization&&!I&&e&&(f.headers["x-origin"]=window.location.origin);var D=jJ(""+I+("/youtubei/"+r.config_.innertubeApiVersion+"/"+V),{alt:"json"});g.Pr("ytNetworklessLoggingInitializationOptions")&&cag.isNwlInitialized?Xmg().then(function(x){a(x)}):a(!1)}; g.jl=function(r,V,I){var d=g.fV();if(d&&V){var a=d.subscribe(r,function(){function f(){el[a]&&V.apply&&typeof V.apply=="function"&&V.apply(I||window,e)} var e=arguments;try{g.Yn[r]?f():g.Td(f,0)}catch(n){g.Vr(n)}},I); el[a]=!0;nV[r]||(nV[r]=[]);nV[r].push(a);return a}return 0}; z8v=function(r){var V=g.jl("LOGGED_IN",function(I){r.apply(void 0,arguments);g.Dj(V)})}; g.Dj=function(r){var V=g.fV();V&&(typeof r==="number"?r=[r]:typeof r==="string"&&(r=[parseInt(r,10)]),g.B9(r,function(I){V.unsubscribeByKey(I);delete el[I]}))}; g.xn=function(r,V){var I=g.fV();return I?I.publish.apply(I,arguments):!1}; CdZ=function(r){var V=g.fV();if(V)if(V.clear(r),r)MJp(r);else for(var I in nV)MJp(I)}; g.fV=function(){return g.vr.ytPubsubPubsubInstance}; MJp=function(r){nV[r]&&(r=nV[r],g.B9(r,function(V){el[V]&&delete el[V]}),r.length=0)}; g.EJ=function(r,V,I){TBX(r,V,I===void 0?null:I)}; TBX=function(r,V,I){I=I===void 0?null:I;var d=H5X(r),a=document.getElementById(d),f=a&&FeX(a),e=a&&!f;f?V&&V():(V&&(f=g.jl(d,V),V=""+g.dP(V),wRO[V]=f),e||(a=b5g(r,d,function(){FeX(a)||(G9i(a),g.xn(d),g.Td(function(){CdZ(d)},0))},I)))}; b5g=function(r,V,I,d){d=d===void 0?null:d;var a=g.rX("SCRIPT");a.id=V;a.onload=function(){I&&setTimeout(I,0)}; a.onreadystatechange=function(){switch(a.readyState){case "loaded":case "complete":a.onload()}}; d&&a.setAttribute("nonce",d);g.Dh(a,g.tL(r));r=document.getElementsByTagName("head")[0]||document.body;r.insertBefore(a,r.firstChild);return a}; H5X=function(r){var V=document.createElement("a");g.kr(V,r);r=V.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+wl(r)}; Nu=function(r,V){if(r===V)r=!0;else if(Array.isArray(r)&&Array.isArray(V))r=g.Zm(r,V,Nu);else if(g.Vc(r)&&g.Vc(V))a:if(g.v9(r).length!=g.v9(V).length)r=!1;else{for(var I in r)if(!Nu(r[I],V[I])){r=!1;break a}r=!0}else r=!1;return r}; HZ=function(r){var V=g.ZU.apply(1,arguments);if(!sJ(r)||V.some(function(d){return!sJ(d)}))throw Error("Only objects may be merged."); V=g.H(V);for(var I=V.next();!I.done;I=V.next())Tg(r,I.value)}; Tg=function(r,V){for(var I in V)if(sJ(V[I])){if(I in r&&!sJ(r[I]))throw Error("Cannot merge an object into a non-object.");I in r||(r[I]={});Tg(r[I],V[I])}else if(wT(V[I])){if(I in r&&!wT(r[I]))throw Error("Cannot merge an array into a non-array.");I in r||(r[I]=[]);O5g(r[I],V[I])}else r[I]=V[I];return r}; O5g=function(r,V){V=g.H(V);for(var I=V.next();!I.done;I=V.next())I=I.value,sJ(I)?r.push(Tg({},I)):wT(I)?r.push(O5g([],I)):r.push(I);return r}; sJ=function(r){return typeof r==="object"&&!Array.isArray(r)}; wT=function(r){return typeof r==="object"&&Array.isArray(r)}; bi=function(r){g.X.call(this);this.X=r}; OJ=function(r){bi.call(this,!0);this.G=r}; WZ=function(r,V){g.X.call(this);var I=this;this.S=[];this.L=!1;this.X=0;this.W=this.C=this.Y=!1;this.QH=null;var d=(0,g.aG)(r,V);this.G=new g.hz(function(){return d(I.QH)},300); g.S(this,this.G);this.V=this.j=Infinity}; Wgv=function(r,V){if(!V)return!1;for(var I=0;I-1)throw Error("Deps cycle for: "+V);if(r.X.has(V))return r.X.get(V);if(!r.G.has(V)){if(d)return;throw Error("No provider for: "+V);}d=r.G.get(V);I.push(V);if(d.QD!==void 0)var a=d.QD;else if(d.yaH)a=d[Zj]?tJA(r,d[Zj],I):[],a=d.yaH.apply(d,g.R(a));else if(d.Hf){a=d.Hf;var f=a[Zj]?tJA(r,a[Zj],I):[];a=new (Function.prototype.bind.apply(a,[null].concat(g.R(f))))}else throw Error("Could not resolve providers for: "+V);I.pop();d.vzL||r.X.set(V,a); return a}; tJA=function(r,V,I){return V?V.map(function(d){return d instanceof li?Xb(r,d.key,I,!0):Xb(r,d,I)}):[]}; gT=function(){BZ||(BZ=new R8X);return BZ}; ii=function(){var r,V;return"h5vcc"in Sl&&((r=Sl.h5vcc.traceEvent)==null?0:r.traceBegin)&&((V=Sl.h5vcc.traceEvent)==null?0:V.traceEnd)?1:"performance"in Sl&&Sl.performance.mark&&Sl.performance.measure?2:0}; UJ=function(r){var V=ii();switch(V){case 1:Sl.h5vcc.traceEvent.traceBegin("YTLR",r);break;case 2:Sl.performance.mark(r+"-start");break;case 0:break;default:hr(V,"unknown trace type")}}; yaZ=function(r){var V=ii();switch(V){case 1:Sl.h5vcc.traceEvent.traceEnd("YTLR",r);break;case 2:V=r+"-start";var I=r+"-end";Sl.performance.mark(I);Sl.performance.measure(r,V,I);break;case 0:break;default:hr(V,"unknown trace type")}}; Aav=function(r){var V,I;(I=(V=window).onerror)==null||I.call(V,r.message,"",0,0,r)}; Gdr=function(r){var V=this;var I=I===void 0?0:I;var d=d===void 0?g.aY():d;this.S=I;this.scheduler=d;this.X=new g.cA;this.G=r;for(r={n1:0};r.n1=1E3?a():d>=r?No||(No=sy(function(){a();No=void 0},0)):f-n>=10&&(qhA(V,I.tier),e.Y=f)}; Q6A=function(r,V){if(r.endpoint==="log_event"){g.WR("more_accurate_gel_parser")&&a9().storePayload({isJspb:!1},r.payload);eU(r);var I=YR(r),d=new Map;d.set(I,[r.payload]);var a=Shi(r.payload)||"";V&&(xR=new V);return new g.R0(function(f,e){xR&&xR.isReady()?Pdr(d,xR,f,e,{bypassNetworkless:!0},!0,jU(a)):f()})}}; pRg=function(r,V,I){if(V.endpoint==="log_event"){eU(void 0,V);var d=YR(V,!0),a=new Map;a.set(d,[D8(V.payload)]);I&&(xR=new I);return new g.R0(function(f){xR&&xR.isReady()?oQv(a,xR,f,{bypassNetworkless:!0},!0,jU(r)):f()})}}; YR=function(r,V){var I="";if(r.dangerousLogToVisitorSession)I="visitorOnlyApprovedKey";else if(r.cttAuthInfo){if(V===void 0?0:V){V=r.cttAuthInfo.token;I=r.cttAuthInfo;var d=new qX;I.videoId?d.setVideoId(I.videoId):I.playlistId&&Z8(d,2,cG,Po(I.playlistId));zZ[V]=d}else V=r.cttAuthInfo,I={},V.videoId?I.videoId=V.videoId:V.playlistId&&(I.playlistId=V.playlistId),Mo[r.cttAuthInfo.token]=I;I=r.cttAuthInfo.token}return I}; DD=function(r,V,I){r=r===void 0?{}:r;V=V===void 0?!1:V;new g.R0(function(d,a){var f=Ey(V,I),e=f.S;f.S=!1;CO(f.X);CO(f.G);f.G=0;xR&&xR.isReady()?I===void 0&&g.WR("enable_web_tiered_gel")?kdi(d,a,r,V,300,e):kdi(d,a,r,V,I,e):(qhA(V,I),d())})}; kdi=function(r,V,I,d,a,f){var e=xR;I=I===void 0?{}:I;d=d===void 0?!1:d;a=a===void 0?200:a;f=f===void 0?!1:f;var n=new Map,D=new Map,x={isJspb:d,cttAuthInfo:void 0,tier:a},E={isJspb:d,cttAuthInfo:void 0};if(d){V=g.H(Object.keys(nO));for(a=V.next();!a.done;a=V.next())a=a.value,D=g.WR("enable_web_tiered_gel")?a9().smartExtractMatchingEntries({keys:[x,E],sizeLimit:1E3}):a9().extractMatchingEntries({isJspb:!0,cttAuthInfo:a}),D.length>0&&n.set(a,D),(g.WR("web_fp_via_jspb_and_json")&&I.writeThenSend||!g.WR("web_fp_via_jspb_and_json"))&& delete nO[a];oQv(n,e,r,I,!1,f)}else{n=g.H(Object.keys(nO));for(x=n.next();!x.done;x=n.next())x=x.value,E=g.WR("enable_web_tiered_gel")?a9().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:x,tier:a},{isJspb:!1,cttAuthInfo:x}],sizeLimit:1E3}):a9().extractMatchingEntries({isJspb:!1,cttAuthInfo:x}),E.length>0&&D.set(x,E),(g.WR("web_fp_via_jspb_and_json")&&I.writeThenSend||!g.WR("web_fp_via_jspb_and_json"))&&delete nO[x];Pdr(D,e,r,V,I,!1,f)}}; qhA=function(r,V){function I(){DD({writeThenSend:!0},r,V)} r=r===void 0?!1:r;V=V===void 0?200:V;var d=Ey(r,V),a=d===h8O||d===rZj?5E3:Vbj;g.WR("web_gel_timeout_cap")&&!d.G&&(a=sy(function(){I()},a),d.G=a); CO(d.X);a=g.kt("LOGGING_BATCH_TIMEOUT",g.$Q("web_gel_debounce_ms",1E4));g.WR("shorten_initial_gel_batch_timeout")&&TZ&&(a=IpX);a=sy(function(){g.$Q("gel_min_batch_size")>0?a9().getSequenceCount({cttAuthInfo:void 0,isJspb:r,tier:V})>=d1v&&I():I()},a); d.X=a}; Pdr=function(r,V,I,d,a,f,e){a=a===void 0?{}:a;var n=Math.round((0,g.m)()),D=r.size,x=apX(e);r=g.H(r);var E=r.next();for(e={};!E.done;e={PT:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,cQ:void 0,qx:void 0},E=r.next()){var N=g.H(E.value);E=N.next().value;N=N.next().value;e.batchRequest=g.aZ({context:g.cH(V.config_||g.sc())});if(!g.rP(N)&&!g.WR("throw_err_when_logevent_malformed_killswitch")){d();break}e.batchRequest.events=N;(N=Mo[E])&&fph(e.batchRequest,E,N);delete Mo[E];e.dangerousLogToVisitorSession= E==="visitorOnlyApprovedKey";eHj(e.batchRequest,n,e.dangerousLogToVisitorSession);Y3X(a);e.cQ=function(c){g.WR("start_client_gcf")&&g.Qa.Dm(function(){return g.L(function(z){return g.G(z,nmj(c),0)})}); D--;D||I()}; e.PT=0;e.qx=function(c){return function(){c.PT++;if(a.bypassNetworkless&&c.PT===1)try{g.aM(V,x,c.batchRequest,HG({writeThenSend:!0},c.dangerousLogToVisitorSession,c.cQ,c.qx,f)),TZ=!1}catch(z){g.Vr(z),d()}D--;D||I()}}(e); try{g.aM(V,x,e.batchRequest,HG(a,e.dangerousLogToVisitorSession,e.cQ,e.qx,f)),TZ=!1}catch(c){g.Vr(c),d()}}}; oQv=function(r,V,I,d,a,f){d=d===void 0?{}:d;var e=Math.round((0,g.m)()),n={value:r.size},D=new Map([].concat(g.R(r)));D=g.H(D);for(var x=D.next();!x.done;x=D.next()){var E=g.H(x.value).next().value,N=r.get(E);x=new BYp;var c=V.config_||g.sc(),z=new SP,M=new l9;rZ(M,1,c.wG);rZ(M,2,c.rG);Ir(M,16,c.q9);rZ(M,17,c.innertubeContextClientVersion);if(c.Iq){var w=c.Iq,b=new G$;w.coldConfigData&&rZ(b,1,w.coldConfigData);w.appInstallData&&rZ(b,6,w.appInstallData);w.coldHashData&&rZ(b,3,w.coldHashData);w.hotHashData&& b.OL(w.hotHashData);mv(M,G$,62,b)}(w=g.vr.devicePixelRatio)&&w!=1&&bT(M,65,JA(w));w=K5();w!==""&&rZ(M,54,w);w=R6();if(w.length>0){b=new Zc;for(var W=0;W65535&&(r=1);oq("BATCH_CLIENT_COUNTER",r);return r}; fph=function(r,V,I){if(I.videoId)var d="VIDEO";else if(I.playlistId)d="PLAYLIST";else return;r.credentialTransferTokenTargetId=I;r.context=r.context||{};r.context.user=r.context.user||{};r.context.user.credentialTransferTokens=[{token:V,scope:d}]}; eU=function(r,V){var I=g.Pr("yt.logging.transport.enableScrapingForTest"),d=Oh("il_payload_scraping");d=(d!==void 0?String(d):"")==="enable_il_payload_scraping";if(!I)if(d)Oy=[],g.qp("yt.logging.transport.enableScrapingForTest",!0),g.qp("yt.logging.transport.scrapedPayloadsForTesting",Oy),g.qp("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.qp("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.qp("yt.logging.transport.scrapeClientEvent",!0);else return;I=g.Pr("yt.logging.transport.scrapedPayloadsForTesting");d=g.Pr("yt.logging.transport.payloadToScrape");V&&(V=V.payload,(V=g.Pr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(V)())&&I.push(V));V=g.Pr("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var a=0;a0&&yZj(r,V,f)}else yZj(r,V)}; yZj=function(r,V,I){r=AZr(r);V=V?g.lE(V):"";I=I||5;eb()&&g.gB(r,V,I)}; AZr=function(r){for(var V=g.H(GcX),I=V.next();!I.done;I=V.next())r=Xt(r,I.value);return"ST-"+wl(r).toString(36)}; FLi=function(r){if(r.name==="JavaException")return!0;r=r.stack;return r.includes("chrome://")||r.includes("chrome-extension://")||r.includes("moz-extension://")}; lpv=function(){this.PR=[];this.je=[]}; LO=function(){if(!lc){var r=lc=new lpv;r.je.length=0;r.PR.length=0;LLv(r,JZA)}return lc}; LLv=function(r,V){V.je&&r.je.push.apply(r.je,V.je);V.PR&&r.PR.push.apply(r.PR,V.PR)}; Zoj=function(r){function V(){return r.charCodeAt(d++)} var I=r.length,d=0;do{var a=J8(V);if(a===Infinity)break;var f=a>>3;switch(a&7){case 0:a=J8(V);if(f===2)return a;break;case 1:if(f===2)return;d+=8;break;case 2:a=J8(V);if(f===2)return r.substr(d,a);d+=a;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d500));d++);d=a}else if(typeof r==="object")for(a in r){if(r[a]){var f=a;var e=r[a],n=V,D=I;f=typeof e!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(e=Zoj(atob(e.replace(/-/g,"+").replace(/_/g,"/"))))?ZD(f+".ve",e,n,D):0;d+=f;d+=ZD(a,r[a],V,I);if(d>500)break}}else I[V]=XA(r),d+=I[V].length;else I[V]=XA(r),d+=I[V].length;return d}; ZD=function(r,V,I,d){I+="."+r;r=XA(V);d[I]=r;return I.length+r.length}; XA=function(r){try{return(typeof r==="string"?r:String(JSON.stringify(r))).substr(0,500)}catch(V){return"unable to serialize "+typeof r+" ("+V.message+")"}}; Es=function(r){g.BG(r)}; g.gj=function(r){g.BG(r,"WARNING")}; g.BG=function(r,V){var I=I===void 0?{}:I;I.name=g.kt("INNERTUBE_CONTEXT_CLIENT_NAME",1);I.version=g.kt("INNERTUBE_CONTEXT_CLIENT_VERSION");V=V===void 0?"ERROR":V;var d=!1;V=V===void 0?"ERROR":V;d=d===void 0?!1:d;if(r){r.hasOwnProperty("level")&&r.level&&(V=r.level);if(g.WR("console_log_js_exceptions")){var a=[];a.push("Name: "+r.name);a.push("Message: "+r.message);r.hasOwnProperty("params")&&a.push("Error Params: "+JSON.stringify(r.params));r.hasOwnProperty("args")&&a.push("Error args: "+JSON.stringify(r.args)); a.push("File name: "+r.fileName);a.push("Stacktrace: "+r.stack);window.console.log(a.join("\n"),r)}if(!(Bsg>=5)){a=[];for(var f=g.H(gmv),e=f.next();!e.done;e=f.next()){e=e.value;try{e()&&a.push(e())}catch(w){}}a=[].concat(g.R(S3U),g.R(a));var n=eYp(r);f=n.message||"Unknown Error";e=n.name||"UnknownError";var D=n.stack||r.X||"Not available";if(D.startsWith(e+": "+f)){var x=D.split("\n");x.shift();D=x.join("\n")}x=n.lineNumber||"Not available";n=n.fileName||"Not available";var E=0;if(r.hasOwnProperty("args")&& r.args&&r.args.length)for(var N=0;N=500);N++);else if(r.hasOwnProperty("params")&&r.params){var c=r.params;if(typeof r.params==="object")for(N in c){if(c[N]){var z="params."+N,M=XA(c[N]);I[z]=M;E+=z.length+M.length;if(E>500)break}}else I.params=XA(c)}if(a.length)for(N=0;N=500);N++);navigator.vendor&&!I.hasOwnProperty("vendor")&&(I["device.vendor"]=navigator.vendor);I={message:f,name:e,lineNumber:x, fileName:n,stack:D,params:I,sampleWeight:1};N=Number(r.columnNumber);isNaN(N)||(I.lineNumber=I.lineNumber+":"+N);if(r.level==="IGNORED")r=0;else a:{r=LO();N=g.H(r.je);for(a=N.next();!a.done;a=N.next())if(a=a.value,I.message&&I.message.match(a.K9)){r=a.weight;break a}r=g.H(r.PR);for(N=r.next();!N.done;N=r.next())if(N=N.value,N.callback(I)){r=N.weight;break a}r=1}I.sampleWeight=r;r=g.H(ioO);for(N=r.next();!N.done;N=r.next())if(N=N.value,N.Yj[I.name])for(f=g.H(N.Yj[I.name]),a=f.next();!a.done;a=f.next())if(e= a.value,a=I.message.match(e.Da)){I.params["params.error.original"]=a[0];f=e.groups;e={};for(x=0;x1E3&&g.gj(new g.ox("IL Attach cache exceeded limit"))}n= h8(I,V);vG.has(n)?rF(I,V):PG.set(n,!0)}}d=d.filter(function(E){E.csn!==V?(E.csn=V,E=!0):E=!1;return E}); I={csn:V,parentVe:I.getAsJson(),childVes:g.uE(d,function(E){return E.getAsJson()})}; V==="UNDEFINED_CSN"?Ve("visualElementAttached",f,I):r?$R("visualElementAttached",I,r,f):g.N9("visualElementAttached",I,f)}; d9g=function(r,V,I,d,a){ID(I,V);d=pO({cttAuthInfo:GZ(V)||void 0},V);I={csn:V,ve:I.getAsJson(),eventType:1};a&&(I.clientData=a);V==="UNDEFINED_CSN"?Ve("visualElementShown",d,I):r?$R("visualElementShown",I,r,d):g.N9("visualElementShown",I,d)}; aOU=function(r,V,I,d){var a=(d=d===void 0?!1:d)?16:8;d=pO({cttAuthInfo:GZ(V)||void 0,endOfSequence:d},V);I={csn:V,ve:I.getAsJson(),eventType:a};V==="UNDEFINED_CSN"?Ve("visualElementHidden",d,I):r?$R("visualElementHidden",I,r,d):g.N9("visualElementHidden",I,d)}; aD=function(r,V,I,d,a){dF(r,V,I,void 0,d,a)}; dF=function(r,V,I,d,a){ID(I,V);d=d||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=pO({cttAuthInfo:GZ(V)||void 0},V);I={csn:V,ve:I.getAsJson(),gestureType:d};a&&(I.clientData=a);V==="UNDEFINED_CSN"?Ve("visualElementGestured",f,I):r?$R("visualElementGestured",I,r,f):g.N9("visualElementGestured",I,f)}; fOv=function(){var r=KV(16);for(var V=[],I=0;I0&&I.push(g.rX("BR"));I.push(g.VE(f))}):I.push(g.VE(d))}return I}; MK=function(r,V,I,d){if(I==="child"){g.dX(V);var a;d===void 0?a=void 0:a=!Array.isArray(d)||d&&typeof d.J==="string"?[d]:d;I=YsO(r,a);I=g.H(I);for(r=I.next();!r.done;r=I.next())V.appendChild(r.value)}else I==="style"?g.Be(V,"cssText",d?d:""):d===null||d===void 0?V.removeAttribute(I):(r=d.toString(),I==="href"&&(r=g.u_(g.Pt(r))),V.setAttribute(I,r))}; g.u=function(r){g.cL.call(this,r);this.Hp=!0;this.W=!1;this.listeners=[]}; g.CB=function(r){g.u.call(this,r);this.EE=new g.NK;g.S(this,this.EE)}; Ti=function(r,V,I,d,a,f,e){e=e===void 0?null:e;g.CB.call(this,V);this.api=r;this.macros={};this.componentType=I;this.L=this.j=null;this.ya=e;this.layoutId=d;this.interactionLoggingClientData=a;this.I7=f;this.L8=null;this.KK=new OJ(this.element);g.S(this,this.KK);this.DM=this.K(this.element,"click",this.onClick);this.GQ=[];this.bL=new WZ(this.onClick,this);g.S(this,this.bL);this.Qa=!1;this.R7=this.QH=null}; HL=function(r,V){r=r===void 0?null:r;V=V===void 0?null:V;if(r==null)return g.gj(Error("Got null or undefined adText object")),"";var I=g.Hz(r.text);if(!r.isTemplated)return I;if(V==null)return g.gj(Error("Missing required parameters for a templated message")),I;r=g.H(Object.entries(V));for(V=r.next();!V.done;V=r.next()){var d=g.H(V.value);V=d.next().value;d=d.next().value;I=I.replace("{"+V+"}",d)}return I}; nwA=function(r){r=r===void 0?null:r;return r!=null&&(r=r.thumbnail,r!=null&&r.thumbnails!=null&&r.thumbnails.length!=0&&r.thumbnails[0].url!=null)?g.Hz(r.thumbnails[0].url):""}; jYU=function(r){r=r===void 0?null:r;return r!=null&&(r=r.thumbnail,r!=null&&r.thumbnails!=null&&r.thumbnails.length!=0&&r.thumbnails[0].width!=null&&r.thumbnails[0].height!=null)?new g.LJ(r.thumbnails[0].width||0,r.thumbnails[0].height||0):new g.LJ(0,0)}; g.wF=function(r){if(r.simpleText)return r.simpleText;if(r.runs){var V=[];r=g.H(r.runs);for(var I=r.next();!I.done;I=r.next())I=I.value,I.text&&V.push(I.text);return V.join("")}return""}; g.bm=function(r){if(r.simpleText)return r=document.createTextNode(r.simpleText),r;var V=[];if(r.runs)for(var I=0;I1){for(var V=[r[0]],I=1;I0&&(this.G=new g.hz(this.Ih,V,this),g.S(this,this.G));this.W=new g.hz(this.Ih,I,this);g.S(this,this.W);this.j=tsO(this.X,a,1,d);g.S(this,this.j);this.L=tsO(this.X,0,d,1);g.S(this,this.L);this.Y=new Gc;g.S(this,this.Y)}; E9=function(r,V,I){this.X=r;this.isAsync=V;this.G=I}; vwO=function(r){switch(r){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:hr(r,"unknown result type")}}; qsi=function(r,V){var I=1;r.isTrusted===!1&&(I=0);oq("ISDSTAT",I);N5(I,"i.s_",{triggerContext:"sk",metadata:V});return I}; POg=function(r,V){var I=[];V?V.isTrusted===!0?I.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):V.isTrusted===!1?I.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):I.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):I.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");N5(0,"a.s_",{metadata:r,states:I});oq("ASDSTAT",0)}; N5=function(r,V,I){V=owZ[V];var d,a,f={detected:r===0,source:""+V.X+((d=I.triggerContext)!=null?d:"")+((a=I.al)!=null?a:""),detectionStates:I.states,durationMs:I.EK};I.metadata&&(f.contentCpn=I.metadata.contentCpn,f.adCpn=I.metadata.adCpn);g.N9("biscottiBasedDetection",f);V.G!==void 0&&(I=Number(g.kt("CATSTAT",0)),V.G!==void 0?(V=V.G,r=vwO(r),r=I&~(3<0}; HC=function(r,V,I,d,a,f){dU.call(this,r,{J:"div",Z:"ytp-ad-skip-button-slot"},"skip-button",V,I,d,a);var e=this;this.kc=null;this.n8=!1;this.Ws=f;this.C=this.api.N().experiments.uL("enable_modern_skip_button_on_web");this.a7=!1;this.Y=new g.CB({J:"span",Yc:["ytp-ad-skip-button-container"]});this.C&&this.Y.element.classList.add("ytp-ad-skip-button-container-detached");g.S(this,this.Y);this.Y.Xz(this.element);this.X=this.S=null;this.Mk=new g.eO(this.Y,500,!1,100,function(){return e.hide()}); g.S(this,this.Mk);this.p8=new x8(this.Y.element,15E3,5E3,.5,.5,this.C);g.S(this,this.p8);this.hide()}; h6X=function(r){r=r.kc&&r.kc.adRendererCommands;return(r&&r.clickCommand&&g.U(r.clickCommand,g.wU)&&g.U(r.clickCommand,g.wU).commands||[]).some(function(V){return V.adLifecycleCommand?kvO(V.adLifecycleCommand):!1})}; kvO=function(r){return r.action==="END_LINEAR_AD"||r.action==="END_LINEAR_AD_PLACEMENT"}; bh=function(r,V,I,d,a,f){dU.call(this,r,{J:"div",Z:"ytp-ad-skip-ad-slot"},"skip-ad",V,I,d,a);this.kc=f;this.Y=!1;this.C=0;this.S=this.X=null;this.hide()}; rBA=function(r,V){r.Y||(r.Y=!0,r.X&&(V?r.X.kc.hide():r.X.hide()),V?(r=r.S,r.Mk.show(),r.show()):r.S.show())}; O9=function(r,V,I,d){XU.call(this,r,V,I,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; WC=function(r,V,I,d,a,f,e){f=f===void 0?!1:f;e=e===void 0?!1:e;Ti.call(this,r,{J:"span",Z:"ytp-ad-simple-ad-badge"},"simple-ad-badge",V,I,d);this.S=a;this.G=this.Fz("ytp-ad-simple-ad-badge");(this.X=f)&&this.G.classList.add("ytp-ad-simple-ad-badge--clean-player");e&&this.G.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; $8=function(r,V,I,d,a){a=a===void 0?!1:a;EN.call(this,"player-overlay",r,{},V,d);this.videoAdDurationSeconds=I;this.interactionLoggingClientData=d;this.R5=a}; KW=function(r,V){g.NK.call(this);this.api=r;this.durationMs=V;this.G=null;this.wF=new Gc(this);g.S(this,this.wF);this.X=VFA;this.wF.K(this.api,"presentingplayerstatechange",this.O1);this.G=this.wF.K(this.api,"onAdPlaybackProgress",this.Uk)}; Ro=function(r){g.NK.call(this);this.G=!1;this.pM=0;this.wF=new Gc(this);g.S(this,this.wF);this.durationMs=r;this.aL=new g.Bu(100);g.S(this,this.aL);this.wF.K(this.aL,"tick",this.Uk);this.X={seekableStart:0,seekableEnd:r/1E3,current:0};this.start()}; g.tt=function(r,V){var I=Math.abs(Math.floor(r)),d=Math.floor(I/86400),a=Math.floor(I%86400/3600),f=Math.floor(I%3600/60);I=Math.floor(I%60);if(V){V="";d>0&&(V+=" "+d+" Days");if(d>0||a>0)V+=" "+a+" Hours";V+=" "+f+" Minutes";V+=" "+I+" Seconds";d=V.trim()}else{V="";d>0&&(V+=d+":",a<10&&(V+="0"));if(d>0||a>0)V+=a+":",f<10&&(V+="0");V+=f+":";I<10&&(V+="0");d=V+I}return r>=0?d:"-"+d}; g.yY=function(r){return(!("button"in r)||typeof r.button!=="number"||r.button===0)&&!("shiftKey"in r&&r.shiftKey)&&!("altKey"in r&&r.altKey)&&!("metaKey"in r&&r.metaKey)&&!("ctrlKey"in r&&r.ctrlKey)}; At=function(r,V,I,d,a,f,e){dU.call(this,r,{J:"span",Z:e?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",V,I,d,a);this.videoAdDurationSeconds=f;this.X=null;e&&this.api.N().X&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),oY&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; GQ=function(r,V,I,d){VY.call(this,r,V,I,d,"ytp-video-ad-top-bar-title","ad-title")}; FI=function(r){this.content=r.content;if(r.commandRuns){r=g.H(r.commandRuns);for(var V=r.next();!V.done;V=r.next())V=V.value,this.loggingDirectives=g.U(V,IZS),V.onTap&&(this.interaction={onTap:V.onTap})}}; lh=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ad-simple-attributed-string"},"ad-simple-attributed-string",V,I,d);this.hide()}; LW=function(r,V,I,d,a){Ti.call(this,r,{J:"span",Z:a?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",V,I,d);this.X=a;this.adBadgeText=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);this.adBadgeText.Xz(this.element);g.S(this,this.adBadgeText);a?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),oY&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Jt=function(r,V,I,d){Ti.call(this,r,{J:"span",Z:"ytp-ad-pod-index"},"ad-pod-index",V,I,d);this.api.N().X&&(this.element.classList.add("ytp-ad-pod-index--mweb"),oY&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; Zf=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",V,I,d);this.hide()}; XI=function(r,V){this.X=r;this.G=V}; BC=function(r,V,I){if(!r.getLength())return I!=null?I:Infinity;r=(V-r.X)/r.getLength();return g.yv(r,0,1)}; gU=function(r,V,I,d){d=d===void 0?!1:d;g.CB.call(this,{J:"div",Z:"ytp-ad-persistent-progress-bar-container",B:[{J:"div",Z:"ytp-ad-persistent-progress-bar"}]});this.api=r;this.X=V;this.S=I;d&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.S(this,this.X);this.progressBar=this.Fz("ytp-ad-persistent-progress-bar");this.G=-1;this.K(r,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; SO=function(r,V,I,d,a,f){Ti.call(this,r,{J:"div",Z:"ytp-ad-player-overlay",B:[{J:"div",Z:"ytp-ad-player-overlay-flyout-cta"},{J:"div",Z:"ytp-ad-player-overlay-instream-info"},{J:"div",Z:"ytp-ad-player-overlay-skip-or-preview"},{J:"div",Z:"ytp-ad-player-overlay-progress-bar"},{J:"div",Z:"ytp-ad-player-overlay-instream-user-sentiment"},{J:"div",Z:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",V,I,d);this.V=f;this.C=this.Fz("ytp-ad-player-overlay-flyout-cta");this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.G=this.Fz("ytp-ad-player-overlay-instream-info");this.Y=null;d0S(this)&&(r=hS("div"),g.jN(r,"ytp-ad-player-overlay-top-bar-gradients"),V=this.G,V.parentNode&&V.parentNode.insertBefore(r,V),(V=this.api.getVideoData(2))&&V.isListed&&V.title&&(I=new GQ(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),I.Xz(r),I.init(x5("ad-title"),{text:V.title},this.macros),g.S(this,I)),this.Y=r);this.S=null;this.TQ=this.Fz("ytp-ad-player-overlay-skip-or-preview");this.p8=this.Fz("ytp-ad-player-overlay-progress-bar"); this.n8=this.Fz("ytp-ad-player-overlay-instream-user-sentiment");this.kc=this.Fz("ytp-ad-player-overlay-ad-disclosure-banner");this.X=a;g.S(this,this.X);this.hide()}; d0S=function(r){r=r.api.N();var V=g.ih(r)&&r.X;return r.U("embeds_embc3ds_atb")&&r.disableOrganicUi&&!0||V}; U9=function(r,V,I){var d={};V&&(d.v=V);I&&(d.list=I);r={name:r,locale:void 0,feature:void 0};for(var a in d)r[a]=d[a];d=g.Ly("/sharing_services",r);g.mn(d)}; g.QY=function(r){r&=16777215;var V=[(r&16711680)>>16,(r&65280)>>8,r&255];r=V[0];var I=V[1];V=V[2];r=Number(r);I=Number(I);V=Number(V);if(r!=(r&255)||I!=(I&255)||V!=(V&255))throw Error('"('+r+","+I+","+V+'") is not a valid RGB color');I=r<<16|I<<8|V;return r<16?"#"+(16777216|I).toString(16).slice(1):"#"+I.toString(16)}; mR=function(r){this.G=new Fk(r)}; aZX=function(){var r=!1;try{r=!!window.sessionStorage.getItem("session_logininfo")}catch(V){r=!0}return(g.kt("INNERTUBE_CLIENT_NAME")==="WEB"||g.kt("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&r}; uh=function(r){if(g.kt("LOGGED_IN",!0)&&aZX()){var V=g.kt("VALID_SESSION_TEMPDATA_DOMAINS",[]);var I=g.Rn(window.location.href);I&&V.push(I);I=g.Rn(r);g.CG(V,I)||!I&&Mi(r,"/")?(V=yE(r),(V=ofA(V))?(V=AZr(V),V=(V=g.SJ(V)||null)?eJ(V):{}):V=null):V=null;V==null&&(V={});I=V;var d=void 0;aZX()?(d||(d=g.kt("LOGIN_INFO")),d?(I.session_logininfo=d,I=!0):I=!1):I=!1;I&&FA(r,V)}}; g.fZS=function(r){var V=V===void 0?{}:V;var I=I===void 0?"":I;var d=d===void 0?window:d;r=g.Ly(r,V);uh(r);I=g.Pt(r+I);d=d.location;I=oZ(I);I!==void 0&&(d.href=I)}; g.pW=function(r,V,I){V=V===void 0?{}:V;I=I===void 0?!1:I;var d=g.kt("EVENT_ID");d&&(V.ei||(V.ei=d));V&&FA(r,V);I||(uh(r),g.fZS(r))}; g.vC=function(r,V,I,d,a){a=a===void 0?!1:a;I&&FA(r,I);I=g.Pt(r);var f=g.u_(I);r!=f&&dB(Error("Unsafe window.open URL: "+r));r=f;V=V||wl(r).toString(36);try{if(a)return a=r,a=nQi(a),uh(a),g.ac(window,a,V,"attributionsrc")}catch(e){g.Vr(e)}uh(r);return g.ac(window,I,V,d)}; eVi=function(r){q5=r}; YcU=function(r){PC=r}; nAX=function(r){oo=r}; D0A=function(){j1h=oo=PC=q5=null}; EAX=function(){var r=r===void 0?window.location.href:r;if(g.WR("kevlar_disable_theme_param"))return null;var V=tg(r);if(g.WR("enable_dark_theme_only_on_shorts")&&V!=null&&V.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var I=g.n5(r).theme;return x0X.get(I)||null}catch(d){}return null}; k8=function(){this.G={};if(this.X=sNr()){var r=g.SJ("CONSISTENCY");r&&NQh(this,{encryptedTokenJarContents:r})}}; NQh=function(r,V){if(V.encryptedTokenJarContents&&(r.G[V.encryptedTokenJarContents]=V,typeof V.expirationSeconds==="string")){var I=Number(V.expirationSeconds);setTimeout(function(){delete r.G[V.encryptedTokenJarContents]},I*1E3); r.X&&g.gB("CONSISTENCY",V.encryptedTokenJarContents,I,void 0,!0)}}; r4=function(){this.X=-1;var r=g.kt("LOCATION_PLAYABILITY_TOKEN");g.kt("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=ht(this))&&(r=this.localStorage.get("yt-location-playability-token"));r&&(this.locationPlayabilityToken=r,this.G=void 0)}; ht=function(r){return r.localStorage===void 0?new Yw("yt-client-location"):r.localStorage}; g.V2=function(r,V,I){V=V===void 0?!1:V;I=I===void 0?!1:I;var d=g.kt("INNERTUBE_CONTEXT");if(!d)return g.BG(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.aZ(d);g.WR("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var a=d.client;a.clientName==="MWEB"&&a.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(a.clientFormFactor=g.kt("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");a.screenWidthPoints=window.innerWidth;a.screenHeightPoints= window.innerHeight;a.screenPixelDensity=Math.round(window.devicePixelRatio||1);a.screenDensityFloat=window.devicePixelRatio||1;a.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=f===void 0?!1:f;g.mL();var e="USER_INTERFACE_THEME_LIGHT";g.uQ(0,165)?e="USER_INTERFACE_THEME_DARK":g.uQ(0,174)?e="USER_INTERFACE_THEME_LIGHT":!g.WR("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (e="USER_INTERFACE_THEME_DARK");f=f?e:EAX()||e;a.userInterfaceTheme=f;if(!V){if(f=VNr())a.connectionType=f;g.WR("web_log_effective_connection_type")&&(f=dAj())&&(d.client.effectiveConnectionType=f)}var n;if(g.WR("web_log_memory_total_kbytes")&&((n=g.vr.navigator)==null?0:n.deviceMemory)){var D;n=(D=g.vr.navigator)==null?void 0:D.deviceMemory;d.client.memoryTotalKbytes=""+n*1E6}g.WR("web_gcf_hashes_innertube")&&(f=DXv())&&(D=f.coldConfigData,n=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo|| {},D&&(d.client.configInfo.coldConfigData=D),n&&(d.client.configInfo.coldHashData=n),f&&(d.client.configInfo.hotHashData=f));D=g.n5(g.vr.location.href);!g.WR("web_populate_internal_geo_killswitch")&&D.internalcountrycode&&(a.internalGeo=D.internalcountrycode);a.clientName==="MWEB"||a.clientName==="WEB"?(a.mainAppWebInfo={graftUrl:g.vr.location.href},g.WR("kevlar_woffle")&&vyO.instance&&(D=vyO.instance,a.mainAppWebInfo.pwaInstallabilityStatus=!D.G&&D.X?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),a.mainAppWebInfo.webDisplayMode=iQ(),a.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):a.clientName==="TVHTML5"&&(!g.WR("web_lr_app_quality_killswitch")&&(D=g.kt("LIVING_ROOM_APP_QUALITY"))&&(a.tvAppInfo=Object.assign(a.tvAppInfo||{},{appQuality:D})),D=g.kt("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(a.tvAppInfo=Object.assign(a.tvAppInfo||{},{certificationScope:D}));if(!g.WR("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var x=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(l){}x=void 0}x&&(a.timeZone=x)}(x=K5())?a.experimentsToken=x:delete a.experimentsToken;x=R6();k8.instance||(k8.instance=new k8);d.request=Object.assign({},d.request,{internalExperimentFlags:x,consistencyTokenJars:g.pG(k8.instance.G)});!g.WR("web_prequest_context_killswitch")&&(x=g.kt("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=x);a=g.mL();x=g.uQ(0,58);a=a.get("gsml","");d.user=Object.assign({}, d.user);x&&(d.user.enableSafetyMode=x);a&&(d.user.lockedSafetyMode=!0);g.WR("warm_op_csn_cleanup")?I&&(V=g.A8())&&(d.clientScreenNonce=V):!V&&(V=g.A8())&&(d.clientScreenNonce=V);r&&(d.clickTracking={clickTrackingParams:r});if(r=g.Pr("yt.mdx.remote.remoteClient_"))d.remoteClient=r;r4.getInstance().setLocationOnInnerTubeContext(d);try{var E=zd(),N=E.bid;delete E.bid;d.adSignalsInfo={params:[],bid:N};for(var c=g.H(Object.entries(E)),z=c.next();!z.done;z=c.next()){var M=g.H(z.value),w=M.next().value, b=M.next().value;E=w;N=b;r=void 0;(r=d.adSignalsInfo.params)==null||r.push({key:E,value:""+N})}var W,K;if(((W=d.client)==null?void 0:W.clientName)==="TVHTML5"||((K=d.client)==null?void 0:K.clientName)==="TVHTML5_UNPLUGGED"){var F=g.kt("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(l){g.BG(l)}return d}; zVp=function(r,V){if(!r)return!1;var I,d=(I=g.U(r,s1A))==null?void 0:I.signal;if(d&&V.vX)return!!V.vX[d];var a;if((I=(a=g.U(r,cBp))==null?void 0:a.request)&&V.lU)return!!V.lU[I];for(var f in r)if(V.i4[f])return!0;return!1}; MFX=function(r){var V={"Content-Type":"application/json"};g.kt("EOM_VISITOR_DATA")?V["X-Goog-EOM-Visitor-Id"]=g.kt("EOM_VISITOR_DATA"):g.kt("VISITOR_DATA")&&(V["X-Goog-Visitor-Id"]=g.kt("VISITOR_DATA"));V["X-Youtube-Bootstrap-Logged-In"]=g.kt("LOGGED_IN",!1);g.kt("DEBUG_SETTINGS_METADATA")&&(V["X-Debug-Settings-Metadata"]=g.kt("DEBUG_SETTINGS_METADATA"));r!=="cors"&&((r=g.kt("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(V["X-Youtube-Client-Name"]=r),(r=g.kt("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(V["X-Youtube-Client-Version"]= r),(r=g.kt("CHROME_CONNECTED_HEADER"))&&(V["X-Youtube-Chrome-Connected"]=r),(r=g.kt("DOMAIN_ADMIN_STATE"))&&(V["X-Youtube-Domain-Admin-State"]=r),g.kt("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(r=g.kt("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(V["X-YouTube-Lava-Device-Context"]=r));return V}; Cwi=function(){this.G={}}; IE=function(){this.mappings=new Cwi}; d4=function(r){return function(){return new r}}; HAg=function(r){var V=V===void 0?"UNKNOWN_INTERFACE":V;if(r.length===1)return r[0];var I=TQO[V];if(I){I=new RegExp(I);for(var d=g.H(r),a=d.next();!a.done;a=d.next())if(a=a.value,I.exec(a))return a}var f=[];Object.entries(TQO).forEach(function(e){var n=g.H(e);e=n.next().value;n=n.next().value;V!==e&&f.push(n)}); I=new RegExp(f.join("|"));r.sort(function(e,n){return e.length-n.length}); d=g.H(r);for(a=d.next();!a.done;a=d.next())if(a=a.value,!I.exec(a))return a;return r[0]}; g.aE=function(r){return"/youtubei/v1/"+HAg(r)}; fq=function(){}; eK=function(){}; Cq=function(){}; TX=function(r){return g.Pr("ytcsi."+(r||"")+"data_")||wHX(r)}; bAX=function(){var r=TX();r.info||(r.info={});return r.info}; HS=function(r){r=TX(r);r.metadata||(r.metadata={});return r.metadata}; w4=function(r){r=TX(r);r.tick||(r.tick={});return r.tick}; bC=function(r){r=TX(r);if(r.gel){var V=r.gel;V.gelInfos||(V.gelInfos={});V.gelTicks||(V.gelTicks={})}else r.gel={gelTicks:{},gelInfos:{}};return r.gel}; OAZ=function(r){r=bC(r);r.gelInfos||(r.gelInfos={});return r.gelInfos}; OY=function(r){var V=TX(r).nonce;V||(V=g.RM(16),TX(r).nonce=V);return V}; wHX=function(r){var V={tick:{},info:{}};g.qp("ytcsi."+(r||"")+"data_",V);return V}; WS=function(){var r=g.Pr("ytcsi.debug");r||(r=[],g.qp("ytcsi.debug",r),g.qp("ytcsi.reference",{}));return r}; $_=function(r){r=r||"";var V=Wni();if(V[r])return V[r];var I=WS(),d={timerName:r,info:{},tick:{},span:{},jspbInfo:[]};I.push(d);return V[r]=d}; $0S=function(r){r=r||"";var V=Wni();V[r]&&delete V[r];var I=WS(),d={timerName:r,info:{},tick:{},span:{},jspbInfo:[]};I.push(d);V[r]=d}; Wni=function(){var r=g.Pr("ytcsi.reference");if(r)return r;WS();return g.Pr("ytcsi.reference")}; Kq=function(r){return Kng[r]||"LATENCY_ACTION_UNKNOWN"}; RE=function(r,V){M0.call(this,1,arguments);this.aL=V}; ts=function(){this.G=0}; y2=function(){ts.instance||(ts.instance=new ts);return ts.instance}; GX=function(r,V){As[V]=As[V]||{count:0};var I=As[V];I.count++;I.time=(0,g.m)();r.G||(r.G=g.IY(0,function(){var d=(0,g.m)(),a;for(a in As)As[a]&&d-As[a].time>6E4&&delete As[a];r&&(r.G=0)},5E3)); return I.count>5?(I.count===6&&Math.random()*1E5<1&&(I=new g.ox("CSI data exceeded logging limit with key",V.split("_")),V.indexOf("plev")>=0||g.gj(I)),!0):!1}; RVA=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; tFX=function(){var r;if(g.WR("csi_use_performance_navigation_timing")||g.WR("csi_use_performance_navigation_timing_tvhtml5")){var V,I,d,a=FM==null?void 0:(r=FM.getEntriesByType)==null?void 0:(V=r.call(FM,"navigation"))==null?void 0:(I=V[0])==null?void 0:(d=I.toJSON)==null?void 0:d.call(I);a?(a.requestStart=lC(a.requestStart),a.responseEnd=lC(a.responseEnd),a.redirectStart=lC(a.redirectStart),a.redirectEnd=lC(a.redirectEnd),a.domainLookupEnd=lC(a.domainLookupEnd),a.connectStart=lC(a.connectStart), a.connectEnd=lC(a.connectEnd),a.responseStart=lC(a.responseStart),a.secureConnectionStart=lC(a.secureConnectionStart),a.domainLookupStart=lC(a.domainLookupStart),a.isPerformanceNavigationTiming=!0,r=a):r=FM.timing}else r=g.WR("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(FM.timing)):FM.timing;return r}; lC=function(r){return Math.round(Lq()+r)}; Lq=function(){return(g.WR("csi_use_time_origin")||g.WR("csi_use_time_origin_tvhtml5"))&&FM.timeOrigin?Math.floor(FM.timeOrigin):FM.timing.navigationStart}; ZP=function(r,V){Js("_start",r,V)}; XM=function(r,V){if(!g.WR("web_csi_action_sampling_enabled")||!TX(V).actionDisabled){var I=$_(V||"");HZ(I.info,r);r.loadType&&(I=r.loadType,HS(V).loadType=I);HZ(OAZ(V),r);I=OY(V);V=TX(V).cttAuthInfo;y2().info(r,I,V)}}; yBZ=function(){var r,V,I,d;return((d=gT().resolve(LV(Ec))==null?void 0:(r=N0())==null?void 0:(V=r.loggingHotConfig)==null?void 0:(I=V.csiConfig)==null?void 0:I.debugTicks)!=null?d:[]).map(function(a){return Object.values(a)[0]})}; Js=function(r,V,I){if(!g.WR("web_csi_action_sampling_enabled")||!TX(I).actionDisabled){var d=OY(I),a;if(a=g.WR("web_csi_debug_sample_enabled")&&d){(gT().resolve(LV(Ec))==null?0:N0())&&!ABS&&(ABS=!0,Js("gcfl",(0,g.m)(),I));var f,e,n;a=(gT().resolve(LV(Ec))==null?void 0:(f=N0())==null?void 0:(e=f.loggingHotConfig)==null?void 0:(n=e.csiConfig)==null?void 0:n.debugSampleWeight)||0;if(f=a!==0)b:{f=yBZ();if(f.length>0)for(e=0;eI.duration?d:I},{duration:0}))&&V.startTime>0&&V.responseEnd>0&&(Js("wffs",lC(V.startTime)),Js("wffe",lC(V.responseEnd)))}; XHi=function(r,V,I){FM&&FM.measure&&(r.startsWith("measure_")||(r="measure_"+r),I?FM.measure(r,V,I):V?FM.measure(r,V):FM.measure(r))}; BQi=function(r){var V=BS("aft",r);if(V)return V;V=g.kt((r||"")+"TIMING_AFT_KEYS",["ol"]);for(var I=V.length,d=0;d0&&XM(V);V={isNavigation:!0,actionType:Kq(g.kt("TIMING_ACTION"))};var I=g.kt("PREVIOUS_ACTION");I&&(V.previousAction=Kq(I));if(I=g.kt("CLIENT_PROTOCOL"))V.httpProtocol=I;if(I=g.kt("CLIENT_TRANSPORT"))V.transportProtocol=I;(I=g.A8())&&I!=="UNDEFINED_CSN"&&(V.clientScreenNonce=I);I=lZh();if(I===1||I===-1)V.isVisible= !0;I=HS().loadType==="cold";var d=bAX();I||(I=d.yt_lt==="cold");if(I){V.loadType="cold";I=bAX();d=tFX();var a=Lq(),f=g.kt("CSI_START_TIMESTAMP_MILLIS",0);f>0&&!g.WR("embeds_web_enable_csi_start_override_killswitch")&&(a=f);a&&(Js("srt",d.responseStart),I.prerender!==1&&ZP(a));I=iAi();I>0&&Js("fpt",I);I=tFX();I.isPerformanceNavigationTiming&&XM({performanceNavigationTiming:!0},void 0);Js("nreqs",I.requestStart,void 0);Js("nress",I.responseStart,void 0);Js("nrese",I.responseEnd,void 0);I.redirectEnd- I.redirectStart>0&&(Js("nrs",I.redirectStart,void 0),Js("nre",I.redirectEnd,void 0));I.domainLookupEnd-I.domainLookupStart>0&&(Js("ndnss",I.domainLookupStart,void 0),Js("ndnse",I.domainLookupEnd,void 0));I.connectEnd-I.connectStart>0&&(Js("ntcps",I.connectStart,void 0),Js("ntcpe",I.connectEnd,void 0));I.secureConnectionStart>=Lq()&&I.connectEnd-I.secureConnectionStart>0&&(Js("nstcps",I.secureConnectionStart,void 0),Js("ntcpe",I.connectEnd,void 0));FM&&"getEntriesByType"in FM&&ZAj();I=[];if(document.querySelector&& FM&&FM.getEntriesByName)for(var e in iC)iC.hasOwnProperty(e)&&(d=iC[e],JBg(e,d)&&I.push(d));if(I.length>0)for(V.resourceInfo=[],e=g.H(I),I=e.next();!I.done;I=e.next())V.resourceInfo.push({resourceCache:I.value})}XM(V);V=bC();V.preLoggedGelInfos||(V.preLoggedGelInfos=[]);e=V.preLoggedGelInfos;V=OAZ();I=void 0;for(d=0;d-1&&(delete bX["@type"],p=bX);w&&r.X.has(w)&&r.X.delete(w);((Ui=V.config)==null?0:Ui.pHs)&&Q2(V.config.pHs);if(p||($f=r.S)==null||!$f.z6E(V.input,V.Iu)){yZ.qk(15);break}return g.G(yZ,r.S.a3E(V.input,V.Iu),16);case 16:p=yZ.G;case 15:return eLj(r,p,V),((jp=V.config)==null?0:jp.gbC)&&Q2(V.config.gbC),d(),yZ.return(p|| void 0)}})}; Vli=function(r,V){a:{r=r.Up;var I,d=(I=g.U(V,s1A))==null?void 0:I.signal;if(d&&r.vX&&(I=r.vX[d])){var a=I();break a}var f;if((I=(f=g.U(V,cBp))==null?void 0:f.request)&&r.lU&&(f=r.lU[I])){a=f();break a}for(a in V)if(r.i4[a]&&(V=r.i4[a])){a=V();break a}a=void 0}if(a!==void 0)return Promise.resolve(a)}; duX=function(r,V,I){var d,a,f,e,n,D,x;return g.L(function(E){if(E.X==1){f=((d=V)==null?void 0:(a=d.Wo)==null?void 0:a.identity)||zT;D=(e=V)==null?void 0:(n=e.Wo)==null?void 0:n.sessionIndex;var N=g.yg(r.G.X$(f,{sessionIndex:D}));return g.G(E,N,2)}x=E.G;return E.return(Promise.resolve(Object.assign({},MFX(I),x)))})}; Ijh=function(r,V,I){var d,a=(V==null?void 0:(d=V.Wo)==null?void 0:d.identity)||zT,f;V=V==null?void 0:(f=V.Wo)==null?void 0:f.sessionIndex;r=r.G.X$(a,{sessionIndex:V});return Object.assign({},MFX(I),r)}; hs=function(){}; rH=function(){}; VI=function(r){this.C=r}; Iy=function(){}; dH=function(){}; ay=function(){}; fn=function(){}; g.eI=function(r,V){var I=g.ZU.apply(2,arguments);r=r===void 0?0:r;g.ox.call(this,V,I);this.errorType=r;Object.setPrototypeOf(this,this.constructor.prototype)}; nn=function(r,V,I,d){this.G=r;this.X=V;this.S=I;this.Y=d}; nnU=function(r,V,I){if(r.G){var d=tg(Xt(V,"key"))||"/UNKNOWN_PATH";r.G.start(d)}d=I;g.WR("wug_networking_gzip_request")&&(d=Svr(I));var a;return new ((a=r.Y)!=null?a:window.Request)(V,d)}; g.DR=function(r,V){if(!jI){var I=gT();Jv(I,{PW:jMj,Hf:nn});var d={i4:{feedbackEndpoint:d4(Iy),modifyChannelNotificationPreferenceEndpoint:d4(dH),playlistEditEndpoint:d4(ay),shareEntityEndpoint:d4(VI),subscribeEndpoint:d4(hs),unsubscribeEndpoint:d4(rH),webPlayerShareEntityServiceEndpoint:d4(fn)}},a=r4.getInstance(),f={};a&&(f.client_location=a);r===void 0&&(r=qKi());V===void 0&&(V=I.resolve(jMj));rvj(d,V,r,f);Jv(I,{PW:Duj,QD:PS.instance});jI=I.resolve(Duj)}return jI}; xup=function(r){var V=new NF;if(r.interpreterJavascript){var I=G3X(r.interpreterJavascript);I=nJ(I).toString();var d=new x0;rZ(d,6,I);mv(V,x0,1,d,wq)}else r.interpreterUrl&&(I=Rq(r.interpreterUrl),I=Q3(I).toString(),d=new Ed,rZ(d,4,I),mv(V,Ed,2,d,wq));r.interpreterHash&&VP(V,3,r.interpreterHash,wq);r.program&&VP(V,4,r.program,wq);r.globalName&&VP(V,5,r.globalName,wq);r.clientExperimentsStateBlob&&VP(V,7,r.clientExperimentsStateBlob,wq);return V}; xT=function(r){var V={};r=r.split("&");r=g.H(r);for(var I=r.next();!I.done;I=r.next())I=I.value.split("="),I.length===2&&(V[I[0]]=I[1]);return V}; yVg=function(){if(g.WR("bg_st_hr"))return"havuokmhhs-0";var r,V=((r=performance)==null?void 0:r.timeOrigin)||0;return"havuokmhhs-"+Math.floor(V)}; ET=function(r){this.G=r}; Env=function(){return new Promise(function(r){var V=window.top;V.ntpevasrs!==void 0?r(new ET(V.ntpevasrs)):(V.ntpqfbel===void 0&&(V.ntpqfbel=[]),V.ntpqfbel.push(function(I){r(new ET(I))}))})}; sMv=function(){if(!g.WR("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.WR("disable_biscotti_fetch_entirely_for_all_web_clients")&&eb()){var r=g.kt("PLAYER_VARS",{});if(g.ro(r,"privembed",!1)!="1"&&!w4A(r)){var V=function(){Nw=!0;"google_ad_status"in window?oq("DCLKSTAT",1):oq("DCLKSTAT",2)}; try{g.EJ("//static.doubleclick.net/instream/ad_status.js",V)}catch(I){}NTg.push(g.Qa.Dm(function(){if(!(Nw||"google_ad_status"in window)){try{if(V){var I=""+g.dP(V),d=wRO[I];d&&g.Dj(d)}}catch(a){}Nw=!0;oq("DCLKSTAT",3)}},5E3))}}}; sT=function(){var r=Number(g.kt("DCLKSTAT",0));return isNaN(r)?0:r}; Cn=function(r,V,I){var d=this;this.network=r;this.options=V;this.X=I;this.G=null;if(V.lGE){var a=new g.cA;this.G=a.promise;g.vr.ytAtRC&&Vs(function(){var f,e;return g.L(function(n){if(n.X==1){if(!g.vr.ytAtRC)return n.return();f=c1(null);return g.G(n,zU(d,f),2)}e=n.G;g.vr.ytAtRC&&g.vr.ytAtRC(JSON.stringify(e));g.Hr(n)})},2); Env().then(function(f){var e,n,D,x;return g.L(function(E){if(E.X==1)return f.bindInnertubeChallengeFetcher(function(N){return zU(d,c1(N))}),g.G(E,nQ(),2); e=E.G;n=f.getLatestChallengeResponse();D=n.challenge;if(!D)throw Error("BGE_MACIL");x={challenge:D,Z9:xT(D),x5:e,bgChallenge:new NF};a.resolve(x);f.registerChallengeFetchedCallback(function(N){N=N.challenge;if(!N)throw Error("BGE_MACR");N={challenge:N,Z9:xT(N),x5:e,bgChallenge:new NF};d.G=Promise.resolve(N)}); g.Hr(E)})})}else V.preload&&cvj(this,new Promise(function(f){g.IY(0,function(){f(Mw(d))},0)}))}; c1=function(r){var V={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};r&&(V.interpreterHash=r);return V}; Mw=function(r,V){V=V===void 0?0:V;var I,d,a,f,e,n,D,x,E,N,c,z;return g.L(function(M){switch(M.X){case 1:I=c1(Cb().G);if(g.WR("att_fet_ks"))return g.wA(M,7),g.G(M,zU(r,I),9);g.wA(M,4);return g.G(M,zLr(r,I),6);case 6:e=M.G;a=e.Rh0;f=e.sBL;d=e;g.$v(M,3);break;case 4:return g.th(M),g.gj(Error("Failed to fetch attestation challenge after "+(V+" attempts; not retrying for 24h."))),TU(r,864E5),M.return({challenge:"",Z9:{},x5:void 0,bgChallenge:void 0});case 9:d=M.G;if(!d)throw Error("Fetching Attestation challenge returned falsy"); if(!d.challenge)throw Error("Missing Attestation challenge");a=d.challenge;f=xT(a);if("c1a"in f&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.$v(M,3);break;case 7:n=g.th(M);g.gj(n);V++;if(V>=5)return g.gj(Error("Failed to fetch attestation challenge after "+(V+" attempts; not retrying for 24h."))),TU(r,864E5),M.return({challenge:"",Z9:{},x5:void 0,bgChallenge:void 0});D=1E3*Math.pow(2,V-1)+Math.random()*1E3;return M.return(new Promise(function(w){g.IY(0, function(){w(Mw(r,V))},D)})); case 3:x=Number(f.t)||7200;TU(r,x*1E3);E=void 0;if(!("c1a"in f&&d.bgChallenge)){M.qk(10);break}N=xup(d.bgChallenge);g.wA(M,11);return g.G(M,AEp(Cb(),N),13);case 13:g.$v(M,12);break;case 11:return c=g.th(M),g.gj(c),M.return({challenge:a,Z9:f,x5:E,bgChallenge:N});case 12:return g.wA(M,14),E=new z3({challenge:N,oR:{mH:"aGIf"}}),g.G(M,E.Pg,16);case 16:g.$v(M,10);break;case 14:z=g.th(M),g.gj(z),E=void 0;case 10:return M.return({challenge:a,Z9:f,x5:E,bgChallenge:N})}})}; zU=function(r,V){var I;return g.L(function(d){I=r.X;if(!I||I.hZ())return d.return(zU(r.network,V));qM("att_pna",void 0,"attestation_challenge_fetch");return d.return(new Promise(function(a){I.Su("publicytnetworkstatus-online",function(){zU(r.network,V).then(a)})}))})}; Mlj=function(r){if(!r)throw Error("Fetching Attestation challenge returned falsy");if(!r.challenge)throw Error("Missing Attestation challenge");var V=r.challenge,I=xT(V);if("c1a"in I&&(!r.bgChallenge||!r.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},r,{Rh0:V,sBL:I})}; zLr=function(r,V){var I,d,a,f,e;return g.L(function(n){switch(n.X){case 1:I=void 0,d=0,a={};case 2:if(!(d<5)){n.qk(4);break}if(!(d>0)){n.qk(5);break}a.Bc=1E3*Math.pow(2,d-1)+Math.random()*1E3;return g.G(n,new Promise(function(D){return function(x){g.IY(0,function(){x(void 0)},D.Bc)}}(a)),5); case 5:return g.wA(n,7),g.G(n,zU(r,V),9);case 9:return f=n.G,n.return(Mlj(f));case 7:I=e=g.th(n),e instanceof Error&&g.gj(e);case 8:d++;a={Bc:void 0};n.qk(2);break;case 4:throw I;}})}; cvj=function(r,V){r.G=V}; CiS=function(r){var V,I,d;return g.L(function(a){if(a.X==1)return g.G(a,Promise.race([r.G,null]),2);V=a.G;var f=Mw(r);r.G=f;(I=V)==null||(d=I.x5)==null||d.dispose();g.Hr(a)})}; TU=function(r,V){function I(){var a;return g.L(function(f){a=d-Date.now();return a<1E3?g.G(f,CiS(r),0):(Vs(I,0,Math.min(a,6E4)),f.qk(0))})} var d=Date.now()+V;I()}; TTA=function(r,V){return new Promise(function(I){g.IY(0,function(){I(V())},r)})}; g.HVX=function(r,V){var I;return g.L(function(d){var a=g.Pr("yt.aba.att");return(I=a?a:Cn.instance!==void 0?Cn.instance.S.bind(Cn.instance):null)?d.return(I("ENGAGEMENT_TYPE_PLAYBACK",r,V)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.wZX=function(){var r;return(r=(r=g.Pr("yt.aba.att2"))?r:Cn.instance!==void 0?Cn.instance.Y.bind(Cn.instance):null)?r():Promise.resolve(!1)}; OVX=function(r,V){var I=g.Pr("ytDebugData.callbacks");I||(I={},g.qp("ytDebugData.callbacks",I));if(g.WR("web_dd_iu")||bVp.includes(r))I[r]=V}; H1=function(){var r=WfA;var V=V===void 0?[]:V;var I=I===void 0?[]:I;V=$Fv.apply(null,[KSU.apply(null,g.R(V))].concat(g.R(I)));this.store=tch(r,void 0,V)}; g.wH=function(r,V,I){for(var d=Object.assign({},r),a=g.H(Object.keys(V)),f=a.next();!f.done;f=a.next()){f=f.value;var e=r[f],n=V[f];if(n===void 0)delete d[f];else if(e===void 0)d[f]=n;else if(Array.isArray(n)&&Array.isArray(e))d[f]=I?[].concat(g.R(e),g.R(n)):n;else if(!Array.isArray(n)&&g.Vc(n)&&!Array.isArray(e)&&g.Vc(e))d[f]=g.wH(e,n,I);else if(typeof n===typeof e)d[f]=n;else return V=new g.ox("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,eoM:e,updateValue:n}),g.BG(V), r}return d}; be=function(r){var V=this;r=r===void 0?[]:r;this.F3=[];this.JR=this.CM=0;this.rK=void 0;this.totalLength=0;r.forEach(function(I){V.append(I)})}; $uj=function(r,V){return r.F3.length===0?!1:(r=r.F3[r.F3.length-1])&&r.buffer===V.buffer&&r.byteOffset+r.length===V.byteOffset}; OT=function(r,V){V=g.H(V.F3);for(var I=V.next();!I.done;I=V.next())r.append(I.value)}; W1=function(r,V,I){return r.split(V).Xb.split(I).f4}; $T=function(r){r.rK=void 0;r.CM=0;r.JR=0}; Kn=function(r,V,I){r.isFocused(V);return V-r.JR+I<=r.F3[r.CM].length}; KfO=function(r){if(!r.rK){var V=r.F3[r.CM];r.rK=new DataView(V.buffer,V.byteOffset,V.length)}return r.rK}; Ry=function(r,V,I){r=r.ji(V===void 0?0:V,I===void 0?-1:I);V=new Uint8Array(r.length);try{V.set(r)}catch(d){for(I=0;I>10;f=56320|f&1023}Ap[a++]=f}}f=String.fromCharCode.apply(String,Ap); a<1024&&(f=f.substring(0,a));I.push(f)}return I.join("")}; le=function(r,V){var I;if((I=Fo)==null?0:I.encodeInto)return V=Fo.encodeInto(r,V),V.read>6|192:((a&64512)===55296&&d+1>18|240,V[I++]=a>>12&63|128):V[I++]=a>>12|224,V[I++]=a>>6&63|128),V[I++]=a&63|128)}return I}; Ln=function(r){if(Fo)return Fo.encode(r);var V=new Uint8Array(Math.ceil(r.length*1.2)),I=le(r,V);V.lengthI&&(V=V.subarray(0,I));return V}; Jp=function(r){this.G=r;this.pos=0;this.X=-1}; ZR=function(r){var V=r.G.getUint8(r.pos);++r.pos;if(V<128)return V;for(var I=V&127,d=1;V>=128;)V=r.G.getUint8(r.pos),++r.pos,d*=128,I+=(V&127)*d;return I}; Xo=function(r,V){var I=r.X;for(r.X=-1;r.G.XL(r.pos,1);){I<0&&(I=ZR(r));var d=I>>3,a=I&7;if(d===V)return!0;if(d>V){r.X=I;break}I=-1;switch(a){case 0:ZR(r);break;case 1:r.pos+=8;break;case 2:d=ZR(r);r.pos+=d;break;case 5:r.pos+=4}}return!1}; B1=function(r,V){if(Xo(r,V))return ZR(r)}; gH=function(r,V){if(Xo(r,V))return!!ZR(r)}; SI=function(r,V){if(Xo(r,V)){V=ZR(r);var I=r.G.ji(r.pos,V);r.pos+=V;return I}}; ie=function(r,V){if(r=SI(r,V))return g.GU(r)}; UT=function(r,V,I){if(r=SI(r,V))return I(new Jp(new be([r])))}; QI=function(r,V){for(var I=[];Xo(r,V);)I.push(ZR(r));return I.length?I:void 0}; mt=function(r,V,I){for(var d=[],a;a=SI(r,V);)d.push(I(new Jp(new be([a]))));return d.length?d:void 0}; ue=function(r,V){r=r instanceof Uint8Array?new be([r]):r;return V(new Jp(r))}; yvA=function(r,V,I){if(V&&I&&I.buffer===V.exports.memory.buffer){var d=V.realloc(I.byteOffset,r);if(d)return new Uint8Array(V.exports.memory.buffer,d,r)}r=V?new Uint8Array(V.exports.memory.buffer,V.malloc(r),r):new Uint8Array(r);I&&r.set(I);return r}; AvZ=function(r,V){this.Gy=V;this.pos=0;this.X=[];this.G=yvA(r===void 0?4096:r,V);this.view=new DataView(this.G.buffer,this.G.byteOffset,this.G.byteLength)}; pn=function(r,V){V=r.pos+V;if(!(r.G.length>=V)){for(var I=r.G.length*2;I268435455){pn(r,4);for(var I=V&1073741823,d=0;d<4;d++)r.view.setUint8(r.pos,I&127|128),I>>=7,r.pos+=1;V=Math.floor(V/268435456)}for(pn(r,4);V>127;)r.view.setUint8(r.pos,V&127|128),V>>=7,r.pos+=1;r.view.setUint8(r.pos,V);r.pos+=1}; qw=function(r,V,I){I!==void 0&&(v1(r,V*8),v1(r,I))}; P1=function(r,V,I){I!==void 0&&qw(r,V,I?1:0)}; oy=function(r,V,I){I!==void 0&&(v1(r,V*8+2),V=I.length,v1(r,V),pn(r,V),r.G.set(I,r.pos),r.pos+=V)}; kT=function(r,V,I){I!==void 0&&(GgO(r,V,Math.ceil(Math.log2(I.length*4+2)/7)),pn(r,I.length*1.2),V=le(I,r.G.subarray(r.pos)),r.pos+V>r.G.length&&(pn(r,V),V=le(I,r.G.subarray(r.pos))),r.pos+=V,FfX(r))}; GgO=function(r,V,I){I=I===void 0?2:I;v1(r,V*8+2);r.X.push(r.pos);r.X.push(I);r.pos+=I}; FfX=function(r){for(var V=r.X.pop(),I=r.X.pop(),d=r.pos-I-V;V--;){var a=V?128:0;r.view.setUint8(I++,d&127|a);d>>=7}}; hp=function(r,V,I,d,a){I&&(GgO(r,V,a===void 0?3:a),d(r,I),FfX(r))}; g.ru=function(r,V,I){I=new AvZ(4096,I);V(I,r);return new Uint8Array(I.G.buffer,I.G.byteOffset,I.pos)}; g.VG=function(r){var V=new Jp(new be([a3(decodeURIComponent(r))]));r=ie(V,2);V=B1(V,4);var I=ljj[V];if(typeof I==="undefined")throw r=new g.ox("Failed to recognize field number",{name:"EntityKeyHelperError",rp8:V}),g.BG(r),r;return{pX:V,entityType:I,entityId:r}}; g.Id=function(r,V){var I=I===void 0?0:I;var d=new AvZ;oy(d,2,Ln(r));r=LfX[V];if(typeof r==="undefined")throw I=new g.ox("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:V}),g.BG(I),I;qw(d,4,r);qw(d,5,1);V=new Uint8Array(d.G.buffer,d.G.byteOffset,d.pos);return encodeURIComponent(g.I3(V,I))}; du=function(r,V,I,d){if(d===void 0)return d=Object.assign({},r[V]||{}),I=(delete d[I],d),d={},Object.assign({},r,(d[V]=I,d));var a={},f={};return Object.assign({},r,(f[V]=Object.assign({},r[V],(a[I]=d,a)),f))}; Jvr=function(r,V,I,d,a){var f=r[V];if(f==null||!f[I])return r;d=g.wH(f[I],d,a==="REPEATED_FIELDS_MERGE_OPTION_APPEND");a={};f={};return Object.assign({},r,(f[V]=Object.assign({},r[V],(a[I]=d,a)),f))}; ZVh=function(r,V){r=r===void 0?{}:r;switch(V.type){case "ENTITY_LOADED":return V.payload.reduce(function(d,a){var f,e=(f=a.options)==null?void 0:f.persistenceOption;if(e&&e!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&e!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!a.entityKey)return g.BG(Error("Missing entity key")),d;if(a.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!a.payload)return a=new g.ox("REPLACE entity mutation is missing a payload",{entityKey:a.entityKey}),g.BG(a),d;var n=g.u$(a.payload); return du(d,n,a.entityKey,a.payload[n])}if(a.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{a=a.entityKey;try{var D=g.VG(a).entityType;n=du(d,D,a);break a}catch(N){if(N instanceof Error){a=new g.ox("Failed to deserialize entity key",{entityKey:a,originalMessage:N.message});g.BG(a);n=d;break a}throw N;}n=void 0}return n}if(a.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!a.payload)return a=new g.ox("UPDATE entity mutation is missing a payload",{entityKey:a.entityKey}),g.BG(a),d;n=g.u$(a.payload);var x,E;return Jvr(d, n,a.entityKey,a.payload[n],(x=a.fieldMask)==null?void 0:(E=x.mergeOptions)==null?void 0:E.repeatedFieldsMergeOption)}return d},r); case "REPLACE_ENTITY":var I=V.payload;return du(r,I.entityType,I.key,I.YH);case "REPLACE_ENTITIES":return Object.keys(V.payload).reduce(function(d,a){var f=V.payload[a];return Object.keys(f).reduce(function(e,n){return du(e,a,n,f[n])},d)},r); case "UPDATE_ENTITY":return I=V.payload,Jvr(r,I.entityType,I.key,I.YH,I.AuM);default:return r}}; ad=function(r,V,I){return r[V]?r[V][I]||null:null}; fX=function(r){return window.Int32Array?new Int32Array(r):Array(r)}; wu=function(r){g.X.call(this);this.counter=[0,0,0,0];this.X=new Uint8Array(16);this.G=16;if(!XZX){var V,I=new Uint8Array(256),d=new Uint8Array(256);var a=1;for(V=0;V<256;V++)I[a]=V,d[V]=a,a^=a<<1^(a>>7&&283);e7=new Uint8Array(256);YO=fX(256);nX=fX(256);j7=fX(256);Ha=fX(256);for(var f=0;f<256;f++){a=f?d[255^I[f]]:0;a^=a<<1^a<<2^a<<3^a<<4;a=a&255^a>>>8^99;e7[f]=a;V=a<<1^(a>>7&&283);var e=V^a;YO[f]=V<<24|a<<16|a<<8|e;nX[f]=e<<24|YO[f]>>>8;j7[f]=a<<24|nX[f]>>>8;Ha[f]=a<<24|j7[f]>>>8}XZX=!0}a=fX(44);for(I= 0;I<4;I++)a[I]=r[4*I]<<24|r[4*I+1]<<16|r[4*I+2]<<8|r[4*I+3];for(d=1;I<44;I++)r=a[I-1],I%4||(r=(e7[r>>16&255]^d)<<24|e7[r>>8&255]<<16|e7[r&255]<<8|e7[r>>>24],d=d<<1^(d>>7&&283)),a[I]=a[I-4]^r;this.key=a}; bI=function(r,V){for(var I=0;I<4;I++)r.counter[I]=V[I*4]<<24|V[I*4+1]<<16|V[I*4+2]<<8|V[I*4+3];r.G=16}; BTg=function(r){for(var V=r.key,I=r.counter[0]^V[0],d=r.counter[1]^V[1],a=r.counter[2]^V[2],f=r.counter[3]^V[3],e=3;e>=0&&!(r.counter[e]=-~r.counter[e]);e--);for(var n,D,x=4;x<40;)e=YO[I>>>24]^nX[d>>16&255]^j7[a>>8&255]^Ha[f&255]^V[x++],n=YO[d>>>24]^nX[a>>16&255]^j7[f>>8&255]^Ha[I&255]^V[x++],D=YO[a>>>24]^nX[f>>16&255]^j7[I>>8&255]^Ha[d&255]^V[x++],f=YO[f>>>24]^nX[I>>16&255]^j7[d>>8&255]^Ha[a&255]^V[x++],I=e,d=n,a=D;r=r.X;e=V[40];r[0]=e7[I>>>24]^e>>>24;r[1]=e7[d>>16&255]^e>>16&255;r[2]=e7[a>>8&255]^ e>>8&255;r[3]=e7[f&255]^e&255;e=V[41];r[4]=e7[d>>>24]^e>>>24;r[5]=e7[a>>16&255]^e>>16&255;r[6]=e7[f>>8&255]^e>>8&255;r[7]=e7[I&255]^e&255;e=V[42];r[8]=e7[a>>>24]^e>>>24;r[9]=e7[f>>16&255]^e>>16&255;r[10]=e7[I>>8&255]^e>>8&255;r[11]=e7[d&255]^e&255;e=V[43];r[12]=e7[f>>>24]^e>>>24;r[13]=e7[I>>16&255]^e>>16&255;r[14]=e7[d>>8&255]^e>>8&255;r[15]=e7[a&255]^e&255}; $O=function(){if(!OA&&!g.kw){if(Wa)return Wa;var r;Wa=(r=window.crypto)==null?void 0:r.subtle;var V,I,d;if(((V=Wa)==null?0:V.importKey)&&((I=Wa)==null?0:I.sign)&&((d=Wa)==null?0:d.encrypt))return Wa;Wa=void 0}}; g.KX=function(r){this.X=r}; gnr=function(r,V,I,d){var a,f;return g.L(function(e){switch(e.X){case 1:if(r.S){e.qk(2);break}return g.G(e,d.importKey("raw",r.X,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:r.S=e.G;case 2:return a={name:"AES-CTR",counter:I,length:128},g.G(e,d.encrypt(a,r.S,V),4);case 4:return f=e.G,e.return(new Uint8Array(f))}})}; SJr=function(r,V,I){r.G||(r.G=new wu(r.X));bI(r.G,I);return r.G.encrypt(V)}; g.Rd=function(r){this.X=r}; tk=function(r){this.W=new Uint8Array(64);this.S=new Uint8Array(64);this.Y=0;this.C=new Uint8Array(64);this.X=0;this.W.set(r);this.S.set(r);for(r=0;r<64;r++)this.W[r]^=92,this.S[r]^=54;this.reset()}; iVv=function(r,V,I){for(var d=r.L,a=r.G[0],f=r.G[1],e=r.G[2],n=r.G[3],D=r.G[4],x=r.G[5],E=r.G[6],N=r.G[7],c,z,M,w=0;w<64;)w<16?(d[w]=M=V[I]<<24|V[I+1]<<16|V[I+2]<<8|V[I+3],I+=4):(c=d[w-2],z=d[w-15],M=d[w-7]+d[w-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3),d[w]=M),c=N+yG[w]+M+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&x^~D&E),z=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&f^a&e^f&e),N=c+z,n+=c,w++,w<16?(d[w]=M=V[I]<<24|V[I+1]<<16|V[I+2]<<8|V[I+3],I+=4):(c= d[w-2],z=d[w-15],M=d[w-7]+d[w-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3),d[w]=M),c=E+yG[w]+M+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&D^~n&x),z=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&a^N&f^a&f),E=c+z,e+=c,w++,w<16?(d[w]=M=V[I]<<24|V[I+1]<<16|V[I+2]<<8|V[I+3],I+=4):(c=d[w-2],z=d[w-15],M=d[w-7]+d[w-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3),d[w]=M),c=x+yG[w]+M+((e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(e&n^ ~e&D),z=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&N^E&a^N&a),x=c+z,f+=c,w++,w<16?(d[w]=M=V[I]<<24|V[I+1]<<16|V[I+2]<<8|V[I+3],I+=4):(c=d[w-2],z=d[w-15],M=d[w-7]+d[w-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3),d[w]=M),c=D+yG[w]+M+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&e^~f&n),z=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+(x&E^x&N^E&N),M=N,N=n,n=M,M=E,E=e,e=M,M=x,x=f,f=M,D=a+c,a=c+z,w++;r.G[0]=a+r.G[0]|0;r.G[1]=f+r.G[1]|0;r.G[2]=e+r.G[2]|0;r.G[3]= n+r.G[3]|0;r.G[4]=D+r.G[4]|0;r.G[5]=x+r.G[5]|0;r.G[6]=E+r.G[6]|0;r.G[7]=N+r.G[7]|0}; QMi=function(r){var V=new Uint8Array(32),I=64-r.X;r.X>55&&(I+=64);var d=new Uint8Array(I);d[0]=128;for(var a=r.Y*8,f=1;f<9;f++){var e=a%256;d[I-f]=e;a=(a-e)/256}r.update(d);for(I=0;I<8;I++)V[I*4]=r.G[I]>>>24,V[I*4+1]=r.G[I]>>>16&255,V[I*4+2]=r.G[I]>>>8&255,V[I*4+3]=r.G[I]&255;Uuj(r);return V}; Uuj=function(r){r.G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];r.L=[];r.L.length=64;r.Y=0;r.X=0}; muX=function(r){this.G=r}; ubh=function(r,V,I){r=new tk(r.G);r.update(V);r.update(I);V=QMi(r);r.update(r.W);r.update(V);V=QMi(r);r.reset();return V}; pZi=function(r){this.X=r}; vnO=function(r,V,I,d){var a,f,e;return g.L(function(n){switch(n.X){case 1:if(r.G){n.qk(2);break}return g.G(n,d.importKey("raw",r.X,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:r.G=n.G;case 2:return a=new Uint8Array(V.length+I.length),a.set(V),a.set(I,V.length),f={name:"HMAC",hash:"SHA-256"},g.G(n,d.sign(f,r.G,a),4);case 4:return e=n.G,n.return(new Uint8Array(e))}})}; qJv=function(r,V,I){r.S||(r.S=new muX(r.X));return ubh(r.S,V,I)}; PiU=function(r,V,I){var d,a;return g.L(function(f){if(f.X==1){d=$O();if(!d)return f.return(qJv(r,V,I));g.wA(f,3);return g.G(f,vnO(r,V,I,d),5)}if(f.X!=3)return f.return(f.G);a=g.th(f);g.gj(a);OA=!0;return f.return(qJv(r,V,I))})}; kgS=function(r){for(var V="",I=0;I=1?r[r.length-1]:null;for(var d=g.H(r),a=d.next();!a.done;a=d.next())if(a=a.value,a.width&&a.height&&(I&&a.width>=V||!I&&a.height>=V))return a;for(V=r.length-1;V>=0;V--)if(I&&r[V].width||!I&&r[V].height)return r[V];return r[0]}; Gr=function(){this.state=1;this.x5=null;this.Kj=void 0}; Dov=function(r,V,I,d,a,f){var e=e===void 0?"trayride":e;I?(r.Az(2),g.EJ(I,function(){if(window[e])j9X(r,d,e,a);else{r.Az(3);var n=H5X(I),D=document.getElementById(n);D&&(CdZ(n),D.parentNode.removeChild(D));g.gj(new g.ox("BL:ULB",""+I))}},f)):V?(f=g.rX("SCRIPT"),V instanceof YE?(f.textContent=nJ(V),j1(f)):f.textContent=V,f.nonce=fJ(document),document.head.appendChild(f),document.head.removeChild(f),window[e]?j9X(r,d,e,a):(r.Az(4),g.gj(new g.ox("BL:ULBJ")))):g.gj(new g.ox("BL:ULV"))}; j9X=function(r,V,I,d){r.Az(5);var a=!!r.Kj&&xoA.includes(g.Rn(r.Kj)||"");try{var f=new z3({program:V,globalName:I,oR:{disable:!g.WR("att_web_record_metrics")||!g.WR("att_skip_metrics_for_cookieless_domains_ks")&&a,mH:"aGIf"}});f.Pg.then(function(){r.Az(6);d&&d(V)}); r.P8(f)}catch(e){r.Az(7),e instanceof Error&&g.gj(e)}}; Fi=function(){var r=g.Pr("yt.abuse.playerAttLoader");return r&&["bgvma","bgvmb","bgvmc"].every(function(V){return V in r})?r:null}; lI=function(){Gr.apply(this,arguments)}; LX=function(){}; ERA=function(r,V,I){for(var d=!1,a=g.H(r.hp.entries()),f=a.next();!f.done;f=a.next())f=g.H(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.K8==="core"&&(d=!0);if(d){a:if(!I){r=g.H(r.hp.entries());for(I=r.next();!I.done;I=r.next())if(d=g.H(I.value),I=d.next().value,d=d.next().value,I.slotType==="SLOT_TYPE_IN_PLAYER"&&I.K8==="core"){I=d.layoutId;break a}I=void 0}I?V.uC(I):zQ("No triggering layout ID available when attempting to mute.")}}; Jk=function(r,V){this.yF=r;this.TL=V}; Zq=function(){}; Xi=function(){}; s9X=function(r){g.X.call(this);var V=this;this.gh=r;this.G=new Map;Ba(this,"commandExecutorCommand",function(I,d,a){Njg(V,I.commands,d,a)}); Ba(this,"clickTrackingParams",function(){})}; c8A=function(r,V){Ba(r,V.F6(),function(I,d,a){V.YC(I,d,a)})}; Ba=function(r,V,I){r.h0();r.G.get(V)&&g.BG(Error("Extension name "+V+" already registered"));r.G.set(V,I)}; Njg=function(r,V,I,d){V=V===void 0?[]:V;r.h0();var a=[],f=[];V=g.H(V);for(var e=V.next();!e.done;e=V.next())e=e.value,g.U(e,zng)||g.U(e,MUp)?a.push(e):f.push(e);a=g.H(a);for(V=a.next();!V.done;V=a.next())gu(r,V.value,I,d);f=g.H(f);for(a=f.next();!a.done;a=f.next())gu(r,a.value,I,d)}; gu=function(r,V,I,d){r.h0();V.loggingUrls&&Ccj(r,"loggingUrls",V.loggingUrls,I,d);V=g.H(Object.entries(V));for(var a=V.next();!a.done;a=V.next()){var f=g.H(a.value);a=f.next().value;f=f.next().value;a==="openPopupAction"?r.gh.get().Ov("innertubeCommand",{openPopupAction:f}):a==="confirmDialogEndpoint"?r.gh.get().Ov("innertubeCommand",{confirmDialogEndpoint:f}):TjX.hasOwnProperty(a)||Ccj(r,a,f,I,d)}}; Ccj=function(r,V,I,d,a){if((r=r.G.get(V))&&typeof r==="function")try{r(I,d,a)}catch(f){g.BG(f)}else V=new g.ox("Unhandled field",V),g.gj(V)}; S7=function(r,V,I){this.w$=r;this.G=V;this.sE=I;Jv(gT(),{PW:Yyp,Hf:enh})}; iI=function(r){this.value=r}; UA=function(r){this.value=r}; QG=function(r){this.value=r}; mM=function(r){this.value=r}; uI=function(r){this.value=r}; pX=function(r){this.value=r}; va=function(r){this.value=r}; qT=function(){iI.apply(this,arguments)}; Pa=function(r){this.value=r}; od=function(r){this.value=r}; kO=function(r){this.value=r}; hk=function(r){this.value=r}; rc=function(r){this.value=r}; Vx=function(r){this.value=r}; IH=function(r){this.value=r}; dc=function(r){this.value=r}; aH=function(r){this.value=r}; fU=function(r){this.value=r}; eH=function(){iI.apply(this,arguments)}; YD=function(r){this.value=r}; nU=function(r){this.value=r}; jH=function(r){this.value=r}; Dy=function(r){this.value=r}; xD=function(r){this.value=r}; EX=function(r){this.value=r}; ND=function(r){this.value=r}; sX=function(r){this.value=r}; cw=function(r){this.value=r}; z1=function(r){this.value=r}; MD=function(r){this.value=r}; CU=function(r){this.value=r}; T1=function(r){this.value=r}; Hw=function(r){this.value=r}; wc=function(r){this.value=r}; b6=function(r){this.value=r}; OX=function(r){this.value=r}; Ww=function(r){this.value=r}; $D=function(r){this.value=r}; KU=function(r){this.value=r}; RH=function(r){this.value=r}; tU=function(r){this.value=r}; yx=function(r){this.value=r}; AU=function(r){this.value=r}; G1=function(r){this.value=r}; Fx=function(r){this.value=r}; l6=function(r){this.value=r}; LU=function(r){this.value=r}; JU=function(r){this.value=r}; Zy=function(r){this.value=r}; Xx=function(r){this.value=r}; Bw=function(r){this.value=r}; gc=function(r){this.value=r}; SH=function(r){this.value=r}; i6=function(r){this.value=r}; UX=function(r){this.value=r}; Qx=function(r){this.value=r}; mh=function(r){this.value=r}; u6=function(){iI.apply(this,arguments)}; pU=function(r){this.value=r}; vw=function(){iI.apply(this,arguments)}; qD=function(){iI.apply(this,arguments)}; Pw=function(){iI.apply(this,arguments)}; oH=function(){iI.apply(this,arguments)}; kD=function(){iI.apply(this,arguments)}; hU=function(r){this.value=r}; ri=function(r){this.value=r}; VA=function(r){this.value=r}; IV=function(r){this.value=r}; di=function(r){this.value=r}; fM=function(r,V,I){if(I&&!I.includes(r.layoutType))return!1;V=g.H(V);for(I=V.next();!I.done;I=V.next())if(!aV(r.clientMetadata,I.value))return!1;return!0}; eC=function(){return""}; HOA=function(r,V){switch(r){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 V(r),8}}; Yp=function(r,V,I,d){d=d===void 0?!1:d;xf.call(this,r);this.j$=I;this.CQ=d;this.args=[];V&&this.args.push(V)}; q=function(r,V,I,d){d=d===void 0?!1:d;xf.call(this,r);this.j$=I;this.CQ=d;this.args=[];V&&this.args.push(V)}; nM=function(r){var V=new Map;r.forEach(function(I){V.set(I.getType(),I)}); this.G=V}; aV=function(r,V){return r.G.has(V)}; jC=function(r,V){r=r.G.get(V);if(r!==void 0)return r.get()}; D9=function(r){return Array.from(r.G.keys())}; xp=function(r,V,I){if(I&&I!==r.slotType)return!1;V=g.H(V);for(I=V.next();!I.done;I=V.next())if(!aV(r.clientMetadata,I.value))return!1;return!0}; bOX=function(r){var V;return((V=wGU.get(r))==null?void 0:V.Ac)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; N_=function(r,V){var I={type:V.slotType,controlFlowManagerLayer:OOg.get(V.K8)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};V.slotEntryTrigger&&(I.entryTriggerType=V.slotEntryTrigger.triggerType);V.slotPhysicalPosition!==1&&(I.slotPhysicalPosition=V.slotPhysicalPosition);if(r){I.debugData={slotId:V.slotId};if(r=V.slotEntryTrigger)I.debugData.slotEntryTriggerData=Ep(r);r=V.slotFulfillmentTriggers;I.debugData.fulfillmentTriggerData=[];r=g.H(r);for(var d=r.next();!d.done;d=r.next())I.debugData.fulfillmentTriggerData.push(Ep(d.value)); V=V.slotExpirationTriggers;I.debugData.expirationTriggerData=[];V=g.H(V);for(r=V.next();!r.done;r=V.next())I.debugData.expirationTriggerData.push(Ep(r.value))}return I}; WsA=function(r,V){var I={type:V.layoutType,controlFlowManagerLayer:OOg.get(V.K8)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};r&&(I.debugData={layoutId:V.layoutId});return I}; Ep=function(r,V){var I={type:r.triggerType};V!=null&&(I.category=V);r.triggeringSlotId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedSlotId=r.triggeringSlotId);r.triggeringLayoutId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedLayoutId=r.triggeringLayoutId);return I}; $og=function(r,V,I,d){V={opportunityType:V};r&&(d||I)&&(d=g.uE(d||[],function(a){return N_(r,a)}),V.debugData=Object.assign({},I&&I.length>0?{associatedSlotId:I}:{},d.length>0?{slots:d}:{})); return V}; cE=function(r,V){return function(I){return KsS(sp(r),V.slotId,V.slotType,V.slotPhysicalPosition,V.K8,V.slotEntryTrigger,V.slotFulfillmentTriggers,V.slotExpirationTriggers,I.layoutId,I.layoutType,I.K8)}}; KsS=function(r,V,I,d,a,f,e,n,D,x,E){return{adClientDataEntry:{slotData:N_(r,{slotId:V,slotType:I,slotPhysicalPosition:d,K8:a,slotEntryTrigger:f,slotFulfillmentTriggers:e,slotExpirationTriggers:n,clientMetadata:new nM([])}),layoutData:WsA(r,{layoutId:D,layoutType:x,K8:E,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],Ou:new Map,clientMetadata:new nM([]),zz:{}})}}}; M_=function(r){this.ws=r;r=Math.random();var V=this.ws.get();V=g.zM(V.T.N().experiments,"html5_debug_data_log_probability");V=Number.isFinite(V)&&V>=0&&V<=1?V:0;this.G=r1){g.gj(new g.ox("Exit already started",{current:r.currentState}));var I=!1}else I=!0;if(!I)return!1;r.currentState=2;r.G=V;return!0}; OU=function(r){if(r.currentState!==2)return!1;r.currentState=3;return!0}; d5i=function(r,V){var I=new Map;r=g.H(r);for(var d=r.next();!d.done;d=r.next()){d=d.value;if(d.layoutType==="LAYOUT_TYPE_MEDIA")var a="v";else d.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(a=jC(d.clientMetadata,"metadata_type_linked_in_player_layout_type"),a=a==="LAYOUT_TYPE_ENDCAP"||a==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":a==="LAYOUT_TYPE_SURVEY"?"s":a==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):a="u";I.set(d.layoutId,a);if(a==="u"){var f={};a=V;d=(f.c=d.layoutId,f);a.T.Hs("uct",d)}}r= V.E6();Wq={contentCpn:r,uf:I};d={};I=(d.ct=I.size,d.c=r,d);V.T.Hs("acc",I)}; afg=function(){Wq={contentCpn:"",uf:new Map}}; $d=function(r){var V;return(V=Wq.uf.get(r))!=null?V:"u"}; KN=function(r,V,I){r.T.Hs(V,I);ffi(r)}; eji=function(r){var V=r.layoutId,I=r.zc;if(r.Yo){var d={};KN(r.w$,"slso",(d.ec=V,d.is=I,d.ctp=$d(V),d))}}; Re=function(r){var V=r.layoutId,I=r.zc;if(r.Yo){var d={};KN(r.w$,"slse",(d.ec=V,d.is=I,d.ctp=$d(V),d))}}; Y9A=function(r){var V=r.layoutId,I=r.zc,d=r.w$;r.Yo&&(r={},KN(d,"sleo",(r.xc=V,r.is=I,r.ctp=$d(V),r)),ffi(d))}; n8v=function(r){var V=r.cpn,I=r.w$;r=r.zc;var d=I.E6(),a={};KN(I,"ce",(a.ec=V,a.ia=V!==d,a.r=Wq.uf.has(V),a.is=r,a.ctp=$d(V),a))}; ffi=function(r){if(r.E6()!==Wq.contentCpn){var V={};V=(V.c=Wq.contentCpn,V);r.T.Hs("ccm",V)}}; joh=function(r){var V=r.cpn,I=r.w$;r=r.zc;var d=I.E6(),a={};KN(I,"cx",(a.xc=V,a.ia=V!==d,a.r=Wq.uf.has(V),a.is=r,a.ctp=$d(V),a))}; D5i=function(r){this.params=r;this.G=new Set}; x5A=function(r,V,I){if(!r.G.has(V)){r.G.add(V);var d={};r.params.QM.Ps(V,Object.assign({},I,(d.p_ac=r.params.adCpn,d.p_isv=r.params.fMM&&r.params.BK,d)))}}; yf=function(r,V,I){if(t4(r.params.QM.ws.get(),!0)){var d=I.flush,a={};x5A(r,V,(a.cts=I.currentTimeSec,a.f=d,a))}}; E8S=function(r,V){this.w$=r;this.ws=V}; A4=function(r){var V=[];if(r){r=g.H(Object.entries(r));for(var I=r.next();!I.done;I=r.next()){var d=g.H(I.value);I=d.next().value;d=d.next().value;d!==void 0&&(d=typeof d==="boolean"?""+ +d:(""+d).replace(/[:,=]/g,"_"),V.push(I+"."+d))}}return V.join(";")}; Gk=function(r,V,I){V=V===void 0?{}:V;this.errorCode=r;this.details=V;this.severity=I===void 0?0:I}; Fa=function(r){return r===1||r===2}; lS=function(r,V){V=V===void 0?0:V;if(r instanceof Gk)return r;r=r&&r instanceof Error?r:Error(""+r);Fa(V)?g.BG(r):g.gj(r);return new Gk(V===1?"player.fatalexception":"player.exception",{name:""+r.name,message:""+r.message},V)}; NUi=function(r,V){function I(){var d=g.ZU.apply(0,arguments);r.removeEventListener("playing",I);V.apply(null,g.R(d))} r.addEventListener("playing",I)}; LN=function(){var r=g.Pr("yt.player.utils.videoElement_");r||(r=g.rX("VIDEO"),g.qp("yt.player.utils.videoElement_",r));return r}; J4=function(r){var V=LN();return!!(V&&V.canPlayType&&V.canPlayType(r))}; Xa=function(r){if(/opus/.test(r)&&g.Zk&&!tO("38")&&!g.qL())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(r);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(r);if(/webm/.test(r)&&!MkO())return!1;r==='audio/mp4; codecs="mp4a.40.2"'&&(r='video/mp4; codecs="avc1.4d401f"');return!!J4(r)}; soS=function(r){try{var V=Xa('video/mp4; codecs="avc1.42001E"')||Xa('video/webm; codecs="vp9"');return(Xa('audio/mp4; codecs="mp4a.40.2"')||Xa('audio/webm; codecs="opus"'))&&(V||!r)||J4('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(I){return"html5.missingapi"}}; Bq=function(){var r=LN();return!(!r.webkitSupportsPresentationMode||typeof r.webkitSetPresentationMode!=="function")}; gE=function(){var r=LN();try{var V=r.muted;r.muted=!V;return r.muted!==V}catch(I){}return!1}; ctr=function(){var r;return((r=navigator.connection)==null?void 0:r.type)||""}; g.Su=function(){Gc.apply(this,arguments)}; iS=function(r,V,I,d,a,f,e,n){this.sampleRate=r===void 0?0:r;this.numChannels=V===void 0?0:V;this.spatialAudioType=I===void 0?"SPATIAL_AUDIO_TYPE_NONE":I;this.G=d===void 0?!1:d;this.Y=a===void 0?0:a;this.S=f===void 0?0:f;this.audioQuality=e===void 0?"AUDIO_QUALITY_UNKNOWN":e;this.X=n===void 0?!1:n}; m6=function(r,V,I,d,a,f,e,n,D){this.width=r;this.height=V;this.quality=f||UU(r,V);this.qualityOrdinal=g.Qf[this.quality];this.fps=I||0;this.stereoLayout=!a||d!=null&&d!=="UNKNOWN"&&d!=="RECTANGULAR"?0:a;this.projectionType=d?d==="EQUIRECTANGULAR"&&a===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(r=e)||(r=g.Qf[this.quality],r===0?r="Auto":(V=this.fps,I=this.projectionType,r=r.toString()+(I==="EQUIRECTANGULAR"||I==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||I==="MESH"?"s":"p")+(V>55?"60":V>49?"50": V>39?"48":"")));this.qualityLabel=r;this.G=n||"";this.primaries=D||""}; UU=function(r,V){var I=Math.max(r,V);r=Math.min(r,V);V=uS[0];for(var d=0;d=Math.floor(f*16/9)*1.3||r>=f*1.3)return V;V=a}return"tiny"}; qP=function(r,V,I){I=I===void 0?{}:I;this.id=r;this.mimeType=V;I.VH>0||(I.VH=16E3);Object.assign(this,I);r=g.H(this.id.split(";"));this.itag=r.next().value;this.G=r.next().value;this.containerType=pN(V);this.A0=vq[this.itag]||""}; Pq=function(r){return r.A0==="9"||r.A0==="("||r.A0==="9h"||r.A0==="(h"}; zjU=function(r){return r.A0==="H"||r.A0==="h"}; oe=function(r){return r.A0==="9h"||r.A0==="(h"}; MOp=function(r){return!!r.Cq&&!!r.Cq.fairplay&&(r.A0==="("||r.A0==="(h"||r.A0==="A"||r.A0==="MEAC3")||kd&&!!r.Cq&&r.A0==="1e"}; h4=function(r){return r.A0==="1"||r.A0==="1h"||kd&&r.A0==="1e"}; rg=function(r){return r.A0==="mac3"||r.A0==="meac3"||r.A0==="m"||r.A0==="i"}; VU=function(r){return r.A0==="MAC3"||r.A0==="MEAC3"||r.A0==="M"||r.A0==="I"}; g.I2=function(r){return r.containerType===1}; ChU=function(r){return r.A0==="("||r.A0==="(h"||r.A0==="H"||kd&&r.A0==="1e"}; dg=function(r){return r.mimeType==="application/x-mpegURL"}; g.a2=function(r,V){return{itag:+r.itag,lmt:V?0:r.lastModified,xtags:r.G||""}}; TUi=function(r){var V=navigator.mediaCapabilities;if(V==null||!V.decodingInfo||r.A0==="f")return Promise.resolve();var I={type:r.audio&&r.video?"file":"media-source"};r.video&&(I.video={contentType:r.mimeType,width:r.video.width||640,height:r.video.height||360,bitrate:r.VH*8||1E6,framerate:r.video.fps||30});r.audio&&(I.audio={contentType:r.mimeType,channels:""+(r.audio.numChannels||2),bitrate:r.VH*8||128E3,samplerate:r.audio.sampleRate||44100});return V.decodingInfo(I).then(function(d){r.X=d})}; fI=function(r){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(r)}; eB=function(r){return/(vp9|vp09|vp8|avc1|av01)/.test(r)}; YY=function(r){return r.includes("vtt")||r.includes("text/mp4")}; pN=function(r){return r.indexOf("/mp4")>=0?1:r.indexOf("/webm")>=0?2:r.indexOf("/x-flv")>=0?3:r.indexOf("/vtt")>=0?4:0}; nI=function(r,V,I,d,a,f){var e=new iS;V in g.Qf||(V="small");V==="light"&&(V="tiny");d&&a?(a=Number(a),d=Number(d)):(a=g.Qf[V],d=Math.round(a*16/9));f=new m6(d,a,0,null,void 0,V,f);r=unescape(r.replace(/"/g,'"'));return new qP(I,r,{audio:e,video:f})}; jB=function(r){var V="id="+r.id;r.video&&(V+=", res="+r.video.qualityLabel);var I,d;return V+", byterate=("+((I=r.fQ)==null?void 0:I.toFixed(0))+", "+((d=r.VH)==null?void 0:d.toFixed(0))+")"}; D$=function(r,V){return{start:function(I){return r[I]}, end:function(I){return V[I]}, length:r.length}}; HWg=function(r,V,I){for(var d=[],a=[],f=0;f=V)return I}catch(d){}return-1}; N$=function(r,V){return EV(r,V)>=0}; wCh=function(r,V){if(!r)return NaN;V=EV(r,V);return V>=0?r.start(V):NaN}; sV=function(r,V){if(!r)return NaN;V=EV(r,V);return V>=0?r.end(V):NaN}; cT=function(r){return r&&r.length?r.end(r.length-1):NaN}; zH=function(r){return cT(r)>0}; M$=function(r,V){r=sV(r,V);return r>=0?r-V:0}; CI=function(r,V,I){for(var d=[],a=[],f=0;fI||(d.push(Math.max(V,r.start(f))-V),a.push(Math.min(I,r.end(f))-V));return D$(d,a)}; TH=function(r,V,I,d){g.NK.call(this);var a=this;this.ex=r;this.start=V;this.end=I;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.E_={error:function(){!a.h0()&&a.isActive&&a.publish("error",a)}, updateend:function(){!a.h0()&&a.isActive&&a.publish("updateend",a)}}; this.ex.SU(this.E_);this.No=this.isActive}; wg=function(r,V,I,d,a,f){g.NK.call(this);var e=this;this.Uu=r;this.UI=V;this.id=I;this.containerType=d;this.A0=a;this.BK=f;this.LD=this.wA=this.k8=null;this.kU=!1;this.appendWindowStart=this.timestampOffset=0;this.z9=D$([],[]);this.Cz=!1;this.rA=[];this.mf=HT?[]:void 0;this.wF=function(D){return e.publish(D.type,e)}; var n;if((n=this.Uu)==null?0:n.addEventListener)this.Uu.addEventListener("updateend",this.wF),this.Uu.addEventListener("error",this.wF)}; bA=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; OV=function(r,V){this.po=r;this.G=V===void 0?!1:V;this.X=!1}; WT=function(r,V,I){I=I===void 0?!1:I;g.X.call(this);this.mediaElement=r;this.f8=V;this.isView=I;this.C=0;this.Y=!1;this.W=!0;this.V=0;this.callback=null;this.j=!1;this.f8||(this.UI=g.J(this.mediaElement.YN()));this.events=new g.Su(this);g.S(this,this.events);this.S=new OV(this.f8?window.URL.createObjectURL(this.f8):this.UI.webkitMediaSourceURL,!0);r=this.f8||this.UI;F2(this.events,r,["sourceopen","webkitsourceopen"],this.HJs);F2(this.events,r,["sourceclose","webkitsourceclose"],this.lQz);this.L={updateend:this.rg}}; bWr=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; OWg=function(r,V){$Y(r)?g.$i(function(){V(r)}):r.callback=V}; WRX=function(r,V,I){if(KI){var d;R2(r.mediaElement,{l:"mswssb",sr:(d=r.mediaElement.lL)==null?void 0:d.YQ()},!1);V.SU(r.L,r);I.SU(r.L,r)}r.G=V;r.X=I;g.S(r,V);g.S(r,I)}; $5A=function(r,V,I,d){d=V.mimeType+(d===void 0?"":d);var a=I.mimeType;V=V.A0;I=I.A0;var f;r.QH=(f=r.f8)==null?void 0:f.addSourceBuffer(a);var e;r.kc=d.split(";")[0]==="fakesb"?void 0:(e=r.f8)==null?void 0:e.addSourceBuffer(d);r.UI&&(r.UI.webkitSourceAddId("0",a),r.UI.webkitSourceAddId("1",d));f=new wg(r.QH,r.UI,"0",pN(a),I,!1);d=new wg(r.kc,r.UI,"1",pN(d),V,!0);WRX(r,f,d)}; hY=function(r){return!!r.G||!!r.X}; $Y=function(r){try{return rm(r)==="open"}catch(V){return!1}}; rm=function(r){if(r.f8)return r.f8.readyState;switch(r.UI.webkitSourceState){case r.UI.SOURCE_OPEN:return"open";case r.UI.SOURCE_ENDED:return"ended";default:return"closed"}}; VS=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; KRX=function(r){$Y(r)&&(r.f8?r.f8.endOfStream():r.UI.webkitSourceEndOfStream(r.UI.EOS_NO_ERROR))}; Rji=function(r,V,I,d){if(!r.G||!r.X)return null;var a=r.G.isView()?r.G.ex:r.G,f=r.X.isView()?r.X.ex:r.X,e=new WT(r.mediaElement,r.f8,!0);e.S=r.S;WRX(e,new TH(a,V,I,d),new TH(f,V,I,d));$Y(r)||r.G.FQ(r.G.N2());return e}; tOr=function(r){var V;(V=r.G)==null||V.E0();var I;(I=r.X)==null||I.E0();r.W=!1}; IL=function(){var r=this;this.pK=this.dV=TAU;this.promise=new g.R0(function(V,I){r.dV=V;r.pK=I})}; dm=function(){g.X.call(this);this.K4=!1;this.po=null;this.L=this.C=!1;this.Y=new g.cu;this.lL=null;g.S(this,this.Y)}; aL=function(r){r=r.Cr();return r.length<1?NaN:r.end(r.length-1)}; ytj=function(r){!r.X&&bWr()&&(r.S?r.S.then(function(){return ytj(r)}):r.Ff()||(r.X=r.M3()))}; AtO=function(r){r.X&&(r.X.dispose(),r.X=void 0)}; R2=function(r,V,I){var d;((d=r.lL)==null?0:d.Ko())&&r.lL.Hs("rms",V,I===void 0?!1:I)}; GQS=function(r,V,I){r.isPaused()||r.getCurrentTime()>V||I>10||(r.play(),g.Td(function(){GQS(r,r.getCurrentTime(),I+1)},500))}; FRp=function(r,V){r.po&&r.po.equals(V)||(r.po&&r.po.dispose(),r.po=V)}; fP=function(r){return M$(r.VX(),r.getCurrentTime())}; lfv=function(r,V){if(r.TK()===0||r.hasError())return!1;var I=r.getCurrentTime()>0;return V>=0&&(r=r.Cr(),r.length||!I)?N$(r,V):I}; er=function(r){r.Ff()&&(r.lL&&r.lL.KT("rs_s"),oY&&r.getCurrentTime()>0&&r.seekTo(0),r.MD(),r.load(),FRp(r,null));delete r.S}; YX=function(r){switch(r.IQ()){case 2:return"progressive.net.retryexhausted";case 3:return r=r.GY(),(r==null?0:r.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||LRv&&(r==null?0:r.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.nP=function(r,V,I){this.DD=V===void 0?null:V;this.seekSource=I===void 0?null:I;this.state=r||64}; jr=function(r,V,I){I=I===void 0?!1:I;return JtZ(r,V.getCurrentTime(),(0,g.m)(),fP(V),I)}; D7=function(r,V,I,d){if(!(V===r.state&&I===r.DD&&d===r.seekSource||V!==void 0&&(V&128&&!I||V&2&&V&16))){var a;if(a=V)a=V||r.state,a=!!(a&16||a&32);r=new g.nP(V,I,a?d?d:r.seekSource:null)}return r}; xX=function(r,V,I){return D7(r,r.state|V,null,I===void 0?null:I)}; E7=function(r,V){return D7(r,r.state&~V,null,null)}; NU=function(r,V,I,d){return D7(r,(r.state|V)&~I,null,d===void 0?null:d)}; g.v=function(r,V){return!!(r.state&V)}; g.s7=function(r,V){return V.state===r.state&&V.DD===r.DD}; cb=function(r){return r.isPlaying()&&!g.v(r,16)&&!g.v(r,32)}; zN=function(r){return g.v(r,128)?-1:g.v(r,2)?0:g.v(r,2048)?3:g.v(r,64)?-1:g.v(r,1)&&!g.v(r,32)?3:g.v(r,8)?1:g.v(r,4)?2:-1}; CP=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z,M,w,b){g.X.call(this);var W=this;this.EO=r;this.slot=V;this.layout=I;this.sE=d;this.wH=a;this.C8=f;this.SC=e;this.TP=n;this.RT=D;this.eU=x;this.position=N;this.C=c;this.ws=z;this.zO=M;this.B3=w;this.context=b;this.yx=!0;this.W=!1;this.lJ="not_rendering";this.X=!1;this.S=new Tk;r=jC(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Nk=new Aw(I.Ou,this.sE,r,I.layoutId);var K;r=((K=MU(this))==null?void 0:K.progressCommands)||[];this.Y=new luU(D, r,I.layoutId,function(){return W.Ri()}); this.G=new D5i({adCpn:this.layout.layoutId,QM:b.QM,fMM:this.zO,BK:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; TN=function(r){return{layoutId:r.s9(),zc:r.zO,w$:r.C8.get(),Yo:r.pJ()}}; Hb=function(r,V){return V.layoutId!==r.layout.layoutId?(r.EO.er(r.slot,V,new Yp("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+r.layout.layoutId+("and LayoutType: "+r.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; wm=function(r){r.lJ="rendering_start_requested";r.eU(-1)}; MU=function(r){return jC(r.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; ZWA=function(r){zQ("Received layout exit signal when not in layout exit flow.",r.slot,r.layout)}; XCA=function(r){var V;return((V=bf(r.C8.get(),2))==null?void 0:V.clientPlaybackNonce)||""}; O7=function(r,V){switch(V){case "normal":r.vp("complete");break;case "skipped":r.vp("skip");break;case "abandoned":Zr(r.Nk,"impression")&&r.vp("abandon")}}; Wb=function(r,V){r.W||(V=new g.M5(V.state,new g.nP),r.W=!0);return V}; $X=function(r,V){cq(V)?r.eU(1):g.TQ(V,4)&&!g.TQ(V,2)&&r.Ct();CW(V,4)<0&&!(CW(V,2)<0)&&r.W5()}; BUA=function(r){r.position===0&&(r.TP.get(),r=jC(r.layout.clientMetadata,"metadata_type_ad_placement_config").kind,r={adBreakType:KP(r)},Q2("ad_bl"),g.mI(r))}; RL=function(r,V){Lv(r.Nk,V,!r.X)}; S9S=function(r){var V;return(((V=MU(r))==null?void 0:V.progressCommands)||[]).findIndex(function(I){return!!g.U(I==null?void 0:I.command,g8i)})!==-1}; t3=function(r,V){var I=jC(r.clientMetadata,"metadata_type_eligible_for_ssap");return I===void 0?(zQ("Expected SSAP eligibility in PlayerBytes factory",r),!1):V.pJ(I)}; yS=function(r,V){if(!kp(V.get(),"html5_ssap_pass_transition_reason"))return 3;switch(r){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return zQ("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return zQ("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:r}),3;default:hr(r,"unknown layoutExitReason")}}; iWA=function(r){zQ("getExitReason: unexpected reason",void 0,void 0,{reason:r})}; A3=function(r,V){if(kp(V.get(),"html5_ssap_pass_transition_reason"))switch(r){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return iWA(r),"abandoned";case 3:case 1:return iWA(r),"error";default:hr(r,"unexpected transition reason")}else switch(r){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return zQ("getExitReason: unexpected reason",void 0,void 0,{reason:r}),"error";default:hr(r,"unexpected transition reason")}}; GN=function(r,V,I){pq(r,I)||qM(r,V,I);pq(r,"video_to_ad")||qM(r,V,"video_to_ad");pq(r,"ad_to_video")||qM(r,V,"ad_to_video");pq(r,"ad_to_ad")||qM(r,V,"ad_to_ad")}; F9=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z,M,w,b,W){CP.call(this,r,V,I,d,a,f,e,n,x,E,N,c,z,M,w,b,W);var K=this;this.gh=D;this.dn=N;this.cn=!0;this.jf=this.pM=0;this.rP=MQ(function(){eji(TN(K));K.EO.Pp(K.slot,K.layout)}); this.ZA=MQ(function(){Y9A(TN(K));K.lJ!=="rendering_stop_requested"&&K.dn(K);K.layoutExitReason?K.EO.nF(K.slot,K.layout,K.layoutExitReason):ZWA(K)}); this.aL=new g.Bu(200);this.aL.listen("tick",function(){K.Uk()}); g.S(this,this.aL)}; LP=function(r){r.jf=Date.now();lf(r,r.pM);r.aL.start()}; U5r=function(r){r.pM=r.Ri();r.V$(r.pM/1E3,!0);lf(r,r.pM)}; lf=function(r,V){V={current:V/1E3,duration:r.Ri()/1E3};r.gh.get().Ov("onAdPlaybackProgress",V)}; J3=function(r){F9.call(this,r.EO,r.slot,r.Cn,r.sE,r.wH,r.C8,r.SC,r.TP,r.gh,r.RT,r.eU,r.dn,r.qS,r.RM,r.ws,r.zO,r.B3,r.context)}; Z7=function(r){F9.call(this,r.EO,r.slot,r.Cn,r.sE,r.wH,r.C8,r.SC,r.TP,r.gh,r.RT,r.eU,r.dn,r.qS,r.RM,r.ws,r.zO,r.B3,r.context)}; X9=function(){Z7.apply(this,arguments)}; QoO=function(r){return t3(r.slot,r.ws.get())?new X9(r):new J3(r)}; Sr=function(r){CP.call(this,r.callback,r.slot,r.Cn,r.sE,r.wH,r.C8,r.SC,r.TP,r.RT,r.eU,r.dn,r.qS,r.RM,r.ws,r.zO,r.B3,r.context);var V=this;this.adCpn="";this.f6=this.Ta=0;this.rP=MQ(function(){eji(TN(V));V.EO.Pp(V.slot,V.layout)}); this.ZA=MQ(function(){Y9A(TN(V));V.lJ!=="rendering_stop_requested"&&V.dn(V);V.layoutExitReason?V.EO.nF(V.slot,V.layout,V.layoutExitReason):ZWA(V)}); this.xb=r.xb;this.Xh=r.Xh;this.ZR=r.ZR;this.gh=r.gh;this.d$=r.d$;this.dn=r.dn;if(!this.pJ()){kp(this.ws.get(),"html5_disable_media_load_timeout")||(this.pB=new g.hz(function(){V.dX("load_timeout",new Yp("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); r=Bb(this.ws.get());var I=gm(this.ws.get());r&&I&&(this.hj=new g.hz(function(){var d=jC(V.layout.clientMetadata,"metadata_type_preload_player_vars");d&&V.Xh.get().T.preloadVideoByPlayerVars(d,2,300)}))}}; uIj=function(r,V){var I=jC(V.clientMetadata,"metadata_type_ad_video_id"),d=jC(V.clientMetadata,"metadata_type_legacy_info_card_vast_extension");I&&d&&r.d$.get().T.N().R7.add(I,{HA:d});(V=jC(V.clientMetadata,"metadata_type_sodar_extension_data"))&&uAg(r.xb.get(),V);m5Z(r.SC.get(),!1)}; pCS=function(r){m5Z(r.SC.get(),!0);var V;((V=r.shrunkenPlayerBytesConfig)==null?0:V.shouldRequestShrunkenPlayerBytes)&&r.SC.get().Jp(!1)}; v8r=function(r){return new U7(r)}; QS=function(){Sr.apply(this,arguments)}; U7=function(){QS.apply(this,arguments)}; q9U=function(r){return QoO(Object.assign({},r,{EO:r.callback,eU:function(){}}))}; PhZ=function(r){return new Sr(Object.assign({},r,{eU:function(V){r.gh.get().Ov("onAdIntroStateChange",V)}}))}; o8X=function(r){function V(I){r.gh.get().YM(I)} return t3(r.slot,r.ws.get())?v8r(Object.assign({},r,{eU:V})):new Sr(Object.assign({},r,{eU:V}))}; mH=function(r){for(var V=r.Cn,I=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.H(Gj()),a=d.next();!a.done;a=d.next())I.push(a.value);if(rE(V,{X8:I,il:["LAYOUT_TYPE_MEDIA_BREAK"]}))return q9U(r);V=r.Cn;I=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.H(Gj());for(a=d.next();!a.done;a=d.next())I.push(a.value);if(rE(V,{X8:I,il:["LAYOUT_TYPE_MEDIA"]}))return aV(r.Cn.clientMetadata,"metadata_type_ad_intro")?PhZ(r):o8X(r)}; hjg=function(r){var V=g.J(jC(r.clientMetadata,"metadata_type_ad_placement_config")).kind,I=jC(r.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:r.layoutId,adType:kQi(I),adBreakType:KP(V)}}; KP=function(r){switch(r){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"}}; kQi=function(r){switch(r){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; rsi=function(r){try{return new uf(r.Yz,r.slot,r.layout,r.oL,r.Yb,r.C8,r.Fh,r.Xh,r.kX,r.SC,r.YIM,r)}catch(V){}}; uf=function(r,V,I,d,a,f,e,n,D,x,E,N){g.X.call(this);this.Yz=r;this.slot=V;this.layout=I;this.oL=d;this.Yb=a;this.C8=f;this.Fh=e;this.Xh=n;this.kX=D;this.SC=x;this.params=N;this.yx=!0;r=mH(E);if(!r)throw Error("Invalid params for sublayout");this.iJ=r}; VKA=function(){this.G=1;this.X=new Tk}; pP=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z){g.X.call(this);this.callback=r;this.C8=V;this.Fh=I;this.Xh=d;this.SC=a;this.oo=f;this.TP=e;this.u7=n;this.slot=D;this.layout=x;this.oL=E;this.Ba=N;this.kX=c;this.ws=z;this.yx=!0;this.t4=!1;this.gY=[];this.SJ=-1;this.FF=!1;this.a$=new VKA}; IPv=function(r){var V;return(V=r.layout.nS)!=null?V:jC(r.layout.clientMetadata,"metadata_type_sub_layouts")}; vb=function(r){return{w$:r.C8.get(),zc:!1,Yo:r.pJ()}}; dMg=function(r,V,I){if(r.uV()===r.gY.length-1){var d,a;zQ("Unexpected skip requested during the last sublayout",(d=r.yX())==null?void 0:d.aT(),(a=r.yX())==null?void 0:a.ZM(),{requestingSlot:V,requestingLayout:I})}}; aPh=function(r,V,I){return I.layoutId!==qU(r,V,I)?(zQ("onSkipRequested for a PlayerBytes layout that is not currently active",r.aT(),r.ZM()),!1):!0}; fPO=function(r){r.uV()===r.gY.length-1&&zQ("Unexpected skip with target requested during the last sublayout")}; eSZ=function(r,V,I){return I.renderingContent===void 0&&I.layoutId!==qU(r,V,I)?(zQ("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",r.aT(),r.ZM(),{requestingSlot:V,requestingLayout:I}),!1):!0}; YYA=function(r,V,I,d){var a=jC(V.ZM().clientMetadata,"metadata_type_ad_pod_skip_target");if(a&&a>0&&a0)){zQ("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",r.slot,r.layout,{indexToPlay:V,layoutId:r.layout.layoutId});break a}r.SJ=V;V=r.yX();if(r.uV()>0&&!r.pJ()){var I=r.TP.get();I.X=!1;var d={};I.G&&I.videoId&&(d.cttAuthInfo={token:I.G,videoId:I.videoId});uC("ad_to_ad",d)}r.hs(V)}}; h3=function(r){pP.call(this,r.Yz,r.C8,r.Fh,r.Xh,r.SC,r.oo,r.TP,r.u7,r.slot,r.layout,r.oL,r.Ba,r.kX,r.ws)}; DMA=function(r){(r=r.yX())&&r.U9()}; rh=function(r){pP.call(this,r.Yz,r.C8,r.Fh,r.Xh,r.SC,r.oo,r.TP,r.u7,r.slot,r.layout,r.oL,r.Ba,r.kX,r.ws);this.tP=void 0}; xMi=function(r,V){r.RE()&&!OU(r.a$.X)||r.callback.nF(r.slot,r.layout,V)}; Vq=function(r){return kp(r.ws.get(),"html5_ssap_pass_transition_reason")}; E_i=function(r,V,I){Hq(V.Vg())<2&&(I=A3(I,r.ws),V.rF(V.ZM(),I));I=wE(V.Vg());r.DL(r.slot,V.ZM(),I)}; N4j=function(r,V){if(r.a$.X.currentState<2){var I=A3(V,r.ws);I==="error"?r.callback.er(r.slot,r.layout,new Yp("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:V},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):kX(r.Ba,r.layout,I)}}; IS=function(r,V,I){Hq(V.Vg())>=2||(V.rF(V.ZM(),I),OU(V.Vg())&&(Fr(r.u7,r.slot,V.ZM(),I),r.tP=void 0))}; sEr=function(r,V){r.a$.G===2&&V!==r.E6()&&zQ("onClipEntered: unknown cpn",r.slot,r.layout,{cpn:V})}; csA=function(r,V){var I=r.yX();if(I){var d=I.ZM().layoutId,a=r.uV()+1;r.RE()?IS(r,I,V):I.rF(I.ZM(),V);a>=0&&aa&&e.CE(E,a-d);return E}; WIO=function(r,V,I){var d=jC(V.clientMetadata,"metadata_type_sodar_extension_data");if(d)try{uAg(I,d)}catch(a){zQ("Unexpected error when loading Sodar",r,V,{error:a})}}; $MS=function(r,V,I,d,a,f,e){De(r,V,new g.M5(I,new g.nP),d,a,e,!1,f)}; De=function(r,V,I,d,a,f,e,n){e=e===void 0?!0:e;cq(I)&&zk(a,0,null)&&(!Zr(r,"impression")&&n&&n(),r.vp("impression"));Zr(r,"impression")&&(g.TQ(I,4)&&!g.TQ(I,2)&&r.xG("pause"),CW(I,4)<0&&!(CW(I,2)<0)&&r.xG("resume"),g.TQ(I,16)&&a>=.5&&r.xG("seek"),e&&g.TQ(I,2)&&x7(r,I.state,V,d,a,f))}; x7=function(r,V,I,d,a,f,e,n){Zr(r,"impression")&&(f?(f=a-d,f=f>=-1&&f<=2):f=Math.abs(d-a)<=1,Ew(r,V,f?d:a,I,d,e,n&&f),f&&r.vp("complete"))}; Ew=function(r,V,I,d,a,f,e){Jw(r,I*1E3,e);a<=0||I<=0||(V==null?0:g.v(V,16))||(V==null?0:g.v(V,32))||(zk(I,a*.25,d)&&(f&&!Zr(r,"first_quartile")&&f("first"),r.vp("first_quartile")),zk(I,a*.5,d)&&(f&&!Zr(r,"midpoint")&&f("second"),r.vp("midpoint")),zk(I,a*.75,d)&&(f&&!Zr(r,"third_quartile")&&f("third"),r.vp("third_quartile")))}; KIU=function(r,V){Zr(r,"impression")&&r.xG(V?"fullscreen":"end_fullscreen")}; RSX=function(r){Zr(r,"impression")&&r.xG("clickthrough")}; tKO=function(r){r.xG("active_view_measurable")}; ysX=function(r){Zr(r,"impression")&&!Zr(r,"seek")&&r.xG("active_view_fully_viewable_audible_half_duration")}; Asi=function(r){Zr(r,"impression")&&!Zr(r,"seek")&&r.xG("active_view_viewable")}; GXi=function(r){Zr(r,"impression")&&!Zr(r,"seek")&&r.xG("audio_audible")}; FIU=function(r){Zr(r,"impression")&&!Zr(r,"seek")&&r.xG("audio_measurable")}; lPX=function(r,V,I,d,a,f,e,n,D,x,E,N){this.callback=r;this.slot=V;this.layout=I;this.Fh=d;this.Nk=a;this.SC=f;this.Sj=e;this.wH=n;this.xb=D;this.ws=x;this.sE=E;this.C8=N;this.cn=!0;this.Vy=this.lJ=null;this.adCpn=void 0;this.G=!1}; LIX=function(r,V,I){var d;jo(r.sE.get(),"ads_qua","cpn."+jC(r.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((d=bf(r.C8.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+V+";clr."+I)}; JsZ=function(r,V){var I,d;jo(r.sE.get(),"ads_imp","cpn."+jC(r.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=bf(r.C8.get(),2))==null?void 0:I.clientPlaybackNonce)+";clr."+V+";skp."+!!g.U((d=jC(r.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,Nj))}; cN=function(r){return{enterMs:jC(r.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:jC(r.clientMetadata,"metadata_type_layout_exit_ms")}}; zn=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z){aS.call(this,r,V,I,d,a,e,n,D,x,N);this.Sj=f;this.xb=E;this.wH=c;this.ws=z;this.Vy=this.lJ=null}; ZqA=function(r,V){var I;jo(r.sE.get(),"ads_imp","acpn."+((I=bf(r.C8.get(),2))==null?void 0:I.clientPlaybackNonce)+";clr."+V)}; XSj=function(r,V,I){var d;jo(r.sE.get(),"ads_qua","cpn."+jC(r.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((d=bf(r.C8.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+V+";clr."+I)}; Mj=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z,M,w,b,W,K,F,l,B){this.kX=r;this.oL=V;this.Ba=I;this.C8=d;this.Fh=a;this.SC=f;this.oo=e;this.sE=n;this.Sj=D;this.Br=x;this.wH=E;this.xb=N;this.Xh=c;this.ZR=z;this.TP=M;this.gh=w;this.RT=b;this.d$=W;this.ws=K;this.G=F;this.context=l;this.B3=B}; C1=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z,M,w,b,W,K){this.kX=r;this.oL=V;this.Ba=I;this.sE=d;this.wH=a;this.xb=f;this.Xh=e;this.C8=n;this.SC=D;this.oo=x;this.ZR=E;this.TP=N;this.gh=c;this.RT=z;this.d$=M;this.ws=w;this.Fh=b;this.context=W;this.B3=K}; B4i=function(r,V,I,d){EN.call(this,"survey-interstitial",r,V,I,d)}; Tn=function(r,V,I,d,a){wk.call(this,I,r,V,d);this.sE=a;r=jC(V.clientMetadata,"metadata_type_ad_placement_config");this.Nk=new Aw(V.Ou,a,r,V.layoutId)}; HN=function(r){return Math.round(r.width)+"x"+Math.round(r.height)}; b2=function(r,V,I){I=I===void 0?wh:I;I.widthr.width*r.height*.2)return{Fy:3,Un:501,errorMessage:"ad("+HN(I)+") to container("+HN(r)+") ratio exceeds limit."};if(I.height>r.height/3-V)return{Fy:3,Un:501,errorMessage:"ad("+HN(I)+") covers container("+HN(r)+") center."}}; g_j=function(r,V){var I=g.J(jC(r.clientMetadata,"metadata_type_ad_placement_config"));return new Aw(r.Ou,V,I,r.layoutId)}; Ow=function(r){return g.J(jC(r.clientMetadata,"metadata_type_invideo_overlay_ad_renderer"))}; WN=function(r,V,I,d){EN.call(this,"invideo-overlay",r,V,I,d);this.interactionLoggingClientData=d}; $7=function(r,V,I,d,a,f,e,n,D,x,E,N){wk.call(this,f,r,V,a);this.sE=I;this.Y=e;this.SC=n;this.RT=D;this.ws=x;this.C=E;this.W=N;this.Nk=g_j(V,I)}; SYi=function(){var r=["metadata_type_invideo_overlay_ad_renderer"];Gj().forEach(function(V){r.push(V)}); return{X8:r,il:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; K1=function(r,V,I,d,a,f,e,n,D,x,E,N,c){wk.call(this,f,r,V,a);this.sE=I;this.Y=e;this.j=n;this.SC=D;this.RT=x;this.ws=E;this.C=N;this.W=c;this.Nk=g_j(V,I)}; iqg=function(){for(var r=["metadata_type_invideo_overlay_ad_renderer"],V=g.H(Gj()),I=V.next();!I.done;I=V.next())r.push(I.value);return{X8:r,il:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; RS=function(r){this.SC=r;this.G=!1}; UMi=function(r,V,I){EN.call(this,"survey",r,{},V,I)}; t7=function(r,V,I,d,a,f,e){wk.call(this,I,r,V,d);this.Y=a;this.SC=f;this.ws=e}; QEi=function(r,V,I,d,a,f,e,n,D,x){this.wh=r;this.SC=V;this.sE=I;this.Y=d;this.wH=a;this.X=f;this.S=e;this.RT=n;this.ws=D;this.G=x}; mMh=function(r,V,I,d,a,f,e,n,D,x){this.wh=r;this.SC=V;this.sE=I;this.Y=d;this.wH=a;this.X=f;this.S=e;this.RT=n;this.ws=D;this.G=x}; yq=function(r,V,I,d,a,f,e,n,D,x){eu.call(this,r,V,I,d,a,f,e,D);this.zw=n;this.C8=x}; uMr=function(){var r=o5i();r.X8.push("metadata_type_ad_info_ad_metadata");return r}; pSA=function(r,V,I,d,a,f,e){this.wh=r;this.SC=V;this.sE=I;this.X=d;this.zw=a;this.G=f;this.C8=e}; v_U=function(r,V,I,d,a,f,e,n){this.wh=r;this.SC=V;this.sE=I;this.X=d;this.zw=a;this.G=f;this.ws=e;this.C8=n}; A7=function(r,V){this.slotId=V;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=r(this.triggerType)}; Gn=function(r,V){this.adPodIndex=r;this.G=V.length;this.adBreakLengthSeconds=V.reduce(function(d,a){return d+a},0); var I=0;for(r+=1;r0}; so=function(r){return!!(r.h0s&&r.slot&&r.layout)}; c_=function(r){var V,I=(V=r.config)==null?void 0:V.adPlacementConfig;r=r.renderer;return!(!I||I.kind==null||!r)}; nTi=function(r){if(!Ys(r.adLayoutMetadata))return!1;r=r.renderingContent;return g.U(r,EU)||g.U(r,NP)||g.U(r,Dk)||g.U(r,xd)?!0:!1}; zA=function(r){return r.playerVars!==void 0&&r.pings!==void 0&&r.externalVideoId!==void 0}; Oo=function(r){if(!Ys(r.adLayoutMetadata))return!1;r=r.renderingContent;var V=g.U(r,ME);return V?Ct(V):(V=g.U(r,TA))?zA(V):(V=g.U(r,H_))?V.playerVars!==void 0:(V=g.U(r,EU))?V.durationMilliseconds!==void 0:g.U(r,wI)||g.U(r,bp)?!0:!1}; Ct=function(r){r=(r.sequentialLayouts||[]).map(function(V){return g.U(V,W_)}); return r.length>0&&r.every(Oo)}; lp=function(r){return Ys(r.adLayoutMetadata)?(r=g.U(r.renderingContent,$s))&&r.pings?!0:!1:!1}; syA=function(r){if(!Ys(r.adLayoutMetadata))return!1;if(g.U(r.renderingContent,jyS)||g.U(r.renderingContent,Dwi))return!0;var V=g.U(r.renderingContent,Lt);return g.U(r.renderingContent,JQ)||g.U(V==null?void 0:V.sidePanel,xwv)||g.U(V==null?void 0:V.sidePanel,ETZ)||g.U(V==null?void 0:V.sidePanel,NHX)?!0:!1}; THU=function(r){var V;(V=!r)||(V=r.adSlotMetadata,V=!((V==null?void 0:V.slotId)!==void 0&&(V==null?void 0:V.slotType)!==void 0));if(V||!(cpg(r)||r.slotEntryTrigger&&r.slotFulfillmentTriggers&&r.slotExpirationTriggers))return!1;var I;r=(I=r.fulfillmentContent)==null?void 0:I.fulfilledLayout;return(I=g.U(r,W_))?Oo(I):(I=g.U(r,ZF))?syA(I):(I=g.U(r,zRv))?nTi(I):(I=g.U(r,MIX))?eRr(I):(I=g.U(r,Cei))?Ys(I.adLayoutMetadata)?g.U(I.renderingContent,nt)?!0:!1:!1:(r=g.U(r,XQ))?lp(r):!1}; cpg=function(r){var V;r=g.U((V=r.fulfillmentContent)==null?void 0:V.fulfilledLayout,ZF);var I;return r&&((I=r.adLayoutMetadata)==null?void 0:I.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&r.layoutExitNormalTriggers===void 0}; HnA=function(r){var V;return(r==null?void 0:(V=r.adSlotMetadata)==null?void 0:V.slotType)==="SLOT_TYPE_IN_PLAYER"}; bnv=function(r,V){var I;if((I=r.questions)==null||!I.length||!r.playbackCommands||(V===void 0||!V)&&r.questions.length!==1)return!1;r=g.H(r.questions);for(V=r.next();!V.done;V=r.next()){V=V.value;var d=I=void 0,a=((I=g.U(V,B_))==null?void 0:I.surveyAdQuestionCommon)||((d=g.U(V,gI))==null?void 0:d.surveyAdQuestionCommon);if(!w1A(a))return!1}return!0}; Ong=function(r){r=((r==null?void 0:r.playerOverlay)||{}).instreamSurveyAdRenderer;var V;if(r)if(r.playbackCommands&&r.questions&&r.questions.length===1){var I,d=((V=g.U(r.questions[0],B_))==null?void 0:V.surveyAdQuestionCommon)||((I=g.U(r.questions[0],gI))==null?void 0:I.surveyAdQuestionCommon);V=w1A(d)}else V=!1;else V=!1;return V}; w1A=function(r){if(!r)return!1;r=g.U(r.instreamAdPlayerOverlay,Sy);var V=g.U(r==null?void 0:r.skipOrPreviewRenderer,Nj),I=g.U(r==null?void 0:r.adInfoRenderer,ip);return(g.U(r==null?void 0:r.skipOrPreviewRenderer,Uo)||V)&&I?!0:!1}; WtA=function(r){return r.linearAds!=null&&Ys(r.adLayoutMetadata)}; $wZ=function(r){return r.linearAd!=null&&r.adVideoStart!=null}; KtX=function(r){if(isNaN(Number(r.timeoutSeconds))||!r.text||!r.ctaButton||!g.U(r.ctaButton,g.Q4)||!r.brandImage)return!1;var V;return r.backgroundImage&&g.U(r.backgroundImage,mE)&&((V=g.U(r.backgroundImage,mE))==null?0:V.landscape)?!0:!1}; up=function(r,V,I,d,a,f,e,n){g.X.call(this);this.ws=r;this.G=V;this.X=d;this.C8=a;this.Y=f;this.S=e;this.Xh=n}; ApZ=function(r,V,I){var d,a=((d=I.adSlots)!=null?d:[]).map(function(n){return g.U(n,pt)}); if(I.NF)if(jC(V.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Mb(r.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId); else{if(RRA(r.ws.get())){var f=I.o2.filter(function(n){var D;return((D=n.renderer)==null?void 0:D.clientForecastingAdRenderer)!=null}); f.length!==0?tIg(r.S,f,a,V.slotId,I.ssdaiAdsConfig):Mb(r.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId)}else Mb(r.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId); ypS(r.Y,V)}else{var e;d={VQ:Math.round(((f=jC(V.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:f.VQ)||0),D3:(e=jC(V.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:e.D3};tIg(r.S,I.o2,a,V.slotId,I.ssdaiAdsConfig,d)}}; lRX=function(r,V,I,d,a,f,e){var n=bf(r.C8.get(),1);if(GUU(r.ws.get())){var D=v_(r.X.get(),I,d,a,n.clientPlaybackNonce,n.HZ,n.daiEnabled,n,f,e);Ftj(r,D);Mb(r.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return D},V)}else Mb(r.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return v_(r.X.get(),I,d,a,n.clientPlaybackNonce,n.HZ,n.daiEnabled,n,f,e)},V)}; Ftj=function(r,V){V=g.H(V);for(var I=V.next();!I.done;I=V.next()){var d=I.value;if(d.slotType==="SLOT_TYPE_PLAYER_BYTES"&&d.fulfilledLayout)if(I=void 0,d.fulfilledLayout.renderingContent)I=jC(d.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(d.fulfilledLayout.nS){d=g.H(d.fulfilledLayout.nS);for(var a=d.next();!a.done&&(a=a.value,!a.renderingContent||!(I=jC(a.clientMetadata,"metadata_type_player_vars")));a=d.next());}}else I=void 0;if(I){r.Xh.get().T.preloadVideoByPlayerVars(I, 2,300);break}}}; Jpi=function(r,V,I,d,a,f,e){V=Lti(V,f,Number(d.prefetchMilliseconds)||0,e);r=V instanceof q?V:qE(r,d,a,V,I);return r instanceof q?r:[r]}; Znp=function(r,V,I,d,a){var f=Cv(r.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new SH({getAdBreakUrl:d.getAdBreakUrl,VQ:0,D3:0}),new VA(!0)];r=V.pauseDurationMs?V.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new IT(r.G,f),slotFulfillmentTriggers:[new PCv(r.G)],slotExpirationTriggers:[new qj(r.G,a),new h7(r.G,f)],K8:"core",clientMetadata:new nM(d),adSlotLoggingData:I}:new q("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new q("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return r instanceof q?r:[r]}; X1p=function(r){var V,I;return((V=r.renderer)==null?void 0:(I=V.adBreakServiceRenderer)==null?void 0:I.getAdBreakUrl)!==void 0}; P_=function(r,V,I){if(r.beforeContentVideoIdStartedTrigger)r=r.beforeContentVideoIdStartedTrigger?new Fz(eC,V,r.id):new q("Not able to create BeforeContentVideoIdStartedTrigger");else{if(r.layoutIdExitedTrigger){var d;V=(d=r.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new BN(eC,r.layoutIdExitedTrigger.triggeringLayoutId,r.id):new q("Not able to create LayoutIdExitedTrigger")}else{if(r.layoutExitedForReasonTrigger){var a,f;((a=r.layoutExitedForReasonTrigger)==null?0:a.triggeringLayoutId)&&((f= r.layoutExitedForReasonTrigger)==null?0:f.layoutExitReason)?(V=o_j(r.layoutExitedForReasonTrigger.layoutExitReason),r=V instanceof q?V:new Xz(eC,r.layoutExitedForReasonTrigger.triggeringLayoutId,[V],r.id)):r=new q("Not able to create LayoutIdExitedForReasonTrigger")}else{if(r.onLayoutSelfExitRequestedTrigger){var e;V=(e=r.onLayoutSelfExitRequestedTrigger)!=null&&e.triggeringLayoutId?new vN(eC,r.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,r.id):new q("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(r.onNewPlaybackAfterContentVideoIdTrigger)r= r.onNewPlaybackAfterContentVideoIdTrigger?new qj(eC,V,r.id):new q("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(r.skipRequestedTrigger){var n;V=(n=r.skipRequestedTrigger)!=null&&n.triggeringLayoutId?new oS(eC,r.skipRequestedTrigger.triggeringLayoutId,r.id):new q("Not able to create SkipRequestedTrigger")}else if(r.slotIdEnteredTrigger){var D;V=(D=r.slotIdEnteredTrigger)!=null&&D.triggeringSlotId?new k7(eC,r.slotIdEnteredTrigger.triggeringSlotId,r.id):new q("Not able to create SlotIdEnteredTrigger")}else if(r.slotIdExitedTrigger){var x; V=(x=r.slotIdExitedTrigger)!=null&&x.triggeringSlotId?new h7(eC,r.slotIdExitedTrigger.triggeringSlotId,r.id):new q("Not able to create SkipRequestedTrigger")}else if(r.surveySubmittedTrigger){var E;V=(E=r.surveySubmittedTrigger)!=null&&E.triggeringLayoutId?new aT(eC,r.surveySubmittedTrigger.triggeringLayoutId,r.id):new q("Not able to create SurveySubmittedTrigger")}else{if(r.mediaResumedTrigger)r=r.mediaResumedTrigger&&r.id?new kXr(r.id):new q("Not able to create MediaResumedTrigger");else{if(r.closeRequestedTrigger){var N; V=(N=r.closeRequestedTrigger)!=null&&N.triggeringLayoutId?new l2(eC,r.closeRequestedTrigger.triggeringLayoutId,r.id):new q("Not able to create CloseRequestedTrigger")}else if(r.slotIdScheduledTrigger){var c;V=(c=r.slotIdScheduledTrigger)!=null&&c.triggeringSlotId?new IT(eC,r.slotIdScheduledTrigger.triggeringSlotId,r.id):new q("Not able to create SlotIdScheduledTrigger")}else{if(r.mediaTimeRangeTrigger){var z;d=Number((z=r.mediaTimeRangeTrigger)==null?void 0:z.offsetStartMilliseconds);var M;e=Number((M= r.mediaTimeRangeTrigger)==null?void 0:M.offsetEndMilliseconds);isFinite(d)&&isFinite(e)?(M=e,M===-1&&(M=I),I=d>M?new q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:M},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",M===I&&d-500<=M):new KL(d,M),r=I instanceof q?I:new Qq(eC,V,I,!1,r.id)):r=new q("Not able to create MediaTimeRangeTrigger")}else if(r.contentVideoIdEndedTrigger)r=r.contentVideoIdEndedTrigger?new L1(eC,V,!1,r.id):new q("Not able to create ContentVideoIdEndedTrigger"); else{if(r.layoutIdEnteredTrigger){var w;V=(w=r.layoutIdEnteredTrigger)!=null&&w.triggeringLayoutId?new Ze(eC,r.layoutIdEnteredTrigger.triggeringLayoutId,r.id):new q("Not able to create LayoutIdEnteredTrigger")}else if(r.timeRelativeToLayoutEnterTrigger){var b;V=(b=r.timeRelativeToLayoutEnterTrigger)!=null&&b.triggeringLayoutId?new ft(eC,Number(r.timeRelativeToLayoutEnterTrigger.durationMs),r.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,r.id):new q("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(r.onDifferentLayoutIdEnteredTrigger){var W; V=(W=r.onDifferentLayoutIdEnteredTrigger)!=null&&W.triggeringLayoutId&&r.onDifferentLayoutIdEnteredTrigger.slotType&&r.onDifferentLayoutIdEnteredTrigger.layoutType?new u2(eC,r.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,r.onDifferentLayoutIdEnteredTrigger.slotType,r.onDifferentLayoutIdEnteredTrigger.layoutType,r.id):new q("Not able to create CloseRequestedTrigger")}else{if(r.liveStreamBreakStartedTrigger)r=r.liveStreamBreakStartedTrigger&&r.id?new Uw(eC,r.id):new q("Not able to create LiveStreamBreakStartedTrigger"); else if(r.liveStreamBreakEndedTrigger)r=r.liveStreamBreakEndedTrigger&&r.id?new gh(eC,r.id):new q("Not able to create LiveStreamBreakEndedTrigger");else{if(r.liveStreamBreakScheduledDurationMatchedTrigger){var K;V=(K=r.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&K.breakDurationMs?new So(Number(r.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,r.id):new q("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(r.liveStreamBreakScheduledDurationNotMatchedTrigger){var F; V=(F=r.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&F.breakDurationMs?new i2(Number(r.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,r.id):new q("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(r.newSlotScheduledWithBreakDurationTrigger){var l;V=(l=r.newSlotScheduledWithBreakDurationTrigger)!=null&&l.breakDurationMs?new mp(Number(r.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,r.id):new q("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else V= r.prefetchCacheExpiredTrigger?new PN(eC,r.id):new q("Not able to convert an AdsControlflowTrigger.");r=V}V=r}r=V}V=r}r=V}V=r}r=V}V=r}r=V}V=r}r=V}return r}; oT=function(r,V){V.G>=2&&(r.slot_pos=V.adPodIndex);r.autoplay="1"}; gTX=function(r,V,I,d,a,f,e,n){return V===null?new q("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:V,ActionCompanionAdRenderer:d}):[BHj(r,V,e,f,function(D){var x=D.slotId;D=n(D);var E=d.adLayoutLoggingData,N=new nM([new UA(d),new Vx(a)]);x=hi(I.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",x);var c={layoutId:x,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",K8:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ou:new Map, layoutExitNormalTriggers:[new qj(I.G,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:N,zz:D(c),adLayoutLoggingData:E}})]}; STA=function(r,V,I,d,a,f,e,n){return V===null?new q("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:V,TopBannerImageTextIconButtonedLayoutViewModel:d}):[BHj(r,V,e,f,function(D){var x=D.slotId;D=n(D);var E=d.adLayoutLoggingData,N=new nM([new QG(d),new Vx(a)]);x=hi(I.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",x);var c={layoutId:x,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",K8:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Ou:new Map,layoutExitNormalTriggers:[new qj(I.G,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:N,zz:D(c),adLayoutLoggingData:E}})]}; mwA=function(r,V,I,d,a,f){if(!f)for(V=g.H(V),f=V.next();!f.done;f=V.next())f=f.value,ks(r,f.renderer,f.config.adPlacementConfig.kind);r=Array.from(r.values()).filter(function(E){return ini(E)}); V=[];f=g.H(r);for(var e=f.next(),n={};!e.done;n={I2:void 0},e=f.next()){n.I2=e.value;e=g.H(n.I2.mZ);for(var D=e.next(),x={};!D.done;x={fS:void 0},D=e.next())x.fS=D.value,D=function(E,N){return function(c){return E.fS.wW(c,N.I2.instreamVideoAdRenderer.elementId,E.fS.b4)}}(x,n),x.fS.isContentVideoCompanion?V.push(UwS(I,d,a,n.I2.instreamVideoAdRenderer.elementId,x.fS.associatedCompositePlayerBytesLayoutId,x.fS.adSlotLoggingData,D)):r.length>1?V.push(Qyi(I,d,a,n.I2.instreamVideoAdRenderer.elementId,x.fS.adSlotLoggingData, function(E,N){return function(c){return E.fS.wW(c,N.I2.instreamVideoAdRenderer.elementId,E.fS.b4,E.fS.associatedCompositePlayerBytesLayoutId)}}(x,n))):V.push(Qyi(I,d,a,n.I2.instreamVideoAdRenderer.elementId,x.fS.adSlotLoggingData,D))}return V}; ks=function(r,V,I){if(V=uor(V)){V=g.H(V);for(var d=V.next();!d.done;d=V.next())if((d=d.value)&&d.externalVideoId){var a=hQ(r,d.externalVideoId);a.instreamVideoAdRenderer||(a.instreamVideoAdRenderer=d,a.Bl=I)}else zQ("InstreamVideoAdRenderer without externalVideoId")}}; uor=function(r){var V=[],I=r.sandwichedLinearAdRenderer&&r.sandwichedLinearAdRenderer.linearAd&&g.U(r.sandwichedLinearAdRenderer.linearAd,TA);if(I)return V.push(I),V;if(r.instreamVideoAdRenderer)return V.push(r.instreamVideoAdRenderer),V;if(r.linearAdSequenceRenderer&&r.linearAdSequenceRenderer.linearAds){r=g.H(r.linearAdSequenceRenderer.linearAds);for(I=r.next();!I.done;I=r.next())I=I.value,g.U(I,TA)&&V.push(g.U(I,TA));return V}return null}; ini=function(r){if(r.instreamVideoAdRenderer===void 0)return zQ("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var V=g.H(r.mZ),I=V.next();!I.done;I=V.next()){I=I.value;if(I.wW===void 0)return!1;if(I.b4===void 0)return zQ("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(r.Bl===void 0||I.Lg===void 0||r.Bl!==I.Lg&&I.Lg!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(r.instreamVideoAdRenderer.elementId===void 0)return zQ("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:r.Bl,"matching APSR kind":I.Lg}),!1}return!0}; hQ=function(r,V){r.has(V)||r.set(V,{instreamVideoAdRenderer:void 0,Bl:void 0,adVideoId:V,mZ:[]});return g.J(r.get(V))}; r_=function(r,V,I,d,a,f,e,n,D){a?hQ(r,a).mZ.push({tgz:V,Lg:I,isContentVideoCompanion:d,b4:e,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:n,wW:D}):zQ("Companion AdPlacementSupportedRenderer without adVideoId")}; VQ=function(r){var V=0;r=g.H(r.questions);for(var I=r.next();!I.done;I=r.next())if(I=I.value,I=g.U(I,B_)||g.U(I,gI)){var d=void 0;V+=((d=I.surveyAdQuestionCommon)==null?void 0:d.durationMilliseconds)||0}return V}; Iw=function(r){var V,I,d,a,f=((I=g.U((V=r.questions)==null?void 0:V[0],B_))==null?void 0:I.surveyAdQuestionCommon)||((a=g.U((d=r.questions)==null?void 0:d[0],gI))==null?void 0:a.surveyAdQuestionCommon),e;V=[].concat(g.R(((e=r.playbackCommands)==null?void 0:e.instreamAdCompleteCommands)||[]),g.R((f==null?void 0:f.timeoutCommands)||[]));var n,D,x,E,N,c,z,M,w,b,W,K,F,l,B,P,p,dA,fg,rA;return{impressionCommands:(n=r.playbackCommands)==null?void 0:n.impressionCommands,errorCommands:(D=r.playbackCommands)== null?void 0:D.errorCommands,muteCommands:(x=r.playbackCommands)==null?void 0:x.muteCommands,unmuteCommands:(E=r.playbackCommands)==null?void 0:E.unmuteCommands,pauseCommands:(N=r.playbackCommands)==null?void 0:N.pauseCommands,rewindCommands:(c=r.playbackCommands)==null?void 0:c.rewindCommands,resumeCommands:(z=r.playbackCommands)==null?void 0:z.resumeCommands,skipCommands:(M=r.playbackCommands)==null?void 0:M.skipCommands,progressCommands:(w=r.playbackCommands)==null?void 0:w.progressCommands,ZCE:(b= r.playbackCommands)==null?void 0:b.clickthroughCommands,fullscreenCommands:(W=r.playbackCommands)==null?void 0:W.fullscreenCommands,activeViewViewableCommands:(K=r.playbackCommands)==null?void 0:K.activeViewViewableCommands,activeViewMeasurableCommands:(F=r.playbackCommands)==null?void 0:F.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(l=r.playbackCommands)==null?void 0:l.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(B=r.playbackCommands)== null?void 0:(P=B.activeViewTracking)==null?void 0:P.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(p=r.playbackCommands)==null?void 0:(dA=p.activeViewTracking)==null?void 0:dA.activeViewAudioMeasurableCommands,endFullscreenCommands:(fg=r.playbackCommands)==null?void 0:fg.endFullscreenCommands,abandonCommands:(rA=r.playbackCommands)==null?void 0:rA.abandonCommands,completeCommands:V}}; vTr=function(r,V,I,d,a,f,e){return function(n,D){return p1p(r,D.slotId,n,f,function(x,E){var N=D.layoutId;x=e(x);return d_(V,N,E,a,x,"LAYOUT_TYPE_SURVEY",[new MD(I),d],I.adLayoutLoggingData)})}}; oTZ=function(r,V,I,d,a,f,e){if(!qTA(r))return new q("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:r});var n=r.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[PeO(f,V,I,d,function(D){var x=D.slotId;D=e(D);x=hi(a.X.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",x);var E={layoutId:x,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",K8:"core"},N=new BN(a.G,d);return{layoutId:x,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ou:new Map,layoutExitNormalTriggers:[N], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:new nM([new CU(n)]),zz:D(E)}})]}; qTA=function(r){r=g.U(r==null?void 0:r.additionalPlayerOverlay,kUh);if(!r)return!1;var V=r.slidingMessages;return r.title&&V&&V.length!==0?!0:!1}; rkZ=function(r,V,I,d,a){var f;if((f=r.playerOverlay)==null||!f.instreamSurveyAdRenderer)return function(){return[]}; if(!Ong(r))return function(){return new q("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:r})}; var e=r.playerOverlay.instreamSurveyAdRenderer,n=VQ(e);return n<=0?function(){return new q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e})}:function(D,x){var E=hRZ(D,I,d,function(N){var c=N.slotId; N=x(N);var z=Iw(e);c=hi(a.X.get(),"LAYOUT_TYPE_SURVEY",c);var M={layoutId:c,layoutType:"LAYOUT_TYPE_SURVEY",K8:"core"},w=new BN(a.G,d),b=new oS(a.G,c),W=new aT(a.G,c),K=new IRU(a.G);return{layoutId:c,layoutType:"LAYOUT_TYPE_SURVEY",Ou:new Map,layoutExitNormalTriggers:[w,K],layoutExitSkipTriggers:[b],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[W],KF:[],K8:"core",clientMetadata:new nM([new z1(e),new Vx(V),new Qx(n/1E3),new vw(z)]),zz:N(M),adLayoutLoggingData:e.adLayoutLoggingData}}); D=oTZ(r,I,E.slotId,d,a,D,x);return D instanceof q?D:[E].concat(g.R(D))}}; YAU=function(r,V,I,d,a,f,e){e=e===void 0?!1:e;var n=[];try{var D=[];if(I.renderer.linearAdSequenceRenderer)var x=function(w){w=V7A(w.slotId,I,V,a(w),d,f,e);D=w.hXE;return w.Ao}; else if(I.renderer.instreamVideoAdRenderer)x=function(w){var b=w.slotId;w=a(w);var W=e,K=I.config.adPlacementConfig,F=IqZ(K),l=F.Nl,B=F.cN;F=I.renderer.instreamVideoAdRenderer;var P;if(F==null?0:(P=F.playerOverlay)==null?0:P.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var p=aw(F,W);P=Math.min(l+p.videoLengthSeconds*1E3,B);W=new Gn(0,[p.videoLengthSeconds]);B=p.videoLengthSeconds;var dA=p.playerVars,fg=p.instreamAdPlayerOverlayRenderer,rA=p.playerOverlayLayoutRenderer, ji=p.adVideoId,k=dTX(I),bX=p.Ou;p=p.LY;var RX=F==null?void 0:F.adLayoutLoggingData;F=F==null?void 0:F.sodarExtensionData;b=hi(V.X.get(),"LAYOUT_TYPE_MEDIA",b);var Ui={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",K8:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Ou:bX,layoutExitNormalTriggers:[new gh(V.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:new nM([new YD(d),new tU(B),new yx(dA),new Fx(l),new l6(P),fg&&new nU(fg), rA&&new jH(rA),new Vx(K),new eH(ji),new IH(W),new Bw(k),F&&new G1(F),new Ww({current:null}),new JU({}),new oH(p)].filter(aqv)),zz:w(Ui),adLayoutLoggingData:RX}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var E=fqi(r,d,I.adSlotLoggingData,x);n.push(E);for(var N=g.H(D),c=N.next();!c.done;c=N.next()){var z=c.value,M=z(r,a);if(M instanceof q)return M;n.push.apply(n,g.R(M))}}catch(w){return new q(w,{errorMessage:w.message,AdPlacementRenderer:I,numberOfSurveyRenderers:eBg(I)})}return n}; eBg=function(r){r=(r.renderer.linearAdSequenceRenderer||{}).linearAds;return r!=null&&r.length?r.filter(function(V){var I,d;return((I=g.U(V,TA))==null?void 0:(d=I.playerOverlay)==null?void 0:d.instreamSurveyAdRenderer)!=null}).length:0}; V7A=function(r,V,I,d,a,f,e){var n=V.config.adPlacementConfig,D=IqZ(n),x=D.Nl,E=D.cN;D=(V.renderer.linearAdSequenceRenderer||{}).linearAds;if(D==null||!D.length)throw new TypeError("Expected linear ads");var N=[],c={GX:x,qS:0,p30:N};D=D.map(function(M){return nOO(r,M,c,I,d,n,a,E,e)}).map(function(M,w){w=new Gn(w,N); return M(w)}); var z=D.map(function(M){return M.iY}); return{Ao:jdX(I,r,x,z,n,dTX(V),d,E,f),hXE:D.map(function(M){return M.tI8})}}; nOO=function(r,V,I,d,a,f,e,n,D){var x=aw(g.U(V,TA),D),E=I.GX,N=I.qS,c=Math.min(E+x.videoLengthSeconds*1E3,n);I.GX=c;I.qS++;I.p30.push(x.videoLengthSeconds);var z,M,w=(z=g.U(V,TA))==null?void 0:(M=z.playerOverlay)==null?void 0:M.instreamSurveyAdRenderer;if(x.adVideoId==="nPpU29QrbiU"&&w==null)throw new TypeError("Survey slate media has no survey overlay");return function(b){oT(x.playerVars,b);var W,K,F=x.videoLengthSeconds,l=x.playerVars,B=x.Ou,P=x.LY,p=x.instreamAdPlayerOverlayRenderer,dA=x.playerOverlayLayoutRenderer, fg=x.adVideoId,rA=(W=g.U(V,TA))==null?void 0:W.adLayoutLoggingData;W=(K=g.U(V,TA))==null?void 0:K.sodarExtensionData;K=hi(d.X.get(),"LAYOUT_TYPE_MEDIA",r);var ji={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",K8:"adapter"};b={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",Ou:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"adapter",clientMetadata:new nM([new YD(e),new tU(F),new yx(l),new Fx(E),new l6(c),new LU(N),new Ww({current:null}), p&&new nU(p),dA&&new jH(dA),new Vx(f),new eH(fg),new IH(b),W&&new G1(W),w&&new Pw(w),new JU({}),new oH(P)].filter(aqv)),zz:a(ji),adLayoutLoggingData:rA};F=rkZ(g.U(V,TA),f,e,b.layoutId,d);return{iY:b,tI8:F}}}; aw=function(r,V){if(!r)throw new TypeError("Expected instream video ad renderer");if(!r.playerVars)throw new TypeError("Expected player vars in url encoded string");var I=eJ(r.playerVars),d=Number(I.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var a=Number(r.trimmedMaxNonSkippableAdDurationMs);d=isNaN(a)?d:Math.min(d,a/1E3);a=r.playerOverlay||{};a=a.instreamAdPlayerOverlayRenderer===void 0?null:a.instreamAdPlayerOverlayRenderer;var f=r.playerOverlay|| {};f=f.playerOverlayLayoutRenderer===void 0?null:f.playerOverlayLayoutRenderer;var e=I.video_id;e||(e=(e=r.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");if(V&&d===0){var n;V=(n=DTv[e])!=null?n:d}else V=d;return{playerVars:I,videoLengthSeconds:V,instreamAdPlayerOverlayRenderer:a,playerOverlayLayoutRenderer:f,adVideoId:e,Ou:r.pings?y0(r.pings):new Map,LY:tw(r.pings)}}; dTX=function(r){r=Number(r.driftRecoveryMs);return isNaN(r)||r<=0?null:r}; IqZ=function(r){var V=r.adTimeOffset||{};r=V.offsetEndMilliseconds;V=Number(V.offsetStartMilliseconds);if(isNaN(V))throw new TypeError("Expected valid start offset");r=Number(r);if(isNaN(r))throw new TypeError("Expected valid end offset");return{Nl:V,cN:r}}; xTA=function(r){var V,I=(V=jC(r.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current;if(!I)return null;V=jC(r.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var d=r.layoutId,a=jC(r.clientMetadata,"metadata_type_content_cpn"),f=jC(r.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),e=jC(r.clientMetadata,"metadata_type_player_underlay_renderer"),n=jC(r.clientMetadata,"metadata_type_ad_placement_config"),D=jC(r.clientMetadata,"metadata_type_video_length_seconds"); var x=aV(r.clientMetadata,"metadata_type_layout_enter_ms")&&aV(r.clientMetadata,"metadata_type_layout_exit_ms")?(jC(r.clientMetadata,"metadata_type_layout_exit_ms")-jC(r.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{CR:d,contentCpn:a,rC:I,F7:V,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:e,adPlacementConfig:n,videoLengthSeconds:D,YL:x,inPlayerLayoutId:jC(r.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jC(r.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; sdh=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z,M){d=Cv(d,"SLOT_TYPE_PLAYER_BYTES");r=EOj(a,r,e,I,d,D,x);if(r instanceof q)return r;var w;x=(w=jC(r.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:w.layoutId;if(!x)return new q("Invalid adNotify layout");V=NuX(x,a,f,I,n,V,D,E,N,c,z,M,e);return V instanceof q?V:[r].concat(g.R(V))}; NuX=function(r,V,I,d,a,f,e,n,D,x,E,N,c){I=ckZ(V,I,d,f,e,n,D,x,E,N,c);if(I instanceof q)return I;r=zBg(V,r,e,a,I);return r instanceof q?r:[].concat(g.R(r.zy),[r.hc])}; CIr=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z){V=ckZ(r,V,I,a,f,n,D,x,E,N,c,z);if(V instanceof q)return V;r=M7g(r,I,f,e,d,n.Tz,V);return r instanceof q?r:r.zy.concat(r.hc)}; ckZ=function(r,V,I,d,a,f,e,n,D,x,E,N){var c=f3(d,I,x);return c instanceof Yp?new q(c):x.T.N().experiments.uL("html5_refactor_in_player_slot_generation")?function(z){var M=new Gn(0,[c.Oi]);z=TuU(V,c.layoutId,c.AV,I,en(c.playerVars,c.H4,f,D,M),c.Oi,a,M,e(z),n.get(c.AV.externalVideoId),N);M=[];if(c.AV.playerOverlay.instreamAdPlayerOverlayRenderer){var w=xTA(z);if(!w)return zQ("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,z),{layout:z,zy:[]}; M=[HXv(r,w.contentCpn,w.CR,function(W){return Yl(V,W.slotId,"core",w,cE(E,W))},w.inPlayerSlotId)].concat(g.R(M)); if(w.instreamAdPlayerUnderlayRenderer&&n3(x)){var b=w.instreamAdPlayerUnderlayRenderer;M=[waA(r,w.contentCpn,w.CR,function(W){return bXg(V,W.slotId,b,w.adPlacementConfig,w.CR,cE(E,W))})].concat(g.R(M))}}return{layout:z, zy:M}}:function(z){var M=new Gn(0,[c.Oi]); return{layout:TuU(V,c.layoutId,c.AV,I,en(c.playerVars,c.H4,f,D,M),c.Oi,a,M,e(z),n.get(c.AV.externalVideoId),N),zy:[]}}}; f3=function(r,V,I){if(!r.playerVars)return new Yp("No playerVars available in InstreamVideoAdRenderer.");var d,a;if(r.elementId==null||r.playerVars==null||r.playerOverlay==null||((d=r.playerOverlay)==null?void 0:d.instreamAdPlayerOverlayRenderer)==null&&((a=r.playerOverlay)==null?void 0:a.playerOverlayLayoutRenderer)==null||r.pings==null||r.externalVideoId==null)return new Yp("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:r});d=eJ(r.playerVars);a=Number(d.length_seconds); isNaN(a)&&(a=0,zQ("Expected valid length seconds in player vars but got NaN"));if(I.pJ(V.kind==="AD_PLACEMENT_KIND_START")){if(r.layoutId===void 0)return new Yp("Expected server generated layout ID in instreamVideoAdRenderer");V=r.layoutId}else V=r.elementId;return{layoutId:V,AV:r,playerVars:d,H4:r.playerVars,Oi:a}}; en=function(r,V,I,d,a){r.iv_load_policy=d;V=eJ(V);if(V.cta_conversion_urls)try{r.cta_conversion_urls=JSON.parse(V.cta_conversion_urls)}catch(f){zQ(f)}I.Si&&(r.ctrl=I.Si);I.O6&&(r.ytr=I.O6);I.Lz&&(r.ytrcc=I.Lz);I.isMdxPlayback&&(r.mdx="1");r.vvt&&(r.vss_credentials_token=r.vvt,I.tO&&(r.vss_credentials_token_type=I.tO),I.mdxEnvironment&&(r.mdx_environment=I.mdxEnvironment));oT(r,a);return r}; OXv=function(r){var V=new Map;r=g.H(r);for(var I=r.next();!I.done;I=r.next())(I=I.value.renderer.remoteSlotsRenderer)&&I.hostElementId&&V.set(I.hostElementId,I);return V}; jn=function(r){return r.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; WMr=function(r){return r!=null}; GrU=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z){for(var M=[],w=g.H(r),b=w.next();!b.done;b=w.next())if(b=b.value,!cpg(b)&&!HnA(b)){var W=jn(b)&&!!b.slotEntryTrigger.beforeContentVideoIdStartedTrigger,K=D.pJ(W),F=$TS(b,x,d,I.HZ,K);if(F instanceof q)return F;var l=void 0,B={slotId:b.adSlotMetadata.slotId,slotType:b.adSlotMetadata.slotType,slotPhysicalPosition:(l=b.adSlotMetadata.slotPhysicalPosition)!=null?l:1,K8:"core",slotEntryTrigger:F.slotEntryTrigger,slotFulfillmentTriggers:F.slotFulfillmentTriggers, slotExpirationTriggers:F.slotExpirationTriggers},P=g.U(b.fulfillmentContent.fulfilledLayout,W_);if(P){if(!Oo(P))return new q("Invalid PlayerBytesAdLayoutRenderer");l=N&&!(jn(b)&&b.slotEntryTrigger.beforeContentVideoIdStartedTrigger);F=F.slotFulfillmentTriggers.some(function(p){return p instanceof So}); K=l?KMi(B,b.adSlotMetadata.triggerEvent,P,I,d,f,x,r,K,c,F,z):RBS(B,b.adSlotMetadata.triggerEvent,P,V,I,d,a,f,e,n,D,x,r,E,K,b.adSlotMetadata.triggeringSourceLayoutId);if(K instanceof q)return K;F=[];jn(b)&&F.push(new IV({CU:jn(b)&&!!b.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));l&&F.push(new JU({}));I.Tz&&F.push(new qD({}));F.push(new ri(W));b=Object.assign({},B,{clientMetadata:new nM(F),fulfilledLayout:K.layout,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});M.push.apply(M,g.R(K.zy)); M.push(b)}else if(W=g.U(b.fulfillmentContent.fulfilledLayout,ZF)){if(!syA(W))return new q("Invalid PlayerUnderlayAdLayoutRenderer");W=t7A(W,d,I.HZ,f,B,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId);if(W instanceof q)return W;b=Object.assign({},B,{clientMetadata:new nM([]),fulfilledLayout:W,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});M.push(b)}else if(W=g.U(b.fulfillmentContent.fulfilledLayout,MIX)){if(!eRr(W))return new q("Invalid AboveFeedAdLayoutRenderer");W= ykA(W,d,I.HZ,f,B,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId);if(W instanceof q)return W;b=Object.assign({},B,{clientMetadata:new nM([]),fulfilledLayout:W,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});M.push(b)}else if(W=g.U(b.fulfillmentContent.fulfilledLayout,Cei)){if(!Ys(W.adLayoutMetadata)||!g.U(W.renderingContent,nt))return new q("Invalid BelowPlayerAdLayoutRenderer");W=ykA(W,d,I.HZ,f,B,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId); if(W instanceof q)return W;b=Object.assign({},B,{clientMetadata:new nM([]),fulfilledLayout:W,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});M.push(b)}else if(W=g.U(b.fulfillmentContent.fulfilledLayout,XQ)){if(!lp(W))return new q("Invalid PlayerBytesSequenceItemAdLayoutRenderer");W=AkO(W,d,I.HZ,f,B,b.adSlotMetadata.triggerEvent);if(W instanceof q)return W;b=Object.assign({},B,{clientMetadata:new nM([]),fulfilledLayout:W,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});M.push(b)}else return new q("Unable to retrieve a client slot ["+ B.slotType+"] from a given AdSlotRenderer")}return M}; AkO=function(r,V,I,d,a,f){var e={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,K8:"core"};V=D1(r,V,I);return V instanceof q?V:(I=g.U(r.renderingContent,$s))&&I.pings?Object.assign({},e,{renderingContent:r.renderingContent,Ou:y0(I.pings)},V,{zz:cE(d,a)(e),clientMetadata:new nM([new Vx(xl(f))]),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData}):new q("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; ykA=function(r,V,I,d,a,f,e){var n={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,K8:"core"};V=D1(r,V,I);if(V instanceof q)return V;I=[];I.push(new Vx(xl(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&e!==void 0&&I.push(new T1(e));return Object.assign({},n,{renderingContent:r.renderingContent,Ou:new Map([["impression",FMi(r)]])},V,{zz:cE(d,a)(n),clientMetadata:new nM(I),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData})}; t7A=function(r,V,I,d,a,f,e){if(r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(e=g.U(r.renderingContent,Lt))if(e=g.U(e.sidePanel,ETZ)){var n={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,K8:"core"};V=D1(r,V,I);r=V instanceof q?V:Object.assign({},n,{renderingContent:r.renderingContent,Ou:new Map([["impression",e.impressionPings||[]],["resume",e.resumePings||[]]])},V,{zz:cE(d,a)(n),clientMetadata:new nM([new Vx(xl(f))]),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData})}else r= new q("DismissablePanelTextPortraitImageRenderer is missing");else r=new q("SqueezebackPlayerSidePanelRenderer is missing");else r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.U(r.renderingContent,jyS)?(e={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,K8:"core"},V=D1(r,V,I),r=V instanceof q?V:Object.assign({},e,{renderingContent:r.renderingContent,Ou:new Map},V,{zz:cE(d,a)(e),clientMetadata:new nM([new Vx(xl(f))]),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData})): r=new q("CounterfactualRenderer is missing"):r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?r=new q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?r=new q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.U(r.renderingContent,JQ)?(f={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType, K8:"core"},V=D1(r,V,I),r=V instanceof q?V:e?Object.assign({},f,{renderingContent:r.renderingContent,Ou:new Map},V,{zz:cE(d,a)(f),clientMetadata:new nM([new T1(e)]),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData}):new q("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):r=new q("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.U(r.renderingContent,Dwi)? (f={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,K8:"core"},V=D1(r,V,I),r=V instanceof q?V:Object.assign({},f,{renderingContent:r.renderingContent,Ou:new Map([])},V,{zz:cE(d,a)(f),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new nM([])})):r=new q("AdsEngagementPanelSectionListViewModel is missing"):r=new q("LayoutType ["+r.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return r}; KMi=function(r,V,I,d,a,f,e,n,D,x,E,N){if((N==null?void 0:N.VQ)===void 0||(N==null?void 0:N.D3)===void 0)return new q("Cached ad break range from cue point is missing");var c=D1(I,a,d.HZ);if(c instanceof q)return c;c={layoutExitMuteTriggers:[],layoutExitNormalTriggers:c.layoutExitNormalTriggers,layoutExitSkipTriggers:[],KF:[],layoutExitUserInputSubmittedTriggers:[]};if(g.U(I.renderingContent,TA))return r=lqg(r,V,I,c,a,f,n,D,d.HZ,e,N.VQ,N.D3),r instanceof q?r:r.ul===void 0?new q("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:r.layout,zy:[r.ul]};var z=g.U(I.renderingContent,ME);if(z){if(!Ys(I.adLayoutMetadata))return new q("Invalid ad layout metadata");if(!Ct(z))return new q("Invalid sequential layout");z=z.sequentialLayouts.map(function(M){return M.playerBytesAdLayoutRenderer}); r=LMi(r,V,I,c,z,a,d,f,e,D,n,x,N.VQ,N.D3,E);return r instanceof q?r:{layout:r.gw,zy:r.zy}}return new q("Not able to convert a sequential layout")}; LMi=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z,M){var w=JkX(a,c,z);if(w instanceof q)return w;var b=[],W=[];w=g.H(w);for(var K=w.next();!K.done;K=w.next()){var F=K.value;K=r;var l=a[F.qS],B=F,P=V;F=f;var p=e,dA=n,fg=D,rA=x,ji=E,k=Ej(l);if(k instanceof q)K=k;else{var bX={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,K8:"adapter"};B=ZXj(P,l,B,F);B instanceof q?K=B:(K=Object.assign({},bX,NH,{Ou:k,renderingContent:l.renderingContent,clientMetadata:new nM(B),zz:cE(dA,K)(bX),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData}), K=(l=sj(ji,K,F,p.HZ,dA,fg,rA,void 0,!0))?l instanceof q?l:{layout:K,ul:l}:new q("Expecting associatedInPlayerSlot"))}if(K instanceof q)return K;b.push(K.layout);W.push(K.ul)}a={layoutId:I.adLayoutMetadata.layoutId,layoutType:I.adLayoutMetadata.layoutType,K8:"core"};V=[new Bw(Number(I.driftRecoveryMs)),new Fx(c),new l6(z),new Vx(xl(V)),new hU(N),new JU({})];M&&V.push(new di({}));return{gw:Object.assign({},a,d,{nS:b,Ou:new Map,clientMetadata:new nM(V),zz:cE(n,r)(a)}),zy:W}}; lqg=function(r,V,I,d,a,f,e,n,D,x,E,N){if(!Oo(I))return new q("Invalid PlayerBytesAdLayoutRenderer");var c=Ej(I);if(c instanceof q)return c;var z={layoutId:I.adLayoutMetadata.layoutId,layoutType:I.adLayoutMetadata.layoutType,K8:"core"},M=g.U(I.renderingContent,TA);if(!M)return new q("Invalid rendering content for DAI media layout");M=aw(M,!1);E={Xo:M,qS:0,GX:E,H5:Math.min(E+M.videoLengthSeconds*1E3,N),kd:new Gn(0,[M.videoLengthSeconds])};var w;N=(w=Number(I.driftRecoveryMs))!=null?w:void 0;V=ZXj(V, I,E,a,N);if(V instanceof q)return V;r=Object.assign({},z,d,{Ou:c,renderingContent:I.renderingContent,clientMetadata:new nM(V),zz:cE(f,r)(z),adLayoutLoggingData:I.adLayoutMetadata.adLayoutLoggingData});return(a=sj(e,r,a,D,f,x,n,void 0,!0))?a instanceof q?a:{layout:r,ul:a}:new q("Expecting associatedInPlayerSlot")}; RBS=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z,M,w){var b=D1(I,f,a.HZ);if(b instanceof q)return b;if(g.U(I.renderingContent,TA)){D=XaA([I],a,D);if(D instanceof q)return D;if(D.length!==1)return new q("Only expected one media layout.");r=BuZ(r,V,I,b,D[0],void 0,"core",d,f,e,n,x,c,z,M,a.HZ,N,void 0,w);return r instanceof q?r:{layout:r.layout,zy:r.ul?[r.ul]:[]}}var W=g.U(I.renderingContent,ME);if(W){if(!Ys(I.adLayoutMetadata))return new q("Invalid ad layout metadata");if(!Ct(W))return new q("Invalid sequential layout"); W=W.sequentialLayouts.map(function(K){return K.playerBytesAdLayoutRenderer}); r=gOX(r,V,I.adLayoutMetadata,b,W,d,f,a,D,e,n,x,E,N,M,c,z,w);return r instanceof q?r:{layout:r.gw,zy:r.zy}}return new q("Not able to convert a sequential layout")}; gOX=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z,M,w,b,W){var K=new fU({current:null}),F=XaA(a,n,D);if(F instanceof q)return F;D=[];for(var l=[],B=void 0,P=0;P0&&(P.push(W),P.push(new aH(B.adPodSkipTarget)));(f=x.get(B.externalVideoId))&&P.push(new UX(f));f=P}else f=new q("Invalid vod media renderer")}if(f instanceof q)return f;r=Object.assign({},e,d,{Ou:F,renderingContent:I.renderingContent,clientMetadata:new nM(f),zz:cE(E,r)(e),adLayoutLoggingData:I.adLayoutMetadata.adLayoutLoggingData});I=g.U(I.renderingContent,TA);if(!I||!zA(I))return new q("Invalid meida renderer");N=hQ(N,I.externalVideoId);N.instreamVideoAdRenderer=I;N.Bl="AD_PLACEMENT_KIND_START";return z?(D=sj(c,r,D,w,E,b,M,W,!1),D instanceof q?D:UTi(r.layoutId,c)&&D?{layout:Object.assign({},r,{clientMetadata:new nM(f.concat(new EX(D)))})}:{layout:r,ul:D}): {layout:r}}; SAU=function(r,V,I,d,a){if(!Oo(V))return new q("Invalid PlayerBytesAdLayoutRenderer");var f=g.U(V.renderingContent,EU);if(!f||f.durationMilliseconds===void 0)return new q("Invalid endcap renderer");var e={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,K8:"adapter"};d=[new mh(f.durationMilliseconds),new vw({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new Vx(d), new wc("LAYOUT_TYPE_ENDCAP")];if(a){d.push(new dc(a.kd.adPodIndex-1));d.push(new LU(a.kd.adPodIndex));var n;d.push(new aH((n=a.adPodSkipTarget)!=null?n:-1))}return Object.assign({},e,NH,{renderingContent:V.renderingContent,clientMetadata:new nM(d),Ou:f.skipPings?new Map([["skip",f.skipPings]]):new Map,zz:cE(I,r)(e),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData})}; sj=function(r,V,I,d,a,f,e,n,D){r=r.filter(function(E){return E.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&E.adSlotMetadata.triggeringSourceLayoutId===V.layoutId}); if(r.length!==0){if(r.length!==1)return new q("Invalid InPlayer slot association for the given PlayerBytes layout");r=r[0];e=$TS(r,f,I,d,e);if(e instanceof q)return e;var x;f={slotId:r.adSlotMetadata.slotId,slotType:r.adSlotMetadata.slotType,slotPhysicalPosition:(x=r.adSlotMetadata.slotPhysicalPosition)!=null?x:1,K8:"core",slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:e.slotExpirationTriggers};x=g.U(r.fulfillmentContent.fulfilledLayout, zRv);if(!x||!nTi(x))return new q("Invalid InPlayerAdLayoutRenderer");e={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,K8:"core"};I=D1(x,I,d);if(I instanceof q)return I;d=[];D&&d.push(new JU({}));if(x.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.R(QdA(r.adSlotMetadata.triggerEvent,V)));else if(x.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new Vx(xl(r.adSlotMetadata.triggerEvent))),n&&d.push(n);else return new q("Not able to parse an SDF InPlayer layout"); a=Object.assign({},e,I,{renderingContent:x.renderingContent,Ou:new Map,zz:cE(a,f)(e),clientMetadata:new nM(d),adLayoutLoggingData:x.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:a,clientMetadata:new nM([])})}}; QdA=function(r,V){var I=[];I.push(new Vx(xl(r)));I.push(new T1(V.layoutId));(r=jC(V.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&I.push(new Ww(r));(r=jC(V.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&I.push(new fU(r));(r=jC(V.clientMetadata,"metadata_type_remote_slots_data"))&&I.push(new UX(r));(r=jC(V.clientMetadata,"metadata_type_ad_next_params"))&&I.push(new pX(r));(r=jC(V.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&I.push(new va(r));(r= jC(V.clientMetadata,"metadata_type_ad_pod_info"))&&I.push(new IH(r));(V=jC(V.clientMetadata,"metadata_type_ad_video_id"))&&I.push(new eH(V));return I}; iXA=function(r,V,I,d,a,f){function e(x){return cc(V,x)} var n=d.Cf.inPlayerSlotId,D={layoutId:d.Cf.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",K8:"core"};I={slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:new Ze(e,r),slotFulfillmentTriggers:[new k7(e,n)],slotExpirationTriggers:[new h7(e,n),new qj(e,I)]};r=Object.assign({},D,{layoutExitNormalTriggers:[new BN(e,r)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],Ou:new Map,clientMetadata:new nM([new sX(d.Cf), new Vx(d.adPlacementConfig),a]),zz:cE(f,I)(D),adLayoutLoggingData:d.Cf.adLayoutLoggingData});return Object.assign({},I,{clientMetadata:new nM([new gc(r)])})}; UTi=function(r,V){V=g.H(V);for(var I=V.next();!I.done;I=V.next())if(I=I.value,I.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var d=g.U(I.fulfillmentContent.fulfilledLayout,ZF);if(d&&(d=g.U(d.renderingContent,Lt))&&d.associatedPlayerBytesLayoutId===r)return I}}; $TS=function(r,V,I,d,a){var f=mTX(P_(r.slotEntryTrigger,I,d),a,r,V);if(f instanceof q)return f;for(var e=[],n=g.H(r.slotFulfillmentTriggers),D=n.next();!D.done;D=n.next()){D=P_(D.value,I,d);if(D instanceof q)return D;e.push(D)}e=uiZ(e,a,r,V);V=[];r=g.H(r.slotExpirationTriggers);for(a=r.next();!a.done;a=r.next()){a=P_(a.value,I,d);if(a instanceof q)return a;V.push(a)}return{slotEntryTrigger:f,slotFulfillmentTriggers:e,slotExpirationTriggers:V}}; mTX=function(r,V,I,d){return V&&I.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&r instanceof Fz?new A7(function(a){return cc(d,a)},I.adSlotMetadata.slotId):r}; uiZ=function(r,V,I,d){return V&&I.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?r.map(function(a){return a instanceof k7?new IT(function(f){return cc(d,f)},I.adSlotMetadata.slotId):a}):r}; D1=function(r,V,I){for(var d=[],a=g.H(r.layoutExitNormalTriggers||[]),f=a.next();!f.done;f=a.next()){f=P_(f.value,V,I);if(f instanceof q)return f;d.push(f)}a=[];f=g.H(r.layoutExitSkipTriggers||[]);for(var e=f.next();!e.done;e=f.next()){e=P_(e.value,V,I);if(e instanceof q)return e;a.push(e)}f=[];e=g.H(r.layoutExitMuteTriggers||[]);for(var n=e.next();!n.done;n=e.next()){n=P_(n.value,V,I);if(n instanceof q)return n;f.push(n)}e=[];r=g.H(r.layoutExitUserInputSubmittedTriggers||[]);for(n=r.next();!n.done;n= r.next()){n=P_(n.value,V,I);if(n instanceof q)return n;e.push(n)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:a,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:e,KF:[]}}; Ej=function(r){var V=g.U(r.renderingContent,TA);if(V==null?0:V.pings)return y0(V.pings);r=g.U(r.renderingContent,EU);return(r==null?0:r.skipPings)?new Map([["skip",r.skipPings]]):new Map}; ZXj=function(r,V,I,d,a){V=g.U(V.renderingContent,TA);if(!V)return new q("Invalid rendering content for DAI media layout");r=[new YD(d),new tU(I.Xo.videoLengthSeconds),new yx(I.Xo.playerVars),new Fx(I.GX),new l6(I.H5),new LU(I.qS),new Vx(xl(r)),new eH(I.Xo.adVideoId),new IH(I.kd),V.sodarExtensionData&&new G1(V.sodarExtensionData),new Ww({current:null}),new JU({}),new oH(tw(V.pings))].filter(WMr);a!==void 0&&r.push(new Bw(a));return r}; JkX=function(r,V,I){r=r.map(function(D){return aw(g.U(D.renderingContent,TA),!1)}); var d=r.map(function(D){return D.videoLengthSeconds}),a=d.map(function(D,x){return new Gn(x,d)}),f=V,e=I,n=[]; r.forEach(function(D,x){e=Math.min(f+D.videoLengthSeconds*1E3,I);oT(D.playerVars,a[x]);n.push({Xo:D,GX:f,H5:e,qS:x,kd:a[x]});f=e}); return n}; XaA=function(r,V,I){for(var d=[],a=g.H(r),f=a.next();!f.done;f=a.next())if(f=g.U(f.value.renderingContent,TA)){if(!zA(f))return new q("Invalid vod media renderer");d.push(paO(f))}a=d.map(function(N){return N.Oi}); f=[];for(var e=0,n=0;n0?rA:-1;else if(bX=g.U(k,EU)){k=ayr(r,V,I, bX,f,w,n,p,rA);if(k instanceof q){z=k;break a}k=k(c);b.push(k.Cn);W=[].concat(g.R(k.jz),g.R(W));K=[].concat(g.R(k.RO),g.R(K));k.ul&&(fg=[k.ul].concat(g.R(fg)))}else if(bX=g.U(k,wI)){if(z===void 0){z=new q("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:bX});break a}k=YXO(r,V,I,f,bX,P,n,z,w,kp(E,"supports_multi_step_on_desktop"));if(k instanceof q){z=k;break a}k=k(c);b.push(k.Cn);k.ul&&fg.push(k.ul);W=[].concat(g.R(k.jz),g.R(W));K=[].concat(g.R(k.RO), g.R(K));F=[].concat(g.R(k.BJ),g.R(F));l=[].concat(g.R(k.MP),g.R(l));B=[P].concat(g.R(B))}else if(k=g.U(k,bp)){k=nDZ(r,V,I,f,k,P,n,w);if(k instanceof q){z=k;break a}k=k(c);b.push(k.Cn);k.ul&&fg.push(k.ul);K=[].concat(g.R(k.RO),g.R(K))}else{z=new q("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}z={nS:b,layoutExitSkipTriggers:W,layoutExitUserInputSubmittedTriggers:F,KF:l,layoutExitMuteTriggers:K,cJ:B,zy:fg}}}else a:if(w=z3g(d,I,E),w instanceof q)z=w;else{b=0;W=[];K=[];F=[];l=[];B= [];P=[];p=new $D({current:null});dA=new fU({current:null});fg=!1;ji=[];rA=-1;M=g.H(d);for(k=M.next();!k.done;k=M.next())if(k=k.value,g.U(k,H_)){k=fyi(V,I,g.U(k,H_),n);if(k instanceof q){z=k;break a}k=k(c);W.push(k.Cn);K=[].concat(g.R(k.jz),g.R(K));F=[].concat(g.R(k.RO),g.R(F));k.ul&&(ji=[k.ul].concat(g.R(ji)))}else if(g.U(k,TA)){rA=f3(g.U(k,TA),I,E);if(rA instanceof Yp){z=new q(rA);break a}k=new Gn(b,w);k=MHr(V,rA.layoutId,rA.AV,I,en(rA.playerVars,rA.H4,e,x,k),rA.Oi,f,k,n(c),dA,D.get(rA.AV.externalVideoId), void 0,N);b++;W.push(k.Cn);K=[].concat(g.R(k.jz),g.R(K));F=[].concat(g.R(k.RO),g.R(F));fg||(P.push(dA),fg=!0);rA=(rA=rA.AV.adPodSkipTarget)&&rA>0?rA:-1}else if(g.U(k,EU)){k=ayr(r,V,I,g.U(k,EU),f,b,n,dA,rA);if(k instanceof q){z=k;break a}k=k(c);W.push(k.Cn);K=[].concat(g.R(k.jz),g.R(K));F=[].concat(g.R(k.RO),g.R(F));k.ul&&(ji=[k.ul].concat(g.R(ji)))}else if(g.U(k,wI)){if(z===void 0){z=new q("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.U(k, wI)});break a}k=YXO(r,V,I,f,g.U(k,wI),p,n,z,b,kp(E,"supports_multi_step_on_desktop"));if(k instanceof q){z=k;break a}k=k(c);W.push(k.Cn);k.ul&&ji.push(k.ul);K=[].concat(g.R(k.jz),g.R(K));F=[].concat(g.R(k.RO),g.R(F));l=[].concat(g.R(k.BJ),g.R(l));B=[].concat(g.R(k.MP),g.R(B));P=[p].concat(g.R(P))}else if(g.U(k,bp)){k=nDZ(r,V,I,f,g.U(k,bp),p,n,b);if(k instanceof q){z=k;break a}k=k(c);W.push(k.Cn);k.ul&&ji.push(k.ul);F=[].concat(g.R(k.RO),g.R(F))}else{z=new q("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}z={nS:W,layoutExitSkipTriggers:K,layoutExitUserInputSubmittedTriggers:l,KF:B,layoutExitMuteTriggers:F,cJ:P,zy:ji}}z instanceof q?c=z:(B=c.slotId,w=z.nS,b=z.layoutExitSkipTriggers,W=z.layoutExitMuteTriggers,K=z.layoutExitUserInputSubmittedTriggers,F=z.cJ,c=n(c),l=a?a.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B=a?a.layoutId:hi(V.X.get(),l,B),P={layoutId:B,layoutType:l,K8:"core"},c={layout:{layoutId:B,layoutType:l,Ou:new Map,layoutExitNormalTriggers:[new vN(V.G,B)],layoutExitSkipTriggers:b, layoutExitMuteTriggers:W,layoutExitUserInputSubmittedTriggers:K,KF:[],K8:"core",clientMetadata:new nM([new KU(w)].concat(g.R(F))),zz:c(P)},zy:z.zy});return c}}; z3g=function(r,V,I){var d=[];r=g.H(r);for(var a=r.next();!a.done;a=r.next())if(a=a.value,g.U(a,TA)){a=f3(g.U(a,TA),V,I);if(a instanceof Yp)return new q(a);d.push(a.Oi)}return d}; Tch=function(r,V,I,d,a,f,e,n){if(!bnv(I,n===void 0?!1:n))return new q("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:I});var D=VQ(I);if(D<=0)return new q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:I});var x=new $D({current:null}),E=vTr(r,V,I,x,d,f,e);return C6i(r,d,f,D,a,function(N,c){var z=N.slotId,M=Iw(I);N=e(N);var w,b=(w=TJ(V,d,I.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?w: hi(V.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",z);z={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",K8:"core"};w=E(b,c);var W=jC(w.clientMetadata,"metadata_type_fulfilled_layout");W||zQ("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");M=[new Vx(d),new mh(D),new vw(M),x];W&&M.push(new wc(W.layoutType));return{Oo7:{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ou:new Map,layoutExitNormalTriggers:[new vN(V.G,b)],layoutExitSkipTriggers:[new oS(V.G, c.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new aT(V.G,c.layoutId)],KF:[],K8:"core",clientMetadata:new nM(M),zz:N(z)},qEL:w}})}; HUh=function(r){if(!$wZ(r))return!1;var V=g.U(r.adVideoStart,Wc);return V?g.U(r.linearAd,TA)&&so(V)?!0:(zQ("Invalid Sandwich with notify"),!1):!1}; wwA=function(r){if(r.linearAds==null)return!1;r=g.U(r.adStart,Wc);return r?so(r)?!0:(zQ("Invalid LASR with notify"),!1):!1}; bUi=function(r){if(!WtA(r))return!1;r=g.U(r.adStart,Wc);return r?so(r)?!0:(zQ("Invalid LASR with notify"),!1):!1}; $l=function(r,V,I,d,a,f,e,n,D,x){this.Y=r;this.X=V;this.G=I;this.ws=d;this.Ot=a;this.S=f;this.SC=e;this.Cl=n;this.iZ=D;this.loadPolicy=x===void 0?1:x}; v_=function(r,V,I,d,a,f,e,n,D,x){var E=[];if(V.length===0&&d.length===0&&I.length===0)return E;V=V.filter(c_);var N=I.filter(THU),c=d.filter(c_),z=new Map,M=OXv(V),w=I.some(function(RX){var Ui;return(RX==null?void 0:(Ui=RX.adSlotMetadata)==null?void 0:Ui.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),b=I.some(function(RX){var Ui; return(RX==null?void 0:(Ui=RX.adSlotMetadata)==null?void 0:Ui.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),W=I.some(function(RX){var Ui; return(RX==null?void 0:(Ui=RX.adSlotMetadata)==null?void 0:Ui.slotType)==="SLOT_TYPE_IN_PLAYER"}),K=I.some(function(RX){var Ui,$f; return(RX==null?void 0:(Ui=RX.adSlotMetadata)==null?void 0:Ui.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(RX==null?void 0:($f=RX.adSlotMetadata)==null?void 0:$f.slotType)==="SLOT_TYPE_ABOVE_FEED"}); I=I.some(function(RX){var Ui;return(RX==null?void 0:(Ui=RX.adSlotMetadata)==null?void 0:Ui.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(w||b||W||K||I)x=GrU(N,V,n,a,M,r.Ot.get(),r.loadPolicy,z,r.ws.get(),r.Y.get(),W,e,D,x),x instanceof q?zQ(x,void 0,void 0,{contentCpn:a}):E.push.apply(E,g.R(x));x=g.H(V);for(I=x.next();!I.done;I=x.next())I=I.value,b=OUj(r,z,I,a,f,e,w,n,M,D,N),b instanceof q?zQ(b,void 0,void 0,{renderer:I.renderer,config:I.config.adPlacementConfig,kind:I.config.adPlacementConfig.kind,contentCpn:a,daiEnabled:e}):E.push.apply(E,g.R(b));Whr(r.ws.get())||(f=$DU(r,c,a,n,M,z),E.push.apply(E,g.R(f)));if(r.S===null||e&&!n.TM){var F, l,B;r=n.Tz&&V.length===1&&((F=V[0].config)==null?void 0:(l=F.adPlacementConfig)==null?void 0:l.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((B=V[0].renderer)==null?void 0:B.adBreakServiceRenderer);if(!E.length&&!r){var P,p,dA,fg;zQ("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":V.length,contentCpn:a,"first APR kind":(P=V[0])==null?void 0:(p=P.config)==null?void 0:(dA=p.adPlacementConfig)==null?void 0:dA.kind,renderer:(fg=V[0])==null?void 0: fg.renderer})}return E}F=d.filter(c_);E.push.apply(E,g.R(mwA(z,F,r.X.get(),r.S,a,w)));if(!E.length){var rA,ji,k,bX;zQ("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":V.length,contentCpn:a,daiEnabled:e.toString(),"first APR kind":(rA=V[0])==null?void 0:(ji=rA.config)==null?void 0:(k=ji.adPlacementConfig)==null?void 0:k.kind,renderer:(bX=V[0])==null?void 0:bX.renderer})}return E}; $DU=function(r,V,I,d,a,f){function e(c){return cE(r.Ot.get(),c)} var n=[];V=g.H(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;var x=D.renderer,E=x.sandwichedLinearAdRenderer,N=x.linearAdSequenceRenderer;E&&HUh(E)?(zQ("Found AdNotify with SandwichedLinearAdRenderer"),N=g.U(E.adVideoStart,Wc),E=g.U(E.linearAd,TA),ks(f,x,D.config.adPlacementConfig.kind),x=void 0,N=NuX((x=N)==null?void 0:x.layout.layoutId,r.X.get(),r.G.get(),D.config.adPlacementConfig,D.adSlotLoggingData,E,I,d,e,a,r.loadPolicy,r.ws.get(),r.Ot.get()),N instanceof q?zQ(N):n.push.apply(n,g.R(N))): N&&(!N.adLayoutMetadata&&wwA(N)||N.adLayoutMetadata&&bUi(N))&&(zQ("Found AdNotify with LinearAdSequenceRenderer"),ks(f,x,D.config.adPlacementConfig.kind),x=void 0,E=jHh((x=g.U(N.adStart,Wc))==null?void 0:x.layout.layoutId,r.X.get(),r.G.get(),D.config.adPlacementConfig,D.adSlotLoggingData,N.linearAds,Ys(N.adLayoutMetadata)?N.adLayoutMetadata:void 0,I,d,e,a,r.loadPolicy,r.ws.get()),E instanceof q?zQ(E):n.push.apply(n,g.R(E)))}return n}; OUj=function(r,V,I,d,a,f,e,n,D,x,E){function N(W){return cE(r.Ot.get(),W)} var c=I.renderer,z=I.config.adPlacementConfig,M=z.kind,w=I.adSlotLoggingData,b=n.TM&&M==="AD_PLACEMENT_KIND_START";b=f&&!b;if(c.adsEngagementPanelRenderer!=null)return r_(V,I.elementId,M,c.adsEngagementPanelRenderer.isContentVideoEngagementPanel,c.adsEngagementPanelRenderer.adVideoId,c.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,z,w,function(W,K,F,l){var B=r.G.get(),P=W.slotId,p=c.adsEngagementPanelRenderer;W=cE(r.Ot.get(),W);return K3(B,P,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new mM(p),K,F,p.impressionPings,W,c.adsEngagementPanelRenderer.adLayoutLoggingData,l)}),[]; if(c.adsEngagementPanelLayoutViewModel)return r_(V,I.elementId,M,c.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,c.adsEngagementPanelLayoutViewModel.adVideoId,c.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,z,w,function(W,K,F,l){var B=r.G.get(),P=W.slotId,p=c.adsEngagementPanelLayoutViewModel;W=cE(r.Ot.get(),W);return Rw(B,P,"LAYOUT_TYPE_PANEL",new uI(p),K,F,W,c.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,l)}),[]; if(c.actionCompanionAdRenderer!=null){if(c.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return gTX(r.X.get(),r.S,r.G.get(),c.actionCompanionAdRenderer,z,w,d,N);r_(V,I.elementId,M,c.actionCompanionAdRenderer.isContentVideoCompanion,c.actionCompanionAdRenderer.adVideoId,c.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,z,w,function(W,K,F,l){var B=r.G.get(),P=W.slotId,p=c.actionCompanionAdRenderer;W=cE(r.Ot.get(),W);return K3(B,P,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new UA(p),K,F,p.impressionPings,W,c.actionCompanionAdRenderer.adLayoutLoggingData,l)})}else if(c.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(c.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return STA(r.X.get(),r.S,r.G.get(),c.topBannerImageTextIconButtonedLayoutViewModel,z,w,d,N); r_(V,I.elementId,M,c.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,c.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,c.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,z,w,function(W,K,F,l){var B=r.G.get(),P=W.slotId,p=c.topBannerImageTextIconButtonedLayoutViewModel;W=cE(r.Ot.get(),W);return Rw(B,P,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new QG(p),K,F,W,c.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,l)})}else if(c.imageCompanionAdRenderer)r_(V, I.elementId,M,c.imageCompanionAdRenderer.isContentVideoCompanion,c.imageCompanionAdRenderer.adVideoId,c.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,z,w,function(W,K,F,l){var B=r.G.get(),P=W.slotId,p=c.imageCompanionAdRenderer; W=cE(r.Ot.get(),W);return K3(B,P,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Pa(p),K,F,p.impressionPings,W,c.imageCompanionAdRenderer.adLayoutLoggingData,l)}); else if(c.bannerImageLayoutViewModel)r_(V,I.elementId,M,c.bannerImageLayoutViewModel.isContentVideoCompanion,c.bannerImageLayoutViewModel.adVideoId,c.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,z,w,function(W,K,F,l){var B=r.G.get(),P=W.slotId,p=c.bannerImageLayoutViewModel;W=cE(r.Ot.get(),W);return Rw(B,P,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new od(p),K,F,W,c.bannerImageLayoutViewModel.adLayoutLoggingData,l)}); else if(c.shoppingCompanionCarouselRenderer)r_(V,I.elementId,M,c.shoppingCompanionCarouselRenderer.isContentVideoCompanion,c.shoppingCompanionCarouselRenderer.adVideoId,c.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,z,w,function(W,K,F,l){var B=r.G.get(),P=W.slotId,p=c.shoppingCompanionCarouselRenderer;W=cE(r.Ot.get(),W);return K3(B,P,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new kO(p),K,F,p.impressionPings,W,c.shoppingCompanionCarouselRenderer.adLayoutLoggingData,l)}); else if(c.adBreakServiceRenderer){if(!X1p(I))return[];if(M==="AD_PLACEMENT_KIND_PAUSE")return Znp(r.X.get(),z,w,I.renderer.adBreakServiceRenderer,d);if(M!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&M!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Jpi(r.X.get(),z,w,I.renderer.adBreakServiceRenderer,d,a,f);n.Tz||zQ("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:M,adPlacementConfig:z,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(n.Tz),clientPlaybackNonce:n.clientPlaybackNonce}); if(M==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!r.SC)return new q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!r.iZ)return new q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");r.iZ.Sb({adPlacementRenderer:I,contentCpn:d,HZ:a});a=tJ(r.SC.get());return Khv(r.X.get(),I.renderer.adBreakServiceRenderer,z,a,d,w,f)}if(!r.Cl)return new q("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); r.Cl.Sb({adPlacementRenderer:I,contentCpn:d,HZ:a})}else{if(c.clientForecastingAdRenderer)return oOX(r.X.get(),r.G.get(),z,w,c.clientForecastingAdRenderer,d,a,N);if(c.invideoOverlayAdRenderer)return VHX(r.X.get(),r.G.get(),z,w,c.invideoOverlayAdRenderer,d,a,N);if(c.instreamAdPlayerOverlayRenderer)return hBA(r.X.get(),r.G.get(),z,w,c.instreamAdPlayerOverlayRenderer,d,N);if((c.linearAdSequenceRenderer||c.instreamVideoAdRenderer)&&b)return YAU(r.X.get(),r.G.get(),I,d,N,x,R3S(r.ws.get()));if(c.linearAdSequenceRenderer&& !b){if(e)return[];ks(V,c,M);if(c.linearAdSequenceRenderer.adLayoutMetadata){if(!WtA(c.linearAdSequenceRenderer))return new q("Received invalid LinearAdSequenceRenderer.")}else if(c.linearAdSequenceRenderer.linearAds==null)return new q("Received invalid LinearAdSequenceRenderer.");if(g.U(c.linearAdSequenceRenderer.adStart,Wc)){zQ("Found AdNotify in LinearAdSequenceRenderer");I=g.U(c.linearAdSequenceRenderer.adStart,Wc);if(!YTi(I))return new q("Invalid AdMessageRenderer.");f=c.linearAdSequenceRenderer.linearAds; return DDr(r.Y.get(),r.X.get(),r.G.get(),r.Ot.get(),z,w,I,Ys(c.linearAdSequenceRenderer.adLayoutMetadata)?c.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,a,n,N,D,r.loadPolicy,r.ws.get())}return cUS(r.X.get(),r.G.get(),z,w,c.linearAdSequenceRenderer.linearAds,Ys(c.linearAdSequenceRenderer.adLayoutMetadata)?c.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,a,n,N,D,r.loadPolicy,r.ws.get(),E)}if(!c.remoteSlotsRenderer||f){if(c.instreamVideoAdRenderer&&!b){if(e)return[];ks(V,c,M);return CIr(r.X.get(), r.G.get(),z,w,c.instreamVideoAdRenderer,d,a,n,N,D,r.loadPolicy,r.ws.get(),r.Ot.get(),E)}if(c.instreamSurveyAdRenderer)return Tch(r.X.get(),r.G.get(),c.instreamSurveyAdRenderer,z,w,d,N,kp(r.ws.get(),"supports_multi_step_on_desktop"));if(c.sandwichedLinearAdRenderer!=null)return $wZ(c.sandwichedLinearAdRenderer)?g.U(c.sandwichedLinearAdRenderer.adVideoStart,Wc)?(zQ("Found AdNotify in SandwichedLinearAdRenderer"),I=g.U(c.sandwichedLinearAdRenderer.adVideoStart,Wc),YTi(I)?(f=g.U(c.sandwichedLinearAdRenderer.linearAd, TA))?sdh(I,f,z,r.Y.get(),r.X.get(),r.G.get(),r.Ot.get(),w,d,a,n,N,D,r.loadPolicy,r.ws.get()):new q("Missing IVAR from Sandwich"):new q("Invalid AdMessageRenderer.")):cUS(r.X.get(),r.G.get(),z,w,[c.sandwichedLinearAdRenderer.adVideoStart,c.sandwichedLinearAdRenderer.linearAd],void 0,d,a,n,N,D,r.loadPolicy,r.ws.get()):new q("Received invalid SandwichedLinearAdRenderer.");if(c.videoAdTrackingRenderer!=null)return qAg(r.X.get(),r.G.get(),c.videoAdTrackingRenderer,z,w,d,a,n.bu,N)}}return[]}; yQ=function(r,V,I,d,a,f,e,n){g.X.call(this);var D=this;this.X=r;this.S=V;this.Br=d;this.SC=a;this.ws=f;this.sE=e;this.Fh=n;this.G=null;I.get().addListener(this);this.addOnDisposeCallback(function(){I.h0()||I.get().removeListener(D)}); d.get().addListener(this);this.addOnDisposeCallback(function(){d.h0()||d.get().removeListener(D)})}; AUv=function(r,V,I){var d=tJ(r.SC.get());tHj(r.ws.get())&&jo(r.sE.get(),"sdai","onopp.1;evt."+I.event+";start."+I.startSecs.toFixed(3)+";d."+I.aB.toFixed(3));Mb(r.X.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var a=r.S.get(),f=V.adPlacementRenderer.renderer.adBreakServiceRenderer,e=V.contentCpn,n=V.adPlacementRenderer.adSlotLoggingData,D=AJ(r.ws.get()),x=r.sE;if(a.ws.get().T.N().experiments.uL("enable_smearing_expansion_dai")){var E=a.ws.get();E=g.zM(E.T.N().experiments,"max_prefetch_window_sec_for_livestream_optimization"); D=a.ws.get();var N=g.zM(D.T.N().experiments,"min_prefetch_offset_sec_for_livestream_optimization");D={ra:yUS(I),yq:!1,cueProcessedMs:d*1E3};var c=I.startSecs+I.aB;if(d===0)D.vG=new KL(0,c*1E3);else{N=I.startSecs-N;var z=N-d;D.vG=z<=0?new KL(N*1E3,c*1E3):new KL(Math.floor(d+Math.random()*Math.min(z,E))*1E3,c*1E3)}E=D}else E={ra:yUS(I),yq:!1},c=I.startSecs+I.aB,I.startSecs<=d?D=new KL((I.startSecs-4)*1E3,c*1E3):(N=Math.max(0,I.startSecs-d-10),D=new KL(Math.floor(d+Math.random()*(D?d===0?0:Math.min(N, 5):N))*1E3,c*1E3)),E.vG=D;f=qE(a,f,e,E,n,[new RH(I)]);GJ(a.ws.get())&&jo(x.get(),"abrsm","cpi."+I.identifier+";cps."+I.startSecs+";cpd."+I.aB+";cts."+d+";rbf."+E.vG.start);x.get().T.b8(E.vG.start/1E3-d,I.startSecs-d);return[f]})}; FV=function(r){var V,I=(V=jC(r.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current;if(!I)return null;V=jC(r.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var d=r.layoutId,a=jC(r.clientMetadata,"metadata_type_content_cpn"),f=jC(r.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),e=jC(r.clientMetadata,"metadata_type_player_overlay_layout_renderer"),n=jC(r.clientMetadata,"metadata_type_player_underlay_renderer"),D=jC(r.clientMetadata, "metadata_type_ad_placement_config"),x=jC(r.clientMetadata,"metadata_type_video_length_seconds");var E=aV(r.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?jC(r.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):aV(r.clientMetadata,"metadata_type_layout_enter_ms")&&aV(r.clientMetadata,"metadata_type_layout_exit_ms")?(jC(r.clientMetadata,"metadata_type_layout_exit_ms")-jC(r.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{CR:d,contentCpn:a,rC:I,F7:V,instreamAdPlayerOverlayRenderer:f, playerOverlayLayoutRenderer:e,instreamAdPlayerUnderlayRenderer:n,adPlacementConfig:D,videoLengthSeconds:x,YL:E,inPlayerLayoutId:jC(r.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jC(r.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Fhp=function(r,V){return G1A(r,V)}; lyv=function(r,V){V=G1A(r,V);if(!V)return null;var I;V.YL=(I=jC(r.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:I.adBreakRemainingLengthSeconds;return V}; G1A=function(r,V){var I,d=(I=jC(r.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:I.current;if(!d)return null;I=v5p(r,V);return{NW:pLZ(r,V),adPlacementConfig:jC(r.clientMetadata,"metadata_type_ad_placement_config"),c7:I,contentCpn:jC(r.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:jC(r.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jC(r.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:jC(r.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,YL:void 0,rC:d,CR:r.layoutId,videoLengthSeconds:jC(r.clientMetadata,"metadata_type_video_length_seconds")}}; l7=function(r,V,I,d,a,f,e,n,D){g.X.call(this);this.Y=r;this.C=V;this.W=I;this.S=d;this.G=a;this.X=f;this.Ot=e;this.ws=n;this.C8=D;this.yx=!0}; Lhg=function(r,V,I){return waA(r.G.get(),V.contentCpn,V.CR,function(d){return bXg(r.X.get(),d.slotId,I,V.adPlacementConfig,V.CR,cE(r.Ot.get(),d))})}; L3=function(r,V,I,d,a,f,e,n){g.X.call(this);this.X=r;this.G=V;this.S=I;this.ws=d;this.Y=a;this.C8=f;this.SC=e;this.TP=n}; JJ=function(r){g.X.call(this);this.G=r}; Mb=function(r,V,I,d){r.G().Io(V,d);I=I();r=r.G();r.Lo.m1("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",V,d,I);V=g.H(I);for(I=V.next();!I.done;I=V.next())a:{d=r;I=I.value;d.Lo.XB("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",I);d.Lo.XB("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",I);try{var a=d.G;if(g.CD(I.slotId))throw new q("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(WE(a,I))throw new q("Duplicate registration for slot.",{slotId:I.slotId,slotEntryTriggerType:I.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!a.Lw.Ht.has(I.slotType))throw new q("No fulfillment adapter factory registered for slot of type: "+I.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!a.Lw.WV.has(I.slotType))throw new q("No SlotAdapterFactory registered for slot of type: "+I.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");ij(a,"TRIGGER_CATEGORY_SLOT_ENTRY",I.slotEntryTrigger?[I.slotEntryTrigger]:[]);ij(a,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", I.slotFulfillmentTriggers);ij(a,"TRIGGER_CATEGORY_SLOT_EXPIRATION",I.slotExpirationTriggers);var f=d.G,e=I.slotType+"_"+I.slotPhysicalPosition,n=Z9(f,e);if(WE(f,I))throw new q("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");n.set(I.slotId,new gRS(I));f.G.set(e,n)}catch(dA){dA instanceof q&&dA.j$?(d.Lo.h2("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",dA.j$,I),zQ(dA,I,void 0,void 0,dA.CQ)):(d.Lo.h2("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", I),zQ(dA,I));break a}g.J(WE(d.G,I)).C=!0;try{var D=d.G,x=g.J(WE(D,I)),E=I.slotEntryTrigger,N=D.Lw.pS.get(E.triggerType);N&&(N.HL("TRIGGER_CATEGORY_SLOT_ENTRY",E,I,null),x.bL.set(E.triggerId,N));for(var c=g.H(I.slotFulfillmentTriggers),z=c.next();!z.done;z=c.next()){var M=z.value,w=D.Lw.pS.get(M.triggerType);w&&(w.HL("TRIGGER_CATEGORY_SLOT_FULFILLMENT",M,I,null),x.QH.set(M.triggerId,w))}for(var b=g.H(I.slotExpirationTriggers),W=b.next();!W.done;W=b.next()){var K=W.value,F=D.Lw.pS.get(K.triggerType); F&&(F.HL("TRIGGER_CATEGORY_SLOT_EXPIRATION",K,I,null),x.V.set(K.triggerId,F))}var l=D.Lw.Ht.get(I.slotType).get().build(D.S,I);x.L=l;var B=D.Lw.WV.get(I.slotType).get().build(D.W,I);B.init();x.X=B}catch(dA){dA instanceof q&&dA.j$?(d.Lo.h2("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",dA.j$,I),zQ(dA,I,void 0,void 0,dA.CQ)):(d.Lo.h2("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",I),zQ(dA,I));wi(d,I,!0);break a}d.Lo.XB("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",I); d.G.Ej(I);for(var P=g.H(d.X),p=P.next();!p.done;p=P.next())p.value.Ej(I);RV(d,I)}}; Z1=function(r,V,I,d,a){g.X.call(this);var f=this;this.X=r;this.S=V;this.ZR=I;this.context=a;this.G=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.h0()||d.get().removeListener(f)})}; ypS=function(r,V){var I=0x8000000000000;var d=0;for(var a=g.H(V.slotFulfillmentTriggers),f=a.next();!f.done;f=a.next())f=f.value,f instanceof Qq?(I=Math.min(I,f.G.start),d=Math.max(d,f.G.end)):zQ("Found unexpected fulfillment trigger for throttled slot.",V,null,{fulfillmentTrigger:f});d=new KL(I,d);I="throttledadcuerange:"+V.slotId;r.G.set(I,V);r.ZR.get().addCueRange(I,d.start,d.end,!1,r);t4(r.context.ws.get())&&(V=d.start,d=d.end,a={},r.context.QM.Ps("tcrr",(a.cid=I,a.sm=V,a.em=d,a)))}; XV=function(){g.X.apply(this,arguments);this.yx=!0;this.hp=new Map;this.G=new Map}; Bc=function(r){return r.hp}; g_=function(r,V){r=g.H(r.hp.values());for(var I=r.next();!I.done;I=r.next())if(I.value.layoutId===V)return!0;return!1}; Sn=function(r,V){r=g.H(r.G.values());for(var I=r.next();!I.done;I=r.next()){I=g.H(I.value);for(var d=I.next();!d.done;d=I.next())if(d=d.value,d.layoutId===V)return d}zQ("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.CD(V)),layoutId:V})}; JUO=function(){this.G=new Map}; ZUA=function(r,V){this.callback=r;this.slot=V}; i7=function(){}; Xwi=function(r,V,I){this.callback=r;this.slot=V;this.SC=I}; BcU=function(r,V,I){this.callback=r;this.slot=V;this.SC=I;this.X=!1;this.G=0}; gDX=function(r,V,I){this.callback=r;this.slot=V;this.SC=I}; Uj=function(r){this.SC=r}; QQ=function(r){g.X.call(this);this.N4=r;this.oT=new Map}; mO=function(r,V){for(var I=[],d=g.H(r.oT.values()),a=d.next();!a.done;a=d.next()){a=a.value;var f=a.trigger;f instanceof aT&&f.triggeringLayoutId===V&&I.push(a)}I.length?lj(r.N4(),I):zQ("Survey is submitted but no registered triggers can be activated.")}; u7=function(r,V,I){QQ.call(this,r);var d=this;this.ws=I;V.get().addListener(this);this.addOnDisposeCallback(function(){V.h0()||V.get().removeListener(d)})}; p3=function(r){g.X.call(this);this.G=r;this.yx=!0;this.oT=new Map;this.W=new Set;this.S=new Set;this.Y=new Set;this.C=new Set;this.X=new Set}; vc=function(r){g.X.call(this);this.G=r;this.oT=new Map}; qH=function(r,V){for(var I=[],d=g.H(r.oT.values()),a=d.next();!a.done;a=d.next())a=a.value,a.trigger.G===V.layoutId&&I.push(a);I.length&&lj(r.G(),I)}; Pc=function(r,V,I){g.X.call(this);var d=this;this.G=r;this.context=I;this.oT=new Map;V.get().addListener(this);this.addOnDisposeCallback(function(){V.h0()||V.get().removeListener(d)})}; ow=function(r,V,I,d,a){g.X.call(this);var f=this;this.X=r;this.ZR=V;this.SC=I;this.C8=d;this.context=a;this.yx=!0;this.oT=new Map;this.G=new Set;I.get().addListener(this);this.addOnDisposeCallback(function(){I.h0()||I.get().removeListener(f)})}; SXi=function(r,V,I,d,a,f,e,n,D,x){if(bf(r.C8.get(),1).clientPlaybackNonce!==D)throw new q("Cannot register CueRange-based trigger for different content CPN",{trigger:I});r.oT.set(I.triggerId,{TN:new ey(V,I,d,a),cueRangeId:f});r.ZR.get().addCueRange(f,e,n,x,r);t4(r.context.ws.get())&&(D={},r.context.QM.Ps("crr",(D.ca=V,D.tt=I.triggerType,D.st=d.slotType,D.lt=a==null?void 0:a.layoutType,D.cid=f,D.sm=e,D.em=n,D)))}; iUg=function(r,V){r=g.H(r.oT.entries());for(var I=r.next();!I.done;I=r.next()){var d=g.H(I.value);I=d.next().value;d=d.next().value;if(V===d.cueRangeId)return I}return""}; kl=function(r,V){g.X.call(this);var I=this;this.Y=r;this.X=new Map;this.S=new Map;this.G=null;V.get().addListener(this);this.addOnDisposeCallback(function(){V.h0()||V.get().removeListener(I)}); var d;this.G=((d=eo(V.get()))==null?void 0:d.slotId)||null}; UDv=function(r,V){var I=[];r=g.H(r.values());for(var d=r.next();!d.done;d=r.next())d=d.value,d.slot.slotId===V&&I.push(d);return I}; hJ=function(r){g.X.call(this);this.G=r;this.yx=!0;this.oT=new Map}; kX=function(r,V,I){V=V.layoutId;for(var d=[],a=g.H(r.oT.values()),f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof vN){var e;if(e=f.trigger.layoutId===V){e=I;var n=Fsj.get(f.category);e=n?n===e:!1}e&&d.push(f)}d.length&&lj(r.G(),d)}; rD=function(r){g.X.call(this);this.G=r;this.yx=!0;this.oT=new Map}; VV=function(r,V,I,d,a){g.X.call(this);var f=this;this.W=r;this.Br=V;this.SC=I;this.sE=d;this.G=null;this.yx=!0;this.oT=new Map;this.Y=new Set;V.get().addListener(this);this.addOnDisposeCallback(function(){V.h0()||V.get().removeListener(f)}); a.get().addListener(this);this.addOnDisposeCallback(function(){a.h0()||a.get().removeListener(f)})}; mDj=function(r){r.G&&(r.X&&(r.X.stop(),r.X.start()),QHj(r,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; QHj=function(r,V){for(var I=[],d=g.H(r.oT.values()),a=d.next();!a.done;a=d.next())a=a.value,a.trigger.triggerType===V&&I.push(a);I.length>0&&lj(r.W(),I)}; I$=function(r,V,I,d,a){for(var f=[],e=g.H(r.oT.values()),n=e.next();!n.done;n=e.next()){var D=n=n.value,x=D.trigger;D=D.slot;if(x.triggerType===V){if(x instanceof So||x instanceof i2||x instanceof mp){if(a&&x.breakDurationMs!==I)continue;if(!a&&x.breakDurationMs===I)continue;if(d.has(D.slotId))continue;if(r.Y.has(D.slotId))continue}f.push(n)}}f.length>0&&lj(r.W(),f)}; uxX=function(r,V){V=(V.aB+1)*1E3;var I=void 0;r=g.H(r.oT.values());for(var d=r.next();!d.done;d=r.next()){var a=d.value;d=a.trigger;a=a.slot;d instanceof So&&d.breakDurationMs<=V&&(!I||d.breakDurationMs>I.trigger.breakDurationMs)&&(I={slot:a,trigger:d})}return I}; pwX=function(r){r=r.adPlacementRenderer.config.adPlacementConfig;if(!r.prefetchModeConfig||!r.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;r=Number(r.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(r)||r<=0?0:Math.floor(Math.random()*r)}; vDU=function(r){r=r.adPlacementRenderer.config.adPlacementConfig;if(r.prefetchModeConfig&&r.prefetchModeConfig.cacheFetchRefreshDurationMs&&(r=Number(r.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(r)||r<=0)))return r}; dD=function(r){r.G=null;r.oT.clear();r.Y.clear();r.X&&r.X.stop();r.S&&r.S.stop()}; a$=function(r){g.X.call(this);this.S=r;this.yx=!0;this.oT=new Map;this.G=new Map;this.X=new Map}; qXA=function(r,V){var I=[];if(V=r.G.get(V.layoutId)){V=g.H(V);for(var d=V.next();!d.done;d=V.next())(d=r.X.get(d.value.triggerId))&&I.push(d)}return I}; fw=function(r){g.X.call(this);this.G=r;this.oT=new Map}; P6A=function(r,V){for(var I=[],d=g.H(r.oT.values()),a=d.next();!a.done;a=d.next())a=a.value,a.trigger instanceof A7&&a.trigger.slotId===V&&I.push(a);I.length>=1&&lj(r.G(),I)}; oDS=function(r,V){var I={slotId:Cv(V,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],K8:"surface",clientMetadata:new nM([])},d=Object,a=d.assign;V=hi(V,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",I.slotId);V={layoutId:V,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ou:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"surface", clientMetadata:new nM([]),zz:KsS(!1,I.slotId,I.slotType,I.slotPhysicalPosition,I.K8,I.slotEntryTrigger,I.slotFulfillmentTriggers,I.slotExpirationTriggers,V,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return a.call(d,{},r,{h0s:!0,slot:I,layout:V})}; Lti=function(r,V,I,d){var a=r.kind;d=d?!1:!r.hideCueRangeMarker;switch(a){case "AD_PLACEMENT_KIND_START":return d={ra:new KL(-0x8000000000000,-0x8000000000000),yq:d},I!=null&&(d.vG=new KL(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={ra:new KL(0x7ffffffffffff,0x8000000000000),yq:d},I!=null&&(d.vG=new KL(Math.max(0,V-I),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":a=r.adTimeOffset;a.offsetStartMilliseconds||zQ("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); a.offsetEndMilliseconds||zQ("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");r=Number(a.offsetStartMilliseconds);a=Number(a.offsetEndMilliseconds);a===-1&&(a=V);if(Number.isNaN(r)||Number.isNaN(a)||r>a)return new q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:r,offsetEndMs:a},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",a===V&&r-500<=a);d={ra:new KL(r,a),yq:d};if(I!=null){r=Math.max(0,r-I);if(r===a)return d;d.vG=new KL(r,a)}return d; default:return new q("AdPlacementKind not supported in convertToRange.",{kind:a,adPlacementConfig:r})}}; yUS=function(r){var V=r.startSecs*1E3;return new KL(V,V+r.aB*1E3)}; k1h=function(r){if(!r||!r.adPlacements&&!r.adSlots)return!1;for(var V=g.H(r.adPlacements||[]),I=V.next();!I.done;I=V.next())if(I=I.value)if(I=I.adPlacementRenderer,I!=null&&(I.config&&I.config.adPlacementConfig&&I.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;r=g.H(r.adSlots||[]);for(V=r.next();!V.done;V=r.next()){var d=I=void 0;if(((I=g.U(V.value,pt))==null?void 0:(d=I.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; e9=function(r){this.ws=r;this.X=new Map;this.G=new Map;this.S=new Map}; Cv=function(r,V){if(YN(r.ws.get())){var I=r.X.get(V)||0;I++;r.X.set(V,I);return V+"_"+I}return g.RM(16)}; hi=function(r,V,I){if(YN(r.ws.get())){var d=r.G.get(V)||0;d++;r.G.set(V,d);return I+"_"+V+"_"+d}return g.RM(16)}; cc=function(r,V){if(YN(r.ws.get())){var I=r.S.get(V)||0;I++;r.S.set(V,I);return V+"_"+I}return g.RM(16)}; h3Z=function(r){var V=[new T1(r.CR),new OX(r.rC),new Vx(r.adPlacementConfig),new tU(r.videoLengthSeconds),new Qx(r.YL)];r.instreamAdPlayerOverlayRenderer&&V.push(new nU(r.instreamAdPlayerOverlayRenderer));r.playerOverlayLayoutRenderer&&V.push(new jH(r.playerOverlayLayoutRenderer));r.F7&&V.push(new fU(r.F7));return V}; riS=function(r,V,I,d,a,f){r=I.inPlayerLayoutId?I.inPlayerLayoutId:hi(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",r);var e,n,D=I.instreamAdPlayerOverlayRenderer?(e=I.instreamAdPlayerOverlayRenderer)==null?void 0:e.adLayoutLoggingData:(n=I.playerOverlayLayoutRenderer)==null?void 0:n.adLayoutLoggingData;e={layoutId:r,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",K8:V};return{layoutId:r,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ou:new Map,layoutExitNormalTriggers:[new BN(function(x){return cc(f, x)},I.CR)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:V,clientMetadata:d,zz:a(e),adLayoutLoggingData:D}}; nw=function(r,V){var I=this;this.X=r;this.ws=V;this.G=function(d){return cc(I.X.get(),d)}}; bXg=function(r,V,I,d,a,f){I=new nM([new Dy(I),new Vx(d)]);V=hi(r.X.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",V);d={layoutId:V,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",K8:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ou:new Map,layoutExitNormalTriggers:[new BN(function(e){return cc(r.X.get(),e)},a)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:I,zz:f(d),adLayoutLoggingData:void 0}}; Yl=function(r,V,I,d,a){var f=h3Z(d);return riS(V,I,d,new nM(f),a,r.X.get())}; VCv=function(r,V,I,d,a){var f=h3Z(d);f.push(new hk(d.NW));f.push(new rc(d.c7));return riS(V,I,d,new nM(f),a,r.X.get())}; K3=function(r,V,I,d,a,f,e,n,D,x){V=hi(r.X.get(),I,V);var E={layoutId:V,layoutType:I,K8:"core"},N=new Map;e&&N.set("impression",e);e=[new u2(r.G,a,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];x&&e.push(new Xz(r.G,x,["normal"]));return{layoutId:V,layoutType:I,Ou:N,layoutExitNormalTriggers:e,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:new nM([d,new Vx(f),new T1(a)]),zz:n(E),adLayoutLoggingData:D}}; Rw=function(r,V,I,d,a,f,e,n,D){V=hi(r.X.get(),I,V);var x={layoutId:V,layoutType:I,K8:"core"},E=[new u2(r.G,a,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];D&&E.push(new Xz(r.G,D,["normal"]));return{layoutId:V,layoutType:I,Ou:new Map,layoutExitNormalTriggers:E,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:new nM([d,new Vx(f),new T1(a)]),zz:e(x),adLayoutLoggingData:n}}; MH=function(r,V,I){var d=[];d.push(new p1(r.G,I));V&&d.push(V);return d}; zJ=function(r,V,I,d,a,f,e){var n={layoutId:V,layoutType:I,K8:"core"};return{layoutId:V,layoutType:I,Ou:new Map,layoutExitNormalTriggers:e,layoutExitSkipTriggers:[new l2(r.G,V)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:new nM([new qT(d),new Vx(a)]),zz:f(n),adLayoutLoggingData:d.adLayoutLoggingData}}; d_=function(r,V,I,d,a,f,e,n){var D={layoutId:V,layoutType:f,K8:"core"};return{layoutId:V,layoutType:f,Ou:new Map,layoutExitNormalTriggers:[new BN(r.G,I)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:new nM([new Vx(d)].concat(g.R(e))),zz:a(D),adLayoutLoggingData:n}}; TJ=function(r,V,I,d){if(r.ws.get().pJ(V.kind==="AD_PLACEMENT_KIND_START"))if(I===void 0)zQ("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return I}; Iyi=function(r,V,I,d,a,f,e,n,D,x,E,N,c){r=C3(r,V,I,a,f,e,n,D,N,TJ(r,I,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),c);V=r.cJ;I=new Hw(r.GW);d=r.layoutExitSkipTriggers;x>0&&(V.push(I),V.push(new aH(x)),d=[]);V.push(new dc(E));return{Cn:{layoutId:r.layoutId,layoutType:r.layoutType,Ou:r.Ou,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:r.K8,clientMetadata:new nM(V),zz:r.zz,adLayoutLoggingData:r.adLayoutLoggingData}, jz:d,RO:r.layoutExitMuteTriggers,BJ:r.layoutExitUserInputSubmittedTriggers,MP:r.KF,ul:r.ul}}; e3A=function(r,V,I,d,a,f,e,n,D,x){V=C3(r,V,I,d,f,new Map,e,function(E){return n(E,D)},void 0,TJ(r,I,a.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); r=new aT(r.G,V.GW);I=new Hw(V.GW);x=new dc(x);return{Cn:{layoutId:V.layoutId,layoutType:V.layoutType,Ou:V.Ou,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:V.K8,clientMetadata:new nM([].concat(g.R(V.cJ),[I,x])),zz:V.zz,adLayoutLoggingData:V.adLayoutLoggingData},jz:V.layoutExitSkipTriggers,RO:V.layoutExitMuteTriggers,BJ:[].concat(g.R(V.layoutExitUserInputSubmittedTriggers),[r]),MP:V.KF,ul:V.ul}}; C3=function(r,V,I,d,a,f,e,n,D,x,E){V=x!=null?x:hi(r.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",V);x={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",K8:"adapter"};n=n(V);var N=jC(n.clientMetadata,"metadata_type_fulfilled_layout");N||zQ("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var c=N?N.layoutId:"";I=[new Vx(I),new mh(d),new vw(a)];N&&I.push(new wc(N.layoutType));E&&I.push(new LU(E));return{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", Ou:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new oS(r.G,c)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"adapter",cJ:I,zz:e(x),adLayoutLoggingData:D,ul:n,GW:c}}; TuU=function(r,V,I,d,a,f,e,n,D,x,E){r=I9v(r,V,"core",I,d,a,f,e,n,D,x,void 0,E);return{layoutId:r.layoutId,layoutType:r.layoutType,Ou:r.Ou,layoutExitNormalTriggers:r.layoutExitNormalTriggers,layoutExitSkipTriggers:r.layoutExitSkipTriggers,layoutExitMuteTriggers:r.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:r.layoutExitUserInputSubmittedTriggers,KF:r.KF,K8:r.K8,clientMetadata:new nM(r.wk),zz:r.zz,adLayoutLoggingData:r.adLayoutLoggingData}}; MHr=function(r,V,I,d,a,f,e,n,D,x,E,N,c){V=I9v(r,V,"adapter",I,d,a,f,e,n,D,E,N,c);d=V.layoutExitSkipTriggers;a=V.wk;I.adPodSkipTarget&&I.adPodSkipTarget>0&&(a.push(x),a.push(new aH(I.adPodSkipTarget)),d=[]);a.push(new dc(n.adPodIndex));I.isCritical&&(d=[new Xz(r.G,V.layoutId,["error"])].concat(g.R(d)));return{Cn:{layoutId:V.layoutId,layoutType:V.layoutType,Ou:V.Ou,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:V.K8,clientMetadata:new nM(a), zz:V.zz,adLayoutLoggingData:V.adLayoutLoggingData},jz:d,RO:V.layoutExitMuteTriggers,BJ:V.layoutExitUserInputSubmittedTriggers,MP:V.KF}}; I9v=function(r,V,I,d,a,f,e,n,D,x,E,N,c){var z={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",K8:I};a=[new Vx(a),new IH(D),new eH(d.externalVideoId),new YD(n),new vw({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new yx(f),new Ww({current:null}),new tU(e)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&a.push(new nU(f));(e=d.playerOverlay.playerOverlayLayoutRenderer)&&a.push(new jH(e)); N&&a.push(new AU(N));(N=d.playerUnderlay)&&a.push(new Dy(N));n=Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER");N=(N=f?f.elementId:e==null?void 0:e.layoutId)?N:hi(r.X.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",n);a.push(new Hw(N));a.push(new b6(n));a.push(new LU(D.adPodIndex));d.adNextParams&&a.push(new pX(d.adNextParams));d.shrunkenPlayerBytesConfig&&a.push(new ND(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&a.push(new va(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&a.push(new u6(d.legacyInfoCardVastExtension)); d.sodarExtensionData&&a.push(new G1(d.sodarExtensionData));E&&a.push(new UX(E));a.push(new oH(tw(d.pings)));D=y0(d.pings);if(c){a:{c=g.H(c);for(E=c.next();!E.done;E=c.next())if(E=E.value,E.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.U(E.fulfillmentContent.fulfilledLayout,ZF))&&(f=g.U(f.renderingContent,Lt))&&f.associatedPlayerBytesLayoutId===V){c=E;break a}c=void 0}c&&a.push(new xD(c))}return{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",Ou:D,layoutExitNormalTriggers:[new vN(r.G,V)],layoutExitSkipTriggers:d.skipOffsetMilliseconds? [new oS(r.G,N)]:[],layoutExitMuteTriggers:[new oS(r.G,N)],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:I,wk:a,zz:x(z),adLayoutLoggingData:d.adLayoutLoggingData}}; jdX=function(r,V,I,d,a,f,e,n,D){d.every(function(E){return fM(E,[],["LAYOUT_TYPE_MEDIA"])})||zQ("Unexpect subLayout type for DAI composite layout"); V=hi(r.X.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",V);var x={layoutId:V,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",K8:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ou:new Map,layoutExitNormalTriggers:[new gh(r.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],KF:[],K8:"core",clientMetadata:new nM([new Fx(I),new l6(n),new KU(d),new Vx(a),new Bw(f),new JU({}),new hU(D)]),zz:e(x)}}; aqv=function(r){return r!=null}; j9=function(r,V,I){var d=this;this.X=r;this.S=V;this.ws=I;this.G=function(a){return cc(d.X.get(),a)}}; Khv=function(r,V,I,d,a,f,e){if(!I.prefetchModeConfig)return new q("AdPlacementConfig for Live Prefetch is missing prefetch_config");I=I.prefetchModeConfig;d*=1E3;var n=[];if(!I.breakLengthMs)return new q("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var D=g.H(I.breakLengthMs),x=D.next();!x.done;x=D.next())if(x=x.value,Number(x)>0){var E=d+Number(I.startTimeOffsetMs),N=E+Number(I.cacheFetchSmearingDurationMs);x={ra:new KL(N,N+Number(x)),yq:!1,vG:new KL(Math.floor(E+Math.random()* Number(I.cacheFetchSmearingDurationMs)),N),cueProcessedMs:d?d:E};E=[];E.push(new di({}));N=[];N.push(new PN(r.G));N.push(new qYA(r.G));e&&E.push(new JU({}));n.push(qE(r,V,a,x,f,E,N))}return n}; qE=function(r,V,I,d,a,f,e){f=f===void 0?[]:f;var n=Cv(r.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");e||(e=[],d.vG&&d.vG.start!==d.ra.start&&e.push(new Qq(r.G,I,new KL(d.vG.start,d.ra.start),!1)),e.push(new Qq(r.G,I,new KL(d.ra.start,d.ra.end),d.yq)));d={getAdBreakUrl:V.getAdBreakUrl,VQ:d.ra.start,D3:d.ra.end,cueProcessedMs:d.cueProcessedMs};V=new V4(r.G,n);f=[new SH(d)].concat(g.R(f));return{slotId:n,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:e, slotExpirationTriggers:[new qj(r.G,I),new h7(r.G,n),new rI(r.G,n)],K8:"core",clientMetadata:new nM(f),adSlotLoggingData:a}}; a9A=function(r,V,I){var d=[];I=g.H(I);for(var a=I.next();!a.done;a=I.next())d.push(d_O(r,V,a.value));return d}; d_O=function(r,V,I){return I.triggeringSlotId!=null&&I.triggeringSlotId===r?I.clone(V):I}; p1p=function(r,V,I,d,a){return f9h(r,V,I,d,a)}; dDS=function(r,V,I,d){var a=Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER");return f9h(r,a,V,I,d)}; f9h=function(r,V,I,d,a){var f=new Ze(r.G,I),e=[new k7(r.G,V)];r=[new h7(r.G,V),new qj(r.G,d)];return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:e,slotExpirationTriggers:r,K8:"core",clientMetadata:new nM([new gc(a({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:f,slotFulfillmentTriggers:e,slotExpirationTriggers:r},I))]),adSlotLoggingData:void 0}}; C6i=function(r,V,I,d,a,f){var e=Cv(r.X.get(),"SLOT_TYPE_PLAYER_BYTES"),n=Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER"),D=hi(r.X.get(),"LAYOUT_TYPE_SURVEY",n);d=DH(r,V,I,d);var x=[new k7(r.G,e)];I=[new h7(r.G,e),new qj(r.G,I),new l2(r.G,D)];if(d instanceof q)return d;n=f({slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:d,slotFulfillmentTriggers:x,slotExpirationTriggers:I},{slotId:n,layoutId:D});f=n.Oo7;n=n.qEL;return[{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:w_(r,V,e,d),slotFulfillmentTriggers:b7(r,V,e,x),slotExpirationTriggers:I,K8:"core",clientMetadata:new nM([new gc(f),new ri(Oj(V)),new IV({CU:r.CU(V)})]),adSlotLoggingData:a},n]}; Oj=function(r){return r.kind==="AD_PLACEMENT_KIND_START"}; HXv=function(r,V,I,d,a){a=a?a:Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER");I=new Ze(r.G,I);var f=[new k7(r.G,a)];r=[new qj(r.G,V),new h7(r.G,a)];return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:f,slotExpirationTriggers:r,K8:"core",clientMetadata:new nM([new gc(d({slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:I,slotFulfillmentTriggers:f,slotExpirationTriggers:r}))])}}; waA=function(r,V,I,d){var a=Cv(r.X.get(),"SLOT_TYPE_PLAYER_UNDERLAY");I=new Ze(r.G,I);var f=[new k7(r.G,a)];r=[new qj(r.G,V),new h7(r.G,a)];return{slotId:a,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:f,slotExpirationTriggers:r,K8:"core",clientMetadata:new nM([new gc(d({slotId:a,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:I,slotFulfillmentTriggers:f,slotExpirationTriggers:r}))])}}; EOj=function(r,V,I,d,a,f,e){var n=Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER"),D=hi(r.X.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",n);d=eQZ(r,d,f,e,D);if(d instanceof q)return d;e=[new k7(r.G,n)];a=[new qj(r.G,f),new k7(r.G,a),new dI(r.G,a)];I=cE(I,{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:d,slotFulfillmentTriggers:e,slotExpirationTriggers:a});r=r.S.get();f={layoutId:D,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",K8:"core"};V={layoutId:D,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Ou:new Map,layoutExitNormalTriggers:[new dwg(r.G,D,V.durationMs)],layoutExitSkipTriggers:[new fRv(r.G,D,V.durationMs)],KF:[new aRA(r.G,D)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K8:"core",clientMetadata:new nM([new pU(V)]),zz:I(f)};return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:d,slotFulfillmentTriggers:e,slotExpirationTriggers:a,clientMetadata:new nM([new gc(V)])}}; rUX=function(r,V,I,d,a,f){V=DH(r,V,I,d);if(V instanceof q)return V;var e=V instanceof Qq?new rpg(r.G,I,V.G):null;d=Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER");var n=[new k7(r.G,d)];r=[new qj(r.G,I),new h7(r.G,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:V,slotFulfillmentTriggers:n,slotExpirationTriggers:r},e);return f instanceof Yp?new q(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:n,slotExpirationTriggers:r, K8:"core",clientMetadata:new nM([new gc(f)]),adSlotLoggingData:a}}; krr=function(r,V,I,d){var a=Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER"),f=new Fz(r.G,V),e=[new IT(r.G,a)];r=[new qj(r.G,V),new h7(r.G,a)];return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:e,slotExpirationTriggers:r,K8:"core",clientMetadata:new nM([new gc(d({slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:f,slotFulfillmentTriggers:e,slotExpirationTriggers:r}))]),adSlotLoggingData:I}}; hRZ=function(r,V,I,d){var a=Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER");I=new Ze(r.G,I);var f=[new k7(r.G,a)],e=[new h7(r.G,a),new qj(r.G,V)];f={slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:I,slotFulfillmentTriggers:f,slotExpirationTriggers:e};return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:[new k7(r.G,a)],slotExpirationTriggers:[new qj(r.G,V),new h7(r.G,a)],K8:"core",clientMetadata:new nM([new gc(d(f))])}}; PeO=function(r,V,I,d,a){var f=Cv(r.X.get(),"SLOT_TYPE_IN_PLAYER");I=new J7(r.G,d,I);d=[new k7(r.G,f)];r=[new qj(r.G,V)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:d,slotExpirationTriggers:r,K8:"core",clientMetadata:new nM([new gc(a({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:I,slotFulfillmentTriggers:d,slotExpirationTriggers:r}))])}}; Qyi=function(r,V,I,d,a,f){var e=Cv(r.X.get(),V);return xN(r,e,V,new Ze(r.G,d),[new qj(r.G,I),new h7(r.G,e),new Xz(r.G,d,["error"])],a,f)}; UwS=function(r,V,I,d,a,f,e){var n=Cv(r.X.get(),V);return xN(r,n,V,new Xz(r.G,a,["normal"]),[new qj(r.G,I),new h7(r.G,n),new Xz(r.G,d,["error"])],f,e)}; BHj=function(r,V,I,d,a){var f=Cv(r.X.get(),V);return xN(r,f,V,new Fz(r.G,I),[new qj(r.G,I),new h7(r.G,f)],d,a)}; vOv=function(r,V,I,d,a){I=I?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=Cv(r.X.get(),I);V=new Fz(r.G,V);var e=[new k7(r.G,f)];r=[new h7(r.G,f)];return{slotId:f,slotType:I,slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:e,slotExpirationTriggers:r,K8:"core",clientMetadata:new nM([new gc(a({slotId:f,slotType:I,slotPhysicalPosition:1,K8:"core",slotEntryTrigger:V,slotFulfillmentTriggers:e,slotExpirationTriggers:r}))]),adSlotLoggingData:d}}; fqi=function(r,V,I,d){var a=Cv(r.X.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new Uw(r.G),e=[new IT(r.G,a)];r=[new qj(r.G,V)];return{slotId:a,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:e,slotExpirationTriggers:r,K8:"core",clientMetadata:new nM([new gc(d({slotId:a,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:f,slotFulfillmentTriggers:e,slotExpirationTriggers:r})),new JU({})]),adSlotLoggingData:I}}; NcO=function(r,V){return Whr(r.ws.get())?new Xz(r.G,V,["normal","error","skipped"]):new Xz(r.G,V,["normal"])}; zBg=function(r,V,I,d,a){V=NcO(r,V);r=Hc(r,V,I);a=a({slotId:r.slotId,slotType:r.slotType,slotPhysicalPosition:r.slotPhysicalPosition,slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers,slotExpirationTriggers:r.slotExpirationTriggers,K8:r.K8});return a instanceof q?a:{hc:Object.assign({},r,{clientMetadata:new nM([new gc(a.layout)]),adSlotLoggingData:d}),zy:a.zy}}; M7g=function(r,V,I,d,a,f,e){I=sHj(r,V,I,d);if(I instanceof q)return I;e=e({slotId:I.slotId,slotType:I.slotType,slotPhysicalPosition:I.slotPhysicalPosition,slotEntryTrigger:I.slotEntryTrigger,slotFulfillmentTriggers:I.slotFulfillmentTriggers,slotExpirationTriggers:I.slotExpirationTriggers,K8:I.K8});if(e instanceof q)return e;d=[new ri(Oj(V)),new gc(e.layout),new IV({CU:r.CU(V)})];f&&d.push(new qD({}));return{hc:{slotId:I.slotId,slotType:I.slotType,slotPhysicalPosition:I.slotPhysicalPosition,slotEntryTrigger:w_(r, V,I.slotId,I.slotEntryTrigger),slotFulfillmentTriggers:b7(r,V,I.slotId,I.slotFulfillmentTriggers),slotExpirationTriggers:I.slotExpirationTriggers,K8:I.K8,clientMetadata:new nM(d),adSlotLoggingData:a},zy:e.zy}}; w_=function(r,V,I,d){return r.ws.get().pJ(Oj(V))?new A7(r.G,I):d}; b7=function(r,V,I,d){return r.ws.get().pJ(Oj(V))?[new IT(r.G,I)]:d}; Hc=function(r,V,I){var d=Cv(r.X.get(),"SLOT_TYPE_PLAYER_BYTES"),a=[new k7(r.G,d)];r=[new h7(r.G,d),new qj(r.G,I)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:a,slotExpirationTriggers:r,K8:"core"}}; sHj=function(r,V,I,d){V=DH(r,V,I,d);return V instanceof q?V:Hc(r,V,I)}; PIX=function(r,V,I,d,a,f){var e=Cv(r.X.get(),"SLOT_TYPE_FORECASTING");V=DH(r,V,I,d);if(V instanceof q)return V;d=[new k7(r.G,e)];r=[new h7(r.G,e),new qj(r.G,I)];return{slotId:e,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:d,slotExpirationTriggers:r,K8:"core",clientMetadata:new nM([new gc(f({slotId:e,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,K8:"core",slotEntryTrigger:V,slotFulfillmentTriggers:d,slotExpirationTriggers:r}))]),adSlotLoggingData:a}}; Ypi=function(r,V,I,d,a){var f=!V.hideCueRangeMarker;switch(V.kind){case "AD_PLACEMENT_KIND_START":return new Fz(r.G,I);case "AD_PLACEMENT_KIND_MILLISECONDS":return r=Lti(V,d),r instanceof q?r:a(r.ra,f);case "AD_PLACEMENT_KIND_END":return new L1(r.G,I,f);default:return new q("Cannot construct entry trigger",{kind:V.kind})}}; eQZ=function(r,V,I,d,a){return Ypi(r,V,I,d,function(f,e){return new hSU(r.G,I,f,e,a)})}; DH=function(r,V,I,d){return Ypi(r,V,I,d,function(a,f){return new Qq(r.G,I,a,f)})}; xN=function(r,V,I,d,a,f,e){r=[new IT(r.G,V)];return{slotId:V,slotType:I,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:r,slotExpirationTriggers:a,K8:"core",clientMetadata:new nM([new gc(e({slotId:V,slotType:I,slotPhysicalPosition:1,K8:"core",slotEntryTrigger:d,slotFulfillmentTriggers:r,slotExpirationTriggers:a}))]),adSlotLoggingData:f}}; Ef=function(r,V){g.X.call(this);this.ws=r;this.G=V;this.eventCount=0}; N3=function(r,V,I,d){Ef.call(this,r,V);this.ws=r;this.C8=I;this.context=d}; sf=function(){this.G=new Map}; zK=function(r,V){var I=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=r;this.result=V.result;this.error=V.error;V.promise&&V.promise.then(function(d){cp(I,d)},function(d){I.cK(d)})}; TK=function(r){if(M3(r)){if(r instanceof zK)return r;if(Cw(r))return new zK("wait",{promise:r})}return new zK("done",{result:r})}; Hp=function(){return new zK("wait",{})}; wD=function(r){return new zK("fail",{error:r})}; bZ=function(r){try{return TK(r())}catch(V){return wD(V)}}; Wp=function(r,V){var I=Hp();r.onSuccess.push(function(d){try{var a=V(d);cp(I,a)}catch(f){I.cK(f)}}); r.onFailure.push(function(d){I.cK(d)}); Of(r);return I}; $N=function(r,V){var I=Hp();r.onSuccess.push(function(d){cp(I,d)}); r.onFailure.push(function(d){try{var a=V(d);cp(I,a)}catch(f){I.cK(f)}}); Of(r);return I}; npv=function(r,V){var I=Hp();r.onSuccess.push(function(d){try{V(),cp(I,d)}catch(a){I.cK(a)}}); r.onFailure.push(function(d){try{V(),I.cK(d)}catch(a){I.cK(a)}}); Of(r)}; cp=function(r,V){if(M3(V)){if(Cw(V)){V.then(function(I){cp(r,I)},function(I){r.cK(I)}); return}if(V instanceof zK){Wp(V,function(I){cp(r,I)}); $N(V,function(I){r.cK(I)}); return}}r.currentState="done";r.result=V;Of(r)}; Of=function(r){if(r.currentState==="done"){var V=r.onSuccess;r.onSuccess=[];r.onFailure=[];V=g.H(V);for(var I=V.next();!I.done;I=V.next())I=I.value,I(r.result)}else if(r.currentState==="fail")for(V=r.onFailure,r.onSuccess=[],r.onFailure=[],V=g.H(V),I=V.next();!I.done;I=V.next())I=I.value,I(r.error)}; Kw=function(r){return function(){return jVU(r.apply(this,g.ZU.apply(0,arguments)))}}; R$=function(r){return TK(r).wait()}; jVU=function(r){return bZ(function(){return t0(r,r.next())})}; t0=function(r,V){return V.done?TK(V.value):$N(Wp(V.value.EN,function(I){return t0(r,r.next(I))}),function(I){return t0(r,r.throw(I))})}; D_i=function(r,V){if(r.length===0)return TK(NaN);var I=Hp(),d=r.length;r.forEach(function(a,f){npv(TK(a),function(){I.currentState==="wait"&&(V!==void 0&&V(f)&&I.currentState==="wait"?I.resolve(f):(--d,d===0&&I.resolve(NaN)))})}); return I}; x_X=function(r){return r.map(function(V){return TK(V)})}; A0=function(r){var V=r.hours||0;var I=r.minutes||0,d=r.seconds||0;V=d+I*60+V*3600+(r.days||0)*86400+(r.weeks||0)*604800+(r.months||0)*2629800+(r.years||0)*31557600;V<=0?V={hours:0,minutes:0,seconds:0}:(r=V,V=Math.floor(r/3600),r%=3600,I=Math.floor(r/60),d=Math.floor(r%60),V={hours:V,minutes:I,seconds:d});var a=V.hours===void 0?0:V.hours;I=V.minutes===void 0?0:V.minutes;r=V.seconds===void 0?0:V.seconds;d=a>0;V=[];if(d){a=(new Intl.NumberFormat("en-u-nu-latn")).format(a);var f=["fr"],e="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(" "); a="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(yV)?a.replace(",","\u00a0"):f.includes(yV)?a.replace(",","\u202f"):e.includes(yV)?a.replace(",","."):a;V.push(a)}d=d===void 0?!1:d;I=(["af","be","lt"].includes(yV)||d)&&I<10?EpO().format(I):(new Intl.NumberFormat("en-u-nu-latn")).format(I);V.push(I);I=EpO().format(r);V.push(I);I=":";"da fi id si sr sr-Latn".split(" ").includes(yV)&&(I=".");return V.join(I)}; EpO=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; NiA=function(r,V){var I,d;r=((I=r.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=I.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(I=0;IV;r=I}else r=!1;return r}; g.pw=function(r,V){return r.Kj+"timedtext_video?ref=player&v="+V.videoId}; g.GMg=function(r){var V=this;this.videoData=r;r={};this.G=(r.c1a=function(){var I=[];if(g.mB.isInitialized()){var d="";V.videoData&&V.videoData.DU&&(d=V.videoData.DU+("&r1b="+V.videoData.clientPlaybackNonce));var a={};d=(a.atr_challenge=d,a);qM("bg_v",void 0,"player_att");(d=AiA(d))?(qM("bg_s",void 0,"player_att"),I.push("r1a="+d)):(qM("bg_e",void 0,"player_att"),I.push("r1c=2"))}else qM("bg_e",void 0,"player_att"),window.trayride||window.botguard?I.push("r1c=1"):I.push("r1c=4");I.push("r1d="+g.mB.getState()); return I.join("&")},r.c6a=function(I){return"r6a="+(Number(I.c)^sT())},r.c6b=function(I){return"r6b="+(Number(I.c)^Number(g.kt("CATSTAT",0)))},r); this.videoData&&this.videoData.DU?this.Z9=eJ(this.videoData.DU):this.Z9={}}; g.F1i=function(r){if(r.videoData&&r.videoData.DU){for(var V=[r.videoData.DU],I=g.H(Object.keys(r.G)),d=I.next();!d.done;d=I.next())d=d.value,r.Z9[d]&&r.G[d]&&(d=r.G[d](r.Z9))&&V.push(d);return V.join("&")}return null}; g.vp=function(r,V){yig(r,{Qo0:g.zM(V.experiments,"bg_vm_reinit_threshold"),cspNonce:V.cspNonce,Kj:V.Kj||""})}; l9p=function(){var r=XMLHttpRequest.prototype.fetch;return!!r&&r.length===3}; L1S=function(r){r=r[Y[14]](Y[19]);q3[Y[8]](r,30);q3[Y[8]](r,65);q3[Y[8]](r,2);return r[Y[3]](Y[19])}; ZMZ=function(r){Jir=2592E3*(r||1)}; Pp=function(r){r=r===void 0?Jir:r;if(r>0&&!(p4h()>(0,g.m)()-r*1E3))return 0;r=g.BJ("yt-player-quality");if(typeof r==="string"){if(r=g.Qf[r],r>0)return r}else if(r instanceof Object)return r.quality;return 0}; o$=function(){var r=g.BJ("yt-player-proxima-pref");return r==null?null:r}; XES=function(){var r=g.BJ("yt-player-quality");if(r instanceof Object&&r.quality&&r.previousQuality){if(r.quality>r.previousQuality)return 1;if(r.quality0&&V[0]?r.getAutoplayPolicy(V[0]):r.getAutoplayPolicy("mediaelement");if(m_h[I])return m_h[I]}}catch(d){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; aC=function(r){return r.BH||r.iz||r.mutedAutoplay}; urZ=function(r,V){return aC(r)?V!==1&&V!==2&&V!==0?"AUTOPLAY_STATUS_UNAVAILABLE":r.hJ?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; pEX=function(r,V,I){var d=V.N();r.thirdParty||(r.thirdParty={});d.ancestorOrigins&&(r.thirdParty.embeddedPlayerContext=Object.assign({},r.thirdParty.embeddedPlayerContext,{ancestorOrigins:d.ancestorOrigins}));d.U("embeds_enable_autoplay_and_visibility_signals")&&(d.Yg!=null&&(r.thirdParty.embeddedPlayerContext=Object.assign({},r.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(d.Yg)})),d.JW&&(r.thirdParty.embeddedPlayerContext=Object.assign({},r.thirdParty.embeddedPlayerContext,{visibilityFractionSource:d.JW})), r.thirdParty.embeddedPlayerContext=Object.assign({},r.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:dV(),autoplayIntended:aC(V),autoplayStatus:urZ(V,I)}))}; Pji=function(r,V){hp(r,2,V.yQ,fc,3);hp(r,3,V.b6,vpZ,3);oy(r,4,V.onesieUstreamerConfig);oy(r,9,V.gr);hp(r,10,V.dI,ev,3);hp(r,15,V.reloadPlaybackParams,qpX,3)}; kMO=function(r,V){hp(r,1,V.formatId,YC,3);qw(r,2,V.startTimeMs);qw(r,3,V.durationMs);qw(r,4,V.wL);qw(r,5,V.x8);hp(r,9,V.su7,opi,3);hp(r,11,V.mZQ,nc,1);hp(r,12,V.ym,nc,1)}; hQX=function(r,V){kT(r,1,V.videoId);qw(r,2,V.lmt)}; opi=function(r,V){if(V.sU)for(var I=0;I>31));qw(r,16,V.j7H);qw(r,17,V.detailedNetworkType);qw(r,18,V.Jo);qw(r,19,V.Yv);qw(r,21,V.GR7);qw(r,23,V.yd);qw(r,28,V.bW);qw(r,29,V.fts);qw(r,34,V.visibility);I=V.playbackRate;if(I!==void 0){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=I;I=(new Uint32Array(d))[0];if(I!==void 0)for(v1(r,285),pn(r,4),d=0;d<4;)r.view.setUint8(r.pos,I&255),I>>=8,r.pos+=1,d+=1}qw(r,36,V.wD); hp(r,38,V.mediaCapabilities,IrS,3);qw(r,39,V.zXz);qw(r,40,V.yC);qw(r,44,V.playerState);P1(r,46,V.QN);qw(r,48,V.NK);qw(r,50,V.KQ);qw(r,51,V.gV);qw(r,54,V.qe);if(V.tR)for(I=0;I>31));kT(r,2,V.message)}; xbZ=function(r,V){qw(r,1,V.clientState);hp(r,2,V.Dv0,jvO,1)}; njU=function(r,V){oy(r,1,V.UmL);hp(r,2,V.fQz,DbZ,3);hp(r,3,V.coldStartInfo,xbZ,3)}; YOX=function(r,V){qw(r,1,V.type);oy(r,2,V.value)}; erU=function(r,V){kT(r,1,V.hl);kT(r,12,V.deviceMake);kT(r,13,V.deviceModel);qw(r,16,V.clientName);kT(r,17,V.clientVersion);kT(r,18,V.osName);kT(r,19,V.osVersion)}; Ejr=function(r,V){kT(r,1,V.name);kT(r,2,V.value)}; NkA=function(r,V){kT(r,1,V.url);if(V.l6)for(var I=0;I1&&(this.W=r[1]==="2")}; sG=function(r,V,I,d,a){this.X=r;this.G=V;this.S=I;this.reason=d;this.VH=a===void 0?0:a}; g.c7=function(r,V,I,d){return new sG(g.Qf[r]||0,g.Qf[V]||0,I,d)}; MO=function(r){if(zb&&r.VH)return!1;var V=g.Qf.auto;return r.X===V&&r.G===V}; Tb=function(r){return Cc[r.G||r.X]||"auto"}; kjO=function(r,V){V=g.Qf[V];return r.X<=V&&(!r.G||r.G>=V)}; H7=function(r){return"["+r.X+"-"+r.G+", override: "+(r.S+", reason: "+r.reason+"]")}; wV=function(r,V,I){this.videoInfos=r;this.G=V;this.audioTracks=[];if(this.G){r=new Set;I==null||I({ainfolen:this.G.length});V=g.H(this.G);for(var d=V.next();!d.done;d=V.next())if(d=d.value,!d.uo||r.has(d.uo.id)){var a=void 0,f=void 0,e=void 0;(e=I)==null||e({atkerr:!!d.uo,itag:d.itag,xtag:d.G,lang:((a=d.uo)==null?void 0:a.name)||"",langid:((f=d.uo)==null?void 0:f.id)||""})}else a=new g.NO(d.id,d.uo),r.add(d.uo.id),this.audioTracks.push(a);I==null||I({atklen:this.audioTracks.length})}}; bY=function(){g.X.apply(this,arguments);this.G=null}; Ikv=function(r,V,I,d,a,f,e){if(r.G)return r.G;var n={},D=new Set,x={};if(OG(d)){for(var E in d.G)d.G.hasOwnProperty(E)&&(r=d.G[E],x[r.info.A0]=[r.info]);return x}E=hrv(V,d,n);f&&a({aftsrt:W7(E)});for(var N={},c=g.H(Object.keys(E)),z=c.next();!z.done;z=c.next()){z=z.value;for(var M=g.H(E[z]),w=M.next();!w.done;w=M.next()){w=w.value;var b=w.itag,W=void 0,K=z+"_"+(((W=w.video)==null?void 0:W.fps)||0);N.hasOwnProperty(K)?N[K]===!0?x[z].push(w):n[b]=N[K]:(W=$C(V,w,I,d.isLive,D),W!==!0?(e.add(z),n[b]=W, W==="disablevp9hfr"&&(N[K]="disablevp9hfr")):(x[z]=x[z]||[],x[z].push(w),N[K]=!0))}}f&&a({bfflt:W7(x)});for(var F in x)x.hasOwnProperty(F)&&(d=F,x[d]&&x[d][0].BK()&&(x[d]=x[d],x[d]=r4v(V,x[d],n),x[d]=VuS(x[d],n)));f&&Object.keys(n).length>0&&a({rjr:A4(n)});V=g.H(D.values());for(d=V.next();!d.done;d=V.next())(d=I.X.get(d.value))&&--d.SQ;f&&a({aftflt:W7(x)});r.G=g.U_(x,function(l){return!!l.length}); return r.G}; akA=function(r,V,I,d,a,f,e,n){n=n===void 0?!1:n;if(V.Py&&e&&e.length>1&&!(V.WZ>0||V.j)){for(var D=V.X||!!a,x=D&&V.gH?f:void 0,E=hrv(V,d),N=[],c=[],z={},M=0;M0&&c&&a&&(E=[e,I],b=a.concat(c).filter(function(W){return W})); if(b.length&&!V.UO){tj(b,E);if(D){D=[];V=g.H(b);for(d=V.next();!d.done;d=V.next())D.push(d.value.itag);f({hbdfmt:D.join(".")})}return ZJ(new wV(b,r,x))}b=seU(V);b=g.z6(b,n);if(!b){if(N[e])return f=N[e],tj(f),ZJ(new wV(f,r,x));D&&f({novideo:1});return Ja()}V.Hy&&(b==="1"||b==="1h")&&N[I]&&(e=yN(N[b]),E=yN(N[I]),E>e?b=I:E===e&&c4i(N[I])&&(b=I));b==="9"&&N.h&&yN(N.h)>yN(N["9"])&&(b="h");V.ya&&d.isLive&&b==="("&&N.H&&yN(N["("])<1440&&(b="H");D&&f({vfmly:Aj(b)});V=N[b];if(!V.length)return D&&f({novfmly:Aj(b)}), Ja();tj(V);return ZJ(new wV(V,r,x))}; ehp=function(r,V){var I=!(!r.m&&!r.M),d=!(!r.mac3&&!r.MAC3),a=!(!r.meac3&&!r.MEAC3);r=!(!r.i&&!r.I);V.By=r;return I||d||a||r}; c4i=function(r){r=g.H(r);for(var V=r.next();!V.done;V=r.next())if(V=V.value,V.itag&&zhh.has(V.itag))return!0;return!1}; ndO=function(r){r=g.H(r);for(var V=r.next();!V.done;V=r.next())if(V.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; Aj=function(r){switch(r){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return r}}; W7=function(r){var V=[],I;for(I in r)if(r.hasOwnProperty(I)){var d=I;V.push(Aj(d));d=g.H(r[d]);for(var a=d.next();!a.done;a=d.next())V.push(a.value.itag)}return V.join(".")}; fki=function(r,V,I,d,a,f){var e={},n={};g.i$(V,function(D,x){D=D.filter(function(E){var N=E.itag;if(!E.Cq)return n[N]="noenc",!1;if(f.rH&&E.A0==="(h"&&f.DM)return n[N]="lichdr",!1;if(!r.Y&&E.A0==="1e")return n[N]="noav1enc",!1;if(E.A0==="("||E.A0==="(h"){if(r.S&&I&&I.flavor==="widevine"){var c=E.mimeType+"; experimental=allowed";(c=!!E.Cq[I.flavor]&&!!I.G[c])||(n[N]=E.Cq[I.flavor]?"unspt":"noflv");return c}if(!Gb(r,Fq.CRYPTOBLOCKFORMAT)&&!r.R7||r.GQ)return n[N]=r.GQ?"disvp":"vpsub",!1}return I&&E.Cq[I.flavor]&& I.G[E.mimeType]?!0:(n[N]=I?E.Cq[I.flavor]?"unspt":"noflv":"nosys",!1)}); D.length&&(e[x]=D)}); d&&Object.entries(n).length&&a({rjr:A4(n)});return e}; VuS=function(r,V){var I=vl(r,function(d,a){return a.video.fps>32?Math.min(d,a.video.width):d},Infinity); I32||d.video.widthr.C)return"max"+r.C;if(r.EE&&V.A0==="h"&&V.video&&V.video.qualityOrdinal>1080)return"blkhigh264";if(V.A0==="(h"&&!I.L)return"enchdr";if((d===void 0?0:d)&&VU(V)&&!r.R7)return"blk51live";if((V.A0==="MAC3"||V.A0==="mac3")&&!r.Y)return"blkac3";if((V.A0==="MEAC3"||V.A0==="meac3")&&!r.W)return"blkeac3";if(V.A0==="M"||V.A0==="m")return"blkaac51"; if((V.A0==="so"||V.A0==="sa")&&!r.QH)return"blkamb";if(!r.rH&&MOp(V)&&(!I.Y||V.A0!=="1e"))return"cbc";if(!I.Y&&MOp(V)&&V.A0==="1e")return"cbcav1";if((V.A0==="i"||V.A0==="I")&&!r.X_)return"blkiamf";var f;if(r.Qa&&((f=V.audio)==null?void 0:f.X)===!0)return"blkvbcabr";var e,n;if(r.Ws&&(V.A0==="1"||V.A0==="1h"||I.Y&&V.A0==="1e")&&((e=V.video)==null?0:e.qualityOrdinal)&&((n=V.video)==null?void 0:n.qualityOrdinal)>r.Ws)return"av1cap";if((d=I.X.get(V.A0))&&d.SQ>0)return a.add(V.A0),"byerr";var D;if((D=V.video)== null?0:D.fps>32){if(!I.n8&&!Gb(I,Fq.FRAMERATE))return"capHfr";if(r.L8&&V.video.qualityOrdinal>=4320)return"blk8khfr";if(Pq(V)&&r.MG&&V.Cq&&V.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(r.VH&&V.VH>r.VH)return"ratecap";r=MuX(I,V);return r!==!0?r:!0}; tj=function(r,V){V=V===void 0?[]:V;g.LG(r,function(I,d){var a=d.VH-I.VH;if(!I.BK()||!d.BK())return a;var f=d.video.height*d.video.width-I.video.height*I.video.width;!f&&V&&V.length>0&&(I=V.indexOf(I.A0)+1,d=V.indexOf(d.A0)+1,f=I===0||d===0?d||-1:I-d);f||(f=a);return f})}; g.lY=function(r,V){this[Y[10]]=r;this[Y[54]]=V===void 0?!1:V;this[Y[32]]=this[Y[18]]=this[Y[12]]=Y[19];this[Y[6]]={};this[Y[15]]=Y[19]}; Jj=function(r){Lc(r);return r[Y[32]]}; ZQ=function(r){return r[Y[10]]?r[Y[10]][Y[30]](Y[22]):r[Y[12]]===Y[22]}; CSZ=function(r){Lc(r);return g.mK(r[Y[6]],function(V){return V!==null})}; Xq=function(r){Lc(r);var V=decodeURIComponent(r[Y[27]](Y[26])||Y[19])[Y[14]](Y[42]);return r[Y[18]]===Y[4]&&V[Y[1]]>1&&!!V[1]}; B7=function(r,V){V=V===void 0?!1:V;Lc(r);if(r[Y[18]]!==Y[4]){var I=r[Y[0]]();I[Y[2]](Y[66],Y[20]);return I}var d=r[Y[44]]();I=new g.fm(d);var a=r[Y[27]](Y[80]),f=decodeURIComponent(r[Y[27]](Y[26])||Y[19])[Y[14]](Y[42]);if(a&&f&&f[Y[1]]>1&&f[1])return d=I.G,r=d[Y[63]](/^[^.]*/,Y[19]),g.Yy(I,(d[Y[23]](Y[68])===0?Y[68]:Y[89])+a+Y[31]+f[1]+r),I=new g.lY(I[Y[28]]()),I[Y[2]](Y[71],Y[20]),I;if(V)return I=r[Y[0]](),I[Y[2]](Y[71],Y[20]),I;a=I.G[Y[25]](Y[69]);I.G[Y[25]](Y[79])?(g.Yy(I,Y[60]),d=I[Y[28]]()): I.G[Y[25]](Y[76])?(g.Yy(I,Y[36]),d=I[Y[28]]()):(I=YNr(d),Iv(I)&&(d=I));I=new g.lY(d);I[Y[2]](Y[24],Y[20]);a&&I[Y[2]](Y[53],Y[57]);return I}; Lc=function(r){if(r[Y[10]]){if(!Iv(r[Y[10]])&&!r[Y[10]][Y[30]](Y[22]))throw new g.ox(Y[78],r[Y[10]]);var V=g.c4(r[Y[10]]);r[Y[12]]=V.W;r[Y[32]]=V.G+(V.S!=null?Y[84]+V.S:Y[19]);var I=V.X;if(I[Y[30]](Y[4]))r[Y[18]]=Y[4],I=I[Y[5]](14);else if(I[Y[30]](Y[56]))r[Y[18]]=Y[56],I=I[Y[5]](13);else if(I[Y[30]](Y[13])){var d=I[Y[23]](Y[64],12),a=I[Y[23]](Y[64],d+1);d>0&&a>0?(r[Y[18]]=I[Y[5]](0,a),I=I[Y[5]](a+1)):(r[Y[18]]=I,I=Y[19])}else r[Y[18]]=I,I=Y[19];d=r[Y[6]];r[Y[6]]=TEv(I);Object[Y[49]](r[Y[6]],HNr(V.Y.toString())); Object[Y[49]](r[Y[6]],d);r[Y[6]][Y[62]]===Y[86]&&(delete r[Y[6]][Y[62]],r[Y[18]]+=Y[83]);r[Y[10]]=Y[19];r[Y[15]]=Y[19];r[Y[54]]&&(Lc(r),V=r[Y[6]][Y[59]]||null)&&(V=wqX[0](V),r[Y[2]](Y[59],V))}}; bNi=function(r){Lc(r);var V=r[Y[12]]+(r[Y[12]]?Y[37]:Y[81])+r[Y[32]]+r[Y[18]];if(CSZ(r)){var I=[];g.i$(r[Y[6]],function(d,a){d!==null&&I[Y[11]](a+Y[43]+d)}); V+=Y[35]+I[Y[3]](Y[9])}return V}; TEv=function(r){r=r[Y[14]](Y[64]);var V=0;r[0]||V++;for(var I={};V0?ONi(V,d[Y[5]](0,a),d[Y[5]](a+1)):d&&(V[d]=Y[19])}return V}; ONi=function(r,V,I){if(V===Y[40]){var d;(d=I[Y[23]](Y[43]))>=0?(V=Y[46]+I[Y[5]](0,d),I=I[Y[5]](d+1)):(d=I[Y[23]](Y[48]))>=0&&(V=Y[46]+I[Y[5]](0,d),I=I[Y[5]](d+3))}r[V]=I}; gV=function(r){var V=g.U(r,W6g)||r[Y[39]];r={v_:!1,zN:Y[19],w4:Y[19],s:Y[19]};if(!V)return r;V=eJ(V);r[Y[7]]=!0;r[Y[74]]=V[Y[15]];r[Y[50]]=V[Y[72]];r[Y[45]]=V[Y[45]];return r}; Sv=function(r,V,I,d,a,f,e,n,D){this.J0=r;this.startTime=V;this.duration=I;this.ingestionTime=d;this.sourceURL=a;this.Et=D;this.endTime=V+I;this.G=e||0;this.range=f||null;this.pending=n||!1;this.Et=D||null}; g.iY=function(){this.segments=[];this.G=null;this.X=!0;this.S=""}; $PA=function(r,V){if(V>r.xX())r.segments=[];else{var I=s_(r.segments,function(d){return d.J0>=V},r); I>0&&r.segments.splice(0,I)}}; UG=function(r,V,I,d,a){a=a===void 0?!1:a;this.data=r;this.offset=V;this.size=I;this.type=d;this.G=(this.X=a)?0:8;this.dataOffset=this.offset+this.G}; QN=function(r){var V=r.data.getUint8(r.offset+r.G);r.G+=1;return V}; mV=function(r){var V=r.data.getUint16(r.offset+r.G);r.G+=2;return V}; uY=function(r){var V=r.data.getInt32(r.offset+r.G);r.G+=4;return V}; pc=function(r){var V=r.data.getUint32(r.offset+r.G);r.G+=4;return V}; v7=function(r){var V=r.data;var I=r.offset+r.G;V=V.getUint32(I)*4294967296+V.getUint32(I+4);r.G+=8;return V}; qO=function(r,V){V=V===void 0?NaN:V;if(isNaN(V))var I=r.size;else for(I=r.G;I1?Math.ceil(a*V):Math.floor(a*V))}r.skip(1);I=QN(r)<<16|mV(r);if(I&256){d=I&1;a=I&4;var f=I&512,e=I&1024,n=I&2048;I=pc(r);d&&r.skip(4);a&&r.skip(4);d=(f?4:0)+(e?4:0)+(n?4:0);for(a=0;a1?Math.ceil(e*V):Math.floor(e*V)),r.skip(d)}}}; ai=function(r){r=new DataView(r.buffer,r.byteOffset,r.byteLength);return(r=g.Ii(r,0,1836476516))?g.dr(r):NaN}; ZNi=function(r){var V=g.Ii(r,0,1937011556);if(!V)return null;V=fh(r,V.dataOffset+8,1635148593)||fh(r,V.dataOffset+8,1635135537);if(!V)return null;var I=fh(r,V.dataOffset+78,1936995172),d=fh(r,V.dataOffset+78,1937126244);if(!d)return null;V=null;if(I)switch(I.skip(4),QN(I)){default:V=0;break;case 1:V=2;break;case 2:V=1;break;case 3:V=255}var a=I=null,f=null;if(d=fh(r,d.dataOffset,1886547818)){var e=fh(r,d.dataOffset,1886546020),n=fh(r,d.dataOffset,2037673328);if(!n&&(n=fh(r,d.dataOffset,1836279920), !n))return null;e&&(e.skip(4),I=uY(e)/65536,f=uY(e)/65536,a=uY(e)/65536);r=K6j(n);r=new DataView(r.buffer,r.byteOffset+8,r.byteLength-8);return new L6O(V,I,f,a,r)}return null}; fh=function(r,V,I){for(;e6(r,V);){var d=Yk(r,V);if(d.type===I)return d;V+=d.size}return null}; g.Ii=function(r,V,I){for(;e6(r,V);){var d=Yk(r,V);if(d.type===I)return d;V=nh(d.type)?V+8:V+d.size}return null}; g.j6=function(r){if(r.data.getUint8(r.dataOffset)){var V=r.data;r=r.dataOffset+4;V=V.getUint32(r)*4294967296+V.getUint32(r+4)}else V=r.data.getUint32(r.dataOffset+4);return V}; Yk=function(r,V){var I=r.getUint32(V),d=r.getUint32(V+4);return new UG(r,V,I,d)}; g.dr=function(r){var V=r.data.getUint8(r.dataOffset)?20:12;return r.data.getUint32(r.dataOffset+V)}; Xqv=function(r){r=new UG(r.data,r.offset,r.size,r.type,r.X);var V=QN(r);r.skip(7);var I=pc(r);if(V===0){V=pc(r);var d=pc(r)}else V=v7(r),d=v7(r);r.skip(2);for(var a=mV(r),f=[],e=[],n=0;n122)return!1}return!0}; nh=function(r){return r===1701082227||r===1836019558||r===1836019574||r===1835297121||r===1835626086||r===1937007212||r===1953653094||r===1953653099||r===1836475768}; BES=function(r){r.skip(4);return{W9s:qO(r,0),value:qO(r,0),timescale:pc(r),qLE:pc(r),DRs:pc(r),id:pc(r),qb:qO(r),offset:r.offset}}; g.gdg=function(r){var V=fh(r,0,1701671783);if(!V)return null;var I=BES(V),d=I.W9s;I=VF(I.qb);if(r=fh(r,V.offset+V.size,1701671783))if(r=BES(r),r=VF(r.qb),I&&r){V=g.H(Object.keys(r));for(var a=V.next();!a.done;a=V.next())a=a.value,I[a]=r[a]}return I?new hj(I,d):null}; DT=function(r,V){for(var I=fh(r,0,V);I;){var d=I;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);I=fh(r,I.offset+I.size,V)}}; g.xk=function(r,V){for(var I=0,d=[];e6(r,I);){var a=Yk(r,I);a.type===V&&d.push(a);I=nh(a.type)?I+8:I+a.size}return d}; SUX=function(r,V){var I=g.Ii(r,0,1937011556),d=g.Ii(r,0,1953654136);if(!I||!d||r.getUint32(I.offset+12)>=2)return null;var a=new DataView(V.buffer,V.byteOffset,V.length),f=g.Ii(a,0,1937011556);if(!f)return null;V=a.getUint32(f.dataOffset+8);d=a.getUint32(f.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;d=new RhO(r.byteLength+V);P7(d,r,0,I.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;P7(d,r,I.offset+16,I.size-16);P7(d,a,a.byteOffset+f.dataOffset+8,V);P7(d,r,I.offset+I.size,r.byteLength- (I.offset+I.size));I=g.H([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(a=I.next();!a.done;a=I.next())a=g.J(g.Ii(r,0,a.value)),d.data.setUint32(a.offset,a.size+V);r=g.Ii(d.data,0,1953654136);d.data.setUint32(r.offset+16,2);return d.data}; iNX=function(r){var V=g.Ii(r,0,1937011556);if(!V)return null;var I=r.getUint32(V.dataOffset+12);if(I!==1701733217&&I!==1701733238)return null;V=fh(r,V.offset+24+(I===1701733217?28:78),1936289382);if(!V)return null;I=fh(r,V.offset+8,1935894637);if(!I||r.getUint32(I.offset+12)!==1667392371)return null;V=fh(r,V.offset+8,1935894633);if(!V)return null;V=fh(r,V.offset+8,1952804451);if(!V)return null;I=new Uint8Array(16);for(var d=0;d<16;d++)I[d]=r.getInt8(V.offset+16+d);return I}; EC=function(r,V){this.G=r;this.pos=0;this.start=V||0}; Nx=function(r){return r.pos>=r.G.byteLength}; Ch=function(r,V,I){var d=new EC(I);if(!sC(d,r))return!1;d=cI(d);if(!z2(d,V))return!1;for(r=0;V;)V>>>=8,r++;V=d.start+d.pos;var a=Mx(d,!0);d=r+(d.start+d.pos-V)+a;d=d>9?UPr(d-9,8):UPr(d-2,1);r=V-r;I.setUint8(r++,236);for(V=0;VI;a++)I=I*256+OC(r),d*=128;return V?I-d:I}; HI=function(r){var V=Mx(r,!0);r.pos+=V}; uai=function(r){if(!z2(r,440786851,!0))return null;var V=r.pos;Mx(r,!1);var I=Mx(r,!0)+r.pos-V;r.pos=V+I;if(!z2(r,408125543,!1))return null;Mx(r,!0);if(!z2(r,357149030,!0))return null;var d=r.pos;Mx(r,!1);var a=Mx(r,!0)+r.pos-d;r.pos=d+a;if(!z2(r,374648427,!0))return null;var f=r.pos;Mx(r,!1);var e=Mx(r,!0)+r.pos-f,n=new Uint8Array(I+12+a+e),D=new DataView(n.buffer);n.set(new Uint8Array(r.G.buffer,r.G.byteOffset+V,I));D.setUint32(I,408125543);D.setUint32(I+4,33554431);D.setUint32(I+8,4294967295); n.set(new Uint8Array(r.G.buffer,r.G.byteOffset+d,a),I+12);n.set(new Uint8Array(r.G.buffer,r.G.byteOffset+f,e),I+12+a);return n}; WI=function(r){var V=r.pos;r.pos=0;var I=1E6;sC(r,[408125543,357149030,2807729])&&(I=T2(r));r.pos=V;return I}; pqg=function(r,V){var I=r.pos;r.pos=0;if(r.G.getUint8(r.pos)!==160&&!$k(r)||!z2(r,160))return r.pos=I,NaN;Mx(r,!0);var d=r.pos;if(!z2(r,161))return r.pos=I,NaN;Mx(r,!0);OC(r);var a=OC(r)<<8|OC(r);r.pos=d;if(!z2(r,155))return r.pos=I,NaN;d=T2(r);r.pos=I;return(a+d)*V/1E9}; $k=function(r){if(!vdS(r)||!z2(r,524531317))return!1;Mx(r,!0);return!0}; vdS=function(r){if(r.S6()){if(!z2(r,408125543))return!1;Mx(r,!0)}return!0}; sC=function(r,V){for(var I=0;I0){var d=HNr(V.substring(I+1));g.i$(d,function(a,f){this.set(f,a)},r); V=V.substring(0,I)}V=TEv(V);g.i$(V,function(a,f){this.set(f,a)},r)}; PSv=function(r){return r.Pa}; odr=function(r){var V=r.Pa.fq(),I=[];g.i$(r.G,function(a,f){I.push(f+"="+a)}); if(!I.length)return V;var d=I.join("&");r=CSZ(r.Pa)?"&":"?";return V+r+d}; Ri=function(r,V){var I=new g.lY(V);(V=I.get("req_id"))&&r.set("req_id",V);g.i$(r.G,function(d,a){I["set"](a,null)}); return I}; kki=function(){this.S=this.X=this.cK=this.timedOut=this.started=this.Y=this.G=0}; tX=function(r){r.Y=(0,g.m)();r.started=0;r.timedOut=0;r.cK=0}; yF=function(r,V){var I=r.started+r.cK*4;V&&(I+=r.X);I=Math.max(0,I-3);return Math.pow(1.6,I)}; AX=function(r,V){r[V]||(r[V]=new kki);return r[V]}; G2=function(r){this.V=this.L=this.W=this.S=0;this.j=this.C=!1;this.G=r;this.X=r.clone()}; hhS=function(r,V,I){if(ZQ(r.G))return!1;var d=AX(I,Jj(r.G));if(d.timedOut<1&&d.cK<1)return!1;d=d.timedOut+d.cK;r=FL(r,V);I=AX(I,Jj(r));return I.timedOut+I.cK+01?V=V.U6:(I=AX(I,Lh(r,r.rq(V,I),V)),V=Math.max(r.W,I.timedOut)+V.MO*(r.S-r.W)+.25*r.L,V=V>3?1E3*Math.pow(1.6,V-3):0);return V===0?!0:r.V+V<(0,g.m)()}; rYA=function(r,V,I){r.G.set(V,I);r.X.set(V,I);r.Y&&r.Y.set(V,I)}; VBZ=function(r,V,I,d,a){++r.S;V&&++r.W;Jj(I.Pa).startsWith("redirector.")&&(r.G=r.X.clone(),delete r.Y,d.U2&&delete a[Jj(r.G)])}; ZT=function(r){return r?(r.itag||"")+";"+(r.lmt||0)+";"+(r.xtags||""):""}; XL=function(r,V,I,d){this.initRange=I;this.indexRange=d;this.G=null;this.S=!1;this.C=0;this.Y=this.gp=this.X=null;this.info=V;this.po=new G2(r)}; BI=function(r,V){this.start=r;this.end=V;this.length=V-r+1}; gr=function(r){r=r.split("-");var V=Number(r[0]),I=Number(r[1]);if(!isNaN(V)&&!isNaN(I)&&r.length===2&&(r=new BI(V,I),!isNaN(r.start)&&!isNaN(r.end)&&!isNaN(r.length)&&r.length>0))return r}; S6=function(r,V){return new BI(r,r+V-1)}; I$i=function(r){return r.end==null?{start:String(r.start)}:{start:String(r.start),end:String(r.end)}}; iU=function(r){if(!r)return new BI(0,0);var V=Number(r.start);r=Number(r.end);if(!isNaN(V)&&!isNaN(r)&&(V=new BI(V,r),V.length>0))return V}; UC=function(r,V,I,d,a,f,e,n,D,x,E,N){d=d===void 0?"":d;this.type=r;this.G=V;this.range=I;this.source=d;this.PZ=E;this.clipId=N===void 0?"":N;this.V=[];this.j="";this.J0=-1;this.QH=this.kc=0;this.j=d;this.J0=a>=0?a:-1;this.startTime=f||0;this.duration=e||0;this.X=n||0;this.S=D>=0?D:this.range?this.range.length:NaN;this.W=this.range?this.X+this.S===this.range.length:x===void 0?!!this.S:x;this.range?(this.Y=this.startTime+this.duration*this.X/this.range.length,this.L=this.duration*this.S/this.range.length, this.C=this.Y+this.L):d$A(this)}; d$A=function(r){a$p?(r.Y=r.startTime+Math.min(r.duration*r.X/r.G.info.VH,r.duration),r.L=Math.min(r.duration,r.duration*r.S/r.G.info.VH),r.C=Math.min(r.Y+r.L,r.startTime+r.duration)):(r.Y=r.startTime,r.L=r.duration,r.C=r.Y+r.L)}; f$A=function(r,V,I){var d=!(!V||V.G!==r.G||V.type!==r.type||V.J0!==r.J0);return I?d&&!!V&&(r.range&&V.range?V.range.end===r.range.end:V.range===r.range)&&V.X+V.S===r.X+r.S:d}; QF=function(r){return r.type===1||r.type===2}; mY=function(r){return r.type===3||r.type===6}; uU=function(r,V){return r.G===V.G?r.range&&V.range?r.range.start+r.X+r.S===V.range.start+V.X:r.J0===V.J0?r.X+r.S===V.X:r.J0+1===V.J0&&V.X===0&&r.W:!1}; YVA=function(r,V){return r.J0!==V.J0&&V.J0!==r.J0+1||r.type!==V.type?!1:uU(r,V)?!0:Math.abs(r.Y-V.Y)<=1E-6&&r.J0===V.J0?!1:e4i(r,V)}; e4i=function(r,V){return uU(r,V)||Math.abs(r.C-V.Y)<=1E-6||r.J0+1===V.J0&&V.X===0&&r.W?!0:!1}; ph=function(r){return r.J0+(r.W?1:0)}; nYX=function(r){r.length===1||g.py(r,function(I){return!!I.range}); for(var V=1;V=V.range.start+V.X&&r.range.start+r.X+r.S<=V.range.start+V.X+V.S:r.J0===V.J0&&r.X>=V.X&&(r.X+r.S<=V.X+V.S||V.W)}; cYp=function(r,V){return r.G!==V.G?!1:r.type===4&&V.type===3&&r.G.sj()?(r=r.G.bd(r),r6(r,function(I){return cYp(I,V)})):r.J0===V.J0&&!!V.S&&V.X+V.S>r.X&&V.X+V.S<=r.X+r.S}; qx=function(r,V){var I=V.J0;r.j="updateWithSegmentInfo";r.J0=I;if(r.startTime!==V.startTime||r.duration!==V.duration)r.startTime=V.startTime+r.kc,r.duration=V.duration,d$A(r)}; PI=function(r,V){var I=this;this.iL=r;this.Y=this.G=null;this.W=this.pw=NaN;this.rq=this.requestId=null;this.m_={kcz:function(){return I.range}}; this.po=r[0].G.po;this.X=V||"";this.iL[0].range&&this.iL[0].S>0&&(j2r(r)?(this.range=nYX(r),this.S=this.range.length):(this.range=this.iL[this.iL.length-1].range,this.S=D$A(r)))}; oi=function(r){return!QF(r.iL[r.iL.length-1])}; kk=function(r){return r.iL[r.iL.length-1].type===4}; g.hX=function(r,V,I){I=r.rq===null?r.po.rq(V,I,r.iL[0].type):r.rq;if(r.G){V=I?B7(r.G,V.P1):r.G;var d=new Kh(V);d.get("alr")||d.set("alr","yes");r.X&&qUX(d,r.X)}else/http[s]?:\/\//.test(r.X)?d=new Kh(new g.lY(r.X)):(d=lU(r.po,I,V),r.X&&qUX(d,r.X));(V=r.range)?d.set("range",V.toString()):r.iL[0].G.f1()&&r.iL.length===1&&r.iL[0].X&&d.set("range",r.iL[0].X+"-");r.requestId&&d.set("req_id",r.requestId);isNaN(r.pw)||d.set("headm",r.pw.toString());isNaN(r.W)||d.set("mffa",r.W+"ms");r.urlParams&&g.i$(r.urlParams, function(a,f){d.set(f,a)}); return d}; z4i=function(r){if(r.range)return r.S;r=r.iL[0];return Math.round(r.L*r.G.info.VH)}; MBi=function(r,V){return Math.max(0,r.iL[0].Y-V)}; rb=function(r,V,I,d,a,f){f=f===void 0?0:f;XL.call(this,r,V,d,void 0);this.W=I;this.y7=f;this.index=a||new g.iY}; CAS=function(r,V,I,d,a){this.J0=r;this.startSecs=V;this.aB=I;this.G=d||NaN;this.X=a||NaN}; VK=function(r,V,I){for(;r;r=r.parentNode)if(r.attributes&&(!I||r.nodeName===I)){var d=r.getAttribute(V);if(d)return d}return""}; IJ=function(r,V){for(;r;r=r.parentNode){var I=r.getElementsByTagName(V);if(I.length>0)return I[0]}return null}; Tgh=function(r){if(!r)return 0;var V=r.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return V?(Number(V[2])|0)*3600+(Number(V[4])|0)*60+(Number(V[6])|0):Number(r)|0}; HIA=function(r){return r.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?r+"Z":r}; db=function(){this.G=[];this.X=null;this.C=0;this.S=[];this.W=!1;this.L="";this.Y=-1}; wTX=function(r){var V=r.S;r.S=[];return V}; bIi=function(){this.Y=[];this.G=null;this.X={};this.S={}}; KqA=function(r,V){var I=[];V=Array.from(V.getElementsByTagName("SegmentTimeline"));V=g.H(V);for(var d=V.next();!d.done;d=V.next()){d=d.value;var a=d.parentNode.parentNode,f=null;a.nodeName==="Period"?f=OIZ(r):a.nodeName==="AdaptationSet"?(a=a.getAttribute("id")||a.getAttribute("mimetype")||"",f=WqX(r,a)):a.nodeName==="Representation"&&(a=a.getAttribute("id")||"",f=$$v(r,a));if(f==null)return;f.update(d);g.KG(I,wTX(f))}g.KG(r.Y,I);tiA(r.Y,function(e){return e.startSecs*1E3+e.G})}; R4p=function(r){r.G&&(r.G.G=[]);g.i$(r.X,function(V){V.G=[]}); g.i$(r.S,function(V){V.G=[]})}; OIZ=function(r){r.G||(r.G=new db);return r.G}; WqX=function(r,V){r.X[V]||(r.X[V]=new db);return r.X[V]}; $$v=function(r,V){r.S[V]||(r.S[V]=new db);return r.S[V]}; fp=function(r){var V=r===void 0?{}:r;r=V.y7===void 0?0:V.y7;var I=V.Zp===void 0?!1:V.Zp;var d=V.QQ===void 0?0:V.QQ;var a=V.S7===void 0?0:V.S7;var f=V.pj===void 0?Infinity:V.pj;var e=V.Jj===void 0?0:V.Jj;var n=V.Ue===void 0?!1:V.Ue;V=V.zX===void 0?!1:V.zX;g.iY.call(this);this.iP=this.jg=-1;this.WH=r;this.QQ=d;this.Zp=I;this.S7=a;this.pj=f;this.Jj=e;((this.Ue=n)||isFinite(f)&&this.pj>0)&&I&&aJ&&(this.X=!1,this.S="postLive");this.zX=V}; eq=function(r,V){return l$(r.segments,function(I){return V-I.J0})}; Y$=function(r,V,I){I=I===void 0?{}:I;rb.call(this,r,V,"",void 0,void 0,I.y7||0);this.index=new fp(I)}; np=function(r,V,I){XL.call(this,r,V);this.W=I;r=this.index=new g.iY;r.X=!1;r.S="d"}; tBA=function(r,V,I){var d=r.index.w9(V),a=r.index.getStartTime(V),f=r.index.getDuration(V);I?f=I=0:I=r.info.VH*f;return new PI([new UC(3,r,void 0,"otfCreateRequestInfoForSegment",V,a,f,0,I)],d)}; yYU=function(r,V){if(!r.index.isLoaded()){var I=[],d=V.Y;V=V.W.split(",").filter(function(E){return E.length>0}); for(var a=0,f=0,e=0,n=/^(\d+)/,D=/r=(\d+)/,x=0;xd)return null}else if(I&&(I=r.G,d=V.G,I=!(d.F3.length?$uj(I,d.F3[0]):1)),I)return null;I=new UC(r.info.type,r.info.G,r.info.range,r.info.j,r.info.J0,r.info.startTime,r.info.duration,r.info.X,r.info.S,r.info.W,r.info.PZ,r.info.clipId);d=V.info;I.S+=d.S;I.range&&(I.L+=d.L);I.C=d.C;I.W=d.W;d=new be;OT(d,r.G);OT(d,V.G);I=new jq(I,d);I.X= V.X||r.X;I.S=r.S!==-1?r.S:V.S;I.Y=r.Y!==-1?r.Y:V.Y;return I}; g.x$=function(r){g.I2(r.info.G.info)||r.info.G.info.mE();if(r.S!==-1)return r.S;if(r.X&&A4X(r.X))return r.S=A4X(r.X),r.S;if(g.I2(r.info.G.info)){var V=r.qG();for(var I=r.info.G.G,d=NaN,a=NaN,f=0;e6(V,f);){var e=Yk(V,f);e.type===1936286840?a=e.data.getUint32(e.dataOffset+8):e.type===1836476516?a=g.dr(e):e.type===1952867444&&isNaN(d)&&(d=g.j6(e));f=nh(e.type)?f+8:f+e.size}!a&&I&&(a=ai(I));V=d/a}else V=new EC(r.qG()),I=r.W?V:new EC(new DataView(r.info.G.G.buffer)),d=WI(I),I=V.pos,V.pos=0,$k(V)?z2(V, 231)?(d=T2(V)*d/1E9,V.pos=I,V=d):(V.pos=I,V=NaN):(V.pos=I,V=NaN);r.S=V||r.info.Y;return r.S}; FqO=function(r,V){r.timestampOffset>0&&(V-=r.timestampOffset);var I=g.x$(r)+V;GHg(r,I);r.timestampOffset=V}; GHg=function(r,V){g.I2(r.info.G.info)||r.info.G.info.mE();r.S=V;if(g.I2(r.info.G.info)){var I=r.qG();r=r.info.G.G;for(var d=NaN,a=NaN,f=0;e6(I,f);){var e=Yk(I,f);isNaN(d)&&(e.type===1936286840?d=e.data.getUint32(e.dataOffset+8):e.type===1836476516&&(d=g.dr(e)));if(e.type===1952867444){!d&&r&&(d=ai(r));var n=g.j6(e);isNaN(a)&&(a=Math.round(V*d)-n);var D=e;n+=a;if(D.data.getUint8(D.dataOffset)){var x=D.data;D=D.dataOffset+4;x.setUint32(D,Math.floor(n/4294967296));x.setUint32(D+4,n&4294967295)}else D.data.setUint32(D.dataOffset+ 4,n)}f=nh(e.type)?f+8:f+e.size}return!0}I=new EC(r.qG());r=r.W?I:new EC(new DataView(r.info.G.G.buffer));d=WI(r);r=I.pos;I.pos=0;if($k(I)&&z2(I,231))if(a=Mx(I,!0),V=Math.floor(V*1E9/d),Math.ceil(Math.log(V)/Math.log(2)/8)>a)V=!1;else{for(d=a-1;d>=0;d--)I.G.setUint8(I.pos+d,V&255),V>>>=8;I.pos=r;V=!0}else V=!1;return V}; NY=function(r,V){V=V===void 0?!1:V;var I=Eq(r);r=V?0:r.info.L;return I||r}; Eq=function(r){g.I2(r.info.G.info)||r.info.G.info.mE();if(r.X&&r.info.type===6)return r.X.y7;if(g.I2(r.info.G.info)){var V=r.qG();var I=0;V=g.xk(V,1936286840);V=g.H(V);for(var d=V.next();!d.done;d=V.next())d=Xqv(d.value),I+=d.oa[0]/d.timescale;I=I||NaN;if(!(I>=0))a:{I=r.qG();V=r.info.G.G;for(var a=d=0,f=0;e6(I,d);){var e=Yk(I,d);if(e.type===1836476516)a=g.dr(e);else if(e.type===1836019558){!a&&V&&(a=ai(V));if(!a){I=NaN;break a}var n=g.J(fh(e.data,e.dataOffset,1953653094)),D=n;n=a;var x=g.J(fh(D.data, D.dataOffset,1952868452));D=g.J(fh(D.data,D.dataOffset,1953658222));var E=uY(x);uY(x);E&2&&uY(x);x=E&8?uY(x):0;var N=uY(D),c=N&1;E=N&4;var z=N&256,M=N&512,w=N&1024;N&=2048;var b=pc(D);c&&uY(D);E&&uY(D);for(var W=c=0;W2048?"":V.indexOf("https://")===0?V:""}; Th=function(r,V,I){V.match(m$A);return r(V,I).then(function(d){var a=g.Q2h(d.xhr);return a?Th(r,a,I):d.xhr})}; Oq=function(r,V,I){r=r===void 0?"":r;V=V===void 0?null:V;I=I===void 0?!1:I;g.NK.call(this);var d=this;this.sourceUrl=r;this.isLivePlayback=I;this.EE=this.duration=0;this.isPremiere=this.Ue=this.Y=this.isLiveHeadPlayable=this.isLive=this.X=!1;this.pj=this.S7=0;this.isOtf=this.Tz=!1;this.Ws=(0,g.m)();this.QH=Infinity;this.G={};this.S=new Map;this.state=this.jr=0;this.timeline=null;this.isManifestless=!1;this.bL=[];this.C=null;this.GQ=0;this.W="";this.R7=NaN;this.n8=this.gH=this.timestampOffset=this.L= 0;this.tW=this.H9=NaN;this.Bp=0;this.L8=this.V=!1;this.p8=[];this.TQ={};this.kc=NaN;this.m_={h6L:function(n){H5(d,n)}}; var a;this.a7=(a=V)==null?void 0:a.uL("html5_use_network_error_code_enums");uTh=!!V&&V.uL("html5_modern_vp9_mime_type");var f;wb=!((f=V)==null||!f.uL("html5_enable_flush_during_seek"))&&g.qL();var e;bs=!((e=V)==null||!e.uL("html5_enable_reset_audio_decoder"))&&g.qL()}; pTj=function(r){return g.mK(r.G,function(V){return!!V.info.video&&V.info.video.qualityOrdinal>=2160})}; NEA=function(r){return g.mK(r.G,function(V){return!!V.info.video&&V.info.video.isHdr()})}; Kc=function(r){return g.mK(r.G,function(V){return!!V.info.Cq})}; g.vYZ=function(r){return g.mK(r.G,function(V){return YY(V.info.mimeType)})}; qVr=function(r){return g.mK(r.G,function(V){return V.info.video?V.info.video.projectionType==="EQUIRECTANGULAR":!1})}; PAO=function(r){return g.mK(r.G,function(V){return V.info.video?V.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; oYO=function(r){return g.mK(r.G,function(V){return V.info.video?V.info.video.projectionType==="MESH":!1})}; kHA=function(r){return g.mK(r.G,function(V){return V.info.video?V.info.video.stereoLayout===1:!1})}; h4Z=function(r){return lUA(r.G,function(V){return V.info.video?V.kS():!0})}; OG=function(r){return g.mK(r.G,function(V){return ZQ(V.po.G)})}; H5=function(r,V){r.G[V.info.id]=V;r.S.set(ZT(g.a2(V.info,r.Tz)),V)}; r3r=function(r,V){return ZT({itag:V.itag,lmt:r.Tz?0:V.lmt||0,xtags:V.xtags})}; Kp=function(r,V,I){I=I===void 0?0:I;var d=r.mimeType||"",a=r.itag;var f=r.xtags;a=a?a.toString():"";f&&(a+=";"+f);f=a;if(eB(d)){var e=r.width||640;a=r.height||360;var n=r.fps,D=r.qualityLabel,x=r.colorInfo,E=r.projectionType,N;r.stereoLayout&&(N=VrA[r.stereoLayout]);var c=iIg(r)||void 0;if(x==null?0:x.primaries)var z=I7v[x.primaries]||void 0;e=new m6(e,a,n,E,N,void 0,D,c,z);d=W5(d,e,vq[r.itag||""]);wb&&(d+="; enableflushduringseek=true");bs&&(d+="; enableresetaudiodecoder=true")}var M;if(fI(d)){var w= r.audioSampleRate;N=r.audioTrack;w=new iS(w?+w:void 0,r.audioChannels,r.spatialAudioType,r.isDrc,r.loudnessDb,r.trackAbsoluteLoudnessLkfs,r.audioQuality||"AUDIO_QUALITY_UNKNOWN",r.isVb);N&&(z=N.displayName,a=N.id,N=N.audioIsDefault,z&&(M=new g.Cp(z,a||"",!!N)))}var b;r.captionTrack&&(D=r.captionTrack,N=D.displayName,z=D.vssId,a=D.languageCode,n=D.kind,D=D.id,N&&z&&a&&(b=new gYr(N,z,a,n,r.xtags,D)));N=Number(r.bitrate)/8;z=Number(r.contentLength);a=Number(r.lastModified);D=r.drmFamilies;n=r.type;I= I&&z?z/I:0;r=Number(r.approxDurationMs);if(V&&D){var W={};D=g.H(D);for(x=D.next();!x.done;x=D.next())(x=$$[x.value])&&(W[x]=V[x])}return new qP(f,d,{audio:w,video:e,uo:M,Cq:W,VH:N,fQ:I,contentLength:z,lastModified:a,captionTrack:b,streamType:n,approxDurationMs:r})}; RJ=function(r,V,I){I=I===void 0?0:I;var d=r.type;var a=r.itag;var f=r.xtags;f&&(a=r.itag+";"+f);if(eB(d)){var e=(r.size||"640x360").split("x");e=new m6(+e[0],+e[1],+r.fps,r.projection_type,+r.stereo_layout,void 0,r.quality_label,r.eotf,r.primaries);d=W5(d,e,vq[r.itag]);wb&&(d+="; enableflushduringseek=true");bs&&(d+="; enableresetaudiodecoder=true")}var n;if(fI(d)){var D=new iS(+r.audio_sample_rate||void 0,+r.audio_channels||0,r.spatial_audio_type,!!r.drc);r.name&&(n=new g.Cp(r.name,r.audio_track_id, r.isDefault==="1"))}var x;r.caption_display_name&&r.caption_vss_id&&r.caption_language_code&&(x=new gYr(r.caption_display_name,r.caption_vss_id,r.caption_language_code,r.caption_kind,r.xtags,r.caption_id));f=Number(r.bitrate)/8;var E=Number(r.clen),N=Number(r.lmt);I=I&&E?E/I:0;if(V&&r.drm_families){var c={};for(var z=g.H(r.drm_families.split(",")),M=z.next();!M.done;M=z.next())M=M.value,c[M]=V[M]}return new qP(a,d,{audio:D,video:e,uo:n,Cq:c,VH:f,fQ:I,contentLength:E,lastModified:N,captionTrack:x, streamType:r.stream_type,approxDurationMs:Number(r.approx_duration_ms)})}; dUA=function(r){return r6(r,function(V){return"FORMAT_STREAM_TYPE_OTF"===V.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; a7g=function(r){return r6(r,function(V){return"FORMAT_STREAM_TYPE_OTF"===V.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; f7X=function(r,V){return r.timeline?RG(r.timeline.Y,V):r.bL.length?RG(r.bL,V):[]}; tD=function(r,V,I){V=V===void 0?"":V;I=I===void 0?"":I;r=new g.lY(r,!0);r.set("alr","yes");I&&(I=L1S(decodeURIComponent(I)),r[Y[2]](V,encodeURIComponent(I)));return r}; jLZ=function(r,V){var I=VK(V,"id");I=I.replace(":",";");var d=VK(V,"mimeType"),a=VK(V,"codecs");d=a?d+'; codecs="'+a+'"':d;a=Number(VK(V,"bandwidth"))/8;var f=Number(IJ(V,"BaseURL").getAttribute(r.W+":contentLength")),e=r.duration&&f?f/r.duration:0;if(eB(d)){var n=Number(VK(V,"width"));var D=Number(VK(V,"height")),x=Number(VK(V,"frameRate")),E=ezi(VK(V,r.W+":projectionType"));a:switch(VK(V,r.W+":stereoLayout")){case "layout_left_right":var N=1;break a;case "layout_top_bottom":N=2;break a;default:N= 0}n=new m6(n,D,x,E,N)}if(fI(d)){var c=Number(VK(V,"audioSamplingRate"));var z=Number(VK(V.getElementsByTagName("AudioChannelConfiguration")[0],"value"));D=Y7p(VK(V,r.W+":spatialAudioType"));c=new iS(c,z,D);a:{z=VK(V,"lang")||"und";if(D=IJ(V,"Role"))if(E=VK(D,"value")||"",g.P9(nXX,E)){D=z+"."+nXX[E];x=E==="main";r=VK(V,r.W+":langName")||z+" - "+E;z=new g.Cp(r,D,x);break a}z=void 0}}if(V=IJ(V,"ContentProtection"))if(V.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var M={};for(V= V.firstChild;V!=null;V=V.nextSibling)V instanceof Element&&/SystemURL/.test(V.nodeName)&&(r=V.getAttribute("type"),D=V.textContent,r&&D&&(M[r]=D.trim()))}else M=void 0;return new qP(I,d,{audio:c,video:n,uo:z,Cq:M,VH:a,fQ:e,contentLength:f})}; ezi=function(r){switch(r){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"}}; Y7p=function(r){switch(r){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"}}; xUZ=function(r,V){V=V===void 0?"":V;r.state=1;r.Ws=(0,g.m)();return U$i(V||r.sourceUrl).then(function(I){if(!r.h0()){r.jr=I.status;I=I.responseText;var d=new DOMParser;I=cz(d,l3v(I),"text/xml").getElementsByTagName("MPD")[0];r.QH=Tgh(VK(I,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(I.attributes){d=g.H(I.attributes);for(var a=d.next();!a.done;a=d.next())if(a=a.value,a.value==="http://youtube.com/yt/2012/10/10"){d=a.name.split(":")[1];break b}}d=""}r.W=d;r.isLive=r.QH=r.QH}; Nmg=function(r){r.C&&r.C.stop()}; DUh=function(r){var V=r.QH;isFinite(V)&&(yK(r)?r.refresh():(V=Math.max(0,r.Ws+V-(0,g.m)()),r.C||(r.C=new g.hz(r.refresh,V,r),g.S(r,r.C)),r.C.start(V)))}; sLS=function(r){r=r.G;for(var V in r){var I=r[V].index;if(I.isLoaded())return I.xX()+1}return 0}; AD=function(r){return r.gH?r.gH-(r.L||r.timestampOffset):0}; Gh=function(r){return r.n8?r.n8-(r.L||r.timestampOffset):0}; F5=function(r){if(!isNaN(r.R7))return r.R7;var V=r.G,I;for(I in V){var d=V[I].index;if(d.isLoaded()&&!YY(V[I].info.mimeType)){V=0;for(I=d.PG();I<=d.xX();I++)V+=d.getDuration(I);V/=d.Ti();V=Math.round(V/.5)*.5;d.Ti()>10&&(r.R7=V);return V}if(r.isLive&&(d=V[I],d.y7))return d.y7}return NaN}; c3j=function(r,V){r=JhA(r.G,function(d){return d.index.isLoaded()}); if(!r)return NaN;r=r.index;var I=r.m5(V);return r.getStartTime(I)===V?V:I=0&&a.segments.splice(f,1)}}}; Mrp=function(r){for(var V in r.G)YY(r.G[V].info.mimeType)||$PA(r.G[V].index,Infinity)}; JD=function(r,V,I){for(var d in r.G){var a=r.G[d].index,f=V,e=I;a.Zp&&(f&&(a.jg=Math.max(a.jg,f)),e&&(a.iP=Math.max(a.iP||0,e)))}I&&(r.kc=I/1E3)}; CfU=function(r){r.n8=0;r.gH=0;r.Bp=0}; ZA=function(r){return r.L8&&r.isManifestless?r.isLiveHeadPlayable:r.isLive}; W5=function(r,V,I){X5===null&&(X5=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(uTh&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return X5||I!=="9"&&I!=="("?X5||I!=="9h"&&I!=="(h"||(r='video/webm; codecs="vp9.2"'):r='video/webm; codecs="vp9"',r;if(!X5&&!B5||r!=='video/webm; codecs="vp9"'&&r!=='video/webm; codecs="vp9.2"')return r; I="00";var d="08",a="01",f="01",e="01";r==='video/webm; codecs="vp9.2"'&&(I="02",d="10",V.primaries==="bt2020"&&(e=a="09"),V.G==="smpte2084"&&(f="16"),V.G==="arib-std-b67"&&(f="18"));return'video/webm; codecs="'+["vp09",I,"51",d,"01",a,f,e,"00"].join(".")+'"'}; Sq=function(r,V,I){r=""+r+(V>49?"p60":V>32?"p48":"");V=kN()[r];if(V!=null&&V>0)return V;V=gb.get(r);if(V!=null&&V>0)return V;I=I==null?void 0:I.get(r);return I!=null&&I>0?I:8192}; TmA=function(r){this.mM=r;this.Bp=this.UO=this.n8=this.W=this.Y=this.a7=this.TQ=this.QH=!1;this.L=this.C=0;this.EE=!1;this.kc=!0;this.L8=!1;this.WZ=0;this.j2=this.bL=!1;this.Hy=!0;this.p8=this.R7=!1;this.G={};this.Qa=this.M2=this.disableAv1=this.DM=this.By=this.Mk=this.ya=this.X=this.j=!1;this.ll=this.mM.U("html5_disable_aac_preference");this.dH=Infinity;this.GQ=0;this.gH=this.mM.Ko();this.rH=this.mM.experiments.uL("html5_enable_vp9_fairplay");this.Gd=this.mM.U("html5_force_av1_for_testing");this.Ws= g.zM(this.mM.experiments,"html5_av1_ordinal_cap");this.MG=this.mM.U("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Py=this.mM.U("html5_account_onesie_format_selection_during_format_filter");this.VH=g.zM(this.mM.experiments,"html5_max_byterate");this.X_=this.mM.U("html5_enable_iamf_audio");this.NJ=this.mM.experiments.uL("html5_allow_capability_merge");this.CF=this.mM.U("html5_enable_encrypted_av1")}; seU=function(r){if(r.TQ)return["f"];if(g.p5("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var V=["9h","9","h","8"];r.CF&&V.push("1e");V=V.concat(["(h","(","H","*"]);r.bL&&(V.unshift("1"),V.unshift("1h"));r.UO&&V.unshift("h");r.V&&(V=(HPS[r.V]||[r.V]).concat(V));return V}; YUZ=function(r){var V=["o","a","A"];r.GQ===1&&(r.Y&&(V=["mac3","MAC3"].concat(V)),r.W&&(V=["meac3","MEAC3"].concat(V)),r.X_&&(V=["i","I"].concat(V)));r.QH&&(V=["so","sa"].concat(V));!r.Bp||r.n8||r.S||r.ll||V.unshift("a");r.S&&(V=(HPS[r.S]||[r.S]).concat(V));return V}; is=function(r,V,I,d){V=V===void 0?{}:V;if(d===void 0?0:d)return V.disabled=1,0;if(Gb(r.W,Fq.AV1_CODECS)&&Gb(r.W,Fq.HEIGHT)&&Gb(r.W,Fq.BITRATE))return V.isCapabilityUsable=1,8192;try{var a=U_X();if(a)return V.localPref=a}catch(n){}d=1080;a=navigator.hardwareConcurrency;a<=2&&(d=480);V.coreCount=a;if(a=g.zM(r.experiments,"html5_default_av1_threshold"))d=V["default"]=a;!r.U("html5_disable_av1_arm_check")&&z9j()&&(V.isArm=1,d=240);if(r=r.W.bL)V.mcap=r,d=Math.max(d,r);if(I){var f,e;if(r=(f=I.videoInfos.find(function(n){return h4(n)}))== null?void 0:(e=f.X)==null?void 0:e.powerEfficient)d=8192,V.isEfficient=1; I=I.videoInfos[0].video;f=Math.min(Sq("1",I.fps),Sq("1",30));V.perfCap=f;d=Math.min(d,f);I.isHdr()&&!r&&(V.hdr=1,d*=.75)}else I=Sq("1",30),V.perfCap30=I,d=Math.min(d,I),I=Sq("1",60),V.perfCap60=I,d=Math.min(d,I);return V.av1Threshold=d}; Uq=function(r,V,I,d){this.flavor=r;this.keySystem=V;this.X=I;this.experiments=d;this.G={};this.L8=this.keySystemAccess=null;this.Gp=this.XC=-1;this.Le=null;this.S=!!d&&d.uL("edge_nonprefixed_eme");d&&d.uL("html5_enable_vp9_fairplay")}; mc=function(r){return r.S?!1:!r.keySystemAccess&&!!QK()&&r.keySystem==="com.microsoft.playready"}; us=function(r){return r.keySystem==="com.microsoft.playready"}; pp=function(r){return!r.keySystemAccess&&!!QK()&&r.keySystem==="com.apple.fps.1_0"}; v5=function(r){return r.keySystem==="com.youtube.fairplay"}; qY=function(r){return r.keySystem==="com.youtube.fairplay.sbdl"}; g.P5=function(r){return r.flavor==="fairplay"}; QK=function(){var r=window,V=r.MSMediaKeys;kQ()&&!V&&(V=r.WebKitMediaKeys);return V&&V.isTypeSupported?V:null}; k$=function(r){return navigator.requestMediaKeySystemAccess?g.Zk&&!g.qL()?tO("45"):g.kw||g.MA?r.uL("edge_nonprefixed_eme"):g.oJ?tO("47"):g.WQ&&r.uL("html5_enable_safari_fairplay")?!1:!0:!1}; wbA=function(r,V,I,d){var a=PR(),f=(I=a||I&&kQ())?["com.youtube.fairplay"]:["com.widevine.alpha"];V&&f.unshift("com.youtube.widevine.l3");a&&d&&f.unshift("com.youtube.fairplay.sbdl");return I?f:r?[].concat(g.R(f),g.R(hD.playready)):[].concat(g.R(hD.playready),g.R(f))}; r$=function(r,V,I,d,a){d=d===void 0?!1:d;g.X.call(this);this.mM=V;this.useCobaltWidevine=d;this.Hs=a;this.X=[];this.S={};this.G={};this.callback=null;this.W=!1;this.Y=[];this.initialize(r,!I)}; OPv=function(r,V){r.callback=V;r.Y=[];k$(r.mM.experiments)?Vi(r):bPA(r)}; Vi=function(r){if(!r.h0())if(r.X.length===0)r.callback(r.Y);else{var V=r.X[0],I=r.S[V],d=WHA(r,I);if(Ij&&Ij.keySystem===V&&Ij.n8c===JSON.stringify(d))r.Hs("remksa",{re:!0}),$UO(r,I,Ij.keySystemAccess);else{var a,f;r.Hs("remksa",{re:!1,ok:(f=(a=Ij)==null?void 0:a.keySystem)!=null?f:""});Ij=void 0;navigator.requestMediaKeySystemAccess(V,d).then(Fc(function(e){$UO(r,I,e,d)}),Fc(function(){r.W=!r.W&&r.S[r.X[0]].flavor==="widevine"; r.W||r.X.shift();Vi(r)}))}}}; $UO=function(r,V,I,d){if(!r.h0()){d&&(Ij={keySystem:V.keySystem,keySystemAccess:I,n8c:JSON.stringify(d)});V.keySystemAccess=I;if(us(V)){I=LN();d=g.H(Object.keys(r.G[V.flavor]));for(var a=d.next();!a.done;a=d.next())a=a.value,V.G[a]=!!I.canPlayType(a)}else{I=V.keySystemAccess.getConfiguration();if(I.audioCapabilities)for(d=g.H(I.audioCapabilities),a=d.next();!a.done;a=d.next())KHA(r,V,a.value);if(I.videoCapabilities)for(I=g.H(I.videoCapabilities),d=I.next();!d.done;d=I.next())KHA(r,V,d.value)}r.Y.push(V); r.useCobaltWidevine||r.U("html5_enable_vp9_fairplay")&&qY(V)?(r.X.shift(),Vi(r)):r.callback(r.Y)}}; KHA=function(r,V,I){r.U("log_robustness_for_drm")?V.G[I.contentType]=I.robustness||!0:V.G[I.contentType]=!0}; WHA=function(r,V){var I={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(r.U("html5_enable_vp9_fairplay")&&v5(V))return I.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),I.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[I];us(V)&&(I.initDataTypes=["keyids","cenc"]);for(var d=g.H(Object.keys(r.G[V.flavor])),a=d.next();!a.done;a=d.next()){a=a.value;var f=a.indexOf("audio/")===0,e=f?I.audioCapabilities:I.videoCapabilities;V.flavor!== "widevine"||r.W?e.push({contentType:a}):f?e.push({contentType:a,robustness:"SW_SECURE_CRYPTO"}):(g.Zk&&g.p5("windows nt")&&!r.U("html5_drm_enable_moho")||e.push({contentType:a,robustness:"HW_SECURE_ALL"}),f=a,r.mM.W.S&&a.includes("vp09")&&(f=a+"; experimental=allowed"),e.push({contentType:f,robustness:"SW_SECURE_DECODE"}),d$(r.mM)==="MWEB"&&(ax()||vR())&&(r.Hs("swcrypto",{}),e.push({contentType:a,robustness:"SW_SECURE_CRYPTO"})))}return[I]}; bPA=function(r){if(QK()&&(g.WQ||rs))r.Y.push(new Uq("fairplay","com.apple.fps.1_0","",r.mM.experiments));else{var V=Rzi(),I=g.z6(r.X,function(d){var a=r.S[d],f=!1,e=!1,n;for(n in r.G[a.flavor])V(n,d)&&(a.G[n]=!0,f=f||n.indexOf("audio/")===0,e=e||n.indexOf("video/")===0);return f&&e}); I&&r.Y.push(r.S[I]);r.X=[]}r.callback(r.Y)}; Rzi=function(){var r=QK();if(r){var V=r.isTypeSupported;return function(d,a){return V(a,d)}}var I=LN(); return I&&(I.addKey||I.webkitAddKey)?function(d,a){return!!I.canPlayType(d,a)}:function(){return!1}}; trX=function(r){this.experiments=r;this.G=2048;this.Y=0;this.kc=(this.L=this.U("html5_streaming_resilience"))?.5:.25;var V=V===void 0?0:V;this.S=g.zM(this.experiments,"html5_media_time_weight_prop")||V;this.QH=g.zM(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.V=(this.W=this.experiments.uL("html5_consider_end_stall"))&&aj;this.X=this.experiments.uL("html5_measure_max_progress_handling");this.j=this.U("html5_treat_requests_pre_elbow_as_metadata");this.C=this.U("html5_media_time_weight")|| !!this.S;this.U("html5_sabr_live_audio_early_return_fix")&&aj&&(this.G=65536)}; y3A=function(r,V){this.G=void 0;this.experimentIds=r?r.split(","):[];this.flags=a6(V||"","&");r={};V=g.H(this.experimentIds);for(var I=V.next();!I.done;I=V.next())r[I.value]=!0;this.experiments=r}; g.zM=function(r,V){r=r.flags[V];JSON.stringify(r);return Number(r)||0}; fx=function(r,V){return(r=r.flags[V])?r.toString():""}; A3Z=function(r){if(r=r.flags.html5_web_po_experiment_ids)if(r=r.replace(/\[ *(.*?) *\]/,"$1"))return r.split(",").map(Number);return[]}; GNj=function(r){if(r.G)return r.G;if(r.experimentIds.length<=1)return r.G=r.experimentIds,r.G;var V=[].concat(g.R(r.experimentIds)).map(function(d){return Number(d)}); V.sort();for(var I=V.length-1;I>0;--I)V[I]-=V[I-1];r.G=V.map(function(d){return d.toString()}); r.G.unshift("v1");return r.G}; l7A=function(r){return FHi.then(r)}; e4=function(r,V,I){this.experiments=r;this.n8=V;this.R7=I===void 0?!1:I;this.kc=!!g.Pr("cast.receiver.platform.canDisplayType");this.V={};this.j=!1;this.X=new Map;this.L=!0;this.W=this.S=!1;this.G=new Map;this.bL=0;this.GQ=this.experiments.uL("html5_disable_vp9_encrypted");this.Y=this.experiments.uL("html5_enable_encrypted_av1");r=g.Pr("cast.receiver.platform.getValue");if(V=!this.kc&&r)V=r("max-video-resolution-vpx");this.C=V||null;LHA(this);this.S=!!(PR()&&ud()>=21)}; MuX=function(r,V,I){I=I===void 0?1:I;var d=V.itag;if(d==="0")return!0;var a=V.mimeType;if(V.A0==="1e"&&!r.Y)return"dav1enc";if(h4(V)&&r.j)return"dav1";if(V.video&&(V.video.isHdr()||V.video.primaries==="bt2020")&&!(Gb(r,Fq.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(d==="338"&&!(g.Zk?tO(53):g.oJ&&tO(64)))return"dopus";var f=I;f=f===void 0?1:f; I={};V.video&&(V.video.width&&(I[Fq.WIDTH.name]=V.video.width),V.video.height&&(I[Fq.HEIGHT.name]=V.video.height),V.video.fps&&(I[Fq.FRAMERATE.name]=V.video.fps*f),V.video.G&&(I[Fq.EOTF.name]=V.video.G),V.VH&&(I[Fq.BITRATE.name]=V.VH*8*f),V.A0==="("&&(I[Fq.CRYPTOBLOCKFORMAT.name]="subsample"),V.video.projectionType==="EQUIRECTANGULAR"||V.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||V.video.projectionType==="MESH")&&(I[Fq.DECODETOTEXTURE.name]="true");V.audio&&V.audio.numChannels&&(I[Fq.CHANNELS.name]= V.audio.numChannels);r.S&&Pq(V)&&(I[Fq.EXPERIMENTAL.name]="allowed");f=g.H(Object.keys(Fq));for(var e=f.next();!e.done;e=f.next()){e=Fq[e.value];var n;if(n=I[e.name])if(n=!(e===Fq.EOTF&&V.mimeType.indexOf("vp09.02")>0)){n=e;var D=V;n=!(r.experiments.uL("html5_ignore_h264_framerate_cap")&&n===Fq.FRAMERATE&&zjU(D))}if(n)if(Gb(r,e))if(r.C){if(r.C[e.name]1080&&V.Cq&& (a+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||r.experiments.uL("html5_enable_new_hvc_enc")?r.experiments.uL("html5_enable_appletv5_cdm_720p")&&PR()&&ud()>=21&&g.p5("appletv5")&&(d==="410"||d==="845")?!0:r.isTypeSupported(a)?!0:"tpus":"newhvc"}; Yg=function(){var r=vR()&&!tO(29),V=g.p5("google tv")&&g.p5("chrome")&&!tO(30);return r||V?!1:bWr()}; J3h=function(r,V,I){var d=480;V=g.H(V);for(var a=V.next();!a.done;a=V.next()){a=a.value;var f=a.video.qualityOrdinal;f<=1080&&f>d&&MuX(r,a,I)===!0&&(d=f)}return d}; g.nx=function(r,V){V=V===void 0?!1:V;return Yg()&&r.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!V&&r.canPlayType(LN(),"application/x-mpegURL")?!0:!1}; Xbj=function(r){ZPZ(function(){for(var V=g.H(Object.keys(Fq)),I=V.next();!I.done;I=V.next())Gb(r,Fq[I.value])})}; Gb=function(r,V){V.name in r.V||(r.V[V.name]=BmZ(r,V));return r.V[V.name]}; BmZ=function(r,V){if(r.C)return!!r.C[V.name];if(V===Fq.BITRATE&&r.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!r.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(V===Fq.AV1_CODECS)return r.isTypeSupported("video/mp4; codecs="+V.valid)&&!r.isTypeSupported("video/mp4; codecs="+V.FE);if(V.video){var I='video/webm; codecs="vp9"';r.isTypeSupported(I)||(I='video/mp4; codecs="avc1.4d401e"')}else I='audio/webm; codecs="opus"', r.isTypeSupported(I)||(I='audio/mp4; codecs="mp4a.40.2"');return r.isTypeSupported(I+"; "+V.name+"="+V.valid)&&!r.isTypeSupported(I+"; "+V.name+"="+V.FE)}; j4=function(r){r.W=!0;r.experiments.uL("html5_ssap_update_capabilities_on_change")&&gXi(r)}; S7Z=function(r,V){var I=0;r.X.has(V)&&(I=g.J(r.X.get(V)).fX);r.X.set(V,{fX:I+1,SQ:Math.pow(2,I+1)});j4(r)}; RC=function(r){for(var V=[],I=g.H(r.G.keys()),d=I.next();!d.done;d=I.next()){d=d.value;var a=r.G.get(d);V.push(d+"_"+a.maxWidth+"_"+a.maxHeight)}return V.join(".")}; gXi=function(r){r.QH=[];for(var V=g.H(r.G.values()),I=V.next();!I.done;I=V.next()){I=I.value;var d=I.A0;r.experiments.uL("html5_ssap_force_mp4_aac")&&d!=="a"&&d!=="h"||r.X.has(d)||r.j&&(d==="1"||d==="1h"||r.Y&&d==="1e")||r.QH.push(I)}}; jeX=function(r,V){for(var I=new Map,d=g.H(r.G.keys()),a=d.next();!a.done;a=d.next()){a=a.value;var f=a.split("_")[0];V.has(f)||I.set(a,r.G.get(a))}r.G=I}; xPv=function(r,V,I){var d,a=((d=I.video)==null?void 0:d.fps)||0;d=V+"_"+a;var f=!!I.audio,e={itag:I.itag,A0:V,HH:f};if(f)e.numChannels=I.audio.numChannels;else{var n=I.video;e.maxWidth=n==null?void 0:n.width;e.maxHeight=n==null?void 0:n.height;e.maxFramerate=a;Gb(r,Fq.BITRATE)&&(e.maxBitrateBps=I.VH*8);e.xW=n==null?void 0:n.isHdr()}n=r.G.get(d);n?f||(I=Math.max(n.maxWidth||0,n.maxHeight||0)>Math.max(e.maxWidth||0,e.maxHeight||0)?n:e,V={itag:I.itag,A0:V,HH:f,maxWidth:Math.max(n.maxWidth||0,e.maxWidth|| 0),maxHeight:Math.max(n.maxHeight||0,e.maxHeight||0),maxFramerate:a,xW:I.xW},Gb(r,Fq.BITRATE)&&(V.maxBitrateBps=I.maxBitrateBps),r.G.set(d,V)):r.G.set(d,e)}; Edh=function(r,V,I){var d,a=((d=I.video)==null?void 0:d.fps)||0;d=V+"_"+a;var f=!!I.audio,e=r.G.get(d);a:{var n=r.G.get(d),D=!!I.audio;if(n){if(D){var x=!1;break a}var E;if(!D&&((x=I.video)==null?0:x.height)&&n.maxHeight&&n.maxHeight>=((E=I.video)==null?void 0:E.height)){x=!1;break a}}x=!0}x&&(x=I.itag,V=e?e:{itag:x,A0:V,HH:f},f?V.numChannels=I.audio.numChannels:(f=I.video,V.maxWidth=f==null?void 0:f.width,V.maxHeight=f==null?void 0:f.height,V.maxFramerate=a,Gb(r,Fq.BITRATE)&&(V.maxBitrateBps=I.VH* 8),V.xW=f==null?void 0:f.isHdr()),r.G.set(d,V))}; LHA=function(r){var V;(V=navigator.mediaCapabilities)!=null&&V.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(I){I.smooth&&I.powerEfficient&&(r.bL=2160)})}; DB=function(){g.NK.call(this);this.items={}}; iPA=function(r,V,I){this.encryptedClientKey=V;this.W=I;this.G=new Uint8Array(r.buffer,0,16);this.S=new Uint8Array(r.buffer,16)}; UUS=function(r){r.X||(r.X=new g.KX(r.G));return r.X}; xg=function(r){try{return a3(r)}catch(V){return null}}; QLh=function(r,V){if(!V&&r)try{V=JSON.parse(r)}catch(a){}if(V){r=V.clientKey?xg(V.clientKey):null;var I=V.encryptedClientKey?xg(V.encryptedClientKey):null,d=V.keyExpiresInSeconds?Number(V.keyExpiresInSeconds)*1E3+(0,g.m)():null;r&&I&&d&&(this.G=new iPA(r,I,d));V.onesieUstreamerConfig&&(this.onesieUstreamerConfig=xg(V.onesieUstreamerConfig)||void 0);this.baseUrl=V.baseUrl}}; Na=function(){this.data=new Uint8Array(2048);this.pos=0;EL||(EL=Ln("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; sL=function(r,V){r.add(V==null||isNaN(V)?0:V+1)}; c8=function(r){this.G=this.X=0;this.alpha=Math.exp(Math.log(.5)/r)}; zt=function(r){this.X=r===void 0?15:r;this.values=new Float64Array(176);this.G=new Float64Array(11);this.S=new Float64Array(16)}; Ma=function(r,V,I,d){I=I===void 0?.5:I;d=d===void 0?0:d;this.resolution=V;this.X=0;this.S=!1;this.Hb=!0;this.G=Math.round(r*this.resolution);this.values=Array(this.G);for(r=0;r0)V=r.byterate,this.QH=!0;else{var d; I=(((d=navigator.connection)==null?void 0:d.downlink)||0)*64*1024;I>0&&(V=I,this.QH=!0)}this.S.V_(this.policy.C,V);r.delay>0&&this.j.V_(1,Math.min(r.delay,2));r.stall>0&&this.L.V_(1,r.stall);r.init>0&&(this.p8=Math.min(r.init,this.p8));r.interruptions&&(this.Y=this.Y.concat(r.interruptions),this.Y.length>16&&this.Y.pop());this.kc=(0,g.m)();this.policy.L>0&&(this.TQ=new g.hz(this.L8,this.policy.L,this),g.S(this,this.TQ),this.TQ.start())}; Tt=function(r,V,I,d){r.S.V_(d===void 0?V:d,I/V);r.C=(0,g.m)()}; u9i=function(r){r.W||(r.W=(0,g.m)());r.policy.V&&(r.C=(0,g.m)())}; pbO=function(r,V){if(r.W){var I=V-r.W;if(I<6E4){if(I>1E3){var d=r.interruptions;d.push(Math.ceil(I));d.sort(function(a,f){return f-a}); d.length>16&&d.pop()}r.GQ+=I}}r.W=V}; H8=function(r,V,I,d,a,f){f=f===void 0?!1:f;r.R7.V_(V,I/V);r.C=(0,g.m)();a||r.V.V_(1,V-d);f||(r.W=0);r.kc>-1&&(0,g.m)()-r.kc>3E4&&vXZ(r)}; w$=function(r,V,I){V=Math.max(V,r.X.G);r.L.V_(1,I/V)}; bn=function(r){r=r.j.PH()+r.n8.PH()||0;r=isNaN(r)?.5:r;return r=Math.min(r,5)}; OL=function(r,V,I){isNaN(I)||(r.bL+=I);isNaN(V)||(r.Ws+=V)}; W8=function(r){r=r.S.PH();return r>0?r:1}; $g=function(r,V,I){V=V===void 0?!1:V;I=I===void 0?1048576:I;var d=W8(r);d=1/((r.L.PH()||0)*r.policy.QH+1/d);var a=r.R7.PH();a=a>0?a:1;var f=Math.max(d,a);r.policy.W>0&&a=4E3}; Pfv=function(r){this.experiments=r;this.G=17;this.S=13E4;this.C=.5;this.X=!1;this.kc=this.U("html5_use_histogram_for_bandwidth");this.Y=!1;this.W=g.zM(this.experiments,"html5_auxiliary_estimate_weight");this.QH=g.zM(this.experiments,"html5_stall_factor")||1;this.L=g.zM(this.experiments,"html5_check_for_idle_network_interval_ms");this.j=this.experiments.uL("html5_trigger_loader_when_idle_network");this.V=this.experiments.uL("html5_sabr_fetch_on_idle_network_preloaded_players")}; kNZ=function(r,V){r=r===void 0?{}:r;V=V===void 0?{}:V;g.X.call(this);var I=this;this.values=r;this.Se=V;this.X={};this.S=this.G=0;this.Y=new g.hz(function(){oXj(I)},1E4); g.S(this,this.Y)}; Rj=function(r,V){hzZ(r,V);return r.values[V]&&r.Se[V]?r.values[V]/Math.pow(2,r.G/r.Se[V]):0}; hzZ=function(r,V){r.values[V]||(V=BiA(),r.values=V.values||{},r.Se=V.halfLives||{},r.X=V.values?Object.assign({},V.values):{})}; oXj=function(r){var V=BiA();if(V.values){V=V.values;for(var I={},d=g.H(Object.keys(r.values)),a=d.next();!a.done;a=d.next())a=a.value,V[a]&&r.X[a]&&(r.values[a]+=V[a]-r.X[a]),I[a]=Rj(r,a);r.X=I}V=r.Se;I={};I.values=r.X;I.halfLives=V;g.X2("yt-player-memory",I,2592E3)}; v8=function(r,V,I,d,a){g.X.call(this);this.webPlayerContextConfig=V;this.hW=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.wy=this.Qa=this.XN=this.Ol=this.userDisplayName=this.userDisplayImage=this.jI="";this.G={};this.X_={};this.controlsType="0";this.Py=NaN;this.a7=!1;this.IB=(0,g.m)();this.rH=0;this.Rk=this.Vu=!1;this.sX=!0;this.preferGapless=this.tW=this.j7=this.S=this.KJ=!1;this.Ld=[];this.Nm=!1;this.WG=0;r=r?g.IZ(r):{};V&&V.csiPageType&&(this.csiPageType=V.csiPageType);V&&V.csiServiceName&& (this.csiServiceName=V.csiServiceName);V&&V.preferGapless&&(this.preferGapless=V.preferGapless);this.experiments=new y3A(V?V.serializedExperimentIds:r.fexp,V?V.serializedExperimentFlags:r.fflags);this.forcedExperiments=V?V.serializedForcedExperimentIds:Dp("",r.forced_experiments)||void 0;this.cspNonce=(V==null?0:V.cspNonce)?V.cspNonce:Dp("",r.csp_nonce);this.U("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(dA){f=""}this.LJ=f;this.ancestorOrigins=(d=window.location.ancestorOrigins)? Array.from(d):[];this.Y=Ym(!1,V?V.isEmbed:r.is_embed);if(V&&V.device){if(d=V.device,d.androidOsExperience&&(this.G.caoe=""+d.androidOsExperience),d.androidPlayServicesVersion&&(this.G.capsv=""+d.androidPlayServicesVersion),d.brand&&(this.G.cbrand=d.brand),d.browser&&(this.G.cbr=d.browser),d.browserVersion&&(this.G.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.G.ccrv=""+d.cobaltReleaseVehicle),this.G.c=d.interfaceName||"WEB",this.G.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.G.ctheme= d.interfaceTheme),this.G.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.G.cmodel=d.model),d.network&&(this.G.cnetwork=d.network),d.os&&(this.G.cos=d.os),d.osVersion&&(this.G.cosver=d.osVersion),d.platform&&(this.G.cplatform=d.platform),f=fx(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.X_.cchip=d.chipset),d.cobaltAppVersion&&(this.X_.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.X_.cfrmver=d.firmwareVersion),d.deviceYear&&(this.X_.crqyear= d.deviceYear)}else this.G.c=r.c||"web",this.G.cver=r.cver||"html5",this.G.cplayer="UNIPLAYER";this.loaderUrl=V?this.Y||r7j(this)&&V.loaderUrl?V.loaderUrl||"":this.LJ:this.Y||r7j(this)&&r.loaderUrl?Dp("",r.loaderUrl):this.LJ;this.Y&&g.qp("yt.embedded_player.embed_url",this.loaderUrl);this.j=V0(this.loaderUrl,VoA);d=this.loaderUrl;var e=e===void 0?!1:e;this.Ow=rk(V0(d,Iei),d,e,"Trusted Ad Domain URL");this.M2=Ym(!1,r.privembed);this.protocol=this.LJ.indexOf("http:")===0?"http":"https";this.Kj=kZZ((V? V.customBaseYoutubeUrl:r.BASE_YT_URL)||"")||kZZ(this.LJ)||this.protocol+"://www.youtube.com/";e=V?V.eventLabel:r.el;d="detailpage";e==="adunit"?d=this.Y?"embedded":"detailpage":e==="embedded"||this.j?d=no(d,e,djA):e&&(d="embedded");this.n8=d;KgX();e=null;d=V?V.playerStyle:r.ps;f=g.CG(aej,d);!d||f&&!this.j||(e=d);this.playerStyle=e;this.C=g.CG(aej,this.playerStyle);this.houseBrandUserStatus=V==null?void 0:V.houseBrandUserStatus;this.kc=this.C&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.B9=!this.kc;this.p8=Ym(!1,r.disableplaybackui);this.disablePaidContentOverlay=Ym(!1,V==null?void 0:V.disablePaidContentOverlay);this.disableSeek=Ym(!1,V==null?void 0:V.disableSeek);this.enableSpeedOptions=(V==null?void 0:V.enableSpeedOptions)||(LN().defaultPlaybackRate?tK||g.ds||yi?g.oJ&&tO("20")||g.Zk&&tO("4")||g.AK&&tO("11")||ha():!(g.AK&&!g.p5("chrome")||tK||g.p5("android")||g.p5("silk")):!1);this.yp=Ym(!1,r.enable_faster_speeds);var n;this.supportsVarispeedExtendedFeatures=(n=V==null?void 0: V.supportsVarispeedExtendedFeatures)!=null?n:!1;this.X=Ym(this.playerStyle==="blazer",r.is_html5_mobile_device||V&&V.isMobileDevice);this.Ws=Ix()||ax();this.c9=this.U("mweb_allow_background_playback")?!1:this.X&&!this.C;this.TQ=gE();this.Ne=g.Gt;var D;this.zK=!!(V==null?0:(D=V.embedsHostFlags)==null?0:D.optOutApiDeprecation);var x;this.Qp=!!(V==null?0:(x=V.embedsHostFlags)==null?0:x.allowPfpImaIntegration);this.KC=this.U("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var E;V?V.hideInfo!== void 0&&(E=!V.hideInfo):E=r.showinfo;this.TE=g.FG(this)&&!this.zK||Ym(!ln(this)&&!Lx(this)&&!this.C,E);this.Ke=V?!!V.mobileIphoneSupportsInlinePlayback:Ym(!1,r.playsinline);n=this.X&&JK&&ZB!=null&&ZB>0&&ZB<=2.3;D=V?V.useNativeControls:r.use_native_controls;this.L=g.FG(this)&&this.X;x=this.X&&!this.L;D=g.XG(this)||!n&&Ym(x,D)?"3":"1";this.disableOrganicUi=!(V==null||!V.disableOrganicUi);x=V?V.controlsType:r.controls;this.controlsType=this.disableOrganicUi||x==="0"||x===0?"0":D;this.G6=this.X;this.color= no("red",V?V.progressBarColor:r.color,feS);this.WR=this.controlsType==="3";this.dH=!this.Y;this.R0=(D=!this.dH&&!Lx(this)&&!this.kc&&!this.C&&!ln(this))&&!this.WR&&this.controlsType==="1";this.NJ=g.B8(this)&&D&&this.controlsType==="0"&&!this.R0&&!(V==null?0:V.embedsEnableEmc3ds);this.vR=this.TC=n;this.Hy=(this.controlsType==="3"||this.X||Ym(!1,r.use_media_volume))&&!this.L;this.Tw=rs&&!g.tS(601)?!1:!0;this.au=this.Y||!1;this.Bp=Lx(this)?"":(this.loaderUrl||r.post_message_origin||"").substring(0,128); this.widgetReferrer=Dp("",V?V.widgetReferrer:r.widget_referrer);var N;V?V.disableCastApi&&(N=!1):N=r.enablecastapi;N=!this.j||Ym(!0,N);n=!0;V&&V.disableMdxCast&&(n=!1);this.Ja=this.U("enable_cast_for_web_unplugged")&&g.g$(this)&&n||g.ih(this)&&n||N&&n&&this.controlsType==="1"&&!this.X&&(Lx(this)||g.B8(this)||g.S4(this));this.cR=!!window.document.pictureInPictureEnabled||Bq();N=V?!!V.supportsAutoplayOverride:Ym(!1,r.autoplayoverride);this.BH=!(this.X&&!g.FG(this))&&!g.p5("nintendo wiiu")||N;this.GR= (V?!!V.enableMutedAutoplay:Ym(!1,r.mutedautoplay))&&!1;N=(Lx(this)||ln(this))&&this.playerStyle==="blazer";this.xQ=V?!!V.disableFullscreen:!Ym(!0,r.fs);n=g.s3(g.UL(this))&&g.FG(this);this.DM=!this.xQ&&(N||g.ws())&&!n;this.IF=this.U("html5_picture_in_picture_logging_onresize");var c;this.sL=(c=g.zM(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?c:.33;this.U6=this.U("html5_picture_in_picture_blocking_onresize");this.Le=this.U("html5_picture_in_picture_blocking_ontimeupdate"); this.KR=this.U("html5_picture_in_picture_blocking_document_fullscreen");this.Zq=this.U("html5_picture_in_picture_blocking_standard_api");c=vR()&&tO(58)&&!ax();N=oY||typeof MediaSource==="undefined";this.S$=this.U("uniplayer_block_pip")&&(c||N)||this.U6||this.Le||this.Zq;c=g.FG(this)&&!this.zK;var z;V?V.disableRelatedVideos!==void 0&&(z=!V.disableRelatedVideos):z=r.rel;this.CF=c||Ym(!this.C,z);this.aF=Ym(!1,V?V.enableContentOwnerRelatedVideos:r.co_rel);this.V=ax()&&ZB>0&&ZB<=4.4?"_top":"_blank";this.fn= g.S4(this);this.FB=Ym(this.playerStyle==="blazer",V?V.enableCsiLogging:r.enablecsi);switch(this.playerStyle){case "blogger":z="bl";break;case "gmail":z="gm";break;case "gac":z="ga";break;case "ads-preview":z="ap";break;case "books":z="gb";break;case "docs":case "flix":z="gd";break;case "duo":z="gu";break;case "google-live":z="gl";break;case "google-one":z="go";break;case "play":z="gp";break;case "chat":z="hc";break;case "hangouts-meet":z="hm";break;case "photos-edu":case "picasaweb":z="pw";break; default:z="yt"}this.QH=z;this.bL=Dp("",V?V.authorizedUserIndex:r.authuser);this.gH=g.FG(this)&&(this.M2||!sNr()||this.Ws);var M;V?V.disableWatchLater!==void 0&&(M=!V.disableWatchLater):M=r.showwatchlater;this.MG=((z=!this.gH)||!!this.bL&&z)&&Ym(!this.kc,this.j?M:void 0);this.JP=V?V.isMobileDevice||!!V.disableKeyboardControls:Ym(!1,r.disablekb);this.loop=Ym(!1,r.loop);this.pageId=Dp("",V?V.initialDelegatedSessionId:r.pageid);this.u_=Ym(!0,r.canplaylive);this.ya=Ym(!1,r.livemonitor);this.disableSharing= Ym(this.C,V?V.disableSharing:r.ss);(M=V&&this.U("fill_video_container_size_override_from_wpcc")?V.videoContainerOverride:r.video_container_override)?(z=M.split("x"),z.length!==2?M=null:(M=Number(z[0]),z=Number(z[1]),M=isNaN(M)||isNaN(z)||M*z<=0?null:new g.LJ(M,z))):M=null;this.o0=M;this.mute=V?!!V.startMuted:Ym(!1,r.mute);this.storeUserVolume=!this.mute&&Ym(this.controlsType!=="0",V?V.storeUserVolume:r.store_user_volume);M=V?V.annotationsLoadPolicy:r.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:no(void 0,M,Qi);this.captionsLanguagePreference=V?V.captionsLanguagePreference||"":Dp("",r.cc_lang_pref);M=no(2,V?V.captionsLanguageLoadPolicy:r.cc_load_policy,Qi);this.controlsType==="3"&&M===2&&(M=3);this.q3=M;this.ll=V?V.hl||"en_US":Dp("en_US",r.hl);this.region=V?V.contentRegion||"US":Dp("US",r.cr);this.hostLanguage=V?V.hostLanguage||"en":Dp("en",r.host_language);this.P1=!this.M2&&Math.random()=480;this.schedule=new Cx(N,new trX(this.experiments),a);g.S(this,this.schedule);var w;this.enableSafetyMode=(w=V==null?void 0:V.initialEnableSafetyMode)!=null? w:Ym(!1,r.enable_safety_mode);a=this.p8?!1:Lx(this)&&this.playerStyle!=="blazer";var b;V?V.disableAutonav!=null&&(b=!V.disableAutonav):b=r.allow_autonav;this.Gd=Ym(a,!this.kc&&b);this.sendVisitorIdHeader=V?!!V.sendVisitorIdHeader:Ym(!1,r.send_visitor_id_header);var W;this.playerStyle==="docs"&&(V?W=V.disableNativeContextMenu:W=r.disable_native_context_menu);this.disableNativeContextMenu=Ym(!1,W);this.pC=yA(this)&&this.U("enable_skip_intro_button");this.embedConfig=Dp("",V?V.serializedEmbedConfig: r.embed_config);this.GQ=N1(r,g.FG(this));this.S=this.GQ==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(V==null||!V.embedsErrorLinks);this.VM=Ym(!1,r.full_window);var K;this.EE=!((K=this.webPlayerContextConfig)==null?0:K.chromeless);var F;this.livingRoomAppMode=no("LIVING_ROOM_APP_MODE_UNSPECIFIED",r.living_room_app_mode||(V==null?void 0:(F=V.device)==null?void 0:F.livingRoomAppMode),n7A);var l;b=jb(NaN,V==null?void 0:(l=V.device)==null?void 0:l.deviceYear);isNaN(b)||(this.deviceYear=b);this.transparentBackground= V?!!V.transparentBackground:Ym(!1,r.transparent_background);this.showMiniplayerButton=V?!!V.showMiniplayerButton:Ym(!1,r.show_miniplayer_button);var B;g.FG(this)&&!(V==null?0:(B=V.embedsHostFlags)==null?0:B.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=V?!!V.externalFullscreen:Ym(!1,r.external_fullscreen);this.showMiniplayerUiWhenMinimized=V?!!V.showMiniplayerUiWhenMinimized:Ym(!1,r.use_miniplayer_ui);var P;this.sX=(P=r.show_loop_video_toggle)!=null?P:!0;this.ma=Math.random()< 1E-4;this.Fq=r.onesie_hot_config||(V==null?0:V.onesieHotConfig)?new QLh(r.onesie_hot_config,V==null?void 0:V.onesieHotConfig):void 0;this.isTectonic=V?!!V.isTectonic:!!r.isTectonic;this.playerCanaryState=I;this.playerCanaryStage=V==null?void 0:V.canaryStage;this.ZQ=new kNZ;g.S(this,this.ZQ);this.datasyncId=(V==null?void 0:V.datasyncId)||g.kt("DATASYNC_ID");this.k_=g.kt("LOGGED_IN",!1);this.eA=(V==null?void 0:V.allowWoffleManagement)||!1;this.GK=Infinity;this.Xq=NaN;this.livingRoomPoTokenId=V==null? void 0:V.livingRoomPoTokenId;this.U("html5_high_res_logging_always")?this.j7=!0:this.j7=Math.random()*100=0&&r0&&r.ma&&(d.sort(),g.gj(new g.ox("Player client parameters changed after startup",d)));r.userAge=jb(r.userAge,V.user_age);r.jI=Dp(r.jI,V.user_display_email);r.userDisplayImage=Dp(r.userDisplayImage,V.user_display_image);g.dk(r.userDisplayImage)||(r.userDisplayImage= "");r.userDisplayName=Dp(r.userDisplayName,V.user_display_name);r.Ol=Dp(r.Ol,V.user_gender);r.csiPageType=Dp(r.csiPageType,V.csi_page_type);r.csiServiceName=Dp(r.csiServiceName,V.csi_service_name);r.FB=Ym(r.FB,V.enablecsi);r.pageId=Dp(r.pageId,V.pageid);if(I=V.enabled_engage_types)r.enabledEngageTypes=new Set(I.split(","));V.living_room_session_po_token&&(r.uZ=V.living_room_session_po_token.toString())}; qa=function(r,V){return!r.C&&vR()&&tO(55)&&r.controlsType==="3"&&!V}; g.P8=function(r){r=mD(r.Kj);return r==="www.youtube-nocookie.com"?"www.youtube.com":r}; oj=function(r,V,I){return r.protocol+"://i1.ytimg.com/vi/"+V+"/"+(I||"hqdefault.jpg")}; kg=function(r){return Lx(r)&&!g.g$(r)}; g.XG=function(r){return r.U("html5_local_playsinline")?rs&&!g.tS(602)&&!("playsInline"in LN()):rs&&!r.Ke||g.p5("nintendo wiiu")?!0:!1}; d$=function(r){return r.G.c}; g.Ai=function(r){return/^TVHTML5/.test(d$(r))}; g.hK=function(r){return d$(r)==="TVHTML5"}; r7j=function(r){return d$(r)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Ywp=function(r){return r.G.cmodel==="CHROMECAST ULTRA/STEAK"||r.G.cmodel==="CHROMECAST/STEAK"}; g.rv=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; yA=function(r){return/web/i.test(d$(r))}; g.VO=function(r){return d$(r).toUpperCase()==="WEB"}; px=function(r){return d$(r)==="WEB_KIDS"}; g.g$=function(r){return d$(r)==="WEB_UNPLUGGED"}; IU=function(r){return d$(r)==="TVHTML5_UNPLUGGED"}; g.ti=function(r){return g.g$(r)||d$(r)==="TV_UNPLUGGED_CAST"||IU(r)}; g.ih=function(r){return d$(r)==="WEB_REMIX"}; g.dv=function(r){return d$(r)==="WEB_EMBEDDED_PLAYER"}; g.fi=function(r){return(r.deviceIsAudioOnly||!g.Zk||oY||r.controlsType==="3"?!1:g.ds?r.Y&&g.tS(51):!0)||(r.deviceIsAudioOnly||!g.oJ||oY||r.controlsType==="3"?!1:g.ds?r.Y&&g.tS(48):g.tS(38))||(r.deviceIsAudioOnly||!g.AK||oY||r.controlsType==="3"?!1:g.ds?r.Y&&g.tS(37):g.tS(27))||!r.deviceIsAudioOnly&&g.aU&&!TWv()&&g.tS(11)||!r.deviceIsAudioOnly&&g.WQ&&g.tS("604.4")}; xjZ=function(r){if(g.B8(r)&&JK)return!1;if(g.oJ){if(!g.tS(47)||!g.tS(52)&&g.tS(51))return!1}else if(g.WQ)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; NhU=function(r,V){return r.enabledEngageTypes.has(V.toString())||E7X.includes(V)}; Lx=function(r){return r.n8==="detailpage"}; g.B8=function(r){return r.n8==="embedded"}; eQ=function(r){return r.n8==="leanback"}; ln=function(r){return r.n8==="adunit"||r.playerStyle==="gvn"}; g.S4=function(r){return r.n8==="profilepage"}; g.FG=function(r){return r.Y&&g.B8(r)&&!ln(r)&&!r.C}; Y9=function(r){if(!r.userDisplayImage)return"";var V=r.userDisplayImage.split("/");if(V.length===5)return r=V[V.length-1].split("="),r[1]="s20-c",V[V.length-1]=r.join("="),V.join("/");if(V.length===8)return V.splice(7,0,"s20-c"),V.join("/");if(V.length===9)return V[7]+="-s20-c",V.join("/");g.gj(new g.ox("Profile image not a FIFE URL.",r.userDisplayImage));return r.userDisplayImage}; g.ni=function(r){var V=g.P8(r);sSi.includes(V)&&(V="www.youtube.com");return r.protocol+"://"+V}; g.jQ=function(r,V){V=V===void 0?"":V;if(r.hW){var I=new IL,d,a=r.hW();a.signedOut?d="":a.token?d=a.token:a.pendingResult.then(function(f){a.signedOut?I.resolve(""):I.resolve(f.token)},function(f){g.gj(new g.ox("b189348328_oauth_callback_failed",{error:f})); I.resolve(V)}); return d!==void 0?ZJ(d):new L5(I)}return ZJ(V)}; Db=function(r,V){V=V===void 0?"":V;return r.k_?TK(!0):$N(Wp(TK(g.jQ(r,V)),function(I){return TK(!!I)}),function(){return TK(!1)})}; mD=function(r){var V=g.J(g.Rn(r));return(r=Number(g.Ky(r)[4]||null)||null)?V+":"+r:V}; x9=function(r,V){V=V===void 0?!1:V;var I=vq[r],d=c7A[I],a=zWU[r];if(!a||!d)return null;V=new m6(V?a.height:a.width,V?a.width:a.height,a.fps);d=W5(d,V,I);return new qP(r,d,{video:V,VH:a.bitrate/8})}; C2U=function(r){var V=c7A[vq[r]],I=MoO[r];return I&&V?new qP(r,V,{audio:new iS(I.audioSampleRate,I.numChannels)}):null}; Er=function(r){this.G=r}; NC=function(r,V,I,d){if(I)return Ja();I={};var a=LN();V=g.H(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,r.canPlayType(a,f.getInfo().mimeType)||d){var e=f.G.video.quality;if(!I[e]||I[e].getInfo().mE())I[e]=f}r=[];I.auto&&r.push(I.auto);d=g.H(uS);for(a=d.next();!a.done;a=d.next())(a=I[a.value])&&r.push(a);return r.length?ZJ(r):Ja()}; Thh=function(r){this.itag=r.itag;this.url=r.url;this.codecs=r.codecs;this.width=r.width;this.height=r.height;this.fps=r.fps;this.bitrate=r.bitrate;var V;this.X=((V=r.audioItag)==null?void 0:V.split(","))||[];this.DO=r.DO;this.Cq=r.Cq||"";this.uo=r.uo;this.audioChannels=r.audioChannels;this.G=""}; H1X=function(r,V,I,d){V=V===void 0?!1:V;I=I===void 0?!0:I;d=d===void 0?{}:d;var a={};r=g.H(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;if(V&&MediaSource&&MediaSource.isTypeSupported){var e=f.type;f.audio_channels&&(e=e+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(e)){d[f.itag]="tpus";continue}}if(I||!f.drm_families||f.eotf!=="smpte2084"&&f.eotf!=="arib-std-b67"){e=void 0;var n={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},D=f.type.match(/codecs="([^"]*)"/); D=D?D[1]:"";f.audio_track_id&&(e=new g.Cp(f.name,f.audio_track_id,!!f.is_default));var x=f.eotf;f=new Thh({itag:f.itag,url:f.url,codecs:D,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,DO:x?n[x]:void 0,Cq:f.drm_families,uo:e,audioChannels:Number(f.audio_channels)});a[f.itag]=a[f.itag]||[];a[f.itag].push(f)}else d[f.itag]="enchdr"}return a}; wNv=function(r,V,I,d,a){this.S=r;this.X=V;this.W=I;this.cpn=d;this.C=a;this.Y=0;this.G=""}; b1S=function(r,V){r.S.some(function(I){var d;return((d=I.uo)==null?void 0:d.getId())===V}); r.G=V}; sr=function(r,V,I){r.cpn&&(V=g.Ly(V,{cpn:r.cpn}));I&&(V=g.Ly(V,{paired:I}));return V}; O1h=function(r,V){r=r.itag.toString();V!==null&&(r+=V.itag.toString());return r}; WpX=function(r){for(var V=[],I=[],d=g.H(r.X),a=d.next();!a.done;a=d.next())a=a.value,a.bitrate<=r.Y?V.push(a):I.push(a);V.sort(function(f,e){return e.bitrate-f.bitrate}); I.sort(function(f,e){return f.bitrate-e.bitrate}); r.X=V.concat(I)}; ck=function(r,V,I){this.G=r;this.X=V;this.expiration=I;this.po=null}; $jr=function(r,V){if(!(oY||kQ()||PR()))return null;r=H1X(V,r.U("html5_filter_fmp4_in_hls"));if(!r)return null;V=[];for(var I={},d=g.H(Object.keys(r)),a=d.next();!a.done;a=d.next()){a=g.H(r[a.value]);for(var f=a.next();!f.done;f=a.next()){var e=f.value;e.uo&&(f=e.uo.getId(),I[f]||(e=new g.NO(f,e.uo),I[f]=e,V.push(e)))}}return V.length>0?V:null}; A7X=function(r,V,I,d,a,f,e){if(!(oY||kQ()||PR()))return Ja();var n={},D=Kph(I),x=H1X(I,r.U("html5_filter_fmp4_in_hls"),r.W.L,n);if(!x)return e({noplst:1}),Ja();RWA(x);I={};var E=(I.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",I),N;I=[];var c=[],z=[],M=null,w="";d=d&&d.match(/hls_timedtext_playlist/)?new Thh({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,uo:new g.Cp("English","en",!1)}):null;for(var b=g.H(Object.keys(x)),W=b.next();!W.done;W=b.next())if(W=W.value,!r.U("html5_disable_drm_hfr_1080")|| W!=="383"&&W!=="373"){W=g.H(x[W]);for(var K=W.next();!K.done;K=W.next())if(K=K.value,K.width){for(var F=g.H(K.X),l=F.next();!l.done;l=F.next())if(l=l.value,x[l]){K.G=l;break}K.G||(K.G=tor(x,K));if(F=x[K.G])if(I.push(K),K.Cq==="fairplay"&&(N=E),l="",K.DO==="PQ"?l="smpte2084":K.DO==="HLG"&&(l="arib-std-b67"),l&&(w=l),z.push(y7h(F,[K],d,f,K.itag,K.width,K.height,K.fps,D,void 0,void 0,N,l)),!M||K.width*K.height*K.fps>M.width*M.height*M.fps)M=K}else c.push(K)}else n[W]="disdrmhfr";z.reduce(function(B, P){return P.getInfo().isEncrypted()&&B},!0)&&(N=E); a=Math.max(a,0);E=M||{};x=E.fps===void 0?0:E.fps;M=E.width===void 0?0:E.width;E=E.height===void 0?0:E.height;b=r.U("html5_native_audio_track_switching");z.push(y7h(c,I,d,f,"93",M,E,x,D,"auto",a,N,w,b));Object.entries(n).length&&e(n);return NC(r.W,z,qa(r,V),!1)}; y7h=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z){for(var M=0,w="",b=g.H(r),W=b.next();!W.done;W=b.next())W=W.value,w||(w=W.itag),W.audioChannels&&W.audioChannels>M&&(M=W.audioChannels,w=W.itag);a=new qP(a,"application/x-mpegURL",{audio:new iS(0,M),video:new m6(f,e,n,null,void 0,x,void 0,c),Cq:N,fB:w});r=new wNv(r,V,I?[I]:[],d,!!z);r.Y=E?E:1369843;return new ck(a,r,D)}; Kph=function(r){r=g.H(r);for(var V=r.next();!V.done;V=r.next())if(V=V.value,V.url&&(V=V.url.split("expire/"),!(V.length<=1)))return+V[1].split("/")[0];return NaN}; tor=function(r,V){for(var I=g.H(Object.keys(r)),d=I.next();!d.done;d=I.next()){d=d.value;var a=r[d][0];if(!a.width&&a.Cq===V.Cq&&!a.audioChannels)return d}return""}; RWA=function(r){for(var V=new Set,I=g.H(Object.values(r)),d=I.next();!d.done;d=I.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&V.add(d.height));I=[];if(V.size){d=g.H(Object.keys(r));for(var a=d.next();!a.done;a=d.next())if(a=a.value,r[a].length){var f=r[a][0];f.height&&V.has(f.height)&&!f.codecs.startsWith("vp09")&&I.push(a)}}V=g.H(I);for(I=V.next();!I.done;I=V.next())delete r[I.value]}; zp=function(r,V){this.G=r;this.X=V}; Gni=function(r,V,I,d){var a=[];I=g.H(I);for(var f=I.next();!f.done;f=I.next()){var e=f.value;if(e.url){f=new g.lY(e.url,!0);if(e.s){var n=f,D=e.sp,x=L1S(decodeURIComponent(e.s));n[Y[2]](D,encodeURIComponent(x))}n=g.H(Object.keys(d));for(D=n.next();!D.done;D=n.next())D=D.value,f.set(D,d[D]);e=nI(e.type,e.quality,e.itag,e.width,e.height);a.push(new zp(e,f))}}return NC(r.W,a,qa(r,V),!1)}; MC=function(r,V){this.G=r;this.X=V}; Fpj=function(r,V,I){var d=[];I=g.H(I);for(var a=I.next();!a.done;a=I.next())if((a=a.value)&&a.url){var f=nI(a.type,"medium","0");d.push(new MC(f,a.url))}return NC(r.W,d,qa(r,V),!1)}; leA=function(r,V){var I=[],d=nI(V.type,"auto",V.itag);I.push(new MC(d,V.url));return NC(r.W,I,!1,!0)}; J7p=function(r){return r&&LpZ[r]?LpZ[r]:null}; Z1Z=function(r){if(r=r.commonConfig)this.url=r.url,this.urlQueryOverride=r.urlQueryOverride,r.ustreamerConfig&&(this.gr=xg(r.ustreamerConfig)||void 0)}; XNh=function(r,V){var I;if(V=V==null?void 0:(I=V.watchEndpointSupportedOnesieConfig)==null?void 0:I.html5PlaybackOnesieConfig)r.AN=new Z1Z(V)}; g.Ci=function(r){r=r===void 0?{}:r;this.languageCode=r.languageCode||"";this.languageName=r.languageName||null;this.kind=r.kind||"";this.name=r.name===void 0?null:r.name;this.displayName=r.displayName||null;this.id=r.id||null;this.G=r.is_servable||!1;this.isTranslateable=r.is_translateable||!1;this.url=r.url||null;this.vssId=r.vss_id||"";this.isDefault=r.is_default||!1;this.translationLanguage=r.translationLanguage||null;this.xtags=r.xtags||"";this.captionId=r.captionId||""}; g.Hk=function(r){var V={languageCode:r.languageCode,languageName:r.languageName,displayName:g.Tp(r),kind:r.kind,name:r.name,id:r.id,is_servable:r.G,is_default:r.isDefault,is_translateable:r.isTranslateable,vss_id:r.vssId};r.xtags&&(V.xtags=r.xtags);r.captionId&&(V.captionId=r.captionId);r.translationLanguage&&(V.translationLanguage=r.translationLanguage);return V}; g.wv=function(r){return r.translationLanguage?r.translationLanguage.languageCode:r.languageCode}; g.Bhj=function(r){var V=r.vssId;r.translationLanguage&&V&&(V="t"+V+"."+g.wv(r));return V}; g.Tp=function(r){var V=[];if(r.displayName)V.push(r.displayName);else{var I=r.languageName||"";V.push(I);r.kind==="asr"&&I.indexOf("(")===-1&&V.push(" (Automatic Captions)");r.name&&V.push(" - "+r.name)}r.translationLanguage&&V.push(" >> "+r.translationLanguage.languageName);return V.join("")}; Uji=function(r,V,I,d){r||(r=V&&g7X.hasOwnProperty(V)&&Swj.hasOwnProperty(V)?Swj[V]+"_"+g7X[V]:void 0);V=r;if(!V)return null;r=V.match(i1h);if(!r||r.length!==5)return null;if(r=V.match(i1h)){var a=Number(r[3]),f=[7,8,10,5,6];r=!(Number(r[1])===1&&a===8)&&f.indexOf(a)>=0}else r=!1;return I||d||r?V:null}; bL=function(r,V){for(var I={},d=g.H(Object.keys(QSX)),a=d.next();!a.done;a=d.next()){a=a.value;var f=V?V+a:a;f=r[f+"_webp"]||r[f];g.dk(f)&&(I[QSX[a]]=f)}return I}; Or=function(r){var V={};if(!r||!r.thumbnails)return V;r=r.thumbnails.filter(function(n){return!!n.url}); r.sort(function(n,D){return n.width-D.width||n.height-D.height}); for(var I=g.H(Object.keys(mjg)),d=I.next();!d.done;d=I.next()){var a=Number(d.value);d=mjg[a];for(var f=g.H(r),e=f.next();!e.done;e=f.next())if(e=e.value,e.width>=a){a=uzX(e.url);g.dk(a)&&(V[d]=a);break}}(r=r.pop())&&r.width>=1280&&(r=uzX(r.url),g.dk(r)&&(V["maxresdefault.jpg"]=r));return V}; uzX=function(r){return r.startsWith("//")?"https:"+r:r}; Wk=function(r){return r&&r.baseUrl||""}; $9=function(r){r=g.n5(r);for(var V=g.H(Object.keys(r)),I=V.next();!I.done;I=V.next()){I=I.value;var d=r[I];r[I]=Array.isArray(d)?d[0]:d}return r}; pNg=function(r,V){r.botguardData=V.playerAttestationRenderer.botguardData;V=V.playerAttestationRenderer.challenge;V!=null&&(r.DU=V)}; P2g=function(r,V){V=g.H(V);for(var I=V.next();!I.done;I=V.next()){I=I.value;var d=I.interstitials.map(function(e){var n=g.U(e,v7i);if(n)return{is_yto_interstitial:!0,raw_player_response:n};if(e=g.U(e,qwg))return Object.assign({is_yto_interstitial:!0},eJ(e))}); d=g.H(d);for(var a=d.next();!a.done;a=d.next())switch(a=a.value,I.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":r.interstitials=r.interstitials.concat({time:0,playerVars:a,i7:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":r.interstitials=r.interstitials.concat({time:0x7ffffffffffff,playerVars:a,i7:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(I.podConfig.timeToInsertAtMillis);r.interstitials=r.interstitials.concat({time:f,playerVars:a, i7:f===0?5:7})}}}; o7j=function(r,V){if(V=V.find(function(I){return!(!I||!I.tooltipRenderer)}))r.tooltipRenderer=V.tooltipRenderer}; knA=function(r,V){V.subscribeCommand&&(r.subscribeCommand=V.subscribeCommand);V.unsubscribeCommand&&(r.unsubscribeCommand=V.unsubscribeCommand);V.addToWatchLaterCommand&&(r.addToWatchLaterCommand=V.addToWatchLaterCommand);V.removeFromWatchLaterCommand&&(r.removeFromWatchLaterCommand=V.removeFromWatchLaterCommand);V.getSharePanelCommand&&(r.getSharePanelCommand=V.getSharePanelCommand)}; hWS=function(r,V){V!=null?(r.tL=V,r.Mm=!0):(r.tL="",r.Mm=!1)}; Ki=function(r,V){this.type=r||"";this.id=V||""}; g.RU=function(r){return new Ki(r.substring(0,2),r.substring(2))}; g.tI=function(r,V){this.mM=r;this.author="";this.lG=null;this.playlistLength=0;this.G=this.sessionData=null;this.V={};this.title="";if(V){this.author=V.author||V.playlist_author||"";this.title=V.playlist_title||"";if(r=V.session_data)this.sessionData=a6(r,"&");var I;this.G=((I=V.thumbnail_ids)==null?void 0:I.split(",")[0])||null;this.V=bL(V,"playlist_");this.videoId=V.video_id||void 0;if(I=V.list)switch(V.listType){case "user_uploads":this.playlistId=(new Ki("UU","PLAYER_"+I)).toString();break;default:if(r= V.playlist_length)this.playlistLength=Number(r)||0;this.playlistId=g.RU(I).toString();if(V=V.video)this.videoId=(V[0]||null).video_id||void 0}else V.playlist&&(this.playlistLength=V.playlist.toString().split(",").length)}}; g.yO=function(r,V){this.mM=r;this.KY=this.author="";this.lG=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.E4=this.lengthText="";this.sessionData=null;this.V={};this.title="";if(V){this.ariaLabel=V.aria_label||void 0;this.author=V.author||"";this.KY=V.KY||"";if(r=V.endscreen_autoplay_session_data)this.lG=a6(r,"&");this.kT=V.kT;this.isLivePlayback=V.live_playback==="1";this.isUpcoming=!!V.isUpcoming;if(r=V.length_seconds)this.lengthSeconds=typeof r==="string"?Number(r):r;this.lengthText= V.lengthText||"";this.E4=V.E4||"";this.publishedTimeText=V.publishedTimeText||void 0;if(r=V.session_data)this.sessionData=a6(r,"&");this.shortViewCount=V.short_view_count_text||void 0;this.V=bL(V);this.title=V.title||"";this.videoId=V.docid||V.video_id||V.videoId||V.id||void 0;this.watchUrl=V.watchUrl||void 0}}; rQi=function(r){var V,I,d=(V=r.getWatchNextResponse())==null?void 0:(I=V.contents)==null?void 0:I.twoColumnWatchNextResults,a,f,e,n,D;r=(a=r.getWatchNextResponse())==null?void 0:(f=a.playerOverlays)==null?void 0:(e=f.playerOverlayRenderer)==null?void 0:(n=e.endScreen)==null?void 0:(D=n.watchNextEndScreenRenderer)==null?void 0:D.results;if(!r){var x,E;r=d==null?void 0:(x=d.endScreen)==null?void 0:(E=x.endScreen)==null?void 0:E.results}return r}; g.Gp=function(r){var V,I,d;r=g.U((V=r.getWatchNextResponse())==null?void 0:(I=V.playerOverlays)==null?void 0:(d=I.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,AI);return g.U(r==null?void 0:r.playerBar,Vyi)}; IFi=function(r){this.G=r.playback_progress_0s_url;this.S=r.playback_progress_2s_url;this.X=r.playback_progress_10s_url}; dEv=function(){if(F$===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(V){}a:{try{var r=!!self.localStorage}catch(V){r=!1}if(r&&(r=g.g3(g.km()+"::yt-player"))){F$=new mR(r);break a}F$=void 0}}return F$}; g.lL=function(){var r=dEv();if(!r)return{};try{var V=r.get("yt-player-lv");return JSON.parse(V||"{}")}catch(I){return{}}}; g.aFS=function(r){var V=dEv();V&&(r=JSON.stringify(r),V.set("yt-player-lv",r))}; g.Li=function(r){return g.lL()[r]||0}; g.JI=function(r,V){var I=g.lL();V!==I[r]&&(V!==0?I[r]=V:delete I[r],g.aFS(I))}; g.Zb=function(r){return g.L(function(V){return V.return(g.vQ(fFp(),r))})}; Bk=function(r,V,I,d,a,f,e,n){var D,x,E,N,c,z;return g.L(function(M){switch(M.X){case 1:return D=g.Li(r),D===4?M.return(4):g.G(M,g.I1(),2);case 2:x=M.G;if(!x)throw g.KH("wiac");if(!n||e===void 0){M.qk(3);break}return g.G(M,eMA(n,e),4);case 4:e=M.G;case 3:return E=I.lastModified||"0",g.G(M,g.Zb(x),5);case 5:return N=M.G,g.wA(M,6),X$++,g.G(M,g.J1(N,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Wp:!0},function(w){if(f!==void 0&&e!==void 0){var b=""+r+"|"+V.id+"|"+E+"|"+String(f).padStart(10, "0");b=g.ZO(w.objectStore("media"),e,b)}else b=g.t1.resolve(void 0);var W=YoX(r,V.BK()),K=YoX(r,!V.BK()),F={fmts:nsS(d),format:I||{}};W=g.ZO(w.objectStore("index"),F,W);var l=d.downloadedEndTime===-1;F=l?w.objectStore("index").get(K):g.t1.resolve(void 0);var B={fmts:"music",format:{}};w=l&&a&&!V.BK()?g.ZO(w.objectStore("index"),B,K):g.t1.resolve(void 0);return g.t1.all([w,F,b,W]).then(function(P){P=g.H(P);P.next();P=P.next().value;X$--;var p=g.Li(r);if(p!==4&&l&&a||P!==void 0&&g.jTA(P.fmts))p=1,g.JI(r, p);return p})}),8); case 8:return M.return(M.G);case 6:c=g.th(M);X$--;z=g.Li(r);if(z===4)return M.return(z);g.JI(r,4);throw c;}})}; g.DEX=function(r){var V,I;return g.L(function(d){if(d.X==1)return g.G(d,g.I1(),2);if(d.X!=3){V=d.G;if(!V)throw g.KH("ri");return g.G(d,g.Zb(V),3)}I=d.G;return d.return(g.J1(I,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(a){var f=IDBKeyRange.bound(r+"|",r+"~");return a.objectStore("index").getAll(f).then(function(e){return e.map(function(n){return n?n.format:{}})})}))})}; Esr=function(r,V,I,d,a){var f,e,n;return g.L(function(D){if(D.X==1)return g.G(D,g.I1(),2);if(D.X!=3){f=D.G;if(!f)throw g.KH("rc");return g.G(D,g.Zb(f),3)}e=D.G;n=g.J1(e,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(x){var E=""+r+"|"+V+"|"+I+"|"+String(d).padStart(10,"0");return x.objectStore("media").get(E)}); return a?D.return(n.then(function(x){if(x===void 0)throw Error("No data from indexDb");return xEi(a,x)}).catch(function(x){throw new g.ox("Error while reading chunk: "+x.name+", "+x.message); })):D.return(n)})}; g.jTA=function(r){return r?r==="music"?!0:r.includes("dlt=-1")||!r.includes("dlt="):!1}; YoX=function(r,V){return""+r+"|"+(V?"v":"a")}; nsS=function(r){var V={};return f5((V.dlt=r.downloadedEndTime.toString(),V.mket=r.maxKnownEndTime.toString(),V.avbr=r.averageByteRate.toString(),V))}; sTS=function(r){var V={},I={};r=g.H(r);for(var d=r.next();!d.done;d=r.next()){var a=d.value,f=a.split("|");a.match(g.NIZ)?(d=Number(f.pop()),isNaN(d)?I[a]="?":(f=f.join("|"),(a=V[f])?(f=a[a.length-1],d===f.end+1?f.end=d:a.push({start:d,end:d})):V[f]=[{start:d,end:d}])):I[a]="?"}r=g.H(Object.keys(V));for(d=r.next();!d.done;d=r.next())d=d.value,I[d]=V[d].map(function(e){return e.start+"-"+e.end}).join(","); return I}; gv=function(r){g.NK.call(this);this.G=null;this.S=new U8;this.G=null;this.C=new Set;this.crossOrigin=r||""}; cQj=function(r,V,I){for(I=SQ(r,I);I>=0;){var d=r.levels[I];if(d.isLoaded(iL(d,V))&&(d=g.Ur(d,V)))return d;I--}return g.Ur(r.levels[0],V)}; MyX=function(r,V,I){I=SQ(r,I);for(var d,a;I>=0;I--)if(d=r.levels[I],a=iL(d,V),!d.isLoaded(a)){d=r;var f=I,e=f+"-"+a;d.C.has(e)||(d.C.add(e),d.S.enqueue(f,{M9:f,sQ:a}))}zMv(r)}; zMv=function(r){if(!r.G&&!r.S.isEmpty()){var V=g.J(r.S.remove());r.G=CpO(r,V)}}; CpO=function(r,V){var I=document.createElement("img");r.crossOrigin&&(I.crossOrigin=r.crossOrigin);I.src=r.levels[V.M9].fq(V.sQ);I.onload=function(){var d=V.M9,a=V.sQ;r.G!==null&&(r.G.onload=null,r.G=null);d=r.levels[d];d.loaded.add(a);zMv(r);var f=d.columns*d.rows;a*=f;d=Math.min(a+f-1,d.BA()-1);a=[a,d];r.publish("l",a[0],a[1])}; return I}; g.QO=function(r,V,I,d){this.level=r;this.Y=V;this.loaded=new Set;this.level=r;this.Y=V;r=I.split("#");this.width=Math.floor(Number(r[0]));this.height=Math.floor(Number(r[1]));this.frameCount=Math.floor(Number(r[2]));this.columns=Math.floor(Number(r[3]));this.rows=Math.floor(Number(r[4]));this.G=Math.floor(Number(r[5]));this.S=r[6];this.signature=r[7];this.videoLength=d}; iL=function(r,V){return Math.floor(V/(r.columns*r.rows))}; g.Ur=function(r,V){V>=r.Ea()&&r.hd();var I=iL(r,V),d=r.columns*r.rows,a=V%d;V=a%r.columns;a=Math.floor(a/r.columns);var f=r.hd()+1-d*I;if(f1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; TIj=function(r,V,I){return(r=r.levels[V])?r.Gn(I):-1}; SQ=function(r,V){var I=r.Y.get(V);if(I)return I;I=r.levels.length;for(var d=0;d=V)return r.Y.set(V,d),d;r.Y.set(V,I-1);return I-1}; uL=function(r,V,I,d){I=I.split("#");I=[I[1],I[2],0,I[3],I[4],-1,I[0],""].join("#");g.QO.call(this,r,V,I,0);this.X=null;this.W=d?2:0}; pi=function(r,V,I,d){mi.call(this,r,0,void 0,V,!(d===void 0||!d));for(r=0;r(I!=null?I:50)&&(I=tyv.shift())&&rt.delete(I),I=a),a!==I&&r.fk("ssei","dcpn_"+a+"_"+I+"_"+r.clientPlaybackNonce),I)}; oU=function(r,V){var I=V.raw_watch_next_response;if(!I){var d=V.watch_next_response;d&&(I=JSON.parse(d))}if(I){r.p8=I;var a=r.p8.playerCueRangeSet;a&&g.VW(r,a);var f=r.p8.playerOverlays;if(f){var e=f.playerOverlayRenderer;if(e){var n=e.autonavToggle;n&&(r.autoplaySwitchButtonRenderer=g.U(n,yQU),r.U("web_player_autonav_use_server_provided_state")&&Ia(r)&&(r.autonavState=r.autoplaySwitchButtonRenderer.enabled?2:1));var D=e.videoDetails;if(D){var x=D.embeddedPlayerOverlayVideoDetailsRenderer;var E=D.playerOverlayVideoDetailsRenderer; E&&(E.title&&(V.title=g.wF(E.title)),E.subtitle&&(V.subtitle=g.wF(E.subtitle)))}g.B8(r.mM)&&(r.MG=!!e.addToMenu);AQh(r,e.shareButton);e.startPosition&&e.endPosition&&(r.progressBarStartPosition=e.startPosition,r.progressBarEndPosition=e.endPosition);var N=e.gatedActionsOverlayRenderer;N&&(r.KX=g.U(N,GAA));var c,z,M,w=g.U((c=r.getWatchNextResponse())==null?void 0:(z=c.playerOverlays)==null?void 0:(M=z.playerOverlayRenderer)==null?void 0:M.infoPanel,FEr);if(w){r.OR=Number(w==null?void 0:w.durationMs)|| NaN;if(w==null?0:w.infoPanelOverviewViewModel)r.ZQ=w==null?void 0:w.infoPanelOverviewViewModel;if(w==null?0:w.infoPanelDetailsViewModel)r.q3=w==null?void 0:w.infoPanelDetailsViewModel}r.showSeekingControls=!!e.showSeekingControls}}var b,W,K=(b=r.getWatchNextResponse())==null?void 0:(W=b.contents)==null?void 0:W.twoColumnWatchNextResults;if(K){var F=K.desktopOverlay&&g.U(K.desktopOverlay,lFZ);F&&(F.suppressShareButton&&(r.showShareButton=!1),F.suppressWatchLaterButton&&(r.MG=!1))}x&&LEA(r,V,x);var l= jb(0,V.autoplay_count),B=g.J(r.getWatchNextResponse()),P,p=(P=B.contents)==null?void 0:P.twoColumnWatchNextResults,dA,fg,rA,ji=(dA=B.playerOverlays)==null?void 0:(fg=dA.playerOverlayRenderer)==null?void 0:(rA=fg.autoplay)==null?void 0:rA.playerOverlayAutoplayRenderer,k=rQi(r),bX,RX=(bX=B.contents)==null?void 0:bX.singleColumnWatchNextResults;if(RX){var Ui;if(((Ui=RX.autoplay)==null?0:Ui.autoplay)&&!RX.playlist){var $f=RX.autoplay.autoplay.sets,jp={},yZ=new g.yO(r.N()),Kg=null,fG;if($f){for(var O= g.H($f),ng=O.next();!ng.done;ng=O.next()){var qm=ng.value.autoplayVideoRenderer;if(qm&&qm.compactVideoRenderer){Kg=qm.compactVideoRenderer;break}}if(fG=$f[0].autoplayVideo){var Wt=fG.clickTrackingParams;Wt&&(jp.itct=Wt);jp.autonav="1";jp.playnext=String(l)}}else jp.feature="related-auto";var Ao=g.U(fG,g.dt);if(Kg){yZ.videoId=Kg.videoId;var c9=Kg.shortBylineText;c9&&(yZ.author=g.wF(c9));var Br=Kg.title;Br&&(yZ.title=g.wF(Br))}else Ao!=null&&Ao.videoId&&(yZ.videoId=Ao.videoId);yZ.lG=jp;r.suggestions= [];r.BV=yZ}}if(k){for(var Jo=[],G6=g.H(k),t=G6.next();!t.done;t=G6.next()){var y=t.value,A=void 0,Z=null;if(y.endScreenVideoRenderer){var Q=y.endScreenVideoRenderer,Wr=Q.title;Z=new g.yO(r.N());Z.videoId=Q.videoId;Z.lengthSeconds=Q.lengthInSeconds||0;var IX=Q.publishedTimeText;IX&&(Z.publishedTimeText=g.wF(IX));var Cg=Q.shortBylineText;Cg&&(Z.author=g.wF(Cg));var aX=Q.shortViewCountText;aX&&(Z.shortViewCount=g.wF(aX));if(Wr){Z.title=g.wF(Wr);var GS=Wr.accessibility;if(GS){var oX=GS.accessibilityData; oX&&oX.label&&(Z.ariaLabel=oX.label)}}var O_=Q.navigationEndpoint;if(O_){A=O_.clickTrackingParams;var $r=g.U(O_,g.dt),Jr=g.U(O_,g.im);$r?Z.kT=$r:Jr!=null&&(Z.watchUrl=Jr.url)}var vM=Q.thumbnailOverlays;if(vM)for(var vt=g.H(vM),q6=vt.next();!q6.done;q6=vt.next()){var O5=q6.value.thumbnailOverlayTimeStatusRenderer;if(O5)if(O5.style==="LIVE"){Z.isLivePlayback=!0;break}else if(O5.style==="UPCOMING"){Z.isUpcoming=!0;break}}Z.V=Or(Q.thumbnail)}else if(y.endScreenPlaylistRenderer){var cv=y.endScreenPlaylistRenderer, FY=cv.navigationEndpoint;if(!FY)continue;var TP=g.U(FY,g.dt);if(!TP)continue;var lg=TP.videoId;Z=new g.tI(r.N());Z.playlistId=cv.playlistId;Z.playlistLength=Number(cv.videoCount)||0;Z.G=lg||null;Z.videoId=lg;var Ue=cv.title;Ue&&(Z.title=g.wF(Ue));var Qk=cv.shortBylineText;Qk&&(Z.author=g.wF(Qk));A=FY.clickTrackingParams;Z.V=Or(cv.thumbnail)}Z&&(A&&(Z.sessionData={itct:A}),Jo.push(Z))}r.suggestions=Jo}if(ji){r.YJ=!!ji.preferImmediateRedirect;r.ll=r.ll||!!ji.webShowNewAutonavCountdown;r.Rk=r.Rk||!!ji.webShowBigThumbnailEndscreen; if(r.ll||r.Rk){var tC=p||null,e1=new g.yO(r.N());e1.videoId=ji.videoId;var PM=ji.videoTitle;if(PM){e1.title=g.wF(PM);var jS=PM.accessibility;if(jS){var Az=jS.accessibilityData;Az&&Az.label&&(e1.ariaLabel=Az.label)}}var p2=ji.byline;p2&&(e1.author=g.wF(p2));var TF=ji.publishedTimeText;TF&&(e1.publishedTimeText=g.wF(TF));var tY=ji.shortViewCountText;tY&&(e1.shortViewCount=g.wF(tY));var yU=ji.thumbnailOverlays;if(yU)for(var AY=g.H(yU),Y_=AY.next();!Y_.done;Y_=AY.next()){var En=Y_.value.thumbnailOverlayTimeStatusRenderer; if(En)if(En.style==="LIVE"){e1.isLivePlayback=!0;break}else if(En.style==="UPCOMING"){e1.isUpcoming=!0;break}else if(En.style==="DEFAULT"&&En.text){e1.lengthText=g.wF(En.text);var nq=En.text.accessibility;if(nq){var jK=nq.accessibilityData;jK&&jK.label&&(e1.E4=jK.label||"")}break}}e1.V=Or(ji.background);var GH=ji.nextButton;if(GH){var FT=GH.buttonRenderer;if(FT){var lA=FT.navigationEndpoint;if(lA){var LI=g.U(lA,g.dt);LI&&(e1.kT=LI)}}}if(ji.topBadges){var JY=ji.topBadges[0];if(JY){var Z$=g.U(JY,JQU); Z$&&Z$.style==="BADGE_STYLE_TYPE_PREMIUM"&&(e1.VrM=!0)}}var e$=ji.alternativeTitle;e$&&(e1.KY=g.wF(e$));var G9={autonav:"1",playnext:String(l)};e1.playlistId&&(G9.autoplay="1");if(tC){var Y6,U$,DP,XT,x_=(Y6=tC.autoplay)==null?void 0:(U$=Y6.autoplay)==null?void 0:(DP=U$.sets)==null?void 0:(XT=DP[0])==null?void 0:XT.autoplayVideo;if(x_){var BT=x_.clickTrackingParams;BT&&(G9.itct=BT);var EY=g.U(x_,g.dt);EY&&(e1.uQ=EY)}}else if(ji){var gg,SB,iA,UV=(gg=ji.nextButton)==null?void 0:(SB=gg.buttonRenderer)== null?void 0:(iA=SB.navigationEndpoint)==null?void 0:iA.clickTrackingParams;UV&&(G9.itct=UV)}G9.itct||(G9.feature="related-auto");e1.lG=G9;r.suggestions||(r.suggestions=[]);r.BV=e1}ji.countDownSecs!=null&&(r.Rj=ji.countDownSecs*1E3);ji.countDownSecsForFullscreen!=null&&(r.qn=ji.countDownSecsForFullscreen>=0?ji.countDownSecsForFullscreen*1E3:-1);r.U("web_autonav_color_transition")&&ji.watchToWatchTransitionRenderer&&(r.watchToWatchTransitionRenderer=g.U(ji.watchToWatchTransitionRenderer,Ztr))}var NM= rQi(r);if(NM){var CA,QU,sY,cS=NM==null?void 0:(CA=NM[0])==null?void 0:(QU=CA.endScreenVideoRenderer)==null?void 0:(sY=QU.navigationEndpoint)==null?void 0:sY.clickTrackingParams,mq=g.aa(r);cS&&mq&&(mq.sessionData={itct:cS})}r.p8.currentVideoThumbnail&&(r.V=Or(r.p8.currentVideoThumbnail));var n8,uA,pI,j$,vT,TT=(n8=r.p8)==null?void 0:(uA=n8.contents)==null?void 0:(pI=uA.twoColumnWatchNextResults)==null?void 0:(j$=pI.results)==null?void 0:(vT=j$.results)==null?void 0:vT.contents;if(TT&&TT[1]){var q$, PT,FK,OS,mN=(q$=TT[1].videoSecondaryInfoRenderer)==null?void 0:(PT=q$.owner)==null?void 0:(FK=PT.videoOwnerRenderer)==null?void 0:(OS=FK.thumbnail)==null?void 0:OS.thumbnails;mN&&mN.length&&(r.profilePicture=mN[mN.length-1].url)}var o2=E3(V),zX,HH=(zX=r.getWatchNextResponse())==null?void 0:zX.onResponseReceivedEndpoints;if(HH)for(var wQ=g.H(HH),MM=wQ.next();!MM.done;MM=wQ.next()){var ut=MM.value;g.U(ut,fk)&&(r.AX=g.U(ut,fk));var bw=g.U(ut,X_A),kY=void 0;if((kY=bw)==null?0:kY.entityKeys)r.Y$=bw.entityKeys|| [],bw.visibleOnLoadKeys&&(r.visibleOnLoadKeys=bw.visibleOnLoadKeys)}if(r.U("web_key_moments_markers")){var x6=g.e3.getState().entities,sn=g.Id("visibility_override","markersVisibilityOverrideEntity");var vy=ad(x6,"markersVisibilityOverrideEntity",sn);r.DM=(vy==null?void 0:vy.videoId)===(r.videoId||o2)&&(vy==null?0:vy.visibilityOverrideMarkersKey)?vy.visibilityOverrideMarkersKey:r.visibleOnLoadKeys;r.visibleOnLoadKeys=[].concat(g.R(r.DM))}}}; Ia=function(r){var V;return((V=r.autoplaySwitchButtonRenderer)==null?void 0:V.enabled)!==void 0}; Ya=function(r){return!!(r.S&&r.S.videoInfos&&r.S.videoInfos.length)}; g.EQ=function(r){var V=r.j;r.U("html5_gapless_unlimit_format_selection")&&nk(r)&&(V=!1);var I=!!r.G&&r.G.Tz,d=r.mM,a=r.qN(),f=j3(r),e=r.a7,n=V,D=r.isOtf();V=r.j2();var x=r.ya,E=r.getUserAudio51Preference(),N=Dd(r),c=new TmA(d);if(d.Ko()||d.U("html5_logging_format_selection"))c.X=!0;c.TQ=f;c.a7=e&&d.j;c.GQ=E;g.p5("windows nt 5.1")&&!g.oJ&&(c.UO=!0);if(f=a)f=g.fi(d)?xjZ(d):!1;f&&(c.QH=!0);n&&(c.UO=!0,c.Bp=!0);D&&!d.U("html5_otf_prefer_vp9")&&(c.UO=!0);d.playerStyle==="picasaweb"&&(D&&(c.UO=!1),c.kc= !1);x&&(c.UO=!0);Gb(d.W,Fq.CHANNELS)&&(d.U("html5_enable_ac3")&&(c.Y=!0),d.U("html5_enable_eac3")&&(c.W=!0),d.U("html5_enable_ac3_gapless")&&(c.n8=!0));d.U("html5_block_8k_hfr")&&(c.L8=!0);c.C=g.zM(d.experiments,"html5_max_selectable_quality_ordinal");c.L=g.zM(d.experiments,"html5_min_selectable_quality_ordinal");yi&&(c.dH=480);if(I||a)c.kc=!1;c.EE=!1;c.disableAv1=N;I=is(d,c.G,void 0,c.disableAv1);I>0&&I<2160&&(bA()||d.U("html5_format_hybridization"))&&(c.G.supportsChangeType=+bA(),c.WZ=I);I>=2160&& (c.bL=!0);U_X()&&(c.G.serveVp9OverAv1IfHigherRes=0,c.Hy=!1);c.j2=V;c.p8=g.kw||fo()&&!V?!1:!0;c.j=d.U("html5_format_hybridization");c.ya=d.U("html5_disable_encrypted_vp9_live_non_2k_4k");xa(r)&&(c.M2=r.U("html5_prefer_language_over_codec"));PR()&&r.playerResponse&&r.playerResponse.playerConfig&&r.playerResponse.playerConfig.webPlayerConfig&&r.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(c.Y=!0,c.W=!0);r.j&&r.isAd()&&(r.u_&&(c.V=r.u_),r.Ne&&(c.S=r.Ne));c.R7=r.isLivePlayback&& r.v3()&&r.mM.U("html5_drm_live_audio_51");c.DM=r.Di;c.Qa=!xa(r)&&r.U("html5_disable_voice_boost_for_cabr");return r.LJ=c}; Dd=function(r){return r.mM.U("html5_disable_av1")||r.U("html5_gapless_shorts_disable_av1")&&nk(r)?!0:!1}; BIZ=function(r){Q2("drm_pb_s",void 0,r.QH);r.L8||r.G&&Kc(r.G);var V={};r.G&&(V=Ikv(r.wv,g.EQ(r),r.mM.W,r.G,function(I){return r.publish("ctmp","fmtflt",I)},!0,new Set)); V=new r$(V,r.mM,r.Ss,r.useCobaltWidevine?PR()?Nq(r):!1:!1,function(I,d){r.Hs(I,d)}); g.S(r,V);r.Tw=!1;r.loading=!0;OPv(V,function(I){Q2("drm_pb_f",void 0,r.QH);for(var d=g.H(I),a=d.next();!a.done;a=d.next())switch(a=a.value,a.flavor){case "fairplay":a.L8=r.L8;a.XC=r.XC;a.Gp=r.Gp;break;case "widevine":a.Le=r.Le}r.Vu=I;if(r.Vu.length>0&&(r.W=r.Vu[0],r.mM.Ko())){I={};d=g.H(Object.entries(r.W.G));for(a=d.next();!a.done;a=d.next()){var f=g.H(a.value);a=f.next().value;f=f.next().value;var e="unk";(a=a.match(/(.*)codecs="(.*)"/))&&(e=a[2]);I[e]=f}r.Hs("drmProbe",I)}r.j1()})}; gsA=function(r,V){if(V.length===0||sQ(r))return null;r.mM.W.S&&(B5=!0);var I=r.Cq;var d=r.lengthSeconds,a=r.isLivePlayback,f=r.Ue,e=r.mM,n=a7g(V);if(a||f){e=e.experiments;d=new Oq("",e,!0);d.X=!f;d.Tz=!0;d.isManifestless=!0;d.isLive=!f;d.Ue=f;V=g.H(V);for(a=V.next();!a.done;a=V.next()){var D=a.value;a=Kp(D,I);n=gV(D);n=tD(n.zN||D.url||"",n.w4,n.s);var x=n.get("id");x&&x.includes("%7E")&&(d.V=!0);var E=void 0;x=(E=e)==null?void 0:E.uL("html5_max_known_end_time_rebase");E=Number(D.targetDurationSec|| 5);D=Number(D.maxDvrDurationSec||14400);var N=Number(n.get("mindsq")||n.get("min_sq")||"0"),c=Number(n.get("maxdsq")||n.get("max_sq")||"0")||Infinity;d.S7=d.S7||N;d.pj=d.pj||c;var z=!YY(a.mimeType);n&&H5(d,new Y$(n,a,{y7:E,Zp:z,QQ:D,S7:N,pj:c,Jj:300,Ue:f,zX:x}))}I=d}else if(n==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new Oq("",e.experiments,!1);f.duration=d||0;e=g.H(V);for(d=e.next();!d.done;d=e.next())d=d.value,V=Kp(d,I,f.duration),a=gV(d),(a=tD(a.zN||d.url||"",a.w4,a.s))&&(V.streamType==="FORMAT_STREAM_TYPE_OTF"? H5(f,new np(a,V,"sq/0")):H5(f,new MY(a,V,iU(d.initRange),iU(d.indexRange))));f.isOtf=!0;I=f}else{d=d===void 0?0:d;f=new Oq("",e.experiments,!1);f.duration=d||0;e=g.H(V);for(d=e.next();!d.done;d=e.next())n=d.value,d=Kp(n,I,f.duration),V=iU(n.initRange),a=iU(n.indexRange),x=gV(n),(n=tD(x.zN||n.url||"",x.w4,x.s))&&H5(f,new MY(n,d,V,a));I=f}f=r.isLivePlayback&&!r.Ue&&!r.GQ&&!r.isPremiere;r.U("html5_live_head_playable")&&(!cx(r)&&f&&r.Hs("missingLiveHeadPlayable",{}),r.mM.QH==="yt"&&(I.L8=!0));return I}; sQ=function(r){return PR()?!Nq(r):kQ()?!(!r.L8||!r.U("html5_enable_safari_fairplay")&&Yg()):!1}; Nq=function(r){return r.U("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.VW=function(r,V){V=g.H(V);for(var I=V.next();!I.done;I=V.next())if(I=I.value,I.cueRangeSetIdentifier){var d=void 0;r.eB.set(I.cueRangeSetIdentifier,(d=I.playerCueRanges)!=null?d:[])}}; zV=function(r){return!(!r.G||!r.G.isManifestless)}; Mq=function(r){return r.Hy?r.isLowLatencyLiveStream&&r.G!=null&&F5(r.G)>=5:r.isLowLatencyLiveStream&&r.G!=void 0&&F5(r.G)>=5}; SoA=function(r){return PR()&&Nq(r)?!1:sQ(r)&&(g.ti(r.mM)?!r.isLivePlayback:r.hlsvp)||!Yg()||r.gZ?!0:!1}; QTj=function(r){r.loading=!0;r.Ol=!1;if(itX(r))g.DEX(r.videoId).then(function(d){UEi(r,d)}).then(function(){r.j1()}); else{Iv(r.CF)||g.gj(new g.ox("DASH MPD Origin invalid: ",r.CF));var V=r.CF,I=g.zM(r.mM.experiments,"dash_manifest_version")||4;V=g.Ly(V,{mpd_version:I});r.isLowLatencyLiveStream&&r.latencyClass!=="NORMAL"||(V=g.Ly(V,{pacing:0}));EXj(V,r.mM.experiments,r.isLivePlayback).then(function(d){r.h0()||(Ck(r,d,!0),Q2("mrc",void 0,r.QH),r.j1())},function(d){r.h0()||(r.loading=!1,r.publish("dataloaderror",new Gk("manifest.net.retryexhausted",{backend:"manifest", rc:d.status},1)))}); Q2("mrs",void 0,r.QH)}}; UEi=function(r,V){var I=V.map(function(D){return D.itag}),d; if((d=r.playerResponse)!=null&&d.streamingData){d=[];if(r.U("html5_offline_always_use_local_formats")){I=0;for(var a=g.H(V),f=a.next();!f.done;f=a.next()){f=f.value;var e=Object.assign({},f);e.signatureCipher="";d.push(e);e=g.H(r.playerResponse.streamingData.adaptiveFormats);for(var n=e.next();!n.done;n=e.next())if(n=n.value,f.itag===n.itag&&f.xtags===n.xtags){I+=1;break}}IE&&(E=z.getInfo().audio.numChannels)}E>2&&r.Hs("hlschl",{mn:E});var b;((b=r.LJ)==null?0:b.X)&&r.Hs("hlsfmtaf",{itags:N.join(".")});var W;if(r.U("html5_enable_vp9_fairplay")&&((W=r.W)==null?0:qY(W)))for(r.Hs("drm",{sbdlfbk:1}),E=g.H(r.Vu),N=E.next();!N.done;N=E.next())if(N=N.value,v5(N)){r.W=N;break}b3(r,x)})}return Ja()}; qov=function(r){if(r.isExternallyHostedPodcast&&r.IB){var V=wt(r.IB);if(!V[0])return Ja();r.n9E=V[0];return leA(r.mM,V[0]).then(function(I){b3(r,I)})}return r.U6&&r.Ge?Fpj(r.mM,r.isAd(),r.U6).then(function(I){b3(r,I)}):Ja()}; osh=function(r){if(r.isExternallyHostedPodcast)return Ja();var V=wt(r.IB,r.Q0);if(r.hlsvp){var I=Hti(r.hlsvp,r.clientPlaybackNonce,r.Py);V.push(I)}return Gni(r.mM,r.isAd(),V,PpU(r)).then(function(d){b3(r,d)})}; b3=function(r,V){r.By=V;r.mG(new wV(g.uE(r.By,function(I){return I.getInfo()})))}; PpU=function(r){var V={cpn:r.clientPlaybackNonce,c:r.mM.G.c,cver:r.mM.G.cver};r.pQ&&(V.ptk=r.pQ,V.oid=r.bv,V.ptchn=r.g4,V.pltype=r.qQ,r.FC&&(V.m=r.FC));return V}; g.OQ=function(r){return sQ(r)&&r.L8?(r={},r.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",r):r.X&&r.X.Cq||null}; kAA=function(r){var V=Wx(r);return V&&V.text?g.wF(V.text):r.paidContentOverlayText}; hMp=function(r){var V=Wx(r);return V&&V.durationMs?bb(V.durationMs):r.paidContentOverlayDurationMs}; Wx=function(r){var V,I,d;return r.playerResponse&&r.playerResponse.paidContentOverlay&&r.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.U((V=r.p8)==null?void 0:(I=V.playerOverlays)==null?void 0:(d=I.playerOverlayRenderer)==null?void 0:d.playerDisclosure,rJS)||null}; $a=function(r){var V="";if(r.H$)return r.H$;r.isLivePlayback&&(V=r.allowLiveDvr?"dvr":r.isPremiere?"lp":r.GQ?"window":"live");r.Ue&&(V="post");return V}; g.Kk=function(r,V){return typeof r.keywords[V]!=="string"?null:r.keywords[V]}; Vnp=function(r){return!!r.Yg||!!r.TX||!!r.R2||!!r.sy||r.Jg||r.L.focEnabled||r.L.rmktEnabled}; g.Ra=function(r){return!!(r.CF||r.IB||r.U6||r.hlsvp||r.Gf())}; Pk=function(r){if(r.U("html5_onesie")&&r.errorCode)return!1;var V=g.CG(r.kc,"ypc");r.ypcPreview&&(V=!1);return r.IL()&&!r.loading&&(g.Ra(r)||g.CG(r.kc,"heartbeat")||V)}; wt=function(r,V){r=YQ(r);var I={};if(V){V=g.H(V.split(","));for(var d=V.next();!d.done;d=V.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(I[d[1]]={width:d[2],height:d[3]})}V=g.H(r);for(d=V.next();!d.done;d=V.next()){d=d.value;var a=I[d.itag];a&&(d.width=a.width,d.height=a.height)}return r}; tR=function(r){var V=r.getAvailableAudioTracks();V=V.concat(r.eA);for(var I=0;I0:r.uZ?!1:r.mM.BH||r.mM.GR||!g.FG(r.mM)?!0:!1:(r.uZ?0:r.BH)&&g.FG(r.mM)?!0:!1;r.U("html5_log_detailpage_autoplay")&>(r)==="detailpage"&&r.Hs("autoplay_info",{autoplay:r.iz,autonav:r.isAutonav,wasDompaused:r.uZ,result:V});return V}; g.QW=function(r){return r.oauthToken||r.mM.wy}; cJr=function(r){return xa(r)&&!g.hI(r)}; Mnj=function(r){if(r.U("html5_stateful_audio_normalization")){var V=1,I=g.zM(r.mM.experiments,"html5_default_ad_gain");I&&r.isAd()&&(V=I);var d;if(I=((d=r.Y)==null?void 0:d.audio.S)||r.Al){d=(0,g.m)();r.o0=2;var a=d-r.mM.Xq<=r.maxStatefulTimeThresholdSec*1E3;r.applyStatefulNormalization&&a?r.o0=4:a||(r.mM.GK=Infinity,r.mM.Xq=NaN);a=(r.o0===4?g.yv(r.mM.GK,r.minimumLoudnessTargetLkfs,r.loudnessTargetLkfs):r.loudnessTargetLkfs)-I;if(r.o0!==4){var f,e,n,D,x=((f=r.playerResponse)==null?void 0:(e=f.playerConfig)== null?void 0:(n=e.audioConfig)==null?void 0:(D=n.loudnessNormalizationConfig)==null?void 0:D.statelessLoudnessAdjustmentGain)||0;a+=x}a=Math.min(a,0);r.preserveStatefulLoudnessTarget&&(r.mM.GK=I+a,r.mM.Xq=d);r=Math.min(1,Math.pow(10,a/20))||V}else r=zvv(r)}else r=zvv(r);return r}; zvv=function(r){var V=1,I=g.zM(r.mM.experiments,"html5_default_ad_gain");I&&r.isAd()&&(V=I);var d;if(I=((d=r.Y)==null?void 0:d.audio.Y)||r.xQ)r.o0=1;return Math.min(1,Math.pow(10,-I/20))||V}; j3=function(r){var V=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],I=d$(r.mM)==="TVHTML5_SIMPLY"&&r.mM.G.ctheme==="MUSIC";r.Nm||!g.ih(r.mM)&&!I||!V.includes(r.musicVideoType)&&!r.isExternallyHostedPodcast||(r.Nm=!0);if(V=g.qL())V=/Starboard\/([0-9]+)/.exec(g.RZ()),V=(V?parseInt(V[1],10):NaN)<10;I=r.mM;I=(d$(I)==="TVHTML5_CAST"||d$(I)==="TVHTML5"&&(I.G.cver.startsWith("6.20130725")||I.G.cver.startsWith("6.20130726")))&&r.mM.G.ctheme==="MUSIC";var d;if(d=!r.Nm)I||(I=r.mM,I=d$(I)=== "TVHTML5"&&I.G.cver.startsWith("7")),d=I;d&&!V&&(V=r.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",I=(r.U("cast_prefer_audio_only_for_atv_and_uploads")||r.U("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&r.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",V||I||r.isExternallyHostedPodcast)&&(r.Nm=!0);return r.mM.deviceIsAudioOnly||r.Nm&&r.mM.j}; mm=function(r){var V,I,d;return((V=r.playerResponse)==null?void 0:(I=V.playerConfig)==null?void 0:(d=I.compositeVideoConfig)==null?void 0:d.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.C7O=function(r){return r.U("html5_enable_sabr_live_captions")&&r.Tz()&&xa(r)||mm(r)}; u3=function(r){var V,I,d;return!!((V=r.playerResponse)==null?0:(I=V.playerConfig)==null?0:(d=I.mediaCommonConfig)==null?0:d.splitScreenEligible)}; pk=function(r){var V;return!((V=r.playerResponse)==null||!V.compositePlayabilityStatus)}; T_X=function(r){return isNaN(r)?0:Math.max((Date.now()-r)/1E3-30,0)}; vx=function(r){return!(!r.bq||!r.mM.j)&&r.Gf()}; qq=function(r){return r.m0&&r.enableServerStitchedDai}; H3X=function(r){return r.lh&&!r.VM}; xa=function(r){var V=r.U("html5_enable_sabr_on_drive")&&r.mM.QH==="gd";if(r.l2)return r.lh&&r.Hs("fds",{fds:!0},!0),!1;if(r.mM.QH!=="yt"&&!V)return r.lh&&r.Hs("dsvn",{ns:r.mM.QH},!0),!1;if(r.cotn||!r.G||r.G.isOtf||r.ey&&!r.U("html5_enable_sabr_csdai"))return!1;if(r.U("html5_use_sabr_requests_for_debugging"))return!0;r.lh&&r.Hs("esfw",{usbc:r.lh,hsu:!!r.VM},!0);if(r.lh&&r.VM)return!0;if(r.U("html5_remove_client_sabr_determination"))return!1;var I=!r.G.Tz&&!r.v3();V=I&&aj&&r.U("html5_enable_sabr_vod_streaming_xhr"); I=I&&!aj&&r.U("html5_enable_sabr_vod_non_streaming_xhr");var d=Px(r),a=r.U("html5_enable_sabr_drm_vod_streaming_xhr")&&aj&&r.v3()&&!r.G.Tz&&(r.drmProduct==="1"?!1:!0);(V=V||I||d||a)&&!r.VM&&r.Hs("sabr",{loc:"m"},!0);return V&&!!r.VM}; Px=function(r){var V;if(!(V=aj&&r.Tz()&&r.v3()&&(r.drmProduct==="1"?!1:!0)&&r.U("html5_sabr_live_drm_streaming_xhr"))){V=r.Tz()&&!r.v3()&&aj;var I=r.Tz()&&r.latencyClass!=="ULTRALOW"&&!r.isLowLatencyLiveStream&&r.U("html5_sabr_live_normal_latency_streaming_xhr"),d=r.isLowLatencyLiveStream&&r.U("html5_sabr_live_low_latency_streaming_xhr"),a=r.latencyClass==="ULTRALOW"&&r.U("html5_sabr_live_ultra_low_latency_streaming_xhr");V=V&&(I||d||a)}I=V;V=r.enableServerStitchedDai&&I&&r.U("html5_enable_sabr_ssdai_streaming_xhr"); I=!r.enableServerStitchedDai&&I;d=r.Tz()&&!aj&&r.U("html5_enable_sabr_live_non_streaming_xhr");r=aj&&(r.uJ()||u3(r)&&r.U("html5_enable_sabr_for_lifa_eligible_streams"));return V||I||d||r}; g.hI=function(r){return r.U2&&xa(r)}; itX=function(r){var V;if(V=!!r.cotn)V=r.videoId,V=!!V&&g.Li(V)===1;return V&&!r.bq}; g.oa=function(r){if(!r.G||!r.X||!r.Y)return!1;var V=r.G.G,I=!!V[r.X.id]&&ZQ(V[r.X.id].po.G);V=!!V[r.Y.id]&&ZQ(V[r.Y.id].po.G);return(r.X.itag==="0"||I)&&V}; ka=function(r){return r.Jt?["OK","LIVE_STREAM_OFFLINE"].includes(r.Jt.status):!0}; evg=function(r){return(r=r.R0)&&r.showError?r.showError:!1}; hR=function(r,V){return r.U(V)?!0:(r.fflags||"").includes(V+"=true")}; wcX=function(r){return r.U("html5_heartbeat_iff_heartbeat_params_filled")}; RMS=function(r,V){V.inlineMetricEnabled&&(r.inlineMetricEnabled=!0);V.playback_progress_0s_url&&(r.sy=new IFi(V));if(V=V.video_masthead_ad_quartile_urls)r.TX=V.quartile_0_url,r.gR=V.quartile_25_url,r.xF=V.quartile_50_url,r.Dj=V.quartile_75_url,r.Ar=V.quartile_100_url,r.R2=V.quartile_0_urls,r.aM=V.quartile_25_urls,r.Mo=V.quartile_50_urls,r.kK=V.quartile_75_urls,r.En=V.quartile_100_urls}; KEj=function(r){var V={};r=g.H(r);for(var I=r.next();!I.done;I=r.next()){I=I.value;var d=I.split("=");d.length===2?V[d[0]]=d[1]:V[I]=!0}return V}; Otp=function(r){if(r){if(e_i(r))return r;r=YNr(r);if(e_i(r,!0))return r}return""}; g.b3O=function(r){return r.captionsLanguagePreference||r.mM.captionsLanguagePreference||g.Kk(r,"yt:cc_default_lang")||r.mM.ll}; r1=function(r){return!(!r.isLivePlayback||!r.hasProgressBarBoundaries())}; g.aa=function(r){var V;return r.BV||((V=r.suggestions)==null?void 0:V[0])||null}; g.V_=function(r){return r.Mm&&(r.U("embeds_enable_pfp_always_unbranded")||r.mM.Qp)}; If=function(r,V){r.U("html5_log_autoplay_src")&&nk(r)&&r.Hs("apsrc",{src:V})}; g.d1=function(r){var V,I;return!!((V=r.embeddedPlayerConfig)==null?0:(I=V.embeddedPlayerFlags)==null?0:I.enableMusicUx)}; af=function(r){return r.mM.Y&&r.isPrivate}; g.DL=function(r){var V=r.N(),I=g.f8(V),d=V.Bp;(V.U("embeds_web_enable_iframe_api_send_full_embed_url")||V.U("embeds_web_enable_rcat_validation_in_havs")||V.U("embeds_enable_autoplay_and_visibility_signals"))&&g.B8(V)&&(d&&(I.thirdParty=Object.assign({},I.thirdParty,{embedUrl:d})),pEX(I,r));if(d=r.EE)I.clickTracking={clickTrackingParams:d};d=I.client||{};var a="EMBED",f=gt(r);f==="leanback"?a="WATCH":V.U("gvi_channel_client_screen")&&f==="profilepage"?a="CHANNEL":r.ya?a="LIVE_MONITOR":f==="detailpage"? a="WATCH_FULL_SCREEN":f==="adunit"?a="ADUNIT":f==="sponsorshipsoffer"&&(a="UNKNOWN");d.clientScreen=a;if(V=r.kidsAppInfo)d.kidsAppInfo=JSON.parse(V);(a=r.Xe)&&!V&&(d.kidsAppInfo={contentSettings:{ageUpMode:O3O[a]}});if(V=r.Mn)d.unpluggedAppInfo={enableFilterMode:!0};(a=r.unpluggedFilterModeType)&&!V&&(d.unpluggedAppInfo={filterModeType:WOO[a]});if(V=r.XN)d.unpluggedLocationInfo=V;I.client=d;d=I.request||{};r.SA&&(d.isPrefetch=!0);if(V=r.mdxEnvironment)d.mdxEnvironment=V;if(V=r.mdxControlMode)d.mdxControlMode= $Hg[V];I.request=d;d=I.user||{};if(V=r.R7)d.credentialTransferTokens=[{token:V,scope:"VIDEO"}];if(V=r.NJ)d.delegatePurchases={oauthToken:V},d.kidsParent={oauthToken:V};I.user=d;if(d=r.contextParams)I.activePlayers=[{playerContextParams:d}];if(r=r.clientScreenNonce)I.clientScreenNonce=r;return I}; g.f8=function(r){var V=g.V2(),I=V.client||{};if(r.forcedExperiments){var d=r.forcedExperiments.split(","),a=[];d=g.H(d);for(var f=d.next();!f.done;f=d.next())a.push(Number(f.value));I.experimentIds=a}if(a=r.homeGroupInfo)I.homeGroupInfo=JSON.parse(a);if(a=r.getPlayerType())I.playerType=a;if(a=r.G.ctheme)I.theme=a;if(a=r.livingRoomAppMode)I.tvAppInfo=Object.assign({},I.tvAppInfo,{livingRoomAppMode:a});a=r.deviceYear;r.U("html5_propagate_device_year")&&a&&(I.tvAppInfo=Object.assign({},I.tvAppInfo,{deviceYear:a})); if(a=r.livingRoomPoTokenId)I.tvAppInfo=Object.assign({},I.tvAppInfo,{livingRoomPoTokenId:a});V.client=I;I=V.user||{};r.enableSafetyMode&&(I=Object.assign({},I,{enableSafetyMode:!0}));r.pageId&&(I=Object.assign({},I,{onBehalfOfUser:r.pageId}));V.user=I;I=r.Bp;r.U("embeds_web_enable_iframe_api_send_full_embed_url")||r.U("embeds_web_enable_rcat_validation_in_havs")||r.U("embeds_enable_autoplay_and_visibility_signals")||!I||(V.thirdParty={embedUrl:I});return V}; GJp=function(r,V,I){var d=r.videoId,a=g.DL(r),f=r.N(),e={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Gg()),referer:document.location.toString(),signatureTimestamp:20199};g.mL();r.isAutonav&&(e.autonav=!0);g.uQ(0,141)&&(e.autonavState=g.uQ(0,140)?"STATE_OFF":"STATE_ON");e.autoCaptionsDefaultOn=g.uQ(0,66);swp(r)&&(e.autoplay=!0);f.j&&r.cycToken&&(e.cycToken=r.cycToken);f.enablePrivacyFilter&&(e.enablePrivacyFilter=!0);r.isFling&&(e.fling=!0);var n=r.forceAdsUrl;if(n){var D={},x=[];n= n.split(",");n=g.H(n);for(var E=n.next();!E.done;E=n.next()){E=E.value;var N=E.split("|");N.length!==3||E.includes("=")||(N[0]="breaktype="+N[0],N[1]="offset="+N[1],N[2]="url="+N[2]);E={adtype:"video_ad"};N=g.H(N);for(var c=N.next();!c.done;c=N.next()){var z=g.H(c.value.split("="));c=z.next().value;z=fUS(z);E[c]=z.join("=")}N=E.url;c=E.presetad;z=E.viralresponseurl;var M=Number(E.campaignid);if(E.adtype==="in_display_ad")N&&(D.url=N),c&&(D.presetAd=c),z&&(D.viralAdResponseUrl=z),M&&(D.viralCampaignId= String(M));else if(E.adtype==="video_ad"){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(E.offset)||0)}};if(E=KOr[E.breaktype])w.breakType=E;N&&(w.url=N);c&&(w.presetAd=c);z&&(w.viralAdResponseUrl=z);M&&(w.viralCampaignId=String(M));x.push(w)}}e.forceAdParameters={videoAds:x,inDisplayAd:D}}r.isInlinePlaybackNoAd&&(e.isInlinePlaybackNoAd=!0);r.isLivingRoomDeeplink&&(e.isLivingRoomDeeplink=!0);D=r.Uks;if(D!=null){D={startWalltime:String(D)};if(x=r.nQ)D.manifestDuration=String(x||14400); e.liveContext=D}if(r.mutedAutoplay){e.mutedAutoplay=!0;D=f.getWebPlayerContextConfig();var b,W;(D==null?0:(b=D.embedsHostFlags)==null?0:b.allowMutedAutoplayDurationMode)&&(D==null?0:(W=D.embedsHostFlags)==null?0:W.allowMutedAutoplayDurationMode.includes(Rvr[r.mutedAutoplayDurationMode]))&&(e.mutedAutoplayDurationMode=Rvr[r.mutedAutoplayDurationMode])}if(r.uZ?0:r.BH)e.splay=!0;b=r.vnd;b===5&&(e.vnd=b);b={};if(W=r.isMdxPlayback)b.triggeredByMdx=W;if(W=r.Lz)b.skippableAdsSupported=W.split(",").includes("ska"); if(x=r.O6){W=r.O8;D=[];x=g.H(vji(x));for(n=x.next();!n.done;n=x.next()){n=n.value;E=n.platform;n={applicationState:n.OS?"INACTIVE":"ACTIVE",clientFormFactor:tnA[E]||"UNKNOWN_FORM_FACTOR",clientName:PHZ[n.Ab]||"UNKNOWN_INTERFACE",clientVersion:n.deviceVersion||"",platform:yJA[E]||"UNKNOWN_PLATFORM"};E={};if(W){N=void 0;try{N=JSON.parse(W)}catch(K){g.gj(K)}N&&(E={params:[{key:"ms",value:N.ms}]},N.advertising_id&&(E.advertisingId=N.advertising_id),N.limit_ad_tracking!==void 0&&N.limit_ad_tracking!== null&&(E.limitAdTracking=N.limit_ad_tracking),n.osName=N.os_name,n.userAgent=N.user_agent,n.windowHeightPoints=N.window_height_points,n.windowWidthPoints=N.window_width_points)}D.push({adSignalsInfo:E,remoteClient:n})}b.remoteContexts=D}W=r.sourceContainerPlaylistId;D=r.serializedMdxMetadata;if(W||D)x={},W&&(x.mdxPlaybackContainerInfo={sourceContainerPlaylistId:W}),D&&(x.serializedMdxMetadata=D),b.mdxPlaybackSourceContext=x;e.mdxContext=b;b=V.width;b>0&&(e.playerWidthPixels=Math.round(b));if(V=V.height)e.playerHeightPixels= Math.round(V);I!==0&&(e.vis=I);if(I=f.widgetReferrer)e.widgetReferrer=I.substring(0,128);g.FG(f)&&e&&(e.ancestorOrigins=f.ancestorOrigins);r.defaultActiveSourceVideoId&&(e.compositeVideoContext={defaultActiveSourceVideoId:r.defaultActiveSourceVideoId});if(f=f.getWebPlayerContextConfig())e.encryptedHostFlags=f.encryptedHostFlags;d={videoId:d,context:a,playbackContext:{contentPlaybackContext:e}};r.reloadPlaybackParams&&(d.playbackContext.reloadPlaybackContext={reloadPlaybackParams:r.reloadPlaybackParams}); r.contentCheckOk&&(d.contentCheckOk=!0);if(a=r.clientPlaybackNonce)d.cpn=a;if(a=r.playerParams)d.params=a;if(a=r.playlistId)d.playlistId=a;r.racyCheckOk&&(d.racyCheckOk=!0);a=r.N();if(e=a.embedConfig)d.serializedThirdPartyEmbedConfig=e;d.captionParams={};e=g.uQ(g.mL(),65);r.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=r.deviceCaptionsOn:g.VO(a)&&(d.captionParams.deviceCaptionsOn=e!=null?!e:!1);r.EG&&(d.captionParams.deviceCaptionsLangPref=r.EG);r.Ah.length?d.captionParams.viewerSelectedCaptionLangs= r.Ah:g.VO(a)&&(e=g.rV(),e==null?0:e.length)&&(d.captionParams.viewerSelectedCaptionLangs=e);e=r.fetchType==="onesie"&&r.U("html5_onesie_attach_po_token");f=r.fetchType!=="onesie"&&r.U("html5_non_onesie_attach_po_token");if(e||f)e=r.N(),e.uZ&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=e.uZ);a.U("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});d.playbackContext||(d.playbackContext={});d.playbackContext.devicePlaybackCapabilities=AJh(r);d.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&r.Hs("noVp9",{});return d}; AJh=function(r){var V=!(r==null?0:r.j2())&&(r==null?void 0:r.Tz())&&fo(),I;if(!(I=r==null)){I=g.EQ(r);r=r.N().W;var d=x9("243");I=!(d&&$C(I,d,r,!0)===!0)}return{supportsVp9Encoding:!(I||V),supportXhr:aj}}; l1v=function(r,V){var I,d,a;return g.L(function(f){if(f.X==1)return I={context:g.f8(r.N()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:r.videoId,cpn:r.clientPlaybackNonce}}]},d=g.aE(FOg),g.G(f,g.k_(V,I,d),2);a=f.G;return f.return(a)})}; LOi=function(r,V,I){var d=g.zM(V.experiments,"bg_vm_reinit_threshold");(!uZ||(0,g.m)()-uZ>d)&&l1v(r,I).then(function(a){a&&(a=a.botguardData)&&g.vp(a,V)},function(a){r.h0()||(a=lS(a),r.Hs("attf",a.details))})}; EM=function(r,V){g.X.call(this);this.app=r;this.state=V}; sM=function(r,V,I){r.state.G.hasOwnProperty(V)||NJ(r,V,I);r.state.L[V]=function(){return I.apply(r,g.ZU.apply(0,arguments))}; r.state.C.add(V)}; cF=function(r,V,I){r.state.G.hasOwnProperty(V)||NJ(r,V,I);r.app.N().j&&(r.state.j[V]=function(){return I.apply(r,g.ZU.apply(0,arguments))},r.state.C.add(V))}; NJ=function(r,V,I){r.state.G[V]=function(){return I.apply(r,g.ZU.apply(0,arguments))}}; g.zm=function(r,V,I){return r.state.G[V].apply(r.state.G,g.R(I))}; MJ=function(){g.yj.call(this);this.W=new Map}; C8=function(){g.X.apply(this,arguments);this.element=null;this.C=new Set;this.L={};this.j={};this.G={};this.V=new Set;this.S=new MJ;this.X=new MJ;this.Y=new MJ;this.W=new MJ}; JJU=function(r,V,I){typeof r==="string"&&(r={mediaContentUrl:r,startSeconds:V,suggestedQuality:I});a:{if((V=r.mediaContentUrl)&&(V=/\/([ve]|embed)\/([^#?]+)/.exec(V))&&V[2]){V=V[2];break a}V=null}r.videoId=V;return Tm(r)}; Tm=function(r,V,I){if(typeof r==="string")return{videoId:r,startSeconds:V,suggestedQuality:I};V={};I=g.H(Z3h);for(var d=I.next();!d.done;d=I.next())d=d.value,r[d]&&(V[d]=r[d]);return V}; XcO=function(r,V,I,d){if(g.Vc(r)&&!Array.isArray(r)){V="playlist list listType index startSeconds suggestedQuality".split(" ");I={};for(d=0;d32&&d.push("hfr");V.isHdr()&&d.push("hdr");V.primaries==="bt2020"&&d.push("wcg");I.video_quality_features=d}}if(r=r.getPlaylistId())I.list=r;return I}; WF=function(){HF.apply(this,arguments)}; $6=function(r,V){var I={};if(r.app.N().kc){r=g.H(i3r);for(var d=r.next();!d.done;d=r.next())d=d.value,V.hasOwnProperty(d)&&(I[d]=V[d]);if(V=I.qoe_cat)r="",typeof V==="string"&&V.length>0&&(r=V.split(",").filter(function(a){return UHO.includes(a)}).join(",")),I.qoe_cat=r; Qwp(I)}else for(r=g.H(mHU),d=r.next();!d.done;d=r.next())d=d.value,V.hasOwnProperty(d)&&(I[d]=V[d]);return I}; Qwp=function(r){var V=r.raw_player_response;if(!V){var I=r.player_response;I&&(V=JSON.parse(I))}delete r.player_response;delete r.raw_player_response;if(V){r.raw_player_response={streamingData:V.streamingData,playerConfig:V.playerConfig};var d;if((d=V.playbackTracking)==null?0:d.qoeUrl)r.raw_player_response=Object.assign({},r.raw_player_response,{playbackTracking:{qoeUrl:V.playbackTracking.qoeUrl}});var a;if((a=V.videoDetails)==null?0:a.videoId)r.raw_player_response=Object.assign({},r.raw_player_response, {videoDetails:{videoId:V.videoDetails.videoId}})}}; K8=function(r,V,I){var d=r.app.dF(I);if(!d)return 0;r=d-r.app.getCurrentTime(I);return V-r}; pcA=function(r){var V=V===void 0?5:V;return r?uVA[r]||V:V}; g.Rf=function(){WF.apply(this,arguments)}; vlA=function(r){NJ(r,"getInternalApiInterface",r.getInternalApiInterface);NJ(r,"addEventListener",r.B7);NJ(r,"removeEventListener",r.eCC);NJ(r,"cueVideoByPlayerVars",r.ET);NJ(r,"loadVideoByPlayerVars",r.c0Q);NJ(r,"preloadVideoByPlayerVars",r.aQM);NJ(r,"getAdState",r.getAdState);NJ(r,"sendAbandonmentPing",r.sendAbandonmentPing);NJ(r,"setLoopRange",r.setLoopRange);NJ(r,"getLoopRange",r.getLoopRange);NJ(r,"setAutonavState",r.setAutonavState);NJ(r,"seekTo",r.Ups);NJ(r,"seekBy",r.zCE);NJ(r,"seekToLiveHead", r.seekToLiveHead);NJ(r,"requestSeekToWallTimeSeconds",r.requestSeekToWallTimeSeconds);NJ(r,"seekToStreamTime",r.seekToStreamTime);NJ(r,"startSeekCsiAction",r.startSeekCsiAction);NJ(r,"getStreamTimeOffset",r.getStreamTimeOffset);NJ(r,"getVideoData",r.tB);NJ(r,"setInlinePreview",r.setInlinePreview);NJ(r,"getAppState",r.getAppState);NJ(r,"updateLastActiveTime",r.updateLastActiveTime);NJ(r,"setBlackout",r.setBlackout);NJ(r,"setUserEngagement",r.setUserEngagement);NJ(r,"updateSubtitlesUserSettings",r.updateSubtitlesUserSettings); NJ(r,"getPresentingPlayerType",r.O2);NJ(r,"canPlayType",r.canPlayType);NJ(r,"updatePlaylist",r.updatePlaylist);NJ(r,"updateVideoData",r.updateVideoData);NJ(r,"updateEnvironmentData",r.updateEnvironmentData);NJ(r,"sendVideoStatsEngageEvent",r.dpH);NJ(r,"productsInVideoVisibilityUpdated",r.productsInVideoVisibilityUpdated);NJ(r,"setSafetyMode",r.setSafetyMode);NJ(r,"isAtLiveHead",function(V){return r.isAtLiveHead(void 0,V)}); NJ(r,"getVideoAspectRatio",r.getVideoAspectRatio);NJ(r,"getPreferredQuality",r.getPreferredQuality);NJ(r,"getPlaybackQualityLabel",r.getPlaybackQualityLabel);NJ(r,"setPlaybackQualityRange",r.Mrk);NJ(r,"onAdUxClicked",r.onAdUxClicked);NJ(r,"getFeedbackProductData",r.getFeedbackProductData);NJ(r,"getStoryboardFrame",r.getStoryboardFrame);NJ(r,"getStoryboardFrameIndex",r.getStoryboardFrameIndex);NJ(r,"getStoryboardLevel",r.getStoryboardLevel);NJ(r,"getNumberOfStoryboardLevels",r.getNumberOfStoryboardLevels); NJ(r,"getCaptionWindowContainerId",r.getCaptionWindowContainerId);NJ(r,"getAvailableQualityLabels",r.getAvailableQualityLabels);NJ(r,"addCueRange",r.addCueRange);NJ(r,"addUtcCueRange",r.addUtcCueRange);NJ(r,"showAirplayPicker",r.showAirplayPicker);NJ(r,"dispatchReduxAction",r.dispatchReduxAction);NJ(r,"getPlayerResponse",r.w8);NJ(r,"getWatchNextResponse",r.Cs);NJ(r,"getHeartbeatResponse",r.Hq);NJ(r,"getCurrentTime",r.DF);NJ(r,"getDuration",r.Qb);NJ(r,"getPlayerState",r.getPlayerState);NJ(r,"getPlayerStateObject", r.bA);NJ(r,"getVideoLoadedFraction",r.getVideoLoadedFraction);NJ(r,"getProgressState",r.getProgressState);NJ(r,"getVolume",r.getVolume);NJ(r,"setVolume",r.SL);NJ(r,"isMuted",r.isMuted);NJ(r,"mute",r.z5);NJ(r,"unMute",r.x0);NJ(r,"loadModule",r.loadModule);NJ(r,"unloadModule",r.unloadModule);NJ(r,"getOption",r.n0);NJ(r,"getOptions",r.getOptions);NJ(r,"setOption",r.setOption);NJ(r,"loadVideoById",r.x4);NJ(r,"loadVideoByUrl",r.DK);NJ(r,"playVideo",r.O$);NJ(r,"loadPlaylist",r.loadPlaylist);NJ(r,"nextVideo", r.nextVideo);NJ(r,"previousVideo",r.previousVideo);NJ(r,"playVideoAt",r.playVideoAt);NJ(r,"getDebugText",r.getDebugText);NJ(r,"getWebPlayerContextConfig",r.getWebPlayerContextConfig);NJ(r,"notifyShortsAdSwipeEvent",r.notifyShortsAdSwipeEvent);NJ(r,"getVideoContentRect",r.getVideoContentRect);NJ(r,"setSqueezeback",r.setSqueezeback);NJ(r,"toggleSubtitlesOn",r.toggleSubtitlesOn);NJ(r,"isSubtitlesOn",r.isSubtitlesOn);NJ(r,"reportPlaybackIssue",r.reportPlaybackIssue);NJ(r,"setAutonav",r.setAutonav);NJ(r, "isNotServable",r.isNotServable);NJ(r,"channelSubscribed",r.channelSubscribed);NJ(r,"channelUnsubscribed",r.channelUnsubscribed);NJ(r,"togglePictureInPicture",r.togglePictureInPicture);NJ(r,"supportsGaplessAudio",r.supportsGaplessAudio);NJ(r,"supportsGaplessShorts",r.supportsGaplessShorts);NJ(r,"enqueueVideoByPlayerVars",function(V){return void r.enqueueVideoByPlayerVars(V)}); NJ(r,"clearQueue",r.clearQueue);NJ(r,"getAudioTrack",r.a6);NJ(r,"setAudioTrack",r.IDz);NJ(r,"getAvailableAudioTracks",r.AF);NJ(r,"getMaxPlaybackQuality",r.getMaxPlaybackQuality);NJ(r,"getUserPlaybackQualityPreference",r.getUserPlaybackQualityPreference);NJ(r,"getSubtitlesUserSettings",r.getSubtitlesUserSettings);NJ(r,"resetSubtitlesUserSettings",r.resetSubtitlesUserSettings);NJ(r,"setMinimized",r.setMinimized);NJ(r,"setOverlayVisibility",r.setOverlayVisibility);NJ(r,"confirmYpcRental",r.confirmYpcRental); NJ(r,"queueNextVideo",r.queueNextVideo);NJ(r,"handleExternalCall",r.handleExternalCall);NJ(r,"logApiCall",r.logApiCall);NJ(r,"isExternalMethodAvailable",r.isExternalMethodAvailable);NJ(r,"setScreenLayer",r.setScreenLayer);NJ(r,"getCurrentPlaylistSequence",r.getCurrentPlaylistSequence);NJ(r,"getPlaylistSequenceForTime",r.getPlaylistSequenceForTime);NJ(r,"shouldSendVisibilityState",r.shouldSendVisibilityState);NJ(r,"syncVolume",r.syncVolume);NJ(r,"highlightSettingsMenuItem",r.highlightSettingsMenuItem); NJ(r,"openSettingsMenuItem",r.openSettingsMenuItem);NJ(r,"getEmbeddedPlayerResponse",r.getEmbeddedPlayerResponse);NJ(r,"getVisibilityState",r.getVisibilityState);NJ(r,"isMutedByMutedAutoplay",r.isMutedByMutedAutoplay);NJ(r,"isMutedByEmbedsMutedAutoplay",r.isMutedByEmbedsMutedAutoplay);NJ(r,"setGlobalCrop",r.setGlobalCrop);NJ(r,"setInternalSize",r.setInternalSize);NJ(r,"setFauxFullscreen",r.setFauxFullscreen);NJ(r,"setAppFullscreen",r.setAppFullscreen)}; y_=function(r,V,I){r=g.t6(r.lZ(),V);return I?(I.addOnDisposeCallback(r),null):r}; g.A6=function(r,V,I){return r.app.N().JP?V:g.Tj("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:V,SHORTCUT:I})}; qjj=function(r){r.lZ().element.setAttribute("aria-live","polite")}; g.Gm=function(r,V){g.Rf.call(this,r,V);vlA(this);cF(this,"addEventListener",this.iK);cF(this,"removeEventListener",this.wH7);cF(this,"cueVideoByPlayerVars",this.v2);cF(this,"loadVideoByPlayerVars",this.vcM);cF(this,"preloadVideoByPlayerVars",this.cPQ);cF(this,"loadVideoById",this.x4);cF(this,"loadVideoByUrl",this.DK);cF(this,"playVideo",this.O$);cF(this,"loadPlaylist",this.loadPlaylist);cF(this,"nextVideo",this.nextVideo);cF(this,"previousVideo",this.previousVideo);cF(this,"playVideoAt",this.playVideoAt); cF(this,"getVideoData",this.W_);cF(this,"seekBy",this.fDE);cF(this,"seekTo",this.Znk);cF(this,"showControls",this.showControls);cF(this,"hideControls",this.hideControls);cF(this,"cancelPlayback",this.cancelPlayback);cF(this,"getProgressState",this.getProgressState);cF(this,"isInline",this.isInline);cF(this,"setInline",this.setInline);cF(this,"setLoopVideo",this.setLoopVideo);cF(this,"getLoopVideo",this.getLoopVideo);cF(this,"getVideoContentRect",this.getVideoContentRect);cF(this,"getVideoStats",this.sM); cF(this,"getCurrentTime",this.Pe);cF(this,"getDuration",this.Qb);cF(this,"getPlayerState",this.GB);cF(this,"getVideoLoadedFraction",this.hB);cF(this,"mute",this.z5);cF(this,"unMute",this.x0);cF(this,"setVolume",this.SL);cF(this,"loadModule",this.loadModule);cF(this,"unloadModule",this.unloadModule);cF(this,"getOption",this.n0);cF(this,"getOptions",this.getOptions);cF(this,"setOption",this.setOption);cF(this,"addCueRange",this.addCueRange);cF(this,"getDebugText",this.getDebugText);cF(this,"getStoryboardFormat", this.getStoryboardFormat);cF(this,"toggleFullscreen",this.toggleFullscreen);cF(this,"isFullscreen",this.isFullscreen);cF(this,"getPlayerSize",this.getPlayerSize);cF(this,"toggleSubtitles",this.toggleSubtitles);this.app.N().U("embeds_enable_move_set_center_crop_to_public")||cF(this,"setCenterCrop",this.setCenterCrop);cF(this,"setFauxFullscreen",this.setFauxFullscreen);cF(this,"setSizeStyle",this.setSizeStyle);cF(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);cF(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); glj(this)}; g.Fd=function(r){r=r.Gz();var V=r.Qz.get("endscreen");return V&&V.Tl()?!0:r.lB()}; g.l5=function(r,V){r.getPresentingPlayerType()===3?r.publish("mdxautoplaycancel"):r.Bs("onAutonavCancelled",V)}; g.J6=function(r){var V=L8(r.Gz());return r.app.LM&&!r.isFullscreen()||r.getPresentingPlayerType()===3&&V&&V.Dq()&&V.Zr()||!!r.getPlaylist()}; g.ZL=function(r,V){g.zm(r,"addEmbedsConversionTrackingParams",[V])}; g.BF=function(r){return(r=g.Xd(r.Gz()))?r.Fv():{}}; g.P7i=function(r){r=(r=r.getVideoData())&&r.X;return!!r&&!(!r.audio||!r.video)&&r.mimeType!=="application/x-mpegURL"}; g.g1=function(r,V,I){r=r.gs().element;var d=l$(r.children,function(a){a=Number(a.getAttribute("data-layer"));return I-a||1}); d<0&&(d=-(d+1));an(r,V,d);V.setAttribute("data-layer",String(I))}; g.S$=function(r){var V=r.N();if(!V.Gd)return!1;var I=r.getVideoData();if(!I||r.getPresentingPlayerType()===3)return!1;var d=(!I.isLiveDefaultBroadcast||V.U("allow_poltergust_autoplay"))&&!r1(I);d=I.isLivePlayback&&(!V.U("allow_live_autoplay")||!d);var a=I.isLivePlayback&&V.U("allow_live_autoplay_on_mweb");r=r.getPlaylist();r=!!r&&r.Dq();var f=I.p8&&I.p8.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=I.Mm&&f;return!I.ypcPreview&&(!d||a)&&!g.CG(I.kc,"ypc")&& !r&&(!g.FG(V)||f)}; kJp=function(r,V){r=oli(r.app.OO().Y);r=g.H(r);for(var I=r.next();!I.done;I=r.next()){I=I.value;var d=I.getAvailableAudioTracks(),a=null;d=g.H(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.getLanguageInfo().getId()===V){a=f;break}a&&I.Qi(a,!0)}}; i5=function(){U3.apply(this,arguments);this.requestHeaders={}}; Q_=function(){UM||(UM=new i5);return UM}; md=function(r,V){V?r.requestHeaders.Authorization="Bearer "+V:delete r.requestHeaders.Authorization}; g.u5=function(r){g.X.call(this);var V=this;this.lL=r;this.m_={UB:function(){return V.lL}}}; g.p8=function(r,V,I,d){d=d===void 0?!1:d;g.CB.call(this,V);var a=this;this.T=r;this.bL=d;this.j=new g.Su(this);this.fade=new g.eO(this,I,!0,void 0,void 0,function(){a.gk()}); g.S(this,this.j);g.S(this,this.fade)}; vF=function(r){var V=r.T.getRootNode();return r.T.U("web_watch_pip")||r.T.U("web_shorts_pip")?ib(V):document}; hvA=function(r){r.X&&(document.activeElement&&g.eG(r.element,document.activeElement)&&r.X.focus(),r.X.setAttribute("aria-expanded","false"),r.X=void 0);g.lQ(r.j);r.V=void 0}; qJ=function(r,V,I){r.NL()?r.Co():r.a8(V,I)}; PF=function(r,V,I,d){d=new g.u({J:"div",Yc:["ytp-linked-account-popup-button"],OE:d,D:{role:"button",tabindex:"0"}});V=new g.u({J:"div",Z:"ytp-linked-account-popup",D:{role:"dialog","aria-modal":"true",tabindex:"-1"},B:[{J:"div",Z:"ytp-linked-account-popup-title",OE:V},{J:"div",Z:"ytp-linked-account-popup-description",OE:I},{J:"div",Z:"ytp-linked-account-popup-buttons",B:[d]}]});g.p8.call(this,r,{J:"div",Z:"ytp-linked-account-popup-container",B:[V]},100);var a=this;this.dialog=V;g.S(this,this.dialog); d.listen("click",function(){a.Co()}); g.S(this,d);g.g1(this.T,this.element,4);this.hide()}; g.k6=function(r,V,I,d){g.CB.call(this,r);this.priority=V;I&&g.of(this,I);d&&this.ys(d)}; g.h6=function(r,V,I,d){r=r===void 0?{}:r;V=V===void 0?[]:V;I=I===void 0?!1:I;d=d===void 0?!1:d;V.push("ytp-menuitem");var a=r;"role"in a||(a.role="menuitem");I||(a=r,"tabindex"in a||(a.tabindex="0"));r={J:I?"a":"div",Yc:V,D:r,B:[{J:"div",Z:"ytp-menuitem-icon",OE:"{{icon}}"},{J:"div",Z:"ytp-menuitem-label",OE:"{{label}}"},{J:"div",Z:"ytp-menuitem-content",OE:"{{content}}"}]};d&&r.B.push({J:"div",Z:"ytp-menuitem-secondary-icon",OE:"{{secondaryIcon}}"});return r}; g.of=function(r,V){r.updateValue("label",V)}; rR=function(r){g.k6.call(this,g.h6({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var V=this;this.T=r;this.X=this.G=!1;this.F_=r.iV();r.createServerVe(this.element,this,!0);this.K(this.T,"settingsMenuVisibilityChanged",function(I){V.IT(I)}); this.K(this.T,"videodatachange",this.Y);this.listen("click",this.onClick);this.Y()}; Vb=function(r){return r?g.wF(r):""}; I5=function(r){g.X.call(this);this.api=r}; dR=function(r){I5.call(this,r);var V=this;NJ(r,"setAccountLinkState",function(I){V.setAccountLinkState(I)}); NJ(r,"updateAccountLinkingConfig",function(I){V.updateAccountLinkingConfig(I)}); r.addEventListener("videodatachange",function(I,d){V.onVideoDataChange(d)}); r.addEventListener("settingsMenuInitialized",function(){V.menuItem=new rR(V.api);g.S(V,V.menuItem)})}; r0v=function(r){this.api=r;this.G={}}; a5=function(r,V,I,d){V in r.G||(I=new g.ex(I,d,{id:V,priority:2,namespace:"appad"}),r.api.Dg([I],1),r.G[V]=I)}; f0=function(r){I5.call(this,r);var V=this;this.events=new g.Su(this);g.S(this,this.events);this.G=new r0v(this.api);this.events.K(this.api,"legacyadtrackingpingreset",function(){V.G.G={}}); this.events.K(this.api,"legacyadtrackingpingchange",function(I){var d=V.G;a5(d,"part2viewed",1,0x8000000000000);a5(d,"engagedview",Math.max(1,I.rH*1E3),0x8000000000000);if(!I.isLivePlayback){var a=I.lengthSeconds*1E3;nk(I)&&d.api.U("html5_shorts_gapless_ads_duration_fix")&&(a=d.api.getProgressState().seekableEnd*1E3-I.q0);a5(d,"videoplaytime25",a*.25,a);a5(d,"videoplaytime50",a*.5,a);a5(d,"videoplaytime75",a*.75,a);a5(d,"videoplaytime100",a,0x8000000000000);a5(d,"conversionview",a,0x8000000000000); a5(d,"videoplaybackstart",1,a);a5(d,"videoplayback2s",2E3,a);a5(d,"videoplayback10s",1E4,a)}}); this.events.K(this.api,g.nv("appad"),this.X);this.events.K(this.api,g.jx("appad"),this.X)}; aHi=function(r,V,I){if(!(I in V))return!1;V=V[I];Array.isArray(V)||(V=[V]);V=g.H(V);for(I=V.next();!I.done;I=V.next()){I=I.value;var d={CPN:r.api.getVideoData().clientPlaybackNonce};I=g.Lm(I,d);d=void 0;d=d===void 0?!1:d;(d=rk(V0(I,V9h),I,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=rk(V0(I,IHh),I,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=rk(V0(I,d3Z),I,d,"Nielsen OCR URL"));g.mn(I,void 0,d)}return!0}; eW=function(r,V){fHS(r,V).then(function(I){g.mn(V,void 0,void 0,I)})}; Yu=function(r,V){V.forEach(function(I){eW(r,I)})}; fHS=function(r,V){return g.Ai(r.api.N())&&NL(V)&&Eh(V)?g.jQ(r.api.N(),g.QW(r.api.getVideoData())).then(function(I){var d;I&&(d={Authorization:"Bearer "+I});return d},void 0):ZJ()}; edA=function(r){I5.call(this,r);this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"videoready",function(V){if(r.getPresentingPlayerType()===1){var I,d,a={playerDebugData:{pmlSignal:!!((I=V.getPlayerResponse())==null?0:(d=I.adPlacements)==null?0:d.some(function(f){var e;return f==null?void 0:(e=f.adPlacementRenderer)==null?void 0:e.renderer})), contentCpn:V.clientPlaybackNonce}};g.N9("adsClientStateChange",a)}})}; n0=function(r){g.u.call(this,{J:"button",Yc:["ytp-button","ytp-autonav-toggle"],D:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},B:[{J:"div",Z:"ytp-autonav-toggle-button-container",B:[{J:"div",Z:"ytp-autonav-toggle-button",D:{"aria-checked":"true"}}]}]});this.T=r;this.X=[];this.G=!1;this.isChecked=!0;r.createClientVe(this.element,this,113681);this.K(r,"presentingplayerstatechange",this.Nn);this.listen("click",this.onClick);this.T.N().U("web_player_autonav_toggle_always_listen")&& Yfh(this);y_(r,this.element,this);this.Nn()}; Yfh=function(r){r.X.push(r.K(r.T,"videodatachange",r.Nn));r.X.push(r.K(r.T,"videoplayerreset",r.Nn));r.X.push(r.K(r.T,"onPlaylistUpdate",r.Nn));r.X.push(r.K(r.T,"autonavchange",r.Ch))}; nNv=function(r){r.isChecked=r.isChecked;r.Fz("ytp-autonav-toggle-button").setAttribute("aria-checked",String(r.isChecked));var V=r.isChecked?"Autoplay is on":"Autoplay is off";r.updateValue("title",V);r.updateValue("label",V);r.T.Q_()}; j$X=function(r){return r.T.N().U("web_player_autonav_use_server_provided_state")&&Ia(g.J(r.Hr()))}; D3U=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"standardControlsInitialized",function(){var I=new n0(r);g.S(V,I);r.U0(I,"RIGHT_CONTROLS_LEFT")})}; jW=function(r,V){g.k6.call(this,g.h6({role:"menuitemcheckbox","aria-checked":"false"}),V,r,{J:"div",Z:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; DC=function(r,V){r.checked=V;r.element.setAttribute("aria-checked",String(r.checked))}; x3S=function(r){var V=!r.N().xQ&&r.getPresentingPlayerType()!==3;return r.isFullscreen()||V}; g.xu=function(r,V,I,d){var a=r.currentTarget;if((I===void 0||!I)&&g.yY(r))return r.preventDefault(),!0;V.pauseVideo();r=g.J(a.getAttribute("href"));g.pW(r,d,!0);return!1}; g.EH=function(r,V,I){if(kg(V.N())&&V.getPresentingPlayerType()!==2){if(g.yY(I))return V.isFullscreen()&&!V.N().externalFullscreen&&V.toggleFullscreen(),I.preventDefault(),!0}else{var d=g.yY(I);d&&V.pauseVideo();g.pW(r,void 0,!0);d&&(g.vC(r),I.preventDefault())}return!1}; NDA=function(){var r=ENX.includes("en")?{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,D:{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"}}]}:{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,D:{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"}}]};r.Z="ytp-subtitles-button-icon";return r}; NW=function(){return{J:"div",Z:"ytp-spinner-container",B:[{J:"div",Z:"ytp-spinner-rotator",B:[{J:"div",Z:"ytp-spinner-left",B:[{J:"div",Z:"ytp-spinner-circle"}]},{J:"div",Z:"ytp-spinner-right",B:[{J:"div",Z:"ytp-spinner-circle"}]}]}]}}; sH=function(r){if(document.createRange){var V=document.createRange();V&&(V.selectNodeContents(r),r=window.getSelection())&&(r.removeAllRanges(),r.addRange(V))}}; MW=function(r){var V=r.U("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";jW.call(this,V,g.cU.Tx);var I=this;this.T=r;this.G=!1;this.X=new g.hz(function(){g.xS(I.element,"ytp-menuitem-highlighted")},0); this.F_=r.iV();this.setIcon({J:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{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.S,this);this.listen(z4,this.Y);g.S(this,this.X)}; C0=function(r){I5.call(this,r);var V=this;this.G=!1;r.addEventListener("settingsMenuInitialized",function(){s$v(V)}); r.addEventListener("highlightSettingsMenu",function(I){s$v(V);var d=V.menuItem;I==="menu_item_cinematic_lighting"&&(g.jN(d.element,"ytp-menuitem-highlighted"),g.jN(d.element,"ytp-menuitem-highlight-transition-enabled"),d.X.start())}); NJ(r,"updateCinematicSettings",function(I){V.updateCinematicSettings(I)})}; s$v=function(r){r.menuItem||(r.menuItem=new MW(r.api),g.S(r,r.menuItem),r.menuItem.UE(r.G))}; c0S=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"applicationvideodatachange",function(I,d){d=d.clipConfig;I==="dataloaded"&&d&&d.startTimeMs!=null&&d.endTimeMs!=null&&V.api.setLoopRange({startTimeMs:Math.floor(Number(d.startTimeMs)),endTimeMs:Math.floor(Number(d.endTimeMs)),postId:d.postId,type:"clips"})})}; T4=function(r){I5.call(this,r);this.events=new g.Su(r);g.S(this,this.events);NJ(r,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));NJ(r,"setCreatorEndscreenHideButton",this.G.bind(this))}; HU=function(r,V,I,d){jW.call(this,"Stable Volume",g.cU.sK);g.jN(this.element,"ytp-drc-menu-item");this.F_=r.iV();this.S=V;this.G=I;this.hasDrcAudioTrack=d;r.addEventListener("videodatachange",this.X.bind(this));r.U("mta_drc_mutual_exclusion_removal")&&this.K(r,"onPlaybackAudioChange",this.X);r=this.G()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({J:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{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.Y,this);DC(this,r);this.F_.LF(this)}; wR=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);r.U("html5_show_drc_toggle")&&r.addEventListener("settingsMenuInitialized",function(){V.menuItem||(V.menuItem=new HU(V.api,V.setDrcUserPreference.bind(V),V.getDrcUserPreference.bind(V),V.X.bind(V)),g.S(V,V.menuItem))}); NJ(this.api,"setDrcUserPreference",function(d){V.setDrcUserPreference(d)}); NJ(this.api,"getDrcUserPreference",function(){return V.getDrcUserPreference()}); NJ(this.api,"hasDrcAudioTrack",function(){return V.X()}); var I;this.G=(I=g.BJ("yt-player-drc-pref"))!=null?I:1;this.updateEnvironmentData()}; bz=function(r){I5.call(this,r);var V=this;this.G={};this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"videodatachange",function(){V.onVideoDataChange()}); this.events.K(r,g.nv("embargo"),function(I){V.api.lV(!0);var d,a=(d=V.G[I.id])!=null?d:[];d=g.H(a);for(a=d.next();!a.done;a=d.next()){var f=a.value;V.api.hideControls();V.api.Ut("auth",2,"This video isn't available in your current playback area",A4({embargoed:1,id:I.id,idx:I.X,start:I.start}));a=void 0;(f=(a=f.embargo)==null?void 0:a.onTrigger)&&V.api.Bs("innertubeCommand",f)}})}; zdi=function(r,V){var I;return(I=V.onEnter)==null?void 0:I.some(r.X)}; M9S=function(r,V){V=g.H(V);for(var I=V.next();!I.done;I=V.next()){I=I.value;var d=void 0,a=Number((d=I.playbackPosition)==null?void 0:d.utcTimeMillis)/1E3,f=void 0;d=a+Number((f=I.duration)==null?void 0:f.seconds);f="embargo_"+a;r.api.addUtcCueRange(f,a,d,"embargo",!1);I.onEnter&&(r.G[f]=I.onEnter.filter(r.X))}}; OH=function(r){I5.call(this,r);var V=this;this.G=[];this.events=new g.Su(r);g.S(this,this.events);NJ(r,"addEmbedsConversionTrackingParams",function(I){V.api.N().KC&&V.addEmbedsConversionTrackingParams(I)}); this.events.K(r,"veClickLogged",function(I){V.api.hasVe(I)&&(I=I.visualElement.getAsJspb(),I=qe(I,2),V.G.push(I))})}; CZj=function(r){I5.call(this,r);NJ(r,"isEmbedsShortsMode",function(){return r.isEmbedsShortsMode()})}; TDU=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"initialvideodatacreated",function(I){Bp(Xc(),16623);V.G=g.A8();var d=r.N().BH&&!I.uZ;if(UQ(I)&&d){Bp(Xc(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(I.getWatchNextResponse()){var a,f=(a=I.getWatchNextResponse())==null?void 0:a.trackingParams;f&&S9(f)}if(I.getPlayerResponse()){var e;(I=(e=I.getPlayerResponse())==null?void 0:e.trackingParams)&&S9(I)}}else Bp(Xc(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),I.getEmbeddedPlayerResponse()&&(e=(f=I.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&S9(e)}); this.events.K(r,"loadvideo",function(){Bp(Xc(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:V.G})}); this.events.K(r,"cuevideo",function(){Bp(Xc(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:V.G})}); this.events.K(r,"largeplaybuttonclicked",function(I){Bp(Xc(),27240,I.visualElement)}); this.events.K(r,"playlistnextbuttonclicked",function(I){Bp(Xc(),27240,I.visualElement)}); this.events.K(r,"playlistprevbuttonclicked",function(I){Bp(Xc(),27240,I.visualElement)}); this.events.K(r,"playlistautonextvideo",function(){Bp(Xc(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; WU=function(r,V){g.X.call(this);var I=this;this.G=null;this.S=V;V=[];for(var d=0;d<=100;d++)V.push(d/100);V={threshold:V,trackVisibility:!0,delay:1E3};(this.X=window.IntersectionObserver?new IntersectionObserver(function(a){a=a[a.length-1];typeof a.isVisible==="undefined"?document.visibilityState==="visible"&&a.isIntersecting&&a.intersectionRatio>0?I.G=a.intersectionRatio:document.visibilityState==="hidden"?I.G=0:I.G=null:I.G=a.isVisible?a.intersectionRatio:0;typeof I.S==="function"&&I.S(I.G)},V): null)&&this.X.observe(r)}; wpU=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"applicationInitialized",function(){HwS(V)})}; HwS=function(r){var V=r.api.getRootNode(),I,d=r.api.getWebPlayerContextConfig().embedsEnableEmc3ds?E_((I=V.parentElement)==null?void 0:I.parentElement)||V:V;r.G=new WU(d,function(a){a!=null&&(r.api.N().Yg=a,r.api.N().JW="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.S(r,r.G);r.events.K(r.api,"videoStatsPingCreated",function(a){var f=r.G;f=f.G==null?null:Math.round(f.G*100)/100;a.inview=f!=null?f:void 0;f=r.api.getPlayerSize();if(f.height>0&&f.width>0){f=[Math.round(f.width),Math.round(f.height)];var e=g.rv();e>1&&f.push(e);f=f.join(":")}else f=void 0;a.size=f})}; bwX=function(r){var V;return((V=((r==null?void 0:r.messageRenderers)||[]).find(function(I){return!!I.timeCounterRenderer}))==null?void 0:V.timeCounterRenderer)||null}; $u=function(r){g.u.call(this,{J:"div",Yc:["ytp-player-content","ytp-iv-player-content"],B:[{J:"div",Z:"ytp-free-preview-countdown-timer",B:[{J:"span",OE:"{{label}}"},{J:"span",Z:"ytp-free-preview-countdown-timer-separator",OE:"\u2022"},{J:"span",OE:"{{duration}}"}]}]});this.api=r;this.G=null;this.S=this.X=0;this.K(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; WBZ=function(r,V){r.G||(r.X=V,r.S=(0,g.m)(),r.G=new g.P4(function(){OwA(r)},null),OwA(r))}; OwA=function(r){var V=Math,I=V.round,d=Math.min((0,g.m)()-r.S,r.X);V=I.call(V,(r.X-d)/1E3);r.updateValue("duration",A0({seconds:V}));V<=0&&r.G?r.stopTimer():r.G&&r.G.start()}; $3X=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"basechromeinitialized",function(){V.G=new $u(r);g.S(V,V.G);g.g1(r,V.G.element,4);V.G.hide()})}; K0=function(r){g.u.call(this,{J:"button",Yc:["ytp-fullerscreen-edu-button","ytp-button"],B:[{J:"div",Yc:["ytp-fullerscreen-edu-text"],OE:"Scroll for details"},{J:"div",Yc:["ytp-fullerscreen-edu-chevron"],B:[{J:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{J:"path",D:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],D:{"data-priority":"2"}});this.zQ=r;this.fade=new g.eO(this,250,void 0,100);this.X=this.G=!1;r.createClientVe(this.element,this,61214);g.S(this, this.fade);this.K(r,"fullscreentoggled",this.UE);this.K(r,"presentingplayerstatechange",this.UE);this.listen("click",this.onClick);this.UE()}; R5=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);NJ(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){V.updateFullerscreenEduButtonSubtleModeState(d)}); NJ(this.api,"updateFullerscreenEduButtonVisibility",function(d){V.updateFullerscreenEduButtonVisibility(d)}); var I=r.N();r.U("external_fullscreen_with_edu")&&I.externalFullscreen&&kg(I)&&I.controlsType==="1"&&this.events.K(r,"standardControlsInitialized",function(){V.G=new K0(r);g.S(V,V.G);r.U0(V.G)})}; KBO=function(r){g.u.call(this,{J:"div",Z:"ytp-gated-actions-overlay",B:[{J:"div",Z:"ytp-gated-actions-overlay-background",B:[{J:"div",Z:"ytp-gated-actions-overlay-background-overlay"}]},{J:"button",Yc:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],D:{"aria-label":"Close"},B:[g.KB()]},{J:"div",Z:"ytp-gated-actions-overlay-bar",B:[{J:"div",Z:"ytp-gated-actions-overlay-text-container",B:[{J:"div",Z:"ytp-gated-actions-overlay-title",OE:"{{title}}"},{J:"div",Z:"ytp-gated-actions-overlay-subtitle", OE:"{{subtitle}}"}]},{J:"div",Z:"ytp-gated-actions-overlay-button-container"}]}]});var V=this;this.api=r;this.background=this.Fz("ytp-gated-actions-overlay-background");this.X=this.Fz("ytp-gated-actions-overlay-button-container");this.G=[];this.K(this.Fz("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){V.api.Bs("onCloseMiniplayer")}); this.hide()}; t9j=function(r,V){var I=0;I=0;for(var d={};I a&&(a=n.width,f="url("+n.url+")")}I.background.style.backgroundImage=f;t9j(I,d.actionButtons||[]);I.show()}else I.hide()}); g.g1(this.api,this.G.element,4)}; t$=function(r){I5.call(this,r);var V=this;cF(this.api,"getSphericalProperties",function(){return V.getSphericalProperties()}); cF(this.api,"setSphericalProperties",function(){V.setSphericalProperties.apply(V,g.R(g.ZU.apply(0,arguments)))}); sM(this.api,"getSphericalProperties",function(){return V.api.getPresentingPlayerType()===2?{}:V.getSphericalProperties()}); sM(this.api,"setSphericalProperties",function(){var I=g.ZU.apply(0,arguments);V.api.getPresentingPlayerType()!==2&&V.setSphericalProperties.apply(V,g.R(I))})}; yb=function(r){I5.call(this,r);NJ(r,"createClientVe",this.createClientVe.bind(this));NJ(r,"createServerVe",this.createServerVe.bind(this));NJ(r,"destroyVe",this.destroyVe.bind(this));NJ(r,"hasVe",this.hasVe.bind(this));NJ(r,"logClick",this.logClick.bind(this));NJ(r,"logVisibility",this.logVisibility.bind(this));NJ(r,"setTrackingParams",this.setTrackingParams.bind(this))}; A$=function(r,V,I,d){function a(e){var n=!(e.status!==204&&e.status!==200&&!e.response),D;e={succ:""+ +n,rc:e.status,lb:((D=e.response)==null?void 0:D.byteLength)||0,rt:((0,g.m)()-f).toFixed(),shost:g.Rn(r),trigger:V};A0Z(e,r);I&&I(e);d&&!n&&d(new Gk("pathprobe.net",e))} var f=(0,g.m)();g.yr(r,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:a,onTimeout:a})}; A0Z=function(r,V){var I;((I=window.performance)==null?0:I.getEntriesByName)&&(V=performance.getEntriesByName(V))&&V.length&&(V=V[0],r.pedns=(V.domainLookupEnd-V.startTime).toFixed(),r.pecon=(V.connectEnd-V.domainLookupEnd).toFixed(),r.perqs=(V.requestStart-V.connectEnd).toFixed(),GKg&&(r.perqsa=V.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; FBi=function(r){GKg=r}; G4=function(r,V){this.Jz=r;this.policy=V;this.playbackRate=1}; lHj=function(r,V){var I=Math.min(2.5,bn(r.Jz));r=FX(r);return V-I*r}; lz=function(r,V,I,d,a){a=a===void 0?!1:a;if(r.policy.sL)return Math.ceil(r.policy.sL*V);r.policy.sX&&(d=Math.abs(d));d/=r.playbackRate;var f=1/$g(r.Jz);I=Math.max(.9*(d-3),bn(r.Jz)+r.Jz.X.G*f)/f*.8/(V+I);I=Math.min(I,d);r.policy.d5>0&&a&&(I=Math.max(I,r.policy.d5));return LBi(r,I,V)}; LBi=function(r,V,I){return Math.ceil(Math.max(Math.max(r.policy.Yg,r.policy.LQ*I),Math.min(Math.min(r.policy.Ws,31*I),Math.ceil(V*I))))||r.policy.Yg}; J0X=function(r,V,I){I=lz(r,V.G.info.VH,I.G.info.VH,0);var d=bn(r.Jz)+I/$g(r.Jz);return Math.max(d,d+r.policy.qC-I/V.G.info.VH)}; FX=function(r){return $g(r.Jz,!r.policy.Fq,r.policy.Tp)}; L0=function(r){return FX(r)/r.playbackRate}; J$=function(r,V,I){var d=r.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],a=r.policy.playbackStartPolicy.startMinReadaheadPolicy||[];r=Infinity;V=g.H(V&&d.length>0?d:a);for(d=V.next();!d.done;d=V.next())d=d.value,a=d.minReadaheadMs||0,I<(d.minBandwidthBytesPerSec||0)||r>a&&(r=a);return r0&&(this.X=I.wv)}; gNA=function(r,V,I,d,a){if(!d.info.W){if(I.length===0)I.push(d);else{var f;(r=(f=I.pop())==null?void 0:g.DA(f,d))?I.push(r):I.push(d)}return a}var e;(I=(e=I.pop())==null?void 0:g.DA(e,d))||(I=d);if(r.policy.Py&&I.info.X)return r.logger&&r.logger({incompleteSegment:I.info.qJ()}),a;e=r.sf(I);d=e.formatId;a=e.J0;I=e.clipId;f=e.kH;e=e.startTimeMs;if(!r.policy.eA&&r.policy.X&&r.j4){var n=XX(r.j4,I);e+=n}d={clipId:I,formatId:d,startTimeMs:e,durationMs:f,wL:a,x8:a};a=ZwS(V,d.startTimeMs);(I=a>=0?V[a]:null)&& Xpj(r,I,d)?d=I:(a+=1,V.splice(a,0,d));I=0;for(f=a+1;f=x+e.X?e=!0:E+e.X=0?r:-r-2}; SfZ=function(r,V){if(r.Uu){var I=r.Uu.yz();if(I.length!==0){if(r.S&&V){var d=r.S,a=d.info.Y;!N$(I,a)&&d.info.L>0&&(0,g.m)()-r.C<5E3&&(r.logger&&r.logger({dend:d.info.qJ()}),I=HWg(I,a,a+.01))}r.policy.Ke&&r.logger&&r.logger({cbri:""+r.G});d=[];for(var f=a=0;a=e){var E=0;if(r.j4){var N=BU(r.j4,D*1E3);N&&(E=N.kD/1E3)}N=Object.assign({},r.Eu[f]);var c=r.o7.S.get(ZT(r.Eu[f].formatId)), z=Math.max(D,e);e=c.index.m5(z+r.X/1E3-E);D=c.index.getStartTime(e)+E;var M=e+ +(Math.abs(D-z)>r.X/1E3);z=M+r.Y;M=(c.index.getStartTime(M)+E)*1E3;f!==r.G||V?(N.wL=z,N.startTimeMs=M):(r.logger&&r.logger({pEvict:"1",og:N.startTimeMs,adj:D*1E3}),N.wL=e+r.Y,N.startTimeMs=D*1E3);e=void 0;D=((e=r.S)==null?void 0:e.info.duration)||11;f===r.G&&nr.X/1E3);e=D+r.Y;E=(c.index.vA(D)+E)*1E3;N.x8=e;N.durationMs=E-N.startTimeMs;N.wL<=N.x8&&d.push(N)}xr.X)return!1;if(BDZ(r,V.formatId,I.formatId))return V.durationMs=Math.max(d,a)-V.startTimeMs,V.x8=Math.max(V.x8,I.x8),!0;if(Math.abs(V.startTimeMs-I.startTimeMs)<=r.X){if(V.durationMs>I.durationMs+r.X){r=V.formatId;var f=V.wL,e=V.x8;V.formatId=I.formatId;V.durationMs=I.durationMs;V.wL=I.wL;V.x8=I.x8;I.formatId=r;I.startTimeMs=a;I.durationMs=d-a;I.wL=f;I.x8=e;return!1}V.formatId=I.formatId;return!0}d> I.startTimeMs&&(V.durationMs=I.startTimeMs-V.startTimeMs,V.clipId===I.clipId&&(V.x8=I.wL-1));return!1}; BDZ=function(r,V,I){return V.itag!==I.itag||V.xtags!==I.xtags?!1:r.o7.Tz||V.lmt===I.lmt}; Q$v=function(r,V,I){if(r.logger){for(var d=[],a=0;a=0&&Qb(r.audioTrack,r.G)>=0&&f?((r.videoTrack.W||r.audioTrack.W)&&r.loader.Hs("iterativeSeeking",{status:"done",count:r.seekCount}),r.videoTrack.W=!1,r.audioTrack.W=!1):d&&g.$i(function(){if(r.X||!r.policy.rH)p0(r);else{var e=V.startTime,n=V.duration;if(!r.policy.C){var D=I?r.videoTrack.W:r.audioTrack.W,x=r.videoTrack.C!==-1&&r.audioTrack.C!==-1,E=r.G>=e&&r.G432E3&&CfU(r.o7);r.S&&(a=r.S,r.S=0);g.$i(function(){r.policy.C||vU(r,a,102)}); r.loader.Hs("initManifestlessSync",{st:a,ost:a+r.loader.N2(),a:r.audioTrack.C,v:r.videoTrack.C});r.Y&&(r.Y.resolve(a+.1),r.Y=null);r.policy.C&&vU(r,a,102)}}}; o5=function(r,V){var I=this;this.q2=r;this.requestNumber=++rjZ;this.G=this.now();this.j=this.V=NaN;this.L=this.G;this.S=this.dH=this.W=0;this.C=this.G;this.Mk=this.kc=this.R7=this.Hy=this.Bp=this.GQ=this.X=this.Y=0;this.QH=this.isActive=!1;this.X_=this.DM=0;this.m_={I3s:function(){return I.I0}}; this.Jz=V.Jz;this.snapshot=q7S(this.Jz);this.policy=this.Jz.X;this.JL=!!V.JL;this.Gl=V.Gl;this.QF=V.QF||0;this.WH=V.WH||0;V.h_&&(this.n8=new Na);var d;this.I0=(d=V.I0)!=null?d:!1;this.JL||u9i(this.Jz)}; Vvg=function(r){r.R7=Math.max(r.R7,r.W-r.Bp);r.kc=Math.max(r.kc,r.L-r.Hy);r.GQ=0}; ku=function(r,V,I){pbO(r.Jz,V);r.n8&&(r.n8.add(Math.ceil(V)-Math.ceil(r.L)),r.n8.add(Math.max(0,Math.ceil(I/1024)-Math.ceil(r.W/1024))));var d=V-r.L,a=I-r.W;r.dH=a;r.Mk=Math.max(r.Mk,a/(d+.01)*1E3);r.L=V;r.W=I;r.GQ&&I>r.GQ&&Vvg(r)}; h$=function(r,V){r.url=V;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; rK=function(r,V){o5.call(this,r,V);this.Qa=this.gH=!1;this.p8=this.bL=Infinity;this.TQ=NaN;this.rH=!1;this.a7=NaN;this.M2=this.Ws=this.L8=0;this.O9=V.O9||1;this.xV=V.xV||this.O9;this.Hu=V.Hu;this.J0=V.J0;this.pw=V.pw;IQU(this);this.RV(this.G);this.ya=(this.a7-this.G)/1E3}; dOZ=function(r){var V=r.Ws||r.L8;return V?r.snapshot.delay+Math.min(r.WH,(r.j-r.V)/1E3)+V:r.ya}; Vz=function(r,V,I){if(!r.JL){V=Math.max(V,.01);var d=r.QF?Math.max(V,I/r.QF):V,a=r.Jz.X.S;a&&(d=V,r.QF&&(d=Math.max(V,I/r.QF*a)));Tt(r.Jz,V,I,d)}}; aQA=function(r){return(r.C-r.G)/1E3}; IQU=function(r){r.TQ=r.G+r.snapshot.delay*1E3;r.rH=!1}; Ig=function(r,V){if(r.Hu&&r.J0!==void 0&&r.pw!==void 0){var I=Math,d=I.min,a=r.bL;var f=r.Hu;var e=r.G;if(fQj(f,r.J0))f=V;else{var n=0;f.tK&&(n=.2);f=e+(f.WH+n)*1E3}r.bL=d.call(I,a,f);I=Math;d=I.min;a=r.p8;f=r.Hu;e=r.G;n=eDS(f,r.J0,r.pw);n!==2&&(V=n?V:e+f.WH*1E3,f.tK&&(V+=f.WH*1E3));r.p8=d.call(I,a,V);r.bL<=r.G?IQU(r):(r.TQ=r.bL,r.rH=!0)}}; YGv=function(r,V){if(r.XL(V,1)){var I=r.getUint8(V);I=I<128?1:I<192?2:I<224?3:I<240?4:5}else I=0;if(I<1||!r.XL(V,I))return[-1,V];if(I===1)r=r.getUint8(V++);else if(I===2)I=r.getUint8(V++),r=r.getUint8(V++),r=(I&63)+64*r;else if(I===3){I=r.getUint8(V++);var d=r.getUint8(V++);r=r.getUint8(V++);r=(I&31)+32*(d+256*r)}else if(I===4){I=r.getUint8(V++);d=r.getUint8(V++);var a=r.getUint8(V++);r=r.getUint8(V++);r=(I&15)+16*(d+256*(a+256*r))}else I=V+1,r.focus(I),Kn(r,I,4)?r=KfO(r).getUint32(I-r.JR,!0):(d= r.getUint8(I+2)+256*r.getUint8(I+3),r=r.getUint8(I)+256*(r.getUint8(I+1)+256*d)),V+=5;return[r,V]}; dK=function(r){this.q2=r;this.G=new be}; ag=function(r,V){this.info=r;this.callback=V;this.state=1;this.cW=this.xA=!1;this.pn=null}; nCi=function(r){return g.py(r.info.iL,function(V){return V.type===3})}; fF=function(r,V,I,d){var a=this;d=d===void 0?{}:d;this.policy=V;this.q2=I;this.status=0;this.G=new be;this.X=0;this.h0=this.S=this.cK=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",r);if(d.headers)for(r=d.headers,V=g.H(Object.keys(r)),I=V.next();!I.done;I=V.next())I=I.value,this.xhr.setRequestHeader(I,r[I]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return a.dM()}; this.xhr.onload=function(){return a.onDone()}; this.xhr.onerror=function(){return a.onError()}; this.xhr.fetch(function(f){a.G.append(f);a.X+=f.length;f=(0,g.m)();a.q2.Mv(f,a.X)},function(){},d.body||null)}; YP=function(){this.X=this.jU=0;this.G=Array.from({length:ef.length}).fill(0)}; jCj=function(){}; DOp=function(){this.startTimeMs=(0,g.m)();this.G=!1}; xOh=function(){this.G=new jCj}; ECX=function(r,V,I,d){d=d===void 0?1:d;I>=0&&(V in r.G||(r.G[V]=new YP),r.G[V].bP(I,d))}; NVU=function(r,V,I,d,a){var f=(0,g.m)(),e=a?a(V):void 0,n;a=(n=e==null?void 0:e.jU)!=null?n:1;if(a!==0){var D;n=(D=e==null?void 0:e.profile)!=null?D:I;ECX(r,n,f-d,a)}return V}; nF=function(r,V,I,d,a){if(V&&typeof V==="object"){var f=function(e){return NVU(r,e,I,d,a)}; if(Cw(V))return V.then(f);if(sCj(V))return Wp(V,f)}return NVU(r,V,I,d,a)}; cjX=function(){}; zDr=function(r,V){this.X=(new TextEncoder).encode(r);this.G=(new TextEncoder).encode(V)}; eMA=function(r,V){var I,d,a;return g.L(function(f){if(f.X==1){if(!V)return f.return(V);I=jf.L5();d=new g.KX(r.X);return g.G(f,d.encrypt(V,r.G),2)}a=f.G;jf.r3("woe",I,Math.ceil(V.byteLength/16));return f.return(a)})}; xEi=function(r,V){var I,d,a;return g.L(function(f){if(f.X==1){if(!V)return f.return(V);I=jf.L5();d=new g.KX(r.X);return g.G(f,d.decrypt(V,r.G),2)}a=f.G;jf.r3("wod",I,Math.ceil(V.byteLength/16));return f.return(a)})}; CYh=function(r,V){var I=this;this.G=r;this.q2=V;this.loaded=this.status=0;this.error="";r=gr(this.G.get("range")||"");if(!r)throw Error("bad range");this.range=r;this.X=new be;MvA(this).then(function(){I.q2.W1()},function(d){I.error=""+d||"unknown_err"; I.q2.W1()})}; MvA=function(r){var V,I,d,a,f,e,n,D,x,E,N,c,z,M,w;return g.L(function(b){if(b.X==1){r.status=200;V=r.G.get("docid");I=My(r.G.get("fmtid")||"");d=r.G.get("lmt")||"0";a=+(r.G.get("csz")||0);if(!V||!I||!a)throw Error("Invalid local URL");r.G.get("ck")&&r.G.get("civ")&&(f=new zDr(r.G.get("ck"),r.G.get("civ")));e=r.range;n=Math.floor(e.start/a);D=Math.floor(e.end/a);x=n}if(b.X!=5)return x<=D?g.G(b,Esr(V,I,d,x,f),5):b.qk(0);E=b.G;if(E===void 0)throw Error("invariant: data is undefined");N=x*a;c=(x+1)*a; z=Math.max(0,e.start-N);M=Math.min(e.end+1,c)-(z+N);w=new Uint8Array(E.buffer,z,M);r.X.append(w);r.loaded+=M;r.loaded0&&(a.G=Math.min(a.G+e,10),a.X=f);a.G>0?(a.G--,a=!0):a=!1;if(a)typeof d==="function"&&(d=d()),console.log("plyr."+V,d);else{var n;d=((n=RDZ.get(V))!=null?n:0)+1;RDZ.set(V,d);d%100===1&&console.warn("plyr","plyr."+V+" is chatty, dropping logs.")}}}; KVZ=function(){this.G=10;this.X=Date.now()}; Nk=function(r,V){g.X.call(this);var I=this;this.policy=r;this.iL=V;this.X=0;this.G=null;this.gm=[];this.S=null;this.m_={zr:function(){return I.iL}}; this.iL.length===1||g.py(this.iL,function(d){return!!d.range})}; sP=function(r,V,I){r.G&&(OT(r.G,V),V=r.G,r.G=null);for(var d=0,a=0,f=g.H(r.iL),e=f.next();!e.done;e=f.next())if(e=e.value,e.range&&d+e.S<=r.X)d+=e.S;else{V.getLength();if(QF(e)&&!I&&r.X+V.getLength()-a=400?(r.lastError="net.badstatus",!0):(a===void 0?0:a)?(r.lastError="ump.spsrejectfailure",!0):I||d!==void 0&&d?!1:(r.lastError=V===204?"net.nocontent":"net.connect",!0)}; Hd=function(r,V){if(r.policy.PU)return!1;var I=V.getResponseHeader("content-type"),d=V.nu();r=!d||d<=r.policy.BV;return(!V.LT()||!I||I.indexOf("text/plain")!==-1)&&r}; lQj=function(r,V){var I="";V=V.Jq();V.getLength()<=r.policy.BV&&(I=FVi(r,V.ji()));return I}; FVi=function(r,V){var I=yI(V);return Iv(I)?(r.logger.debug(function(){return"Redirecting to "+I}),I):""}; zl=function(r){return AX(r.S,Jj(r.t9.Pa))}; LVj=function(r){var V=r.timing.g5();V.shost=Jj(r.t9.Pa);return V}; Jjv=function(r,V){return(r==null?void 0:r.maxWidth)>(V==null?void 0:V.maxWidth)||(r==null?void 0:r.maxHeight)>(V==null?void 0:V.maxHeight)}; ZcA=function(r,V){for(var I=g.H(V.keys()),d=I.next();!d.done;d=I.next())if(d=V.get(d.value),d.length!==0){g.LG(d,function(n,D){return D.maxFramerate-n.maxFramerate}); for(var a=[d[0]],f=0,e=1;er.G||I.push(d)}return I}; wK=function(r,V,I){var d=gCh[r]||[];I.U("html5_shorts_onesie_mismatched_fix")&&(d=SGU[r]||[]);V.push.apply(V,g.R(d));I.U("html5_early_media_for_drm")&&V.push.apply(V,g.R(icA[r]||[]))}; vCA=function(r,V){var I=g.EQ(r),d=r.N(),a=d.W;d=d.U("html5_shorts_onesie_mismatched_fix");var f=r.bu();if(d){if(!a.W){if(f&&bG)return bG;if(OP)return OP}}else if(OP&&!a.W)return OP;var e=[],n=[],D={},x=Wd.concat(UOh);d&&(x=Wd.concat(QCp));r.U("html5_early_media_for_drm")&&(x=x.concat(mOg),r.U("allow_vp9_1080p_mq_enc")&&x.push(uqg));var E=[].concat(g.R(p7v));r.U("html5_iamf_audio_onesie_fmt")&&E.push(["773"]);x=g.H(x);for(var N=x.next();!N.done;N=x.next()){var c=!1;N=g.H(N.value);for(var z=N.next();!z.done;z= N.next()){z=z.value;var M=x9(z,f&&d);if(M&&M.video&&!(h4(M)&&!I.bL&&M.video.qualityOrdinal>I.WZ)){var w=g.zM(r.N().experiments,"html5_drm_byterate_soft_cap");w>0&&ChU(M)&&M.VH>w||(c?(e.push(z),wK(z,e,r)):(M=$C(I,M,a),M===!0?(c=!0,e.push(z),wK(z,e,r)):D[z]=M))}}}E=g.H(E);for(x=E.next();!x.done;x=E.next())for(x=g.H(x.value),c=x.next();!c.done;c=x.next())if(c=c.value,(N=C2U(c))&&N.audio&&(r.U("html5_onesie_51_audio")||!rg(N)&&!VU(N)))if(N=$C(I,N,a),N===!0){n.push(c);wK(c,n,r);break}else D[c]=N;I.X&& V("orfmts",D);if(d)return a.W&&(a.W=!1,bG=OP=void 0),f?bG={video:e,audio:n}:OP={video:e,audio:n};OP={video:e,audio:n};a.W=!1;return OP}; g.oCv=function(r,V,I){var d=I.W,a=[],f=[],e=I.U("html5_shorts_onesie_mismatched_fix");r=r.bu();var n=Wd.concat(UOh);e&&(n=Wd.concat(QCp));I.U("html5_early_media_for_drm")&&(n=n.concat(mOg),I.U("allow_vp9_1080p_mq_enc")&&n.push(uqg));var D=[].concat(g.R(p7v));I.U("html5_iamf_audio_onesie_fmt")&&D.push(["773"]);n=g.H(n);for(var x=n.next();!x.done;x=n.next()){x=g.H(x.value);for(var E=x.next();!E.done;E=x.next()){E=E.value;var N=x9(E,r&&e);if(N&&N.video){var c=g.zM(I.experiments,"html5_drm_byterate_soft_cap"); if(!(c>0&&ChU(N)&&N.VH>c)&&$C(V,N,d)===!0){a.push({videoCodec:qGi[vq[E]],maxWidth:N.video.width,maxHeight:N.video.height,maxFramerate:N.video.fps});break}}}}e=g.H(D);for(r=e.next();!r.done;r=e.next())for(r=g.H(r.value),D=r.next();!D.done;D=r.next())if(D=D.value,(n=C2U(D))&&n.audio&&(I.U("html5_onesie_51_audio")||!rg(n)&&!VU(n))&&$C(V,n,d)===!0){f.push({audioCodec:PYi[vq[D]],numChannels:n.audio.numChannels});break}return{videoFormatCapabilities:a,audioFormatCapabilities:f}}; $P=function(r){var V={},I=r.lL,d=r.mM,a=I.getVideoData(),f=Pp(0),e=d.U("html5_sabr_use_container_size")?I.Eh():I.getPlayerSize(),n=I.getVisibilityState();if(d.U("html5_enable_audio_quality_setting")){var D=g.zM(d.experiments,"html5_default_audio_quality_setting_lr"),x;V.VB=(x=kbg[D])!=null?x:0}f&&(V.j7H=f,V.lastManualDirection=XES(),f=p4h()||0,f>0&&(f=(d.U("html5_use_date_now_for_local_storage")?Date.now():(0,g.m)())-f,d.U("html5_use_date_now_for_local_storage")?f>0&&(V.timeSinceLastManualFormatSelectionMs= f):V.timeSinceLastManualFormatSelectionMs=f));f=d.U("html5_use_streamer_bandwidth_for_low_latency_live")&&a.isLowLatencyLiveStream;if(d.schedule.QH&&!f){var E;f=d.U("html5_disable_bandwidth_cofactors_for_sabr_live")?!((E=r.Qs)==null||!E.Fq):!1;V.yd=$g(d.schedule,!f)}E=g.rv();D=g.Qf.medium;x=Math.floor(D*16/9);f=a.bu()?D:x;D=a.bu()?x:D;V.Jo=Math.max(e.width*E,f);V.Yv=Math.max(e.height*E,D);V.visibility=n;V.zXz=Gg();V.wD=I.vL()*1E3;e=r.lL.D6(!0);var N,c,z,M,w,b;V.PZz={defaultPolicy:(e==null?void 0: (N=e.ge)==null?void 0:N.G)||0,smooth:(e==null?void 0:(c=e.kRM)==null?void 0:c.G)||0,visibility:(e==null?void 0:(z=e.raC)==null?void 0:z.G)||0,qB:(e==null?void 0:(M=e.nX)==null?void 0:M.G)||0,performance:(e==null?void 0:(w=e.Z7)==null?void 0:w.G)||0,speed:(e==null?void 0:(b=e.w3k)==null?void 0:b.G)||0};var W;V.GR7=(e==null?void 0:(W=e.FvL)==null?void 0:W.G)||0;V.tR=r.tR&&r.tR.length>0?r.tR:[1,2];r.sabrLicenseConstraint&&(V.sabrLicenseConstraint=r.sabrLicenseConstraint);if(d.U("html5_onesie_media_capabilities")|| d.U("html5_enable_server_format_filter"))V.yC=3;d.U("html5_onesie_audio_only_playback")&&j3(a)&&(V.yC=1);var K;((K=r.Qs)==null?0:K.Qa)&&r.s7s&&(V.yC=V.yC===void 0?7:V.yC|4);N=a.LJ?a.LJ:g.EQ(a);d.U("html5_onesie_media_capabilities")&&(V.mediaCapabilities=g.oCv(a,N,d));var F;if((F=r.Qs)==null?0:F.G&&F.JP){z=d.W;F=[];c=[];M=new Map;d.U("html5_ssap_update_capabilities_on_change")?(z.QH||gXi(z),w=z.QH||[]):w=Array.from(z.G.values());w=g.H(w);for(b=w.next();!b.done;b=w.next())W=b.value,W.HH?c.push({audioCodec:PYi[W.A0], numChannels:W.numChannels,spatialCapabilityBitmask:hDU[W.A0]}):(K=qGi[W.A0],b={videoCodec:K,maxWidth:W.maxWidth||0,maxHeight:W.maxHeight||0,maxFramerate:W.maxFramerate||0,is10BitSupported:W.xW||!1},W.maxBitrateBps&&(b.maxBitrateBps=W.maxBitrateBps,e=x9(W.itag),n=void 0,((n=e)==null?0:n.video)&&$C(N,e,z)===!0&&(e=e.VH*8,e>b.maxBitrateBps&&(b.maxBitrateBps=e))),W=K+"_"+W.xW,K=M.get(W)||[],K.push(b),M.set(W,K));F=ZcA(F,M);z={};d.U("html5_ssff_denylist_opus_low")&&(z={itagDenylist:[249,350]});V.mediaCapabilities= {videoFormatCapabilities:F,audioFormatCapabilities:c,hdrModeBitmask:3,perPlaybackAttributes:z}}var l;if((l=r.Qs)==null?0:l.G){V.UO=N.UO;var B;V.WZ=(B=r.Qs)==null?void 0:B.WZ}d.Nm&&(V.QN=d.Nm);V.bW=r.cS;V.W$=r.W$;V.z7=r.z7;V.NK=r.NK;if(d.U("html5_fix_time_since_last_seek_reporting")?r.v9!==void 0:r.v9)V.fts=(0,g.m)()-r.v9;r.isPrefetch&&d.U("html5_report_prefetch_requests")&&(V.isPrefetch=!0);aj||(V.FK7=!0);l=bn(d.schedule)*1E3;l>0&&(V.W2=l);var P;((P=r.Qs)==null?0:P.sy)&&r.Q$&&r.Q$0?p:d.schedule.interruptions[0]||0);var dA;if((dA=r.Qs)==null?0:dA.gH)V.jn=r.jn;d.U("html5_sabr_enable_server_xtag_selection")&&(a.GK||d.Mk)&&(V.audioTrackId=a.GK||d.Mk);if(d.U("html5_log_mosaic_audio_track_id")&& pk(a)&&!V.audioTrackId){var fg;a:{var rA,ji,k;dA=(rA=a.playerResponse)==null?void 0:(ji=rA.playerConfig)==null?void 0:(k=ji.compositeVideoConfig)==null?void 0:k.sourceConfigs;var bX,RX;rA=(fg=a.playerResponse)==null?void 0:(bX=fg.playerConfig)==null?void 0:(RX=bX.compositeVideoConfig)==null?void 0:RX.defaultActiveSourceVideoId;if(dA&&rA)for(fg=g.H(dA),bX=fg.next();!bX.done;bX=fg.next())if(bX=bX.value,bX.videoId===rA&&bX.audioTracks)for(bX=g.H(bX.audioTracks),RX=bX.next();!RX.done;RX=bX.next())if(RX= RX.value,RX.isDefaultForSource){fg=RX.id||"";break a}fg=""}V.audioTrackId=fg;a==null||a.Hs("misstrkchg",{"default":V.audioTrackId})}var Ui;if((Ui=r.Qs)==null?0:Ui.Jg)if(r=ctr())V.detailedNetworkType=rXX[r]||rXX.other;d.U("html5_enable_voice_boost")&&(V.waM=d.WG);return V}; KF=function(r,V,I,d,a,f,e){var n={};V&&(n.Mc=V);if(!r)return n;n.playbackCookie=I==null?void 0:I.playbackCookie;a&&(n.SN=a);n.v4=[];n.IJ=[];if(e==null?0:e.size)for(V=g.H(e.values()),I=V.next();!I.done;I=V.next())n.IJ.push(I.value);if(r.sabrContextUpdates.size>0)for(V=g.H(r.sabrContextUpdates.values()),I=V.next();!I.done;I=V.next())V6A(n,I.value,d);cJr(r)&&f&&V6A(n,f,d);r.LQ&&(n.yZz=r.LQ);d=r.N().G;n.clientInfo={clientName:ITg[d.c.toUpperCase()]||0};d.cbrand&&(n.clientInfo.deviceMake=d.cbrand);d.cmodel&& (n.clientInfo.deviceModel=d.cmodel);d.cver&&(n.clientInfo.clientVersion=d.cver);d.cos&&(n.clientInfo.osName=d.cos);d.cosver&&(n.clientInfo.osVersion=d.cosver);d=r.N();d.U("html5_sabr_enable_server_xtag_selection")&&d.ll&&(n.clientInfo.hl=d.ll);r.gr&&(n.gr=r.gr);return n}; V6A=function(r,V,I){var d=V.type||0;(I==null?0:I.has(d))?r.IJ.push(V):r.v4.push(d)}; iz=function(r,V,I,d,a,f){var e=f===void 0?{}:f;var n=e.m3===void 0?[]:e.m3;var D=e.Fm===void 0?!1:e.Fm;var x=e.ZZ===void 0?0:e.ZZ;var E=e.poToken===void 0?"":e.poToken;var N=e.Jc===void 0?void 0:e.Jc;var c=e.Jm===void 0?"":e.Jm;var z=e.Zt===void 0?0:e.Zt;var M=e.Zm===void 0?new Uint8Array(0):e.Zm;var w=e.Li===void 0?!1:e.Li;f=e.Dr===void 0?0:e.Dr;e=e.Mc===void 0?void 0:e.Mc;ag.call(this,V,a);var b=this;this.policy=r;this.logger=new g.xP("dash/request");this.vJ=this.jr=0;this.WY=!1;this.iP=this.jg= null;this.xR=!1;this.Zm=this.Zt=null;this.g6=this.Kt=!1;this.xq=null;this.Dr=this.VU=0;this.Zk=!1;this.m_={Az:function(K){b.Az(K)}, ruk:function(){return b.pn}, j$L:function(K){b.pn=K}, K6z:function(K){b.jr=K}, ZY7:function(K){b.fF.lastError=K}, Lx:function(){return b.xhr}}; this.timing=new rK(this,I);this.Fm=D;this.Zt=z;this.Zm=M;this.t9=g.hX(this.info,this.policy,d);this.t9.set("rn",this.Ec().toString());this.t9.set("rbuf",(x*1E3).toFixed().toString());this.Fm&&this.t9.set("smb","1");this.policy.o0&&E&&this.t9.set("pot",E);c&&this.t9.set("bbs",c);this.policy.useUmp&&!ZQ(this.t9.Pa)&&(this.n_=new dK(this),this.t9.set("ump","1"),this.t9.set("srfvp","1"));if(r=this.policy.ZU?this.policy.Al&&!isNaN(this.info.pw)&&this.info.pw>this.policy.Mn?!1:!0:!1)V=null,this.policy.eB&& this.policy.WO?V=[1]:w&&(V=[]),V!=null&&(this.policy.nf&&V.push(2),this.t9.set("defsel",V.join(",")));this.fF=new cd(this,this.policy,this.t9,this.info.po,this.timing,this.logger,d,N);this.m3=n||null;this.cW=dxp(this);tvh(this.fF);d=void 0;if(this.policy.AX||this.n_||this.policy.R7)d={method:"POST"},n=(0,g.Rg)([120,0]),N={},this.policy.Fe&&e&&(e=KF(void 0,e),N.dI=e),this.policy.IG&&this.Zm&&(N.videoPlaybackUstreamerConfig=this.Zm),this.policy.R7&&(e=this.info.Y)&&Object.assign(N,e),Object.keys(N).length> 0?d.body=g.ru(N,g.DQ):d.body=n;if(this.Zt&&this.Zm){this.t9.set("iwts","1");d={method:"POST"};e={NK:this.Zt*1E3};var W;n=(W=this.info.Y)==null?void 0:W.bT;W=g.ru({yQ:e,bT:n||void 0,videoPlaybackUstreamerConfig:this.Zm},g.DQ);d.body=W}try{this.xhr=DK(this.t9,this.policy.j,this.timing,r,d),this.fF.X.start(),f&&(this.vt=new g.hz(this.b3,f,this),this.vt.start(f+(this.timing.Jz.j.PH()||0)*1E3)),this.policy.Sn&&h$(this.timing,this.fq()),this.logger.debug(function(){return"Sent, itag="+b.t9.get("itag")+ " seg="+b.info.iL[0].J0+" range="+b.t9.get("range")+" time="+Math.round(b.info.iL[0].Y)+"-"+Math.round(g.Nm(b.info.iL).C)+" rtp="+(b.timing.r9()-Date.now()).toFixed(0)}),g.$i(function(){})}catch(K){aTv(this,K,!0)}}; dxp=function(r){if(!(kk(r.info)&&r.info.I0()&&r.policy.Nm&&r.m3)||r.info.po.S>=2||Pp()>0||!iMX())return!1;var V=r.t9.get("aitags");if(!V)return!1;V=My(V).split(",");for(var I=[],d=g.H(r.m3),a=d.next();!a.done;a=d.next())a=a.value,g.CG(V,a)&&I.push(a);if(!I.length)return!1;r.t9.set("altitags",g.zP(I.join(",")));return!0}; aTv=function(r,V,I){I=I===void 0?!1:I;g.BG(V);r.fF.lastError="player.exception";r.errorMessage=V.name+"_"+V.message;I?g.$i(function(){CF(r.fF)}):CF(r.fF)}; fTg=function(r,V){r.timing.QH=!0;r.xhr.LT()&&r.timing.w0();if(r.policy.By){var I;(I=r.vt)==null||I.stop()}sP(r.pn,V,!1)}; eKO=function(r,V){r.info=V;if(r.pn){var I=r.pn;V=V.iL;(V.length!==I.iL.length||V.length0){V=g.H(V.iL);for(var I=V.next();!I.done;I=V.next()){var d=void 0;r+=((d=I.value.range)==null?void 0:d.length)||0}return r}if(V.fO.length>0)for(I=g.H(V.fO),d=I.next();!d.done;d=I.next())r+=d.value.kz||0;return r+V.Fp}; JG=function(r,V){if(F_){var I=0;r=r.I8.get(V);if(r==null||!r.Eo)return 0;r=g.H(r.Eo.values());for(V=r.next();!V.done;V=r.next())I+=V.value.data.getLength();return I}return((I=r.I8.get(V))==null?void 0:I.gm.getLength())||0}; ZK=function(r,V){r=r.I8.get(V);if(F_){if(r==null||!r.nz)return!1;V=r.Eo.size>0;return r.Pw.length>0||V}return!(r==null||!r.nz)&&!(r==null||!r.gm.getLength())}; Ekg=function(r,V){var I=r.I8.get(V),d=xxZ(r,V),a=!d&&!!I.bytesReceived;if(F_){var f;if((f=r.o7)==null?0:f.Tz){r=g.H(I.Eo.values());for(V=r.next();!V.done;V=r.next())if(!V.value.zf)return!1;return a}}else if(f=r.s4(V),a&&r.G&&f!==void 0)return f;return(a||I.bytesReceived===d)&&I.d_+JG(r,V)===I.bytesReceived}; Nrj=function(r,V,I){r.I8.set(V,{gm:new be,d_:0,bytesReceived:0,Fp:0,XS:!1,H3:!1,s4:!1,HH:I,uW:[],iL:[],fO:[],nz:!1,Eo:new Map,eV:new Map,Pw:[]});r.logger.debug(function(){return"[initStream] formatId: "+V})}; siA=function(r,V,I,d){I.iL.push.apply(I.iL,g.R(d));if(F_){I.eV.has(V)||I.eV.set(V,[]);var a;(a=I.eV.get(V)).push.apply(a,g.R(d))}else if(I.pn)for(r=g.H(d),V=r.next();!V.done;V=r.next())I.pn.iL.push(V.value);else{I.pn=new Nk(r.Qs,[].concat(g.R(I.iL)));var f;((f=r.Qs)==null?0:f.tW)&&g.S(r,I.pn)}}; cXX=function(r,V,I){var d,a=(d=r.o7)==null?void 0:d.S.get(V);if(!a)return[];if(I.S6){var f;return((f=a.eW(0,I.clipId))==null?void 0:f.iL)||[]}if(a.xD()){var e=I.startMs,n=I.durationMs,D=1E3,x;if(((x=r.Qs)==null?0:x.G)&&I.timeRange){var E;e=(E=I.timeRange.startTicks)!=null?E:-1;var N;n=(N=I.timeRange.xI)!=null?N:-1;var c;D=(c=I.timeRange.timescale)!=null?c:-1}if(I.Xt<0||I.j6<0||n<0||e<0||I.kz<0||D<0)return LF(r,V),[];r=S6(I.Xt,I.kz);V=I.Ns||0;return[new UC(3,a,r,"makeSliceInfosMediaBytes",I.j6-1,e/ D,n/D,V,r.length-V,void 0,I.PZ,I.clipId)]}if(I.j6<0)return LF(r,V),[];var z;return((z=r.o7)==null?0:z.Tz)?(V=a.y7,x=V*a.info.VH,E=((e=r.Qs)==null?0:e.Py)?I.Ns:void 0,((D=r.Qs)==null?0:D.P4)&&I.timeRange&&!E&&(n=I.timeRange.startTicks/I.timeRange.timescale),[new UC(3,a,void 0,"makeSliceInfosMediaBytes",I.j6,n,V,E,x,!0,I.PZ,I.clipId)]):[]}; zKS=function(r,V,I){r.o7=V;r.Qs=I;V=g.H(r.I8);for(I=V.next();!I.done;I=V.next()){var d=g.H(I.value);I=d.next().value;d=d.next().value;for(var a=g.H(d.uW),f=a.next();!f.done;f=a.next()){f=f.value;var e=cXX(r,I,f);siA(r,f.b7,d,e)}}}; X_=function(r,V,I,d){r.logger.debug(function(){return"[addStreamData] formatId: "+I+",headerId: "+V+" bytes: "+d.getLength()}); (r=r.I8.get(I))&&!r.H3&&(F_?(r.Eo.has(V)||r.Eo.set(V,{data:new be,i$:0,zf:!1}),OT(r.Eo.get(V).data,d)):OT(r.gm,d),r.bytesReceived+=d.getLength(),r.XS=!0)}; lG=function(r,V){r.logger.debug(function(){return"[closeStream] formatId: "+V}); var I=r.I8.get(V);I&&!I.H3&&(I.H3=!0,I.uI&&I.uI(),M6i(r)&&r.Y.L3())}; M6i=function(r){r=g.H(r.I8.values());for(var V=r.next();!V.done;V=r.next())if(!V.value.H3)return!1;return!0}; CUv=function(r){F_=r}; Bd=function(r,V,I,d,a,f,e,n){g.X.call(this);this.policy=r;this.info=V;this.o7=I;this.q2=a;this.m$=n;this.logger=new g.xP("sabr");this.n_=new dK(this);this.RS=new AG(this);this.Oj=new Gl(this);this.state=1;this.tb=!1;this.T$=0;this.clipId="";this.Yh=this.Wa=-1;this.bM=0;this.Ya=-1;this.Zk=this.LL=!1;this.Mb=0;this.IA=!1;this.policy.Xe?this.F8=new tG(this,f):this.F8=new rK(this,f);this.t9=this.policy.gH?V.k0:g.J(Tri(V,this.policy,d));this.t9.set("rn",""+this.Ec());this.t9.set("alr","yes");zKS(this.Oj, I,r);this.fF=new cd(this,this.policy,this.t9,V.po,this.F8,this.logger,d,e,this.policy.enableServerDrivenRequestCancellation);tvh(this.fF);var D;if((D=this.policy)==null?0:D.tW)g.S(this,this.Oj),g.S(this,this.fF);r=V.X;V={method:"POST",body:r};r&&(this.bM=r.length);try{this.xhr=DK(this.t9,this.policy.j,this.F8,aj,V),this.policy.Sn&&h$(this.F8,this.fq()),this.fF.X.start()}catch(x){g.gj(x)}}; Hhi=function(r){r.policy.dj&&r.Hx&&!r.IA?r.IA=!0:r.F8.w0()}; wIU=function(r,V){var I=-1,d=-1,a=-1,f;if((f=r.s$)==null?0:f.items)for(r=g.H(r.s$.items),f=r.next();!f.done;f=r.next())f=f.value,V=n,D=r.o7.isManifestless&&r.policy.nQ,e){var x;if(((x=r.G)==null?void 0:x.Et.event)==="predictStart"&&r.G.J0r.C&&(r.C=NaN,r.L=NaN);r.G&&r.G.J0===V?Zhg(r,V,I,r.G,a):r.X===1&&UP(r,5,"noad")}; XIr=function(r,V,I,d,a){d.Kr?UP(r,4,"cue"):(r.C=V,r.L=I,r.Hs("sdai",{joinad:r.X,sg:r.C,st:r.L.toFixed(3)}),r.V=Date.now(),UP(r,2,r.X===3?"staftpred":"join"),a.Jl(d.Et))}; Zhg=function(r,V,I,d,a){if(a&&d){var f=d.Et,e=a.xC(f);f.event==="predictStart"&&(r.kc=V);r.Hs("sdai",{onqevt:f.event,sq:V,mt:I,gab:e,cst:f.startSecs,cueid:r.policy.gZ&&(e||f.event==="start")?f.identifier:void 0},!0);if(e)if(f.event!=="predictStart")f.event==="start"&&r.kc===V-1&&r.Hs("sdai",{gabonstart:V}),XIr(r,V,I,d,a);else if(r.policy.BH)UP(r,3,"predict");else{var n=V+Math.max(Math.ceil(-f.G/5E3),1);e=Math.floor(I-f.G/1E3);r.policy.W?r.W=e:r.Y=n;r.Hs("sdai",{onpred:I,estsq:n,estmt:e.toFixed(3)}); mF(r.loader,e,e,n);r.V=Date.now();UP(r,3,"predict");a.Jl(d.Et)}else r.X===1?((n=r.S)==null?0:n.Cp(I))?(mF(r.loader,I,I,V),UP(r,4,"sk2head")):UP(r,5,"nogab"):f.event==="predictStart"?r.policy.W&&r.W>0?(I=Math.floor(I-f.G/1E3),r.W!==I&&r.Hs("sdai",{updateSt:I,old:r.W}),r.W=I):r.Y>0&&(I=V+Math.max(Math.ceil(-f.G/5E3),1),r.Y!==I&&(r.Hs("sdai",{updateSt:I,old:r.Y}),r.Y=I)):r.policy.BH&&r.X===3&&XIr(r,V,I,d,a);var D,x;if(r.uJ&&f.event==="start"&&((D=r.G)==null?void 0:D.Et.event)!=="predictStart"&&((x=r.G)== null?void 0:x.J0)===V-1){var E;r.Hs("sdai",{ovlpst:(E=r.G)==null?void 0:E.Et.event,sq:V})}}else r.Hs("sdai",{nulldec:1,sq:V,mt:I.toFixed(3),evt:(d==null?void 0:(f=d.Et)==null?void 0:f.event)||"none"})}; gkO=function(r,V,I){if(r.policy.ma&&r.policy.W)return!(r.X===1||r.X===2||!r.policy.BH&&r.X===3&&I>=r.Y);if(r.X===1||r.X===2)return!1;if(r.X!==0&&V===r.audioTrack){if(r.policy.W)return Brj(r.videoTrack,I)||Brj(r.videoTrack,I+1);r=uG(r.videoTrack);if(I>(r?r.J0:-1))return!1}return!0}; pF=function(r,V,I){return(I<0||I===r.C)&&!isNaN(r.L)?r.L:V}; lTZ=function(r,V){if(r.G){var I=r.G.Et.aB-(V.startTime+r.j-r.G.Et.startSecs);I<=0||(I=new oC(r.G.Et.startSecs-(isNaN(r.j)?0:r.j),I,r.G.Et.context,r.G.Et.identifier,"stop",r.G.Et.G+V.duration*1E3),r.Hs("cuepointdiscontinuity",{segNum:V.J0}),iG(r,I,V.J0))}}; UP=function(r,V,I){r.X!==V&&(r.Hs("sdai",{setsst:V,old:r.X,r:I}),r.X=V)}; vd=function(r,V,I,d){(d===void 0?0:d)?UP(r,1,"seek"):V>0&&Math.abs(V-I)>=5&&r.X===4&&UP(r,5,"sk2t")}; qk=function(r,V,I){this.audio=r;this.video=V;this.reason=I}; Pd=function(r,V,I){this.G=r;this.reason=V;this.token=I;this.videoId=void 0}; og=function(r,V,I){g.X.call(this);this.policy=r;this.Y=V;this.Hs=I;this.S=new Map;this.W=0;this.C=!1;this.G="";this.X=!1}; kP=function(r,V,I){if(I===void 0?0:I)r.C=!0;++r.W;I=6E4*Math.pow(2,r.W);I=(0,g.m)()+I;r.S.set(V.info.id,I)}; hG=function(r){for(var V=g.H(r.S.entries()),I=V.next();!I.done;I=V.next()){var d=g.H(I.value);I=d.next().value;d=d.next().value;d<(0,g.m)()&&r.S.delete(I)}return r.S}; SCi=function(r){return r.C&&hG(r).size>0}; r2=function(r,V){r.G!==V&&(r.G=V,r.X=!0)}; ihX=function(r,V){var I;V&&(I=g.z6(r.Y.G,function(a){return a.id===V})); if(!I&&(I=g.z6(r.Y.G,function(a){var f;return!((f=a.uo)==null||!f.isDefault)}),V)){var d; r.Hs("iaf",{id:V,sid:(d=I)==null?void 0:d.id})}return I}; IQ=function(r,V,I,d,a,f){var e=this;f=f===void 0?[]:f;this.loader=r;this.bL=V;this.policy=I;this.o7=d;this.C=a;this.Mk=f;this.logger=new g.xP("dash/abr");this.G=vk;this.S=this.L=null;this.V=-1;this.p8=!1;this.nextVideo=this.X=null;this.Y=[];this.Ws=new Set;this.R7={};this.a7=new c8(1);this.j=0;this.L8=this.kc=this.QH=!1;this.GQ=0;this.EE=!1;this.n8=new Set;this.TQ=!1;this.m_={TI:function(){Vt(e)}}; this.W=new og(this.policy,a,function(n,D){e.loader.Hs(n,D)})}; pIv=function(r,V,I){d2(r,V);V=ihX(r.W,I);I||V||(V=UxZ(r));V=V||r.C.G[0];r.X=r.o7.G[V.id];Vt(r);r.L=r.X;Qiv(r);mxZ(r);r.S=r.nextVideo;r.L=r.X;return uLv(r)}; PUh=function(r,V){if(vki(r,V))return null;if(V.reason==="m"&&V.isLocked())return r.logger.debug(function(){return"User sets constraint to: "+H7(V)}),d2(r,V),r.j=r.Y.length-1,Vt(r),aQ(r),r.kc=r.kc||r.S!==r.nextVideo,r.S=r.nextVideo,new qk(r.X,r.S,V.reason); V.reason==="r"&&(r.V=-1);d2(r,V);aQ(r);if(V.reason==="r"&&r.nextVideo===r.S)return new qk(r.X,r.nextVideo,V.reason);qCA(r);return null}; okv=function(r,V,I){r.X=r.o7.G[V];r.L=r.X;return new qk(r.L,r.S,I?"t":"m")}; k2i=function(r,V){if(V.info.video){if(r.S!==V)return r.S=V,uLv(r)}else r.L8=r.L!==V,r.L=V;return null}; hKA=function(r,V){if(V.G.info.video&&V.W){var I=(V.X+V.S)/V.duration,d=V.G.info.VH;I&&d&&(r.a7.V_(1,I/d),r.policy.S&&I/d>1.5&&r.loader.Hs("overshoot",{sq:V.J0,br:I,max:d}))}}; fT=function(r,V,I){kP(r.W,V,I===void 0?!1:I);r.V=-1;d2(r,r.G)}; rDr=function(r,V){return new qk(r.L,r.S,V||r.G.reason)}; qCA=function(r){if(r.S&&r.nextVideo&&eg(r,r.S.info)r.policy.WZ,n=a<=r.policy.WZ?h4(d):Pq(d);if(!f||e||n)I[a]=d}return I}; d2=function(r,V){r.G=V;var I=r.C.videoInfos;if(!r.G.isLocked()){var d=(0,g.m)();I=g.Z_(I,function(n){if(n.VH>this.policy.VH)return!1;var D=this.o7.G[n.id];return hG(this.W).get(n.id)>d?!1:D.po.S>4||D.C>4?(this.logger.debug(function(){return"Remove "+jB(n)+"; 4 load failures"}),!1):this.n8.has(+n.itag)?!1:!0},r); SCi(r.W)&&(I=g.Z_(I,function(n){return n.video.width<=854&&n.video.height<=480}))}I.length||(I=r.C.videoInfos); var a=I;r.policy.TC&&(a=IAj(r,a,V));a=g.Z_(a,V.Y,V);if(r.G.isLocked()&&r.W.G){var f=g.z6(I,function(n){return n.id===r.W.G}); f?a=[f]:r2(r.W,"")}r.policy.TC||(a=IAj(r,a,V));a.length||(a=[I[0]]);a.sort(function(n,D){return eg(r,n)-eg(r,D)}); V={};for(I=1;IV.T9.video.width?(g.T6(a,I),I--):eg(r,V.QO)*r.policy.V>eg(r,V.T9)&&(g.T6(a,I-1),I--);var e=a[a.length-1];r.EE=!!r.S&&!!r.S.info&&r.S.info.A0!==e.A0;r.logger.debug(function(){return"Constraint: "+H7(r.G)+", "+a.length+" fmts selectable, max selectable fmt: "+jB(e)}); r.Y=a;r.Ws.clear();V=!1;for(I=0;I=1080&&(V=!0);dYO(r.policy,e,r.o7.Tz)}; IAj=function(r,V,I){var d=I.reason==="m"||I.reason==="s";r.policy.pG&&Yh&&g.WQ&&(!d||I.G<1080)&&(V=V.filter(function(x){return x.video&&(!x.X||x.X.powerEfficient)})); if(V.length>0)if(bA()){var a=VqO(r,V);V=V.filter(function(x){return!!x&&!!x.video&&x.A0===a[x.video.qualityOrdinal].A0})}else{var f,e,n=(f=V[0])==null?void 0:(e=f.video)==null?void 0:e.qualityOrdinal; if(n){I=V.filter(function(x){return!!x&&!!x.video&&x.video.qualityOrdinal===n}); var D=VqO(r,I)[n].A0;V=V.filter(function(x){return!!x&&!!x.video&&x.A0===D})}}return V}; aAi=function(r,V){for(var I=0;I+1d}; Vt=function(r){if(!r.X||!r.policy.Y&&!r.X.info.uo){var V=r.C.G;r.X&&(V=V.filter(function(d){return d.audio.G===r.X.info.audio.G}),V.length||(V=r.C.G)); r.X=r.o7.G[V[0].id];if(V.length>1&&!r.policy.a7){var I=g.z6(V,function(d){return d.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); I&&(r.X=r.o7.G[I.id]);I=!1;if(I=r.policy.ll?!0:r.G.isLocked()?r.G.G<240:aAi(r,r.X))r.X=r.o7.G[g.Nm(V).id]}}}; aQ=function(r){if(!r.nextVideo||!r.policy.Y)if(r.G.isLocked())r.nextVideo=r.G.G<=360?r.o7.G[r.Y[0].id]:r.o7.G[g.Nm(r.Y).id],r.logger.debug(function(){return"Select max fmt: "+jB(r.nextVideo.info)}); else{for(var V=Math.min(r.j,r.Y.length-1),I=L0(r.bL),d=eg(r,r.X.info),a=I/r.policy.QH-d;V>0&&!(eg(r,r.Y[V])<=a);V--);for(var f=I/r.policy.V-d;V=f);V++);r.nextVideo=r.o7.G[r.Y[V].id];r.j!==V&&r.logger.info(function(){return"Adapt to: "+jB(r.nextVideo.info)+", bandwidth: "+I.toFixed(0)+", bandwidth to downgrade: "+a.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+H7(r.G)}); r.j=V}}; Qiv=function(r){var V=r.policy.QH,I=L0(r.bL),d=I/V-eg(r,r.X.info);V=g.Mm(r.Y,function(a){return eg(this,a)f?a=0:d[e]>r.buffered[e]&&(e===f-1?a=2:e===f-2&&d[e+1]>r.buffered[e+1]&&(a=3))}r.G.add(V<<3|(I&&4)|a);V=Math.ceil(r.track.vL()*1E3);r.G.add(V-r.W);r.W=V;if(a===1)for(r.G.add(f),e=V=0;e=2&&r.G.add(d[f- 1]-r.buffered[f-1]);I&&r.G.add(I);r.buffered=d}; xYS=function(r,V,I){var d=this;this.policy=r;this.G=V;this.GQ=I;this.Y=this.X=0;this.k8=null;this.QH=new Set;this.V=[];this.indexRange=this.initRange=null;this.j=new IL;this.kc=this.bL=!1;this.m_={l3c:function(){return d.S}, h4H:function(){return d.chunkSize}, qw8:function(){return d.L}, XRM:function(){return d.C}}; (V=DYA(this))?(this.chunkSize=V.csz,this.S=Math.floor(V.clen/V.csz),this.L=V.ck,this.C=V.civ):(this.chunkSize=r.kI,this.S=0,this.L=g.RM(16),this.C=g.RM(16));this.W=new Uint8Array(this.chunkSize);this.L&&this.C&&(this.crypto=new zDr(this.L,this.C))}; DYA=function(r){if(r.policy.jI&&r.policy.wp)for(var V=g.H(r.policy.jI),I=V.next(),d={};!I.done;d={BI:void 0,Xk:void 0},I=V.next())if(I=g.n5(I.value),d.BI=+I.clen,d.Xk=+I.csz,d.BI>0&&d.Xk>0&&r.policy.Y===I.docid&&r.G.info.id===I.fmtid&&r.G.info.lastModified===+I.lmt)return r={},r.clen=d.BI,r.csz=d.Xk,r.ck=I.ck,r.civ=I.civ,r}; jg=function(r){return!!r.k8&&r.k8.N7()}; zah=function(r,V){if(!jg(r)&&!r.h0()){if(!(r.bL||(r.bL=!0,r.S>0))){var I=E$O(r);I=Bk(r.policy.Y,r.G.info,Ds(r),I,r.policy.DM);NbS(r,I)}if(V.info.type===1){if(r.k8){xh(r,Error("Woffle: Expect INIT slices to always start us off"));return}r.initRange=S6(0,V.G.getLength())}else if(V.info.type===2)r.k8&&r.k8.type===1||xh(r,Error("Woffle: Index before init")),r.indexRange=S6(r.initRange.end+1,V.G.getLength());else if(V.info.type===3){if(!r.k8){xh(r,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(r.k8.type===3&&!uU(r.k8,V.info)&&(r.V=[],V.info.J0!==ph(r.k8)||V.info.X!==0))return;if(V.info.W){I=g.H(r.V);for(var d=I.next();!d.done;d=I.next())sJj(r,d.value);r.V=[]}else{r.V.push(V);r.k8=V.info;return}}else{xh(r,Error("Woffle: Unexpected slice type"));return}r.k8=V.info;sJj(r,V);cDi(r)}}; sJj=function(r,V){var I=0,d=V.G.ji();if(r.Y=d.length)return;if(I<0)throw Error("Missing data");r.Y=r.S;r.X=0}for(a={};I0){var e=d.getUint32(I+28);f+=e*16+4}var n=d.getUint32(I+f-4);try{var D=w5A(V.subarray(I+f,I+f+n));if(D!==null){var x=D;break a}}catch(E){}}I+=a}x=null;break a}catch(E){x=null;break a}x=void 0}if(x!=null)for(V=i0(Hv(x,7)),V==null||r.mE||(r.cryptoPeriodIndex=V),V=i0(Hv(x,10)),V!=null&&V>0&&!r.mE&&(r.G=V),x=te(x, 2,ySj,void 0===lhA?2:4),x=g.H(x),d=x.next();!d.done;d=x.next())V=r.S,I=V.push,d=Dg(d.value),d=g.I3(d,4),I.call(V,d)}; Opp=function(r){return isNaN(r.cryptoPeriodIndex)?g.I3(r.initData):""+r.cryptoPeriodIndex}; s1=function(r,V,I){var d=I===void 0?{}:I;I=d.videoDuration===void 0?0:d.videoDuration;var a=d.qI===void 0?void 0:d.qI;d=d.Z1===void 0?!1:d.Z1;this.videoId=r;this.status=V;this.videoDuration=I;this.qI=a;this.Z1=d}; WcA=function(r,V,I,d,a){this.videoId=r;this.Av=V;this.X=I;this.bytesDownloaded=d;this.G=a}; cB=function(r){this.G=r;this.offset=0}; $YZ=function(r){if(r.offset>=r.G.getLength())throw Error();return r.G.getUint8(r.offset++)}; Kcj=function(r,V){V=V===void 0?!1:V;var I=$YZ(r);if(I===1){V=-1;for(I=0;I<7;I++){var d=$YZ(r);V===-1&&d!==255&&(V=0);V>-1&&(V=V*256+d)}return V}d=128;for(var a=0;a<6&&d>I;a++)I=I*256+$YZ(r),d*=128;return V?I:I-d}; RaA=function(r){try{var V=Kcj(r,!0),I=Kcj(r,!1);return{id:V,size:I}}catch(d){return{id:-1,size:-1}}}; tqg=function(r){for(var V=new cB(r),I=-1,d=0,a=0;!d||!a;){var f=RaA(V),e=f.id;f=f.size;if(e<0)return;if(e===176){if(f!==2)return;d=V.uP()}else if(e===186){if(f!==2)return;a=V.uP()}e===374648427?I=V.uP()+f:e!==408125543&&e!==174&&e!==224&&V.skip(f)}V=Ry(r,0,I);I=new DataView(V.buffer);I.setUint16(d,3840);I.setUint16(a,2160);d=new be([V]);OT(d,r);return d}; ADX=function(r,V,I){var d=this;this.loader=r;this.policy=V;this.C=I;this.logger=new g.xP("dash");this.X=[];this.G=null;this.bL=-1;this.V=0;this.n8=NaN;this.QH=0;this.S=NaN;this.j=this.p8=0;this.EE=-1;this.R7=this.W=this.Y=this.GQ=null;this.a7=this.L8=NaN;this.L=this.kc=this.Ws=this.Mk=null;this.DM=!1;this.TQ=this.timestampOffset=0;this.m_={YR:function(){return d.X}}; if(this.policy.Y){var a=this.C,f=this.policy.Y;this.policy.DM&&r.Hs("atv",{ap:this.policy.DM});this.L=new xYS(this.policy,a,function(e,n,D){zG(r,new s1(d.policy.Y,2,{qI:new WcA(f,e,a.info,n,D)}))}); this.L.j.promise.then(function(e){d.L=null;e===1?zG(r,new s1(d.policy.Y,e)):d.loader.Hs("offlineerr",{status:e.toString()})},function(e){var n=(e.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); e instanceof E1&&!e.G?(d.logger.info(function(){return"Assertion failed: "+n}),d.loader.Hs("offlinenwerr",{em:n}),yDg(d),zG(r,new s1(d.policy.Y,4))):(d.logger.info(function(){return"Failed to write to disk: "+n}),d.loader.Hs("dldbwerr",{em:n}),yDg(d),zG(r,new s1(d.policy.Y,4,{Z1:!0})))})}}; Ghp=function(r){return r.X.length?r.X[0]:null}; FcS=function(r,V){return r.X.some(function(I){return I.info.J0===V})}; g$A=function(r,V,I,d){d=d===void 0?0:d;if(r.W){var a=r.W.X+r.W.S;if(I.info.X>0)if(I.info.J0===r.W.J0&&I.info.X=0&&r.W.J0>=0&&!uU(r.W,I.info))throw new g.ox("improper_continuation",r.W.qJ(),I.info.qJ());YVA(r.W,I.info)||lAg(r,"d")}else if(I.info.X>0)throw new g.ox("continuation_of_null",I.info.qJ());r.W=I.info;r.C=I.info.G;if(I.info.X===0){if(r.G)if(!r.loader.isOffline()||r.policy.G6)r.loader.Hs("slice_not_fully_processed", {buffered:r.G.info.qJ(),push:I.info.qJ()});else throw new g.ox("slice_not_fully_processed",r.G.info.qJ(),I.info.qJ());MB(r);r.p8=d}else{if(r.p8&&d&&r.p8!==d)throw r=new g.ox("lmt_mismatch",I.info.J0,r.p8,d),r.level="WARNING",r;!I.info.G.xD()&&r.Y&&(d=I.info,a=r.Y.Wa,d.j="updateWithEmsg",d.J0=a)}if(r.G){d=g.DA(r.G,I);if(!d)throw new g.ox("failed_to_merge",r.G.info.qJ(),I.info.qJ());r.G=d}else r.G=I;a:{I=g.I2(r.G.info.G.info);if(r.G.info.type!==3){if(!r.G.info.W)break a;r.G.info.type===6?Lcg(r,V,r.G): JDi(r,r.G);r.G=null}for(;r.G;){d=r.G.G.getLength();if(r.bL<=0&&r.V===0){var f=r.G.G,e=-1;a=-1;if(I){for(var n=0;n+80))break;if(N!==408125543)if(N===524531317)n=!0,E>=0&&(a=f.uP()+E,D=!0);else{if(n&&(N===160||N===163)&&(e<0&&(e=x),D))break;N===163&&(e=Math.max(0,e),a=f.uP()+E);if(N===160){e<0&&(a=e=f.uP()+ E);break}f.skip(E)}}e<0&&(a=-1)}if(e<0)break;r.bL=e;r.V=a-e}if(r.bL>d)break;r.bL?(d=Zpg(r,r.bL),d.W&&X5j(r,d),Lcg(r,V,d),Bbj(r,d),r.bL=0):r.V&&(d=Zpg(r,r.V<0?Infinity:r.V),r.V-=d.G.getLength(),Bbj(r,d))}}r.G&&r.G.info.W&&(Bbj(r,r.G),r.G=null)}; JDi=function(r,V){!V.info.G.xD()&&V.info.X===0&&(g.I2(V.info.G.info)||V.info.G.info.mE())&&ZIr(V);if(V.info.type===1)try{X5j(r,V),SqO(r,V)}catch(a){g.BG(a);var I=vI(V.info);I.hms="1";r.loader.handleError("fmt.unparseable",I||{},1)}I=V.info.G;I.Nq(V);r.L&&zah(r.L,V);if(I.sj()&&r.policy.G)a:{r=r.loader.o7;V=V.info.clipId;I=g.a2(I.info,r.Tz);if(V){var d=r3r(r,I);if(r.TQ[d])break a;r.TQ[d]=V}r.p8.push(I)}}; qfA=function(r,V,I){if(r.X.length!==0&&(I||r.X.some(function(f){return f.info.Y=TG(e)+n):V=r.getDuration()>=e.getDuration(),V=!V;V&&QJi(I)&&(V=r.GQ,CT?(n=LqX(I),e=1/n,n=TG(r,n),V=TG(V)+e-n):V=V.getDuration()- r.getDuration(),V=1+V/I.info.duration,J4A(I.qG(),V))}else{e=!1;r.Y||(ZIr(I),I.X&&(r.Y=I.X,e=!0,f=I.info,d=I.X.Wa,f.j="updateWithEmsg",f.J0=d,f=I.X,f.N7&&(d=r.C.index,d.X=!f.N7,d.S="emsg"),f=I.info.G.info,d=I.qG(),g.I2(f)?DT(d,1701671783):f.mE()&&Ch([408125543],307544935,d)));a:if((f=NY(I,r.policy.M2))&&JYS(I))n=mYi(r,I),r.j+=n,f-=n,r.QH+=f,r.S=r.policy.JW?r.S+f:NaN;else{if(r.policy.oJ){if(d=D=r.loader.Uc(g.x$(I),1),r.S>=0&&I.info.type!==6){if(r.policy.JW&&isNaN(r.L8)){g.gj(new g.ox("Missing duration while processing previous chunk", I.info.qJ()));r.loader.isOffline()&&!r.policy.G6||u5g(r,I,d);lAg(r,"m");break a}var x=D-r.S,E=x-r.j,N=I.info.J0,c=r.R7?r.R7.J0:-1,z=r.a7,M=r.L8,w=r.policy.vR&&x>r.policy.vR,b=Math.abs(E)>10,W=Math.abs(r.S-d)<1E-7;if(Math.abs(E)>1E-4){r.TQ+=1;var K=(a=r.Y)==null?void 0:rr(a);a={audio:""+ +r.HH(),sq:N.toFixed(),sliceStart:D,lastSq:c.toFixed(),lastSliceStart:z,lastSliceDuration:M,totalDrift:(x*1E3).toFixed(),segDrift:(E*1E3).toFixed(),skipRewrite:""+ +(w||b)};if(K==null?0:K.length)a.adCpn=K[0];r.loader.handleError("qoe.avsync", a);r.EE=N}w||b||W||(d=r.S);a=mYi(r,I,D);f-=a;r.j=x+a;r.policy.S&&(E&&!W||a)&&(x=(n=r.Y)==null?void 0:rr(n),r.loader.Hs("discontinuityRewrite",{adCpn:(x==null?0:x.length)?x.join("."):"",itag:I.info.G.info.itag,sq:I.info.J0,originalStartTime:D,rewrittenStartTime:d,startTimeAdjustment:d-D,segDrift:(E*1E3).toFixed(),originalDuration:f+a,rewrittenDuration:f,durationAdjustment:a}))}}else d=isNaN(r.S)?I.info.startTime:r.S;u5g(r,I,d)&&(r.QH+=f,r.S=d+f,r.policy.cR&&r.TQ>=r.policy.cR&&(r.TQ=0,r.loader.Z$({resetForRewrites:"count"})))}r.R7= I.info;r.L8=Eq(I);I.S>=0&&(r.a7=I.S);if(e&&r.Y){e=p5i(r,!0);qx(I.info,e);r.G&&qx(r.G.info,e);V=g.H(V);for(n=V.next();!n.done;n=V.next())n=n.value,a=void 0,r.policy.C&&n.J0!==((a=r.Y)==null?void 0:a.Wa)||qx(n,e);(I.info.W||r.G&&r.G.info.W)&&I.info.type!==6||(r.kc=e,r.policy.Mk?(V=v$j(r.Y),r.loader.V2(r.C,e,V)):(V=r.loader,V.o7.isManifestless&&qqr(V,e,null,!!r.C.info.video)),r.policy.GR||PsO(r))}}SqO(r,I);r.timestampOffset&&FqO(I,r.timestampOffset)}; Bbj=function(r,V){if(V.info.W){r.Mk=V.info;if(r.Y){var I=r.Y,d=p5i(r,!1);I=v$j(I);r.loader.V2(r.C,d,I);r.kc||r.policy.GR||PsO(r);r.kc=null}MB(r)}r.L&&zah(r.L,V);if(d=r.fd())if(d=g.DA(d,V,r.policy.SB,r.policy.IB)){r.X.pop();r.X.push(d);return}r.X.push(V)}; v$j=function(r){if(r.Kr()){var V=r.data["Stitched-Video-Id"]?r.data["Stitched-Video-Id"].split(",").slice(0,-1):[],I=rr(r),d=[];if(r.data["Stitched-Video-Duration-Us"])for(var a=g.H(r.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),f=a.next();!f.done;f=a.next())d.push((Number(f.value)||0)/1E6);a=[];if(r.data["Stitched-Video-Start-Frame-Index"]){f=g.H(r.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var e=f.next();!e.done;e=f.next())a.push(Number(e.value)||0)}a=[]; if(r.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(f=g.H(r.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),e=f.next();!e.done;e=f.next())a.push((Number(e.value)||0)/1E6);r=new Hph(V,I,d,a,g.Gkp(r),g.F6j(r))}else r=null;return r}; MB=function(r){r.G=null;r.bL=-1;r.V=0;r.Y=null;r.n8=NaN;r.QH=0;r.kc=null}; lAg=function(r,V){V={rst4disc:V,cd:r.j.toFixed(3),sq:r.R7?r.R7.J0:-1};r.S=NaN;r.j=0;r.EE=-1;r.R7=null;r.a7=NaN;r.L8=NaN;r.Ws=null;r.loader.Hs("mdstm",V)}; SqO=function(r,V){if(r.C.info.Cq){if(V.info.G.info.mE()){var I=new EC(V.qG());if(sC(I,[408125543,374648427,174,28032,25152,20533,18402])){var d=Mx(I,!0);I=d!==16?null:bU(I,d)}else I=null;d="webm"}else V.info.V=CsX(V.qG()),I=Tbp(V.info.V),d="cenc";I&&I.length&&(I=new NB(I,d),r.policy.JJ&&g.I2(V.info.G.info)&&(d=iNX(V.qG()))&&(I.X=d),I.mE=V.info.G.info.mE(),V.X&&V.X.cryptoPeriodIndex&&(I.cryptoPeriodIndex=V.X.cryptoPeriodIndex),V.X&&V.X.X&&(I.G=V.X.X),r.loader.nk(I))}}; PsO=function(r){var V=r.Y,I=y4v(V);I&&(I.startSecs+=r.n8,r.loader.fZ(r.C,I,V.Wa,V.Kr()))}; p5i=function(r,V){var I,d=r.Y;if(I=y4v(d))I.startSecs+=r.n8;return new Sv(d.Wa,r.n8,V?d.y7:r.QH,d.ingestionTime,"sq/"+d.Wa,void 0,void 0,V,I)}; u5g=function(r,V,I){if(!GHg(V,I))return V=vI(V.info),V.smst="1",r.loader.handleError("fmt.unparseable",V||{},1),!1;isNaN(r.n8)&&(r.n8=I);return!0}; mYi=function(r,V,I){var d=0;if(V.info.G.info.mE()&&!JYS(V))return 0;if(r.GQ&&!r.HH()){var a=0;I&&g.I2(V.info.G.info)?a=I-r.S:V.info.G.info.mE()&&(a=r.j);var f=V.info.J0;I=NY(V,r.policy.M2);var e=r.GQ;var n=e.EE;e=e.j;var D=Math.abs(e-a)>.02;if((f===n||f>n&&f>r.EE)&&D){d=Math.max(.95,Math.min(1.05,(I-(e-a))/I));if(g.I2(V.info.G.info))J4A(V.qG(),d);else if(V.info.G.info.mE()&&(f=a-e,!g.I2(V.info.G.info)&&(V.info.G.info.mE(),d=new EC(V.qG()),n=V.W?d:new EC(new DataView(V.info.G.G.buffer)),NY(V,!0)))){var x= f*1E3,E=WI(n);n=d.pos;d.pos=0;if(d.G.getUint8(d.pos)===160||$k(d))if(z2(d,160))if(Mx(d,!0),z2(d,155)){if(f=d.pos,D=Mx(d,!0),d.pos=f,x=x*1E9/E,E=T2(d),x=E+Math.max(-E*.7,Math.min(E,x)),x=Math.sign(x)*Math.floor(Math.abs(x)),!(Math.ceil(Math.log(x)/Math.log(2)/8)>D)){d.pos=f+1;for(f=D-1;f>=0;f--)d.G.setUint8(d.pos+f,x&255),x>>>=8;d.pos=n}}else d.pos=n;else d.pos=n;else d.pos=n}d=NY(V,r.policy.M2);d=I-d}d&&V.info.G.info.mE()&&r.loader.Hs("webmDurationAdjustment",{durationAdjustment:d,videoDrift:a+d, audioDrift:e})}return d}; QJi=function(r){return r.info.G.xD()&&r.info.J0===r.info.G.index.xX()}; TG=function(r,V){V=(V=V===void 0?0:V)?Math.round(r.timestampOffset*V)/V:r.timestampOffset;r.C.Y&&V&&(V+=r.C.Y.G);return V+r.getDuration()}; o$i=function(r,V){V<0||(r.X.forEach(function(I){FqO(I,V)}),r.timestampOffset=V)}; SW=function(r,V,I,d,a){ag.call(this,I,a);var f=this;this.policy=r;this.formatId=V;this.Oj=d;this.lastError=null;this.uI=function(){f.h0()||(f.Oj.I8.has(f.formatId)?(f.isComplete()||f.G.start(),ZK(f.Oj,f.formatId)&&f.LW(2),f.Oj.H3(f.formatId)&&(Ekg(f.Oj,f.formatId)?f.Az(4):(f.lastError="net.closed",f.Az(5)))):(f.lastError="player.exception",f.Az(5)))}; this.G=new g.hz(function(){f.isComplete()||(f.lastError="net.timeout",f.Az(5))},1E3); this.G.start();jii(this.Oj,this.formatId,this.uI);g.$i(this.uI)}; HB=function(r,V,I,d){g.X.call(this);var a=this;this.loader=r;this.policy=V;this.G=I;this.timing=d;this.logger=new g.xP("dash");this.S=[];this.GQ=[];this.X=this.Uu=null;this.p8=!1;this.TQ=this.Ws=0;this.C=-1;this.bL=!1;this.n8=-1;this.R7=null;this.kc=NaN;this.QH=[];this.m_={qq:function(){return a.Y}, P_0:function(){return a.S}, pR8:function(){return a.L}}; this.Y=new ADX(r,V,I);this.policy.G&&(this.L=new ZC(this.Y,this.loader.getManifest(),this.policy,function(f){a.policy.u_&&a.Hs("buftl",f)})); this.policy.dH&&(this.V=new n$O(this));this.VH=I.info.VH;this.j=this.policy.kc?!1:I.VZ();this.isManifestless=I.VZ();this.W=this.j;g.S(this,this.R7)}; w2=function(r,V,I){I=I===void 0?!1:I;V&&CT&&o$i(r.Y,V.Wh());if(!I){var d;(d=r.L)==null||m3i(d)}r.Uu=V;(V=r.L)!=null&&(V.Uu=r.Uu)}; b4=function(r){var V=r.Uu&&r.Uu.V9();if(r.policy.TE){if((r=r.L)==null)r=void 0;else{var I;r=(I=r.S)==null?void 0:I.info}return r||null}return V}; khA=function(r){for(var V={},I=0;I4&&r.GQ.shift()}; V4p=function(r,V){if(V.Qg()){var I=V.Fb();I=g.H(I);for(var d=I.next();!d.done;d=I.next())d=d.value,r.policy.S&&V instanceof SW&&r.Hs("omblss",{s:d.info.qJ()}),rKA(r,V.info.iL,d,V.oP())}}; rKA=function(r,V,I,d){d=d===void 0?0:d;isNaN(r.kc)||(r.Hs("aswm",{sq:V[0].J0,id:V[0].G.info.itag,xtag:V[0].G.info.G,ep:Date.now()-r.kc}),r.kc=NaN);switch(I.info.type){case 1:case 2:IBp(r,I);break;case 4:var a=I.info.G,f=a.sD(I),e;((e=r.X)==null?0:e.type===4)&&s2i(I.info,r.X)&&(r.X=a.bd(r.X).pop());I=g.H(f);for(a=I.next();!a.done;a=I.next())rKA(r,V,a.value,d);break;case 3:I.info.G.info.video?(a=r.timing,a.GQ||(a.GQ=(0,g.m)(),GN("fvb_r",a.GQ,a.G))):(a=r.timing,a.C||(a.C=(0,g.m)(),GN("fab_r",a.C,a.G))); g$A(r.Y,V,I,d);r.policy.G&&dag(r);break;case 6:g$A(r.Y,V,I,d),r.X=I.info}}; IBp=function(r,V){if(V.info.type===1)if(V.info.G.info.video){var I=r.timing;I.R7||(I.R7=(0,g.m)(),GN("vis_r",I.R7,I.G))}else I=r.timing,I.j||(I.j=(0,g.m)(),GN("ais_r",I.j,I.G));JDi(r.Y,V);r=r.loader;r.videoTrack.G.sj()&&r.audioTrack.G.sj()&&r.policy.G&&!r.o7.Tz&&(V=r.audioTrack.getDuration(),I=r.videoTrack.getDuration(),Math.abs(V-I)>1&&r.Hs("trBug",{af:""+g.a2(r.audioTrack.G.info,!1),vf:""+g.a2(r.videoTrack.G.info,!1),a:""+V,v:""+I}))}; PU=function(r){return Ghp(r.Y)}; dag=function(r){r.S.length?r.X=g.Nm(g.Nm(r.S).info.iL):r.Y.X.length?r.X=r.Y.fd().info:r.X=b4(r)}; aBA=function(r,V){var I={Eu:[],ez:[]},d;if((r=r.L)==null)r=void 0;else{Q$v(r,r.Eu,"og");SfZ(r,V);Q$v(r,r.Eu,"trim");var a=U3g(r);V=a.Eu;a=a.lT;for(var f=[],e=0;e0){var c=EV(N,D);c>=0&&(E=(N.end(c)-D+.1)*1E3)}f.push({formatId:g.a2(n.info.G.info,r.o7.Tz), PZ:n.info.PZ,sequenceNumber:n.info.J0+r.Y,Ig:x,vM:n.info.S,E5:E})}r={Eu:V,ez:f}}return(d=r)!=null?d:I}; Qb=function(r,V,I){I=I===void 0?!1:I;if(r.Uu){var d=r.Uu.yz(),a=sV(d,V),f=NaN,e=b4(r);e&&(f=sV(d,e.G.index.getStartTime(e.J0)));if(a===f&&r.X&&r.X.S&&fBi(eyZ(r),0))return V}r=YLZ(r,V,I);return r>=0?r:NaN}; uz=function(r,V,I){r.G.sj();var d=YLZ(r,V);if(d>=0)return d;var a;(a=r.L)==null||iwA(a,V,I);I=Math;d=I.min;a=r.Y;if(a.L)if(a=a.L,a.k8&&a.k8.type===3)a=a.k8.startTime;else if(a.S>0){var f=a.G.index;f=g.Fe(f.offsets.subarray(0,f.count),a.S*a.chunkSize);a=a.G.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else a=0;else a=Infinity;V=d.call(I,V,a);if(r.policy.X){var e,n;I=(e=r.loader.Ro())==null?void 0:(n=BU(e,V))==null?void 0:n.clipId;r.X=r.G.X6(V,void 0,I).iL[0]}else r.X=r.policy.kc?null:r.G.X6(V).iL[0]; O1(r)&&(r.Uu&&r.Uu.abort(),r.policy.qg&&(e=r.L)!=null&&(e.S=void 0));r.TQ=0;return r.X?r.X.startTime:V}; ppA=function(r){r.j=!0;r.W=!0;r.C=-1;uz(r,Infinity)}; WB=function(r){for(var V=0,I=g.H(r.S),d=I.next();!d.done;d=I.next())V+=z4i(d.value.info);return V+=ipA(r.Y)}; KT=function(r,V){V=V===void 0?!1:V;var I=r.loader.getCurrentTime(),d=r.Y.fd(),a=(d==null?void 0:d.info.C)||0;r.policy.GK&&(d==null?0:d.info.G.VZ())&&!d.info.W&&(a=d.info.Y);if(r.policy.X&&d&&d.info.clipId){var f,e=(((f=r.loader.Ro())==null?void 0:XX(f,d.info.clipId))||0)/1E3;a+=e}if(!r.Uu)return r.policy.G&&V&&!isNaN(I)&&d?a-I:0;if((f=b4(r))&&$h(r,f))return f.C;e=r.Uu.yz(!0);if(V&&d)return f=0,r.policy.G&&(f=M$(e,a+.02)),f+a-I;a=M$(e,I);r.policy.BU&&f&&(V=EV(e,I),e=EV(e,f.Y-.02),V===e&&(I=f.C-I,r.policy.S&& I>a+.02&&r.Hs("abh",{bh:a,bhtls:I}),a=Math.max(a,I)));return a}; ngj=function(r){var V=b4(r);return V?V.C-r.loader.getCurrentTime():0}; jjX=function(r,V){if(r.S.length){if(r.S[0].info.iL[0].startTime<=V)return;UH(r)}for(var I=r.Y,d=I.X.length-1;d>=0;d--)I.X[d].info.startTime>V&&I.X.pop();dag(r);r.X&&V=0;e--){var n=a.X[e];n.info.J0>=V&&(a.X.pop(),a.S-=NY(n,a.policy.M2),f=n.info)}f&&(a.W=a.X.length>0?a.X[a.X.length-1].info:a.Ws,a.X.length!==0||a.W||lAg(a,"r"));a.loader.Hs("mdstm",{rollbk:1,itag:f?f.G.info.itag:"",popped:f?f.J0:-1,sq:V,lastslc:a.W?a.W.J0:-1,lastfraget:a.S.toFixed(3)});if(r.policy.G)return r.X=null,!0;d>I?uz(r,d):r.X=r.G.fY(V-1,!1).iL[0]}catch(D){return V=lS(D),V.details.reason="rollbkerr", r.loader.handleError(V.errorCode,V.details,V.severity),!1}return!0}; tF=function(r,V){var I;for(I=0;I0?I||V.J0>=r.n8:I}; GG=function(r){var V;return O1(r)||$h(r,(V=r.Y.fd())==null?void 0:V.info)}; eyZ=function(r){var V=[],I=b4(r);I&&V.push(I);V=g.b$(V,r.Y.zr());I=g.H(r.S);for(var d=I.next();!d.done;d=I.next()){d=d.value;for(var a=g.H(d.info.iL),f=a.next(),e={};!f.done;e={Zv:void 0},f=a.next())e.Zv=f.value,d.xA&&(V=g.Z_(V,function(n){return function(D){return!s2i(D,n.Zv)}}(e))),(mY(e.Zv)||e.Zv.type===4)&&V.push(e.Zv)}r.X&&!f$A(r.X,g.Nm(V),r.X.G.xD())&&V.push(r.X); return V}; fBi=function(r,V){if(!r.length)return!1;for(V+=1;V=V){V=f;break a}}V=a}return V<0?NaN:fBi(r,I?V:0)?r[V].startTime:NaN}; FD=function(r){return!(!r.X||r.X.G===r.G)}; xah=function(r){return FD(r)&&r.G.sj()&&r.X.G.info.VHV&&d.C1080&&!r.m0&&(r.TQ=36700160,r.ya=5242880,r.Ws=Math.max(4194304,r.Ws),r.m0=!0);V.video.qualityOrdinal>2160&&!r.FC&&(r.TQ=104857600,r.VH=13107200,r.FC=!0);g.zM(r.mM.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?V.isEncrypted()&&g.qL()&&g.p5("samsung")&&(g.p5("kant")||g.p5("muse"))&&(r.VH=g.zM(r.mM.experiments,"html5_samsung_kant_limit_max_bitrate")):V.isEncrypted()&&g.qL()&&g.p5("kant")&&(r.VH=1310720);r.au!==0&&V.isEncrypted()&& (r.VH=r.au);r.c9!==0&&V.isEncrypted()&&I&&(r.VH=r.c9);V.VH&&(r.Tp=Math.max(r.Yg,Math.min(r.Ws,5*V.VH)))}; Zs=function(r){return r.G&&r.xQ&&r.playbackStartPolicy}; XD=function(r){return r.X||r.G&&r.JP}; Ryh=function(r,V,I,d){r.xQ&&(r.playbackStartPolicy=V,r.sG=I,r.Rj=d)}; JF=function(r,V,I){I=I===void 0?0:I;return g.zM(r.mM.experiments,V)||I}; t4O=function(r){var V=r===void 0?{}:r;r=V.WO;var I=V.tK;var d=V.WH;var a=V.xX;V=V.Hw;this.WO=r;this.tK=I;this.WH=d;this.xX=a;this.Hw=V}; fQj=function(r,V){if(V<0)return!0;var I=r.xX();return V0)return 2;if(V<0)return 1;I=r.xX();return V(0,g.m)()?0:1}; g2=function(r,V,I,d,a,f,e,n,D,x,E,N,c,z){z=z===void 0?null:z;g.X.call(this);var M=this;this.loader=r;this.policy=V;this.videoTrack=I;this.audioTrack=d;this.Y=a;this.G=f;this.timing=e;this.W=n;this.schedule=D;this.o7=x;this.S=E;this.QH=N;this.Li=c;this.Zm=z;this.kc=!1;this.Jm="";this.Hu=null;this.pw=NaN;this.bL=!1;this.X=null;this.Zt=this.V=NaN;this.Dr=this.C=0;this.logger=new g.xP("dash");this.m_={J5:function(w,b){return M.J5(w,b)}}; this.policy.Oy>0&&(this.Jm=g.RM(this.policy.Oy));this.policy.Ja&&(this.j=new BB(this.loader,this.policy,this.schedule),g.S(this,this.j))}; JKZ=function(r,V,I){var d=V.X?V.X.G.po:V.G.po;var a=r.Y,f;(f=!r.policy.Wd)||(f=Jj(d.G)===Jj(d.X));f?d=!1:(a=AX(a,Jj(d.X)),f=6E4*Math.pow(a.S,1.6),(0,g.m)()=a.Y?(a.Hs("sdai",{haltrq:f+1,est:a.Y}),d=!1):d=a.X!==2;if(!d||!JX(V.X?V.X.G.po:V.G.po,r.policy,r.Y,r.loader.GO())||r.loader.isSuspended&&(!Kx(r.schedule)||r.loader.SF))return!1;if(r.policy.Y&&X$>=5)return g.r3(r.loader.S1),!1;if(r.o7.isManifestless){if(V.S.length>0&&V.X&&V.X.J0===-1||V.S.length>=r.policy.aF||!r.policy.tJ&&V.S.length>0&&!r.policy.j.tK)return!1;if(V.j)return!r.o7.isLive|| !isNaN(r.pw)}if(zyU(V))return r.logger.debug("Pending request with server-selectable format found"),!1;if(!V.X){if(!V.G.sj())return!1;uz(V,r.loader.getCurrentTime())}if(PU(V)&&(V.fd()!==PU(V)||r.loader.isSuspended))return!1;a=(d=r.policy.pN)&&!V.S.length&&KT(V,!0)=r.policy.M8)return!1;d=V.X;if(!d)return!0;d.type===4&&d.G.sj()&&(V.X=g.Nm(d.G.bd(d)),d= V.X);if(!d.N7()&&!d.G.zC(d))return!1;f=r.o7.Ue||r.o7.Y;if(r.o7.isManifestless&&f){f=V.G.index.xX();var e=I.G.index.xX();f=Math.min(f,e);if(V.G.index.A_()>0&&f>0&&d.J0>=f)return V.n8=f,I.n8=f,!1}if(d.G.info.audio&&d.type===4||d.N7())return!1;f=!V.W&&!I.W;if(a=!a)a=d.C,a=!!(I.X&&!$h(I,I.X)&&I.X.CZxZ(r,V)?(ZxZ(r,V),!1):(r=V.Uu)&&r.isLocked()?!1:!0}; ZxZ=function(r,V){var I=r.G;I=I.G?I.G.Et:null;if(r.policy.GQ&&I)return I.startSecs+I.aB+15;V=m_(r.loader,V);r.policy.X_>0&&(I=((0,g.m)()-r.loader.v9)/1E3,V=Math.min(V,r.policy.X_+r.policy.Ld*I));I=r.loader.getCurrentTime()+V;return r.policy.Gp&&(V=X8v(r.loader)+r.policy.Gp,V=0||V.po.Qf("defrag")==="1"||V.po.Qf("otf")==="1"){V=null;break a}a=S6(0,4096)}a=new PI([new UC(5,d.G,a,"createProbeRequestInfo"+d.j,d.J0)],V.X);a.rq=I;a.G=V.G;V=a}V&&LDr(r,V)}}; LDr=function(r,V){r.loader.Zf(V);var I=z4i(V),d=r.loader.kf();I={Jz:r.schedule,O9:I,xV:lHj(r.W,I),I0:QF(V.iL[0]),JL:ZQ(V.po.G),h_:r.policy.S,Gl:function(e,n){r.loader.sV(e,n)}}; if(r.schedule.X.C){var a,f;I.QF=(((a=r.videoTrack.G)==null?void 0:a.info.VH)||0)+(((f=r.audioTrack.G)==null?void 0:f.info.VH)||0)}r.Hu&&(I.J0=V.iL[0].J0,I.pw=V.pw,I.Hu=r.Hu);d={ZZ:MBi(V,r.loader.getCurrentTime()),m3:r.policy.Nm&&kk(V)&&V.iL[0].G.info.video?eai(r.S):void 0,Fm:r.policy.GQ,poToken:r.loader.e6(),Jc:r.loader.oi(),Jm:r.Jm,Zt:isNaN(r.Zt)?null:r.Zt,Zm:r.Zm,Li:r.Li,Dr:r.Dr,Mc:d};return new iz(r.policy,V,I,r.Y,function(e,n){try{a:{var D=e.info.iL[0].G,x=D.info.video?r.videoTrack:r.audioTrack; if(!(e.state>=2)||e.isComplete()||e.Gc()||!(!r.loader.f8||r.loader.isSuspended||KT(x)>3)){var E=Gtp(e,r.policy,r.Y);E===1&&(r.bL=!0);B$X(r,e,E);if(e.isComplete()||e.h0()&&n<3){if(r.policy.S){var N=e.timing.g5();N.rst=e.state;N.strm=e.xhr.LT();N.cncl=e.xhr&&e.fF.Y?1:0;r.loader.Hs("rqs",N)}e.WY&&r.loader.Hs("sbwe3",{},!0)}if(!r.h0()&&e.state>=2){G2U(r.timing,e,D);var c=r.loader;r.Zt&&e.xq&&c&&(r.Zt=NaN,r.loader.Vm(e.xq),r.loader.fz(),r.loader.Hs("cabrUtcSeek",{mediaTimeSeconds:e.xq}));e.GZ&&r.Zt&&e.GZ&& !e.GZ.action&&(r.loader.IU(r.Zt),r.Zt=NaN,r.loader.Hs("cabrUtcSeekFallback",{targetUtcTimeSeconds:r.Zt}));e.RF&&r.loader.l8(e.RF);r.policy.By&&(r.Dr=e.Dr);if(e.state===3){tF(x,e);kk(e.info)&&Sg(r,x,D,!0);if(r.X){var z=e.info.qE();z&&r.X.ZN(e.info.iL[0].J0,D.info.id,z)}r.loader.Td()}else if(e.isComplete()&&e.info.iL[0].type===5){if(e.state!==4)e.PL()&&r.loader.handleError(e.IQ(),e.Tr());else{var M=(e.info.iL[0].G.info.video?r.videoTrack:r.audioTrack).S[0]||null;M&&M instanceof iz&&M.Gc()&&M.d0()}e.dispose()}else{e.PL()|| ggU(r,e);var w;((w=e.FU)==null?0:w.itagDenylist)&&r.loader.Ag(e.FU.itagDenylist);if(e.state===4)SLZ(r,e),r.G&&JXA(r.G,e.info,r.X);else if(r.policy.ZU&&e.Qg()&&!e.isComplete()&&!SLZ(r,e)&&!e.PL())break a;e.PL()&&(ixA(r,e),isNaN(r.Zt)||(r.loader.IU(r.Zt),r.Zt=NaN));r.policy.Bp&&!e.isComplete()?Uaj(r.loader):r.loader.Td();var b=FDS(e,r.policy,r.Y);B$X(r,e,b)}}}}}catch(W){n=r.kc?1:0,r.kc=!0,e=Fa(n),n=lS(W,n),r.loader.handleError(n.errorCode,n.details,n.severity),e||r.loader.I1()}},d)}; ggU=function(r,V){if(V.cW&&V.state>=2&&V.state!==3){var I=V.xhr.getResponseHeader("X-Response-Itag");if(I){r.logger.debug(function(){return"Applying streamer-selected format "+I}); var d=fAg(r.S,I),a=V.info.S;a&&(a-=d.nx(),d.S=!0,V.info.iL[0].G.S=!1,eKO(V,d.eW(a)),i4(r.loader,r.videoTrack,d),M4A(r.videoTrack,d),r.loader.BQ(d.info.video.quality),(a=V.oP())&&d.info.lastModified&&d.info.lastModified!==+a&&tF(r.videoTrack,V))}else V.cW=!1}}; ixA=function(r,V){var I=V.info.iL[0].G,d=V.IQ();if(ZQ(I.po.G)){var a=g.dq(V.GY(),3);r.loader.Hs("dldbrerr",{em:a||"none"})}a=V.info.iL[0].J0;var f=pF(r.G,V.info.iL[0].Y,a);d==="net.badstatus"&&(r.C+=1);if(V.canRetry()&&Qjr(r.loader)){if(!(V.info.po.S>=r.policy.ir&&r.X&&V.info.isDecorated()&&d==="net.badstatus"&&r.X.l5(f,a))){a=(I.info.video&&I.po.S>1||V.jr===410||V.jr===500||V.jr===503)&&!(hG(r.S.W).size>0)&&!ZQ(I.po.G);f=V.Tr();var e=I.info.video?r.videoTrack:r.audioTrack;a&&(f.stun="1");r.loader.handleError(d, f);r.h0()||(a&&(r.logger.debug(function(){return"Stunning format "+I.info.id}),fT(r.S,I)),tF(e,V),r.loader.Td())}}else e=1,r.X&&V.info.isDecorated()&&d==="net.badstatus"&&r.X.l5(f,a)&&(e=0),r.o7.isLive&&V.IQ()==="net.badstatus"&&r.C<=r.policy.lh*2?(Mrp(r.o7),r.o7.Ue||r.o7.isPremiere?qW(r.loader,0,{YX:"badStatusWorkaround"}):r.o7.Y?qW(r.loader,r.o7.n8,{YX:"badStatusWorkaround", Uc:!0}):U1(r.loader)):r.loader.handleError(d,V.Tr(),e)}; SLZ=function(r,V){if(r.policy.useUmp&&V.h0())return!1;try{var I=V.info.iL[0].G,d=I.info.video?r.videoTrack:r.audioTrack;if(r.o7.isManifestless&&d){r.C=0;d.j&&(V.h0(),V.isComplete()||V.Qg(),d.j=!1);V.lC()&&r.loader.UR.V_(1,V.lC());var a=V.A_(),f=V.rS();JD(r.o7,a,f)}if(V.info.I0()&&!oi(V.info))for(var e=g.H(V.Fb()),n=e.next();!n.done;n=e.next())IBp(d,n.value);for(r.loader.getCurrentTime();d.S.length&&d.S[0].state===4;){var D=d.S.shift();V4p(d,D);d.Ws=D.lS()}d.S.length&&V4p(d,d.S[0]);var x=!!PU(d);x&& V instanceof SW&&(I.info.HH()?WYj(r.timing):OhA(r.timing));return x}catch(E){V=V.Tr();V.origin="hrhs";a:{r=r.loader;I=E;if(I instanceof Error){V.msg||(V.msg=""+I.message);V.name||(V.name=""+I.name);if(I instanceof g.ox&&I.args)for(d=g.H(Object.entries(I.args)),a=d.next();!a.done;a=d.next())f=g.H(a.value),a=f.next().value,f=f.next().value,V["arg"+a]=""+f;g.gj(I);if(I.level==="WARNING"){r.lL.Z$(V);break a}}r.handleError("fmt.unplayable",V,1)}return!1}}; mai=function(r){var V=r.videoTrack.G.index;r.Hu=new t4O({WO:r.policy.WO,tK:r.policy.j.tK,WH:V.Lu(),xX:function(){return V.xX()}, Hw:function(){return V.Hw()}})}; Sg=function(r,V,I,d){var a=r.policy.H$?r.loader.GO():0;I.sj()||I.e1()||I.S||!JX(I.po,r.policy,r.Y,a)||I.info.A0==="f"||r.policy.G||(d?(d=r.W,a=I.info,d=LBi(d,a.video?d.policy.GG:d.policy.CS,a.VH)):d=0,d=I.eW(d),r=LDr(r,d),oi(d)&&hai(V,r),I.S=!0)}; Qt=function(r,V,I,d,a,f,e,n){g.X.call(this);var D=this;this.loader=r;this.Qs=V;this.videoTrack=I;this.audioTrack=d;this.o7=a;this.V=f;this.isAudioOnly=e;this.C=n;this.X=vk;this.bL=!1;this.logger=new g.xP("sabr");this.j=this.kc=this.QH=!1;this.videoInfos=this.L=this.V.videoInfos;this.S=this.GQ=this.V.G;this.G=new og(V,f,function(x,E){D.loader.Hs(x,E)}); this.Qs.zK||uGS(this);this.isAudioOnly&&p8i(this,this.o7.G["0"])}; vgi=function(r,V){var I=[];V=g.H(V);for(var d=V.next();!d.done;d=V.next())I.push(g.a2(d.value,r.o7.Tz));return I}; p8i=function(r,V,I){V!==r.Y&&(r.Y&&(r.bL=!0),r.Y=V,r.BB(V,r.videoTrack,I))}; kti=function(r,V){r.logger.debug("setConstraint: "+H7(V));XD(r.Qs)&&(r.kc=V.reason==="m"||V.reason==="l"?!0:!1);V.reason==="m"?V.isLocked()&&qLi(r,V.G):PnU(r,V)?ogv(r,V.X,V.G):r.videoInfos=r.L;r.X=V}; PnU=function(r,V){return r.Qs.GN&&V.reason==="b"||r.Qs.Y0&&V.reason==="l"||r.Qs.EG?!1:r.Qs.qn?!0:V.reason==="l"||V.reason==="b"||V.reason==="o"}; hyh=function(r,V){return V.isLocked()&&r.G.X||r.X===void 0?!1:V.equals(r.X)}; rIU=function(r,V){var I,d=(I=r.Y)==null?void 0:I.info.video.qualityOrdinal;return r.bL?!0:r.Y?V!==d?!0:!r.G.X||r.Qs.k_&&r.G.G===r.Y.info.itag?!1:!0:!1}; qLi=function(r,V){var I=r.G.G;if(I){r.videoInfos=r.L;var d=g.z6(r.videoInfos,function(a){return a.id===I}); d&&d.video.qualityOrdinal===V?r.videoInfos=[d]:(d=r.videoInfos.map(function(a){return a.id}),r.loader.Hs("sabrpf",{pfid:""+I, vfids:""+d.join(".")}),ogv(r,V,V),r2(r.G,""))}else ogv(r,V,V)}; ogv=function(r,V,I){r.videoInfos=r.L;r.videoInfos=g.Z_(r.videoInfos,function(d){return d.video.qualityOrdinal>=V&&d.video.qualityOrdinal<=I})}; uGS=function(r){var V=ihX(r.G,r.C);V&&(r.S=[V])}; VQr=function(r,V,I){if(r.Qs.zK){if(r.C){var d=g.Z_(r.S,function(a){return a.id===r.C}); return mj(d,I).includes(V)}d=g.Z_(r.S,function(a){var f;return!((f=a.uo)==null||!f.isDefault)}); if(d.length>0)return mj(d,I).includes(V)}return mj(r.S,I).includes(V)}; mj=function(r,V){return r.map(function(I){return ZT(g.a2(I,V))})}; Ibg=function(r){var V;if((V=r.X)==null?0:V.isLocked())return r.videoInfos;var I=hG(r.G);V=g.Z_(r.videoInfos,function(d){return d.VH>r.Qs.VH?!1:!I.has(d.id)}); SCi(r.G)&&(V=g.Z_(V,function(d){return d.video.width<=854&&d.video.height<=480})); return V}; fbi=function(r,V,I,d){var a=r.o7,f=r.lL.getVideoData(),e=g.hI(f),n=r.MI,D=$P({mM:f.N(),lL:r.lL,cS:r.cS,Qs:r.Qs,v9:r.v9,Q$:r.Q$,KQ:r.KQ,gV:r.gV,qe:r.qe,isPrefetch:r.isPrefetch,bX:r.bX,sabrLicenseConstraint:f.sabrLicenseConstraint,NK:r.NK,jn:r.jn,W$:r.W$,z7:r.z7,s7s:!!n,tR:f.tR}),x=KF(f,r.Mc,r.nextRequestPolicy,r.jm,r.SN,r.XHE,r.Zn);d&&I&&(d=x.IJ?x.IJ.map(function(w){return w.type}):[],I("sabr",{stmctxt:d.join("_"), unsntctxt:x.v4?x.v4.join("_"):""}));d=r.vg;var E=r.Bg;if(E===void 0&&d===void 0){var N;E=dCX(a.Tz,(N=r.Qd)==null?void 0:N.video);var c;d=dCX(a.Tz,(c=r.Qd)==null?void 0:c.audio)}if(f.Zm)var z=f.Zm;f={yQ:D,ez:r.ez,vg:d,Bg:E,MI:n,videoPlaybackUstreamerConfig:z,dI:x};r.bT&&(f.bT=r.bT);if(e&&V){e=new Map;var M=g.H(a.p8);for(n=M.next();!n.done;n=M.next())n=n.value,(D=a.TQ[r3r(a,n)]||"")?(e.has(D)||e.set(D,[]),e.get(D).push(n)):I&&I("ssap",{nocid4fmt:(n.itag||"")+"_"+(n.lmt||0)+"_"+(n.xtags||"")});a=new Map; M=g.H(r.Eu);for(n=M.next();!n.done;n=M.next())n=n.value,D=n.startTimeMs||0,x=void 0,N=(x=V)==null?void 0:BU(x,D),x=N.clipId,N=N.kD,x?(a.has(x)||(c=e.get(x)||[],a.set(x,{clipId:x,Eu:[],h4:c})),N!==0&&(n.startTimeMs=D-N),a.get(x).Eu.push(n)):I&&(x=void 0,I("ssap",{nocid4range:"1",fmt:((x=n.formatId)==null?void 0:x.itag)||"",st:D.toFixed(3),d:(n.durationMs||0).toFixed(3),timeline:u4(V)}));f.bB=[];a=g.H(a.entries());for(e=a.next();!e.done;e=a.next())e=g.H(e.value),e.next(),e=e.next().value,f.bB.push(e); if(r.Eu.length&&!f.bB.length){I&&I("ssap",{nobfrange:"1",br:abA(r.Eu),timeline:u4(V)});return}r.Pn&&(f.Pn=r.Pn);r.xf&&(f.xf=r.xf)}else f.Eu=r.Eu,f.h4=a.p8,e&&((M=r.Eu)==null?void 0:M.length)>0&&!V&&I&&I("ssap",{bldmistlm:"1"});return f}; dCX=function(r,V){return V?[g.a2(V.info,r)]:[]}; abA=function(r){var V="";r=g.H(r);for(var I=r.next();!I.done;I=r.next()){I=I.value;var d=void 0,a=void 0,f=void 0;V+="fmt."+(((d=I.formatId)==null?void 0:d.itag)||"")+"_"+(((a=I.formatId)==null?void 0:a.lmt)||0)+"_"+(((f=I.formatId)==null?void 0:f.xtags)||"")+";st."+(I.startTimeMs||0).toFixed(3)+";d."+(I.durationMs||0).toFixed(3)+";"}return V}; pT=function(r,V,I){var d=this;this.requestType=r;this.po=V;this.q2=I;this.X=null;this.m_={dvk:function(){var a;return(a=d.data)==null?void 0:a.isPrefetch}, SN:function(){var a;return(a=d.data)==null?void 0:a.SN}}}; Tri=function(r,V,I){V=lU(r.po,egU(r,V,I),V);r.oZ()&&V.set("probe","1");return V}; egU=function(r,V,I){r.rq===void 0&&(r.rq=r.po.rq(V,I));return r.rq}; YrA=function(r){var V,I;return((V=r.G)==null?void 0:(I=V.yQ)==null?void 0:I.bW)||0}; n9i=function(r){var V,I;return!!((V=r.G)==null?0:(I=V.yQ)==null?0:I.NK)}; jUi=function(r){var V={},I=[],d=[];if(!r.data)return V;for(var a=0;a0;D--)I.push(n)}I.length!==e?V.error=!0:(f=I.slice(-f),I.length=a,JIS(V,I,f));break;case 1:JIS(V,ff,yIA);break;case 0:ZiX(V, V.G&7);I=j0(V,16);a=j0(V,16);(I^a)!==65535&&(V.error=!0);V.output.set(V.data.subarray(V.X,V.X+I),V.S);V.X+=I;V.S+=I;break;default:V.error=!0}r.S>r.output.length&&(r.output=new Uint8Array(r.S*2),r.S=0,r.X=0,r.Y=!1,r.G=0,r.register=0)}r.output.length!==r.S&&(r.output=r.output.subarray(0,r.S));return r.error?new Uint8Array(0):r.output}; JIS=function(r,V,I){V=lbA(V);I=lbA(I);for(var d=r.data,a=r.output,f=r.S,e=r.register,n=r.G,D=r.X;;){if(n<15){if(D>d.length){r.error=!0;break}e|=(d[D+1]<<8)+d[D]<>=7;x<0;)x=V[(e&1)-x],e>>=1;else e>>=x&15;n-=x&15;x>>=4;if(x<256)a[f++]=x;else if(r.register=e,r.G=n,r.X=D,x>256){e=YU[x];e+=j0(r,e0[x]);D=Lii(r,I);n=nf[D];n+=j0(r,AIO[D]);if(Bvg&&eI.length&&(r.error=!0);r.register|=(I[d+1]<<8)+I[d]<=0)return ZiX(r,I&15),I>>4;for(ZiX(r,7);I<0;)I=V[j0(r,1)-I];return I>>4}; j0=function(r,V){for(;r.G=r.data.length)return r.error=!0,0;r.register|=r.data[r.X++]<>=V;r.G-=V;return I}; ZiX=function(r,V){r.G-=V;r.register>>=V}; lbA=function(r){for(var V=[],I=g.H(r),d=I.next();!d.done;d=I.next())d=d.value,V[d]||(V[d]=0),V[d]++;var a=V[0]=0;I=[];var f=0;d=0;for(var e=1;e7&&(f+=V[e]);for(a=1;a>D&1;n=f<<4|e;if(e<=7)for(D=1<<7-e;D--;)d[D<>=7;e--;){d[D]||(d[D]=-V,V+=2);var x=a&1;a>>=1;D=x-d[D]}d[D]=n}}return d}; g9h=function(r){var V,I,d,a,f,e,n;return g.L(function(D){switch(D.X){case 1:if(!("DecompressionStream"in window))return D.return(g.XkS(new g.GpS(r)));V=new DecompressionStream("gzip");I=V.writable.getWriter();I.write(r);I.close();d=V.readable.getReader();a=new be([]);case 2:return g.G(D,d.read(),5);case 5:f=D.G;e=f.value;if(n=f.done){D.qk(4);break}a.append(e);D.qk(2);break;case 4:return D.return(a.ji())}})}; Dx=function(r,V){this.G=r;this.Gy=V}; SrA=function(r){return $N($N(bZ(function(){return Wp(r.Gy,function(V){return r.mP(r.G,V)})}),function(){return r.bF(r.G)}),function(){return r.w7(r.G)})}; iiX=function(r,V){return SrA(new Dx(r,V))}; mCp=function(r){yz.call(this,"onesie");this.rh=r;this.G={};this.S=!0;this.Y=null;this.queue=new tQh(this);this.W={};this.C=Kw(function(V,I){var d=this;return function f(){var e,n,D,x,E,N,c,z,M,w,b,W,K,F,l,B,P,p,dA,fg;return Jh(f,function(rA){switch(rA.X){case 1:g.Oi(rA,2);d.rh.PB();e=function(ji){return function(k){throw{name:ji,message:k};}}; n=V.ji();g.wA(rA,4,5);if(!I){rA.qk(7);break}return TS(rA,Xj($N(UCg(d.rh,n,d.iv),e("DecryptError")).wait()),8);case 8:D=rA.G;case 7:if(!d.rh.enableCompression){rA.qk(9);break}return TS(rA,Xj($N(iiX((N=D)!=null?N:n,d.rh.N().By),e("DecompressError")).wait()),10);case 10:x=rA.G;case 9:E=ue((z=(c=x)!=null?c:D)!=null?z:n,svv);case 5:g.Ah(rA,0,2);if(w=(M=d.rh.N())==null?void 0:M.Gy)((b=D)==null?void 0:b.buffer)===w.exports.memory.buffer&&w.free(D.byteOffset),((W=x)==null?void 0:W.buffer)===w.exports.memory.buffer&& w.free(x.byteOffset);g.Fj(rA,6);break;case 4:throw F=K=g.th(rA),new Gk("onesie.response.parse",{name:(p=F.name)!=null?p:"unknown",message:(dA=F.message)!=null?dA:"unknown",wasm:((l=d.rh.N())==null?0:l.Gy)?((B=d.rh.N())==null?0:(P=B.Gy)==null?0:P.gK)?"1js":"1":"0",enc:d.S,gz:d.rh.enableCompression,webcrypto:!!$O()});case 6:return QUr(E),fg=g.GU(E.body),rA.return(fg);case 2:g.Ah(rA),g.Fj(rA,0)}})}()})}; u$A=function(r){var V=r.queue;V.G.length&&V.G[0].isEncrypted&&!V.X&&(V.G.length=0);V=g.H(Object.keys(r.G));for(var I=V.next();!I.done;I=V.next()){I=I.value;var d=r.G[I];if(!d.B_){var a=r.queue;a.G.push({videoId:d.videoId,formatId:I,isEncrypted:!1});a.X||aA(a)}}}; v9v=function(r,V){var I=V.getLength(),d=!1;switch(r.Y){case 0:r.rh.U("html5_future_onesie_ump_handler_on_player_response")?$N(Wp(r.C(V,r.S),function(a){pkj(r.rh,a)}),function(a){r.rh.kQ(a)}):r.PB(V,r.S).then(function(a){pkj(r.rh,a)},function(a){r.rh.kQ(a)}); break;case 2:r.DR("ormk");V=V.ji();r.rh.U("html5_future_onesie_ump_handler_on_media_decryption_key")?r.queue.S(V,r.rh.N().By):r.queue.decrypt(V);break;default:d=!0}r.rh.Bu&&r.rh.Hs("ombup","id.11;pt."+r.Y+";len."+I+(d?";ignored.1":""));r.Y=null}; QUr=function(r){if(r.Tb!==1)throw new Gk("onesie.response.badproxystatus",{st:r.Tb,webcrypto:!!$O(),textencoder:!!g.vr.TextEncoder});if(r.lF!==200)throw new Gk("onesie.response.badstatus",{st:r.lF});}; qri=function(r){return new Promise(function(V){setTimeout(V,r)})}; PLA=function(r,V){var I=r.N();I=r.SA&&I.U("html5_onesie_preload_use_content_owner");var d=r.AN,a=fx(V.yH.experiments,"debug_bandaid_hostname");if(a)V=Vu(V,a);else if((I===void 0?0:I)&&(d==null?0:d.url)&&!V.X){var f=Jj(new g.lY(d.url));V=Vu(V,f)}else V=(f=V.G.get(0))==null?void 0:f.location.clone();if(V&&r.videoId){f=xg(r.videoId);r=[];if(f)for(f=g.H(f),I=f.next();!I.done;I=f.next())r.push(I.value.toString(16).padStart(2,"0"));V.set("id",r.join(""));return V}}; o9Z=function(r,V,I){I=I===void 0?0:I;var d,a;return g.L(function(f){if(f.X==1)return d=[],d.push(V.load()),I>0&&d.push(qri(I)),g.G(f,Promise.race(d),2);a=PLA(r,V);return f.return(a)})}; kpp=function(r,V,I,d){d=d===void 0?!1:d;r.set("cpn",V.clientPlaybackNonce);r.set("opr","1");var a=V.N();r.set("por","1");$O()||r.set("onem","1");V.startSeconds>0&&r.set("osts",""+V.startSeconds);d||(a.U("html5_onesie_disable_partial_segments")&&r.set("oses","1"),V=a.U("html5_gapless_onesie_no_media_bytes")&&nk(V)&&V.SA,I&&!V?(V=I.audio,r.set("pvi",I.video.join(",")),a.U("html5_onesie_disable_audio_bytes")||r.set("pai",V.join(",")),aj||r.set("osh","1")):(r.set("oad","0"),r.set("ovd","0"),r.set("oaad", "0"),r.set("oavd","0")))}; hgA=function(r,V,I,d,a){a=a===void 0?!1:a;var f="https://youtubei.googleapis.com/youtubei/"+V.lh.innertubeApiVersion+"/player",e=[{name:"Content-Type",value:"application/json"}];d&&e.push({name:"Authorization",value:"Bearer "+d});e.push({name:"User-Agent",value:g.RZ()});g.kt("EOM_VISITOR_DATA")?e.push({name:"X-Goog-EOM-Visitor-Id",value:g.kt("EOM_VISITOR_DATA")}):(I=I.visitorData||g.kt("VISITOR_DATA"))&&e.push({name:"X-Goog-Visitor-Id",value:I});(I=g.kt("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&e.push({name:"X-YouTube-Lava-Device-Context", value:I});(V=fx(V.experiments,"debug_sherlog_username"))&&e.push({name:"X-Youtube-Sherlog-Username",value:V});r=Ln(JSON.stringify(r));return{url:f,l6:e,postBody:r,xmc:a,f5:a}}; V3Z=function(r,V,I,d,a,f){var e=g.ru(r,NkA,r.f5?void 0:I.Gy),n={encryptedClientKey:V.G.encryptedClientKey,CV:!0,j9:!0,z3:rRh(I,!!r.f5),iR:I.experiments.uL("html5_use_jsonformatter_to_parse_player_response")};if(r.f5)n.vGC=e;else{if(I.Gy){r=zgv(V).X(e,V.iv);var D;n.Th=(D=I.Gy.CB(r))!=null?D:r}else n.Th=V.encrypt(e);D=n.Th;(0,g.m)();D=ubh(new muX(V.G.S),D,V.iv);n.P_=D;n.iv=V.iv}V=d.getVideoData();I=$P({mM:I,lL:d,cS:V.startSeconds*1E3});a={b6:n,yQ:I,onesieUstreamerConfig:a,gr:f,dI:KF(V)};V.reloadPlaybackParams&& (a.reloadPlaybackParams=V.reloadPlaybackParams);return a}; Idv=function(r,V,I){var d,a,f;return g.L(function(e){if(e.X==1)return d=g.ru(V,NkA),g.G(e,MQi(I,d),2);if(e.X!=3)return a=e.G,g.G(e,CLp(I,a),3);f=e.G;return e.return({Th:a,encryptedClientKey:I.G.encryptedClientKey,iv:I.iv,P_:f,CV:!0,j9:!0,z3:rRh(r,!!V.f5),iR:r.experiments.uL("html5_use_jsonformatter_to_parse_player_response")})})}; dqg=function(r,V,I,d,a,f){var e,n,D,x;return g.L(function(E){if(E.X==1)return g.G(E,Idv(I,r,V),2);e=E.G;n=d.getVideoData();D=$P({mM:I,lL:d,cS:n.startSeconds*1E3});x={b6:e,yQ:D,onesieUstreamerConfig:a,gr:f,dI:KF(n)};n.reloadPlaybackParams&&(x.reloadPlaybackParams=n.reloadPlaybackParams);return E.return(x)})}; rRh=function(r,V){r=$g(r.schedule,!0);V=V||!!$O()&&r>1572864;return"DecompressionStream"in window||!V}; EF=function(r,V){g.X.call(this);var I=this;this.lL=r;this.playerRequest=V;this.logger=new g.xP("onesie");this.xhr=null;this.state=1;this.TA=new IL;this.gS=!1;this.playerResponse="";this.n_=new dK(this);this.Xl=new mCp(this);this.kh="";this.aq=this.Jx=!1;this.ip="";this.enableCompression=this.cT=this.xT=!1;this.Xm=[];this.Yh=this.Wa=-1;this.yH=this.lL.N();this.videoData=this.lL.getVideoData();this.Bu=this.yH.Ko();this.q6=this.yH.Fq;this.Em=new hF(this.q6.G,this.yH.By,DCj(this.yH));this.Wi=this.yH.U("html5_onesie_check_timeout"); this.Ib=new g.hz(this.GF,500,this);this.kM=new g.hz(this.Mq,1E4,this);this.wQ=new g.hz(function(){if(!I.isComplete()){var d=xU(I);I.kQ(new Gk("net.timeout",d))}},1E3); this.sx=new g.hz(this.QTz,2E3,this);this.NE=this.lL.oi();this.jN=this.U("html5_onesie_wait_for_media_availability");g.S(this.videoData,this);g.S(this,this.Ib);g.S(this,this.kM);g.S(this,this.sx);g.S(this,this.Em);r=Yg();aj&&r&&(this.Sr=new Map);this.Dl=new Map;this.C3=new Map;this.mT=new Map;this.B0=new Map}; df=function(r,V){var I;return(I=r.Sr)==null?void 0:I.get(V)}; fdS=function(r,V,I){var d;return g.L(function(a){if(a.X==1)return r.DR("oprd_s"),adU(r)?g.G(a,TvX(r.Em,V,I),3):(d=r.Em.decrypt(V,I),a.qk(2));a.X!=2&&(d=a.G);r.DR("oprd_c");return a.return(d)})}; UCg=function(r,V,I){r.DR("oprd_s");V=zgv(r.Em).encrypt(V,I);Wp(V,function(){r.DR("oprd_c")}); return V}; eoU=function(r){return r.U("html5_onesie_host_probing")||r.Bu?aj:!1}; pkj=function(r,V){r.DR("oprr");r.playerResponse=V;r.cT||(r.jN=!1);N8(r)}; N8=function(r){if(!r.playerResponse)return!1;if(r.xT)return!0;var V=r.videoData.U("html5_onesie_audio_only_playback")&&j3(r.videoData);if(r.Sr&&r.jN){if(!r.Sr.has(r.kh))return!1;var I=r.Sr.get(r.kh),d;if(d=I){d=!1;for(var a=g.H(I.I8.keys()),f=a.next();!f.done;f=a.next())if(f=I.I8.get(f.value))for(var e=g.H(f.fO),n=e.next();!n.done;n=e.next())n.value.kz>0&&(f.HH?d=!0:V=!0);d=!(V&&d)}if(d)return!1}r.DR("ofr");r.TA.resolve(r.playerResponse);if(!r.Wi){var D;(D=r.wQ)==null||D.start();r.kM.start()}return r.xT= !0}; naZ=function(r){if(r.Sr&&!r.U("html5_onesie_media_capabilities")){r.DR("ogsf_s");var V=vCA(r.lL.getVideoData(),function(d,a){r.Hs(d,a)}),I=YQZ(r.lL); V.video=BVi(I,V.video);r.DR("ogsf_c");if(V.video.length)return V;r.Hs("ombspf","l."+I.X+";u."+I.G+";o."+I.S+";r."+I.reason)}}; adU=function(r,V){return r.U("html5_onesie_sync_request_encryption")||(V==null?0:V.f5)||g.dv(r.yH)&&r.U("html5_embed_onesie_use_sync_encryption")?!1:!!$O()}; xU=function(r){if(!r.F8)return{};var V=r.F8.g5(),I;V.d=(I=r.F8.n8)==null?void 0:I.eI();V.shost=r.k0;V.ty="o";return V}; jaU=function(r,V){var I,d;(d=(r=(I=r.Sr)==null?void 0:I.get(V))==null)||(V=r.S?!1:r.S=!0,d=!V);return!d}; DqX=function(r,V,I,d,a,f,e,n,D,x,E){g.X.call(this);var N=this;this.lL=r;this.loader=V;this.policy=I;this.audioTrack=d;this.videoTrack=a;this.o7=f;this.Jz=e;this.EE=n;this.Y=D;this.timing=x;this.V=E;this.G=[];this.L={};this.Ws=this.L8=!1;this.jm=new Set;this.W=this.TQ=this.QH=this.qe=0;this.X=null;this.bL={Eu:[],ez:[]};this.GQ={Eu:[],ez:[]};this.C=null;this.p8=[];this.m_={ev8:function(){return N.G}, C_M:function(){return N.L}, LeC:function(){N.G.length=0}, cp8:function(){return N.jm}, N57:function(){return N.QH}, UZ7:function(c){N.QH=c}, dZM:function(c){N.W=c}, d2:function(c){N.C=c}}; this.videoData=this.lL.getVideoData();this.policy.Ja&&(this.R7=new BB(this.loader,this.policy,this.Jz),g.S(this,this.R7))}; NtO=function(r,V){V=V===void 0?!1:V;if(xqh(r)){r.policy.L&&r.loader.Hs("sabrcrq",{create:1});var I=new pT(0,r.o7.j,r);r.policy.fn>0&&r.W++;V=Eag(r,I,V);r.G.push(V);var d;(d=r.R7)==null||yKX(d,r.o7.j)}}; M3X=function(r,V){var I=sah(r);if(r.policy.RH){var d=r.bL;var a=r.GQ}else d=sF(r,r.audioTrack),a=sF(r,r.videoTrack);var f=[].concat(g.R(d.Eu),g.R(a.Eu));r.policy.Qa&&r.C&&f.push.apply(f,g.R(r.p8));var e=[].concat(g.R(d.ez),g.R(a.ez)),n=r.loader.kf(),D,x,E=r.lL,N=r.o7,c=r.S,z=r.jm,M=r.policy,w=r.loader.v9,b=X8v(r.loader)*1E3,W=(D=r.n8)==null?void 0:D.KQ;D=(x=r.n8)==null?void 0:x.gV;var K;x=Number((K=r.Y.Y)==null?void 0:K.info.itag)||0;var F;K=Number((F=r.Y.W)==null?void 0:F.info.itag)||0;V={lL:E,o7:N, Eu:f,ez:e,cS:I,nextRequestPolicy:c,jm:z,Qs:M,v9:w,Q$:b,KQ:W,gV:D,qe:r.qe,isPrefetch:V||r.loader.isSuspended,Pn:x,xf:K,Mc:n,Zn:r.lL.QR()};I=r.loader.e6();f=xg(I);I&&(V.SN=f);if(I=r.lL.rj())V.NK=I*1E3;var l;I=r.Y;f=I.QH;if((I.Qs.X&&I.Qs.XG||((l=I.Qs)==null?0:l.G&&l.JP))&&!f)for(l=g.H(I.S),e=l.next();!e.done;e=l.next())if(e.value.uo){f=!0;break}l=XD(I.Qs)&&!f?[]:vgi(I,I.S);V.vg=l;l=r.Y;XD(l.Qs)&&!l.kc?l=[]:(I=Ibg(l),I.length===0&&(I=l.L),l=vgi(l,I));V.Bg=l;V.MI=r.policy.Qa&&r.C?[r.C]:void 0;r.policy.p4&& (V.W$=cRS(r.loader,r.audioTrack),V.z7=cRS(r.loader,r.videoTrack));if(r.policy.W){if(r.policy.w_){l=r.loader.getCurrentTime();var B=cP(r,d.Eu,l);d=cP(r,a.Eu,l);var P;a=(P=r.X)==null?void 0:P.bH(Math.min(B,d))}else P=zoi(r,d.Eu,a.Eu),a=(B=r.X)==null?void 0:B.bH(P);a&&(V.bT=a)}r.policy.p8&&r.G.length>0&&r.G[0].Us()&&(V.XHE=r.G[0].sB());return V}; sah=function(r){var V,I=r.policy.C&&((V=r.loader)==null?void 0:V.yE());V=r.loader.getCurrentTime()||0;V=C3A(r,V);var d=r.loader.N2()||0;V+=d;d=F8(r.videoData)||g.GV(r.videoData);var a=0;I?(d&&(a=Number.MAX_SAFE_INTEGER),r.videoData.GQ&&(a=Math.ceil(r.videoData.n8*1E3))):a=Math.ceil(V*1E3);return Math.min(Number.MAX_SAFE_INTEGER,a)}; C3A=function(r,V){if(r.loader.isSeeking())return V;var I=r.lL.Sx();if(!I)return V;I=I.VX();if(I.length===0||N$(I,V))return V;if(!Cnp(r.videoTrack,V)&&!Cnp(r.audioTrack,V))return r.loader.Hs("sundrn",{b:0,lt:V}),V;for(var d=V,a=Infinity,f=0;fV)){var e=V-I.end(f);e=20)?(r.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),V):d}; zoi=function(r,V,I){var d=r.loader.getCurrentTime()||0;V=cP(r,V,d);r=cP(r,I,d);return Math.min(V,r)}; cP=function(r,V,I){var d=r.loader.N2()||0;if(r.policy.w_)return Tth(V,(I+d)*1E3)/1E3+I;r=g.H(V);for(V=r.next();!V.done;V=r.next()){var a=V.value;V=a.startTimeMs?a.startTimeMs/1E3-d:0;a=V+(a.durationMs?a.durationMs/1E3:0);if(V<=I&&I<=a)return a}return I}; xqh=function(r){if(r.policy.fn>0){var V=Math.floor((0,g.m)()/1E4);if(V===r.TQ){if(r.W>=r.policy.fn){if(r.W===r.policy.fn){var I={reason:"toomanyrequests"};I.limit=r.W;r.loader.handleError("player.exception",I);r.W+=1}return!1}}else r.TQ=V,r.W=0}if(r.loader.isSuspended&&r.loader.SF)return!1;if(r.kc&&(0,g.m)()0&&(!r.policy.p8||r.G.length!==1||!r.G[0].Us()))return!1;var d;if((d=r.o7.j)==null||!JX(d,r.policy,r.L,r.loader.GO()))return!1;V=r.policy.iB&&r.policy.X&& r.loader.Ro();if(GG(r.audioTrack)&&GG(r.videoTrack)&&!V)return!1;if(r.policy.X&&r.j&&!r.loader.Ro())return r.Ps("ssap",{pauseontlm:1}),!1;if(zz(r,r.audioTrack)&&zz(r,r.videoTrack))return r.policy.S&&r.loader.Hs("sabrHeap",{a:""+WB(r.audioTrack),v:""+WB(r.videoTrack)}),!1;if(V=r.policy.W){V=!1;if(r.V.X===2)V=!0;else if(r.V.X===3){sah(r);r.loader.N2();d=zoi(r,aBA(r.audioTrack,r.loader.isSeeking()).Eu,aBA(r.videoTrack,r.loader.isSeeking()).Eu);var a=r.V;d>=a.W?(a.Hs("sdai",{haltrq:d,est:a.W}),d=!0): d=!1;d&&(V=!0)}V&&r.policy.L&&r.loader.Hs("sabrcrq",{waitad:1})}if(V)return!1;r.policy.RH&&(r.bL=sF(r,r.audioTrack),r.GQ=sF(r,r.videoTrack));if(!r.S)return r.policy.L&&r.loader.Hs("sabrcrq",{nopolicy:1}),!0;if(r.lL.rj())return r.policy.L&&r.loader.Hs("sabrcrq",{utc:1}),!0;if(r.Y.j)return r.policy.L&&r.loader.Hs("sabrcrq",{audio:1}),!0;if(!r.S.targetAudioReadaheadMs||!r.S.targetVideoReadaheadMs)return r.policy.L&&r.loader.Hs("sabrcrq",{noreadahead:1}),!0;if(r.policy.C&&r.loader.yE())return r.policy.L&& r.loader.Hs("sabrcrq",{seekToHead:1}),!0;V=Math.min(m_(r.loader,r.audioTrack)*1E3,r.S.targetAudioReadaheadMs);d=Math.min(m_(r.loader,r.videoTrack)*1E3,r.S.targetVideoReadaheadMs);var f=Math.min(V,d);a=KT(r.audioTrack,!0)*1E3;var e=KT(r.videoTrack,!0)*1E3;if(r.policy.RH){var n=r.lL.getCurrentTime()*1E3;var D=Tth(r.bL.Eu,n);n=Tth(r.GQ.Eu,n)}else D=a,n=e;var x=DV||d>=0&&a.wL>d+1)break;I=Math.max(I,a.startTimeMs+a.durationMs);d=Math.max(d,a.x8)}return Math.max(0,I-V)}; Eag=function(r,V,I){var d={Jz:r.Jz,Gl:function(D,x){r.lL.sV(D,x)}, I0:r.policy.KC,h_:r.policy.S};r.Jz.X.C&&(d.QF=(r.videoTrack.G.info.VH||0)+(r.audioTrack.G.info.VH||0));r.policy.hW&&(d.WH=r.audioTrack.G.index.Lu(),d.I0=!1);var a=egU(V,r.policy,r.L)?2:1;a!==r.QH&&(r.QH=a,bkh(r));I=M3X(r,I);if((r.policy.X||r.policy.p8)&&r.policy.S&&I.jm){for(var f=a="",e=g.H(I.jm),n=e.next();!n.done;n=e.next())n=n.value,r.videoData.sabrContextUpdates.has(n)?a+="_"+n:f+="_"+n;r.loader.Hs("sabrbldrqs",{ctxts:a,misctxts:f})}V.setData(I,r.loader.Ro(),r.policy,r.L)||!r.policy.X&&!r.policy.p8|| r.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new Bd(r.policy,V,r.o7,r.L,r,d,r.loader.oi(),r.policy.eA?r.loader.Ro():void 0);gK(r.timing);r.policy.L&&r.loader.Hs("sabrcrq",{rn:d.Ec(),probe:V.oZ()});return d}; Tz=function(r,V){if(V.h0()||r.h0())r.policy.Qp||(r.policy.C?Cf(r.loader):r.loader.Td());else{if(r.policy.S&&V.isComplete()&&V instanceof Bd){var I=r.loader,d=I.Hs,a,f,e=Object.assign(V.F8.g5(),{rst:V.state,strm:V.xhr.LT(),d:(a=V.F8.n8)==null?void 0:a.eI(),cncl:V.xhr&&V.fF.Y?1:0,rqb:V.bM,cwt:V.Mb,swt:(f=V.Hx)==null?void 0:f.wJ});a=Object.assign(jUi(V.info),e);d.call(I,"rqs",a)}if(V.isComplete()&&V.oZ()&&V instanceof Bd)r.policy.Hy?V.WM()?(V.dispose(),r.G.length===0?r.loader.Td():(r=r.G[0],r instanceof Bd&&r.Gc()&&r.d0())):V.PL()&&r.loader.handleError(V.IQ(),V.Tr()):(V.dispose(),r.loader.Td());else{if(V.C6())V instanceof Bd&&G2U(r.timing,V),bkh(r),Oki(r);else if(V.PL())I=r.lL.rj(),V instanceof Bd&&n9i(V.info)&&I&&r.loader.IU(I),V instanceof EF?r.G.pop():(I=1,V.canRetry()&&Qjr(r.loader)&&(WmA(r,V),I=0),r.loader.handleError(V.IQ(),V.Tr(),I));else{if(r.loader.isSuspended&&!V.isComplete())return;Oki(r)}V.h0()||V instanceof EF||(V.isComplete()?I=FDS(V,r.policy,r.L):(I=Gtp(V,r.policy,r.L),I===1&&(r.L8= !0)),I!==0&&(d=new pT(1,V.info.po),d.rq=I===2,Eag(r,d)));r.policy.Bp&&!V.isComplete()?Uaj(r.loader):r.loader.Td()}}}; Oki=function(r){for(;r.G.length&&r.G[0].iC(r.Ty());){var V=r.G.shift();$qi(r,V);if(r.policy.W){var I=r;if(!I.policy.Mk&&V.iC(I.Ty())){var d=V.Ec();if(I.a7!==d){var a=V.T_();V=a.Wa;var f=a.Yh;a=a.isDecorated;!I.X||f<0||(I.a7=d,d=pF(I.V,f/1E3,V),f=I.loader.N2()||0,Qz(I.V,V,d-f,a,I.X))}}}}r.G.length&&$qi(r,r.G[0])}; $qi=function(r,V){var I=new Set(V.kC(r.Ty()));I=g.H(I);for(var d=I.next();!d.done;d=I.next()){var a=d.value;if(!(d=!(V instanceof EF))){d=r.Y;var f=d.o7.Tz,e=mj(d.videoInfos,f);f=VQr(d,a,f);var n=e.includes(a);!d.Qs.nN||f||n||d.loader.Hs("sabrcpf",{fid:""+a,vfids:""+e.join("."),said:d.C||""});d=f||e.includes(a)}if(d&&(d=V.zr(a,r.Ty()),e=r.policy.Qa&&YY(d[0].G.info.mimeType),(!(!e&&r.policy.Di&&d.length>0&&(d[0].G.info.HH()?KT(r.audioTrack):KT(r.videoTrack))>3)||V.isComplete())&&V.Qg(a,r.Ty()))){a= V.Fb(a,r.Ty());if(r.policy.X&&(f=d[0].G.info,(n=r.loader.Ro())&&f)){var D=V.VI();n.api.U("html5_ssap_set_format_info_on_video_data")&&D===AF(n)&&(f.HH()?n.playback.getVideoData().Y=f:n.playback.getVideoData().X=f);if(n=HP(n.timeline,D))if(n=n[0].getVideoData())f.HH()?n.Y=f:n.X=f}a=g.H(a);for(f=a.next();!f.done;f=a.next())if(f=f.value,r.policy.S&&V instanceof EF&&r.loader.Hs("omblss",{s:f.info.qJ()}),e)n=r,n.videoData.Tz()&&n.C&&ZT(n.C)===ZT(g.a2(f.info.G.info,n.o7.Tz))&&n.lL.publish("sabrCaptionsDataLoaded", f,n.fV.bind(n));else{n=f.info.G.info.HH();var x=f.info.G;if(n){D=void 0;var E=r.Y,N=(D=V.h7(r.Ty()))==null?void 0:D.token;E.j&&x!==E.W?D=!0:(E.j=!1,x!==E.W&&(E.W=x,E.BB(x,E.audioTrack,N)),D=!1);if(D)continue}else D=void 0,p8i(r.Y,x,(D=V.h7(r.Ty()))==null?void 0:D.token);D=n?r.audioTrack:r.videoTrack;V instanceof EF&&(D.j=!1,V instanceof EF&&(n?WYj(r.timing):OhA(r.timing)));try{rKA(D,d,f)}catch(c){f=lS(c),r.loader.handleError(f.errorCode,f.details,f.severity),D.I1(),r.lf(!1,"pushSlice"),Cf(r.loader)}}}}}; WmA=function(r,V){r.policy.p8?r.G.splice(r.G.indexOf(V)).forEach(function(I){I.dispose()}):(r.G.pop(),V==null||V.dispose())}; KmU=function(r,V,I){for(var d=[],a=0;a0)for(var V=g.H(r.videoData.sabrContextUpdates.keys()),I=V.next();!I.done;I=V.next()){I=I.value;var d=void 0;((d=r.videoData.sabrContextUpdates.get(I))==null?0:d.sendByDefault)&&r.jm.add(I)}if(r.policy.p8&&r.G.length)for(V=g.H(r.G),I=V.next();!I.done;I=V.next())(I=I.value.sB())&&I.type&&I.sendByDefault&&r.jm.add(I.type)}; yRU=function(r){r.policy.CF&&(r.n8=void 0,r.qe=0)}; ARO=function(r,V){if(V.PL()||V.h0()){var I=r.loader,d=I.Hs,a=V.state;r=r.Ty();var f,e;if((V=(f=V.Sr)==null?void 0:f.get(r))==null)V=void 0;else{f=0;r=V.kC();for(var n=0;n=r.policy.eO,e=!1;if(f){var n=0;!isNaN(V)&&V>r.W&&(n=V-r.W,r.W=V);n/a=r.policy.Zq&&!r.S;if(!f&&!I&&ZkS(r,V))return NaN;I&&(r.S=!0);a:{d=e;I=(0,g.m)()/1E3-(r.vJ.PH()||0)-r.L.G-r.policy.NJ;f=r.X.startTime;I=f+I;if(d){if(isNaN(V)){wf(r,NaN,"n",V);f=NaN;break a}d=V-r.policy.Le;d=f.Y&&d<=f.C){d=!0;break a}d=!1}d=!d}if(d)return r.Hs("ostmf",{ct:r.getCurrentTime(),a:V.G.info.HH()}),!1;(r=r.kc)!=null&&(r.I8.get(I).nz=!0);return!0}; QaX=function(r){if(!r.o7.Tz)return!0;var V=r.lL.getVideoData();if(r.lL.q$())return r.Hs("ombpa",{}),!1;var I,d;if(r.policy.OR&&!!((I=r.V)==null?0:(d=I.Ax)==null?0:d.Nm8)!==r.o7.Ue)return r.Hs("ombplmm",{}),!1;I=V.X_||V.liveUtcStartSeconds||V.Gd;if(r.o7.Ue&&I)return r.Hs("ombplst",{}),!1;if(r.o7.V)return r.Hs("ombab",{}),!1;I=Date.now();return ZA(r.o7)&&!isNaN(r.bL)&&I-r.bL>r.policy.Yq*1E3?(r.Hs("ombttl",{}),!1):r.o7.S7&&r.o7.Y||!r.policy.Ge&&r.o7.isPremiere||!(TV(V)===0||r.policy.G&&V.U("html5_enable_onesie_media_for_sabr_proxima_optin"))|| V.U("html5_disable_onesie_media_for_mosaic")&&pk(V)||(V.U("html5_disable_onesie_media_for_ssdai")||V.uJ()&&!V.U("html5_enable_onesie_media_for_lifa"))&&V.isDaiEnabled()&&V.enableServerStitchedDai||V.U("html5_disable_onesie_media_for_lifa_eligible")&&u3(V)?!1:!0}; mqv=function(r,V){var I=V.G,d=r.o7.Tz;if(QaX(r))if(r.kc&&r.kc.I8.has(ZT(g.a2(I.info,d)))){if(d=ZT(g.a2(I.info,d)),Uqh(r,V)){var a=new PI(r.kc.zr(d)),f=function(e){try{if(e.PL())r.handleError(e.IQ(),e.Tr()),tF(V,e),kk(e.info)&&Sg(r.W,V,I,!0),r.Td();else if(SLZ(r.W,e)){var n;(n=r.S)==null||JXA(n,e.info,r.QH);r.Td()}}catch(D){e=lS(D),r.handleError(e.errorCode,e.details,e.severity),r.I1()}}; I.S=!0;oi(a)&&(hai(V,new SW(r.policy,d,a,r.kc,f)),gK(r.timing))}}else r.Hs("ombfmt",{})}; u8S=function(r,V){V=V||r.videoTrack&&r.videoTrack.X&&r.videoTrack.X.startTime||r.getCurrentTime();var I=i4,d=r.videoTrack,a=r.G;V=a.nextVideo&&a.nextVideo.index.m5(V)||0;a.GQ!==V&&(a.R7={},a.GQ=V,d2(a,a.G));V=!a.G.isLocked()&&a.V>-1&&(0,g.m)()-a.VV.G&&V.reason==="b";d||a||I?(r.lL.Z$({reattachOnConstraint:d?"u":a?"drm":"perf",lo:V.X,up:V.G}),r.policy.k_||(r.Y.G.X=!1)):(r.policy.k_&&(r.Y.G.X=!1),Cf(r))}}else if(!vki(r.G,V)&&r.videoTrack){r.logger.debug(function(){return"Setting constraint: r="+V.reason+" u="+V.G}); I=r.G.G;r6i(r,PUh(r.G,V));u8S(r);d=V.isLocked()&&V.reason==="m"&&r.G.kc;a=r.policy.mD&&V.reason==="l"&&FD(r.videoTrack);I=I.G>V.G&&V.reason==="b";var f=r.G.EE&&!bA();d||a||I||f?r.lL.Z$({reattachOnConstraint:d?"u":a?"drm":f?"codec":"perf"}):Cf(r)}}; ILp=function(r,V,I){if((!r.f8||$Y(r.f8)&&!r.policy.yp)&&!r.iI.isSeeking()&&(r.policy.G||FD(V)&&V.G.sj()&&r.G.QH)){var d=r.getCurrentTime()+J0X(r.j,V,I);r.logger.debug(function(){return"Clearing back to "+d.toFixed(3)}); jjX(V,d)}}; r6i=function(r,V){V&&(r.logger.debug(function(){return"Logging new format: "+jB(V.video.info)}),dJi(r.lL,new Pd(V.video,V.reason))); if(r.G.L8){var I=rDr(r.G,"a");r.lL.qK(new Pd(I.audio,I.reason))}}; Cf=function(r){g.r3(r.rH)}; Uaj=function(r){r.policy.Bp&&r.policy.ZU&&Math.min(ngj(r.videoTrack),ngj(r.audioTrack))*1E3>r.policy.pg?g.r3(r.Qa):r.Td()}; aLA=function(r,V){var I=(0,g.m)()-V,d=KT(r.audioTrack,!0)*1E3,a=KT(r.videoTrack,!0)*1E3;r.logger.debug(function(){return"Appends paused for "+I}); if(r.policy.S&&(r.Hs("apdpe",{dur:I.toFixed(),abuf:d.toFixed(),vbuf:a.toFixed()}),Zs(r.policy))){var f=L0(r.j);r.Hs("sdps",{ct:V,ah:d.toFixed(),vh:a.toFixed(),mr:J$(r.j,r.C9,f),bw:f.toFixed(),js:r.isSeeking(),re:+r.C9,ps:(r.policy.sG||"").toString(),rn:(r.policy.Rj||"").toString()})}}; fLO=function(r){if(r.policy.X&<(r.videoTrack)&<(r.audioTrack))return"ssap";if(zyU(r.videoTrack))return r.logger.debug("Pausing appends for server-selectable format"),"ssf";if(r.policy.L8&&HxA(r.videoTrack)&&HxA(r.audioTrack))return"updateEnd";if(GG(r.audioTrack)||GG(r.videoTrack)&&r.videoTrack.G.info.A0!=="f")return"";if(r.iI.isSeeking()){var V=r.j;var I=r.videoTrack;var d=r.audioTrack;if(V.policy.G){var a=V.policy.FB;Zs(V.policy)&&(a=J$(V,!1,L0(V)));V=a;I=KT(d,!0)>=V&&KT(I,!0)>=V}else I.S.length|| d.S.length?(a=I.G.info.VH+d.G.info.VH,a=10*(1-L0(V)/a),V=Math.max(a,V.policy.FB),I=KT(d,!0)>=V&&KT(I,!0)>=V):I=!0;if(!I)return"abr";I=r.videoTrack;if(I.S.length>0&&I.Y.X.length===1&&Ghp(I.Y).info.L360);d=Zs(r.policy)&&r.policy.pC;if(!r.C9||!d&&I)return"";I=r.policy.Xq;Zs(r.policy)&&(I=J$(r.j,r.C9,L0(r.j)));I=EgS(r.videoTrack, r.getCurrentTime(),I)||EgS(r.audioTrack,r.getCurrentTime(),I);return Zs(r.policy)?I?"mbnm":"":(r.videoTrack.S.length>0||r.audioTrack.S.length>0||lBA(r.W,r.videoTrack,r.audioTrack)||lBA(r.W,r.audioTrack,r.videoTrack))&&I?"nord":""}; e2X=function(r){if(r.L){var V=r.L.Td(r.audioTrack,cT(r.f8.X.yz()));V&&r.lL.seekTo(V,{J4:!0,YX:"pollSubsegmentReadahead",Uc:!0})}}; N1S=function(r,V,I){if(r.policy.L8&&HxA(V))return!1;if(I.Go())return!0;if(!I.y9())return!1;var d=PU(V);if(!d||d.info.type===6)return!1;var a;if(r.policy.Y$||((a=r.S)==null?0:gkO(a,V,d.info.J0)))r.R7=0;else return r.iI.isSeeking()&&Cf(r),r.R7=r.R7||(0,g.m)(),!1;if(!bR(r,V,I,d.info))return!1;if(r.o7.X&&d.info.X===0){if(a=YMX(V,I,d)){var f=b4(V);r.Hs("initchg",{it:d.info.G.info.id,sr:!!f&&f.G===d.info.G,ty:d.info.type,seg:d.info.J0})}f=g.I2(d.info.G.info);r.policy.XN&&f&&!a&&XTv(d)}f=r.L&&!!r.L.Y&&V.G.info.audio; a=r.o7.isManifestless||d.W;if(!(r.o7.X&&d.info.X!==0||a&&!f)&&n6j(r,V,I,d))return!0;if(f)return!1;f=m_(r,V);f=r.getCurrentTime()+f;if(d.info.Y>f)return r.policy.G&&jfi(r,V),r.policy.Jt&&qfA(V.Y,f,!1),!1;DJi(r,V);var e;r.policy.KJ&&I===((e=r.f8)==null?void 0:e.G)&&r.a7&&(I.Yf()===0?(r.a7=!1,r.policy.KJ=!1):r.Mk=I.Yf());if(!xJS(r,I,d,V))return!1;r.policy.L8&&d.info.N7()?(r.lL.N().Ko()&&r.Hs("eosl",{ls:d.info.qJ()}),d.isLocked=!0):(V.XZ(d),hKA(r.G,d.info),r.logger.debug(function(){return"Appended "+ d.info.qJ()+", buffered: "+xY(I.yz())})); a&&E6h(r,d.info.G.gp);return!0}; jfi=function(r,V){V===r.videoTrack?r.p8=r.p8||(0,g.m)():r.n8=r.n8||(0,g.m)()}; DJi=function(r,V){V===r.videoTrack?r.p8=0:r.n8=0}; xJS=function(r,V,I,d){var a=r.policy.dH?(0,g.m)():0,f=I.W&&I.info.G.G||void 0,e=I.G;I.W&&(e=sfv(r,I,e)||e);var n=e.ji();e=r.policy.dH?(0,g.m)():0;V=c6r(r,V,n,I.info,f);(d=d.V)!=null&&(f=I.info,a=e-a,e=(0,g.m)()-e,!d.X||YVA(d.X,f)&&d.X.J0===f.J0||d.flush(),d.Y+=a,d.S+=e,a=1,!d.X&&f.X&&(a=2),nT(d,a,V),e=Math.ceil(f.X/1024),a===2&&d.G.add(e),d.G.add(Math.ceil((f.X+f.S)/1024)-e),d.X=f);r.GQ=0;if(V===0)return r.TQ&&(r.logger.debug("Retry succeed, back to normal append logic."),r.TQ=!1,r.ya=!1),r.DM=0, !0;if(V===2||V===5)return z2O(r,"checked",V,I.info),!1;if(V===1){if(!r.TQ)return r.logger.debug("QuotaExceeded, retrying."),r.TQ=!0,!1;if(!r.ya)return r.ya=!0,r.lL.seekTo(r.getCurrentTime(),{YX:"quotaExceeded",Uc:!0}),!1;I.info.BK()?(a=r.policy,a.TQ=Math.floor(a.TQ*.8),a.bL=Math.floor(a.bL*.8)):(a=r.policy,a.ya=Math.floor(a.ya*.8),a.bL=Math.floor(a.bL*.8));r.policy.G?kP(r.Y.G,I.info.G,!1):fT(r.G,I.info.G)}r.lL.Z$({reattachOnAppend:V});return!1}; sfv=function(r,V,I){var d;if(d=r.policy.Ck&&r.f8&&!r.f8.j&&!r.lL.Rg())V=V.info.G.info,d=V.mE()&&Pq(V)&&V.video&&V.video.width<3840&&V.video.width>V.video.height;if(d&&(r.f8.j=!0,Xa('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return I=tqg(I),r.policy.S&&r.Hs("sp4k",{s:!!I}),I}; z2O=function(r,V,I,d){var a="fmt.unplayable",f=1;I===5||I===3?(a="fmt.unparseable",r.policy.G?!d.G.info.video||hG(r.Y.G).size>0||kP(r.Y.G,d.G,!1):!d.G.info.video||hG(r.G.W).size>0||fT(r.G,d.G)):I===2&&(r.DM<15?(r.DM++,a="html5.invalidstate",f=0):a="fmt.unplayable");d=vI(d);var e;d.mrs=(e=r.f8)==null?void 0:rm(e);d.origin=V;d.reason=I;r.handleError(a,d,f)}; qqr=function(r,V,I,d,a){var f=r.o7;var e=r.policy.G,n=!1,D=-1,x;for(x in f.G){var E=YY(f.G[x].info.mimeType)||f.G[x].info.BK();if(d===E)if(E=f.G[x].index,E.A2(V.J0)){n=E;var N=V,c=n.MS(N.J0);c&&c.startTime!==N.startTime?(n.segments=[],n.FH(N),n=!0):n=!1;n?D=V.J0:!V.pending&&e&&(N=E.getDuration(V.J0),N!==V.duration&&(f.publish("clienttemp","mfldurUpdate",{itag:f.G[x].info.itag,seg:V.J0,od:N,nd:V.duration},!1),E.FH(V),n=!0))}else E.FH(V),n=!0}D>=0&&(e={},f.publish("clienttemp","resetMflIndex",(e[d? "v":"a"]=D,e),!1));f=n;hdU(r.iI,V,d,f);r.S.V2(V,I,d,a);if(r.policy.j7&&I){var z;(z=r.Bp)!=null&&z.S.set(V.J0,I)}V.J0===r.o7.S7&&f&&Gh(r.o7)&&V.startTime>Gh(r.o7)&&(r.o7.n8=V.startTime+(isNaN(r.timestampOffset)?0:r.timestampOffset),r.iI.isSeeking()&&r.iI.G 5)return r.GQ=0,r.lL.Z$({initSegStuck:1,as:d.info.qJ()}),!0}else r.GQ=0,r.gH=d;r.policy.rZ&&(I.abort(),(e=V.V)!=null&&(nT(e,4),e.flush()));a=c6r(r,I,f,D,a);var x;(x=V.V)==null||jJr(x,a,D);if(a!==0)return M$r(r,a,d),!0;d.info.BK()?RKi(r.timing):t6X(r.timing);r.logger.debug(function(){return"Appended init for "+d.info.G.info.id}); E6h(r,d.info.G.gp);return I.aO()}; YMX=function(r,V,I){if(V.lE()==null){r=b4(r);if(!(V=!r||r.G!==I.info.G)){a:if(r=r.V,I=I.info.V,r.length!==I.length)I=!1;else{for(V=0;V1)return 6;D.R7=new g.hz(function(){var x=PU(D);r.h0()||x==null||!x.isLocked?r.lL.N().Ko()&&r.Hs("eosl",{delayA:x==null?void 0:x.info.qJ()}):C5A(D)?(r.lL.N().Ko()&&r.Hs("eosl",{dunlock:x==null?void 0:x.info.qJ()}),T1r(r, D===r.audioTrack)):(r.Hs("nue",{ls:x.info.qJ()}),x.info.QH+=1,r.f8&&r.iD())},1E4,r); r.lL.N().Ko()&&r.Hs("eosl",{delayS:d.qJ()});D.R7.start()}r.policy.mS&&(d==null?void 0:d.G)instanceof rb&&d.N7()&&r.Hs("poseos",{itag:d.G.info.itag,seg:d.J0,lseg:d.G.index.xX(),es:d.G.index.S});V.appendBuffer(I,d,a)}catch(x){if(x instanceof DOMException){if(x.code===11)return 2;if(x.code===12)return 5;if(x.code===22||x.message.indexOf("Not enough storage")===0)return V=Object.assign({name:"QuotaExceededError",buffered:xY(V.yz()).replace(/,/g,"_"),vheap:WB(r.videoTrack),aheap:WB(r.audioTrack),message:g.dq(x.message, 3),track:r.f8?V===r.f8.X?"v":"a":"u"},gav(r.policy.eJ)),r.handleError("player.exception",V),1;g.BG(x)}return 4}return r.f8.H3()?3:0}; qW=function(r,V,I){r.lL.seekTo(V,I)}; E6h=function(r,V){V&&r.lL.nk(new NB(V.key,V.type))}; zG=function(r,V){r.lL.xL(V)}; m_=function(r,V){if(r.TQ&&!r.C9)return 3;if(r.isSuspended)return 1;var I;if((I=r.f8)==null?0:I.f8&&I.f8.streaming===!1)return 4;I=(V.G.info.audio?r.policy.ya:r.policy.TQ)/(V.VH*r.policy.WG);if(r.policy.i8>0&&r.f8&&$Y(r.f8)&&(V=V.G.info.video?r.f8.X:r.f8.G)&&!V.aO()){V=V.yz();var d=EV(V,r.getCurrentTime());d>=0&&(V=r.getCurrentTime()-V.start(d),I+=Math.max(0,Math.min(V-r.policy.i8,r.policy.Vn)))}r.policy.bL>0&&(I=Math.min(I,r.policy.bL));return I}; cRS=function(r,V){return(m_(r,V)+r.policy.hJ)*V.VH}; wFr=function(r){r.EE&&!r.isSuspended&&Kx(r.schedule)&&(H8A(r,r.EE),r.EE="")}; H8A=function(r,V){A$(V,"cms",function(I){r.policy.S&&r.Hs("pathprobe",I)},function(I){r.lL.handleError(I)})}; b8S=function(r,V){if(r.f8&&r.f8.Y&&!r.f8.H3()&&(V.ZZ=KT(r.videoTrack),V.X=KT(r.audioTrack),r.policy.S)){var I=WB(r.videoTrack),d=WB(r.audioTrack),a=xY(r.f8.X.yz(),"_",5),f=xY(r.f8.G.yz(),"_",5);Object.assign(V.G,{lvq:I,laq:d,lvb:a,lab:f})}V.bandwidthEstimate=FX(r.j);var e;(e=r.audioTrack.V)==null||e.flush();var n;(n=r.videoTrack.V)==null||n.flush();r.logger.debug(function(){return A4(V.G)})}; O8O=function(r,V){r.QH=V;r.S&&(r.S.S=V);r.QH.yh(r.videoTrack.G.info.mE());r.W.X=r.QH;r.policy.W&&(r.X.X=r.QH)}; R2i=function(r,V){if(r.f8&&r.f8.X){if(r.policy.En){var I=bxA(r.audioTrack);if(I&&I.HH()){var d=r.lL;if(d.J1&&(d.J1.G=I,I=d.jR(d.J1.videoId),I.qoe)){I=I.qoe;d=d.J1;var a=g.$U(I.provider);Wdh(I,a,d)}}}r.policy.aM&&(I=bxA(r.videoTrack))&&I.BK()&&(d=r.lL,d.KE&&(d.KE.G=I,I=d.jR(d.KE.videoId),I.qoe&&$Jh(I.qoe,d.KE)));V-=isNaN(r.timestampOffset)?0:r.timestampOffset;r.getCurrentTime()!==V&&r.resume();r.iI.isSeeking()&&r.f8&&!r.f8.H3()&&(d=r.getCurrentTime()<=V&&V=0&&f1?n.X[0]=V&&SQO(r,d.startTime,!1)}); return I&&I.startTimer.getCurrentTime())return I.start/1E3;return Infinity}; wxr=function(r){if(r.lL.getVideoData().isLivePlayback)return!1;var V=r.lL.Sx();if(!V)return!1;V=V.getDuration();return HkX(r,V)}; HkX=function(r,V){if(!r.f8||!r.f8.G||!r.f8.X)return!1;var I=r.getCurrentTime(),d=r.f8.G.yz();r=r.f8.X.yz();d=d?sV(d,I):I;I=r?sV(r,I):I;I=Math.min(d,I);return isNaN(I)?!1:I>=V-.01}; M$r=function(r,V,I){r.policy.TX&&nk(r.lL.getVideoData())?(r.lL.pD()||z2O(r,"sepInit",V,I.info),Fdr(r.lL,"sie")):z2O(r,"sepInit",V,I.info)}; Qjr=function(r){return r.lL.GO()0){var a=d.G.shift();LdX(d,a.info)}d.G.length>0&&(a=d.G[0].time-(0,g.m)(),d.X.start(Math.max(0,a)))}},0); g.S(this,this.X);V.subscribe("widevine_set_need_key_info",this.W,this)}; LdX=function(r,V){a:{var I=V.cryptoPeriodIndex;if(isNaN(I)&&r.S.size>0)I=!0;else{for(var d=g.H(r.S.values()),a=d.next();!a.done;a=d.next())if(a.value.cryptoPeriodIndex===I){I=!0;break a}I=!1}}r.publish("log_qoe",{wvagt:"reqnews",canskip:I});I||r.publish("rotated_need_key_info_ready",V)}; J6A=function(){var r={};var V=r.url;var I=r.interval;r=r.retries;this.url=V;this.interval=I;this.retries=r}; Z8U=function(r,V){this.statusCode=r;this.message=V;this.X=this.heartbeatParams=this.errorMessage=null;this.G={};this.nextFairplayKeyId=null}; XFg=function(r,V,I){I=I===void 0?"":I;g.X.call(this);this.message=r;this.requestNumber=V;this.aL=I;this.onError=this.onSuccess=null;this.G=new g.gw(5E3,2E4,.2)}; B1v=function(r,V,I){r.onSuccess=V;r.onError=I}; SMA=function(r,V,I,d){var a={timeout:3E4,onSuccess:function(f){if(!r.h0()){Q2("drm_net_r",void 0,r.aL);var e=f.status==="LICENSE_STATUS_OK"?0:9999,n=null;if(f.license)try{n=a3(f.license)}catch(M){g.BG(M)}if(e!==0||n){n=new Z8U(e,n);e!==0&&f.reason&&(n.errorMessage=f.reason);if(f.authorizedFormats){e={};for(var D=[],x={},E=g.H(f.authorizedFormats),N=E.next();!N.done;N=E.next())if(N=N.value,N.trackType&&N.keyId){var c=g6i[N.trackType];if(c){c==="HD"&&f.isHd720&&(c="HD720");N.isHdr&&(c+="HDR");e[c]|| (D.push(c),e[c]=!0);var z=null;try{z=a3(N.keyId)}catch(M){g.BG(M)}z&&(x[g.I3(z,4)]=c)}}n.X=D;n.G=x}f.nextFairplayKeyId&&(n.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(n.sabrLicenseConstraint=a3(f.sabrLicenseConstraint));f=n}else f=null;if(f)r.onSuccess(f,r.requestNumber);else r.onError(r,"drm.net","t.p;p.i")}}, onError:function(f){if(!r.h0())if(f&&f.error)f=f.error,r.onError(r,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else r.onError(r,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){r.onError(r,"drm.net","rt.req."+r.requestNumber)}}; d&&(a.dN="Bearer "+d);g.aM(I,"player/get_drm_license",V,a)}; i8i=function(r,V,I,d){g.NK.call(this);this.videoData=r;this.yH=V;this.j=I;this.sessionId=d;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.QH=this.kc=!1;this.S=null;this.bL=[];this.Y=[];this.tR=[];this.L=!1;this.G={};this.status="";this.C=NaN;this.X=r.W;this.cryptoPeriodIndex=I.cryptoPeriodIndex;r={};Object.assign(r,this.yH.G);r.cpn=this.videoData.clientPlaybackNonce;this.videoData.R7&&(r.vvt=this.videoData.R7,this.videoData.mdxEnvironment&&(r.mdx_environment=this.videoData.mdxEnvironment)); this.yH.bL&&(r.authuser=this.yH.bL);this.yH.pageId&&(r.pageid=this.yH.pageId);isNaN(this.cryptoPeriodIndex)||(r.cpi=this.cryptoPeriodIndex.toString());var a=(a=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.RZ()))?a[1]:"";a==="ATV"&&(r.cdt=a);this.W=r;this.W.session_id=d;this.V=!0;this.X.flavor==="widevine"&&(this.W.hdr="1");this.X.flavor==="playready"&&(V=Number(fx(V.experiments,"playready_first_play_expiration")),!isNaN(V)&&V>=0&&(this.W.mfpe=""+V),this.V=!1);V="";g.P5(this.X)?qY(this.X)?(d=I.X)&&(V="https://www.youtube.com/api/drm/fps?ek="+ yrj(d)):(V=I.initData.subarray(4),V=new Uint16Array(V.buffer,V.byteOffset,V.byteLength/2),V=String.fromCharCode.apply(null,V).replace("skd://","https://")):V=this.X.X;this.baseUrl=V;this.fairplayKeyId=Z5(this.baseUrl,"ek")||"";if(V=Z5(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(V);this.bL=I.mE?[g.I3(I.initData,4)]:I.S;AM(this,{sessioninit:I.cryptoPeriodIndex});this.status="in"}; udr=function(r,V){AM(r,{createkeysession:1});r.status="gr";Q2("drm_gk_s",void 0,r.videoData.QH);r.url=UJp(r);try{r.S=V.createSession(r.j,function(I){AM(r,{m:I})})}catch(I){V="t.g"; I instanceof DOMException&&(V+=";c."+I.code);r.publish("licenseerror","drm.unavailable",1,V,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}r.S&&(QfU(r.S,function(I,d){mJS(r,I,d)},function(I,d,a){if(!r.h0()){d=void 0; var f=1;g.P5(r.X)&&g.g$(r.yH)&&r.yH.U("html5_enable_safari_fairplay")&&a===1212433232&&(d="ERROR_HDCP",f=r.yH.U("html5_safari_fairplay_ignore_hdcp")?0:f);r.error("drm.keyerror",f,I,d)}},function(){r.h0()||(AM(r,{onkyadd:1}),r.QH||(r.publish("sessionready"),r.QH=!0))},function(I){r.P9(I)}),g.S(r,r.S))}; UJp=function(r){var V=r.baseUrl;aui(V)||r.error("drm.net",2,"t.x");if(!Z5(V,"fexp")){var I=["23898307","23914062","23916106","23883098"].filter(function(a){return r.yH.experiments.experiments[a]}); I.length>0&&(r.W.fexp=I.join())}I=g.H(Object.keys(r.W));for(var d=I.next();!d.done;d=I.next())d=d.value,V=dii(V,d,r.W[d]);return V}; mJS=function(r,V,I){if(!r.h0())if(V){AM(r,{onkmtyp:I});r.status="km";switch(I){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":pFh(r,V);return;default:r.publish("ctmp","message_type",{t:I,l:V.byteLength})}r.kc||(Q2("drm_gk_f",void 0,r.videoData.QH),r.kc=!0,r.publish("newsession",r));if(us(r.X)&&(V=v6A(V),!V))return;V=new XFg(V,++r.requestNumber,r.videoData.QH);B1v(V,function(d){qMO(r,d)},function(d,a,f){if(!r.h0()){var e=0; d.G.X>=3&&(e=1,a="drm.net.retryexhausted");AM(r,{onlcsrqerr:a,info:f});r.error(a,e,f);r.shouldRetry(Fa(e),d)&&P5X(r,d)}}); g.S(r,V);o6i(r,V)}else r.error("drm.unavailable",1,"km.empty")}; pFh=function(r,V){AM(r,{sdpvrq:1});r.C=Date.now();if(r.X.flavor!=="widevine")r.error("drm.provision",1,"e.flavor;f."+r.X.flavor+";l."+V.byteLength);else{var I={cpn:r.videoData.clientPlaybackNonce};Object.assign(I,r.yH.G);I=g.Ly("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",I);V={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, V)}),responseType:"arraybuffer"};g.ld(I,V,3,500).then(Fc(function(d){d=d.xhr;if(!r.h0()){d=new Uint8Array(d.response);var a=String.fromCharCode.apply(null,d);try{var f=JSON.parse(a)}catch(e){}f&&f.signedResponse?(r.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-r.C)/1E3,r.C=NaN,r.publish("ctmp","provs",{et:f.toFixed(3)}),r.S&&r.S.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),r.error("drm.provision",1,d))}}),Fc(function(d){r.h0()||r.error("drm.provision",1,"e."+d.errorCode+ ";c."+(d.xhr&&d.xhr.status))}))}}; Gz=function(r){var V;if(V=r.V&&r.S!=null)r=r.S,V=!(!r.G||!r.G.keyStatuses);return V}; o6i=function(r,V){r.status="km";Q2("drm_net_s",void 0,r.videoData.QH);var I=new g.dT(r.yH.lh),d={context:g.cH(I.config_||g.sc())};d.drmSystem=kmZ[r.X.flavor];d.videoId=r.videoData.videoId;d.cpn=r.videoData.clientPlaybackNonce;d.sessionId=r.sessionId;d.licenseRequest=g.I3(V.message);d.drmParams=r.videoData.drmParams;isNaN(r.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=r.cryptoPeriodIndex);var a,f,e=!!((a=r.videoData.X)==null?0:(f=a.video)==null?0:f.isHdr());d.drmVideoFeature=e?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(a=r.yH.G)d.context.client.deviceMake=a.cbrand,d.context.client.deviceModel=a.cmodel,d.context.client.browserName=a.cbr,d.context.client.browserVersion=a.cbrver,d.context.client.osName=a.cos,d.context.client.osVersion=a.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};r.videoData.R7&&(d.context.user.credentialTransferTokens=[{token:r.videoData.R7,scope:"VIDEO"}]);d.context.request.mdxEnvironment=r.videoData.mdxEnvironment|| d.context.request.mdxEnvironment;r.videoData.NJ&&(d.context.user.kidsParent={oauthToken:r.videoData.NJ});g.P5(r.X)&&(d.fairplayKeyId=g.I3(ArS(r.fairplayKeyId)));g.jQ(r.yH,g.QW(r.videoData)).then(function(n){SMA(V,d,I,n);r.status="rs"})}else r.error("drm.net",2,"t.r;ic.0")}; qMO=function(r,V){if(!r.h0())if(AM(r,{onlcsrsp:1}),r.status="rr",V.statusCode!==0)r.error("drm.auth",1,"t.f;c."+V.statusCode,V.errorMessage||void 0);else{Q2("drm_kr_s",void 0,r.videoData.QH);if(V.heartbeatParams&&V.heartbeatParams.url&&r.videoData.U("outertube_streaming_data_always_use_staging_license_service")){var I=r.X.X.match(/(.*)youtube.com/g);I&&(V.heartbeatParams.url=I[0]+V.heartbeatParams.url)}V.heartbeatParams&&r.publish("newlicense",V.heartbeatParams);V.X&&(r.Y=V.X,r.videoData.HS||r.publish("newlicense", new J6A),r.videoData.HS=!0,r.L=r6(r.Y,function(d){return d.includes("HDR")})); V.G&&(r.yH.U("html5_enable_vp9_fairplay")&&qY(r.X)?(I=g.I3(ArS(r.fairplayKeyId),4),r.G[I]={type:V.G[I],status:"unknown"}):r.G=Qc(V.G,function(d){return{type:d,status:"unknown"}})); v5(r.X)&&(V.message=tlU(g.I3(V.message)));r.S&&(AM(r,{updtks:1}),r.status="ku",r.S.update(V.message).then(function(){Q2("drm_kr_f",void 0,r.videoData.QH);Gz(r)||(AM(r,{ksApiUnsup:1}),r.publish("keystatuseschange",r))},function(d){d="msuf.req."+r.requestNumber+";msg."+g.dq(d.message,3); r.error("drm.keyerror",1,d)})); g.P5(r.X)&&r.publish("fairplay_next_need_key_info",r.baseUrl,V.nextFairplayKeyId);r.yH.U("html5_enable_vp9_fairplay")&&qY(r.X)&&r.publish("qualitychange",h2A(r.Y));V.sabrLicenseConstraint&&r.publish("sabrlicenseconstraint",V.sabrLicenseConstraint)}}; P5X=function(r,V){var I=V.G.getValue();I=new g.hz(function(){o6i(r,V)},I); g.S(r,I);I.start();g.SD(V.G);AM(r,{rtyrq:1})}; fxj=function(r,V){for(var I=[],d=g.H(Object.keys(r.G)),a=d.next();!a.done;a=d.next())a=a.value,I.push(a+"_"+r.G[a].type+"_"+r.G[a].status);return I.join(V)}; eCi=function(r){var V={};V[r.status]=Gz(r)?fxj(r,"."):r.Y.join(".");return V}; YFi=function(r){switch(r){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; F0=function(r,V){for(var I in r.G)if(r.G[I].status==="usable"&&r.G[I].type===V)return!0;return!1}; nUi=function(r,V){for(var I in r.G)if(r.G[I].type===V)return r.G[I].status}; AM=function(r,V){var I=I===void 0?!1:I;A4(V);(I||r.yH.Ko())&&r.publish("ctmp","drmlog",V)}; jAA=function(r){var V=r[0];r[0]=r[3];r[3]=V;V=r[1];r[1]=r[2];r[2]=V;V=r[4];r[4]=r[5];r[5]=V;V=r[6];r[6]=r[7];r[7]=V}; h2A=function(r){return g.CG(r,"UHD2")||g.CG(r,"UHD2HDR")?"highres":g.CG(r,"UHD1")||g.CG(r,"UHD1HDR")?"hd2160":g.CG(r,"HD")||g.CG(r,"HDHDR")?"hd1080":g.CG(r,"HD720")||g.CG(r,"HD720HDR")?"hd720":"large"}; v6A=function(r){for(var V="",I=0;I'.charCodeAt(d);r=r.S.createSession("video/mp4",V,I);return new lR(null,null,null,null,r)}; M0U=function(r,V){var I=r.C[V.sessionId];!I&&r.Y&&(I=r.Y,r.Y=null,I.sessionId=V.sessionId,r.C[V.sessionId]=I);return I}; sAU=function(r,V){var I=r.subarray(4);I=new Uint16Array(I.buffer,I.byteOffset,I.byteLength/2);I=g.J(String.fromCharCode.apply(null,I).match(/ek=([0-9a-f]+)/))[1];for(var d="",a=0;a19.2999?(r=I.XC,I=I.Gp,I>=r&&(I=r* .75),V=(r-I)*.5,I=new tM(V,r,r-V-I,this)):I=null;break a;case "widevine":I=new yu(V,this,r);break a;default:I=null}if(this.W=I)g.S(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.CL,this),this.W.subscribe("log_qoe",this.T0,this);k$(this.yH.experiments);this.T0({cks:this.G.getInfo()})}; TfX=function(r){var V=Nfh(r.Y);V?V.then(Fc(function(){wPU(r)}),Fc(function(I){if(!r.h0()){g.BG(I); var d="t.a";I instanceof DOMException&&(d+=";n."+I.name+";m."+I.message);r.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(r.T0({mdkrdy:1}),r.V=!0); r.QH&&(V=Nfh(r.QH))}; Ofg=function(r,V,I){r.TQ=!0;I=new NB(V,I);r.yH.U("html5_eme_loader_sync")&&(r.C.get(V)||r.C.set(V,I));bfX(r,I)}; bfX=function(r,V){if(!r.h0()){r.T0({onInitData:1});if(r.yH.U("html5_eme_loader_sync")&&r.videoData.S&&r.videoData.S.G){var I=r.L.get(V.initData);V=r.C.get(V.initData);if(!I||!V)return;V=I;I=V.initData;r.C.remove(I);r.L.remove(I)}r.T0({initd:V.initData.length,ct:V.contentType});if(r.G.flavor==="widevine")if(r.n8&&!r.videoData.isLivePlayback)VD(r);else{if(!(r.yH.U("vp9_drm_live")&&r.videoData.isLivePlayback&&V.mE)){r.n8=!0;I=V.cryptoPeriodIndex;var d=V.G;bpO(V);V.mE||(d&&V.G!==d?r.publish("ctmp","cpsmm", {emsg:d,pssh:V.G}):I&&V.cryptoPeriodIndex!==I&&r.publish("ctmp","cpimm",{emsg:I,pssh:V.cryptoPeriodIndex}));r.publish("widevine_set_need_key_info",V)}}else r.CL(V)}}; wPU=function(r){if(!r.h0())if(r.yH.U("html5_drm_set_server_cert")||qY(r.G)){var V=r.Y.setServerCertificate();V?V.then(Fc(function(I){r.yH.Ko()&&r.publish("ctmp","ssc",{success:I})}),Fc(function(I){r.publish("ctmp","ssce",{n:I.name, m:I.message})})).then(Fc(function(){WbO(r)})):WbO(r)}else WbO(r)}; WbO=function(r){r.h0()||(r.V=!0,r.T0({onmdkrdy:1}),VD(r))}; $8X=function(r){return r.G.flavor==="widevine"&&r.videoData.U("html5_drm_cpi_license_key")}; VD=function(r){if(r.TQ&&r.V&&!r.GQ){for(;r.S.length;){var V=r.S[0],I=$8X(r)?Opp(V):g.I3(V.initData);if(qY(r.G)&&!V.X)r.S.shift();else{if(r.X.get(I))if(r.G.flavor!=="fairplay"||qY(r.G)){r.S.shift();continue}else r.X.delete(I);bpO(V);break}}r.S.length&&r.createSession(r.S[0])}}; Kbi=function(r){var V;if(V=g.qL()){var I;V=!((I=r.Y.X)==null||!I.getMetrics)}V&&(V=r.Y.getMetrics())&&(V=g.GU(V),r.publish("ctmp","drm",{metrics:V}))}; RCi=function(){var r=Lei();return!(!r||r==="visible")}; yMA=function(r){var V=t0A();V&&document.addEventListener(V,r,!1)}; AMX=function(r){var V=t0A();V&&document.removeEventListener(V,r,!1)}; t0A=function(){if(document.visibilityState)var r="visibilitychange";else{if(!document[Co+"VisibilityState"])return"";r=Co+"visibilitychange"}return r}; Gzj=function(r){g.X.call(this);var V=this;this.lL=r;this.FG=0;this.C=this.X=this.W=!1;this.Y=0;this.mM=this.lL.N();this.videoData=this.lL.getVideoData();this.S=g.zM(this.mM.experiments,"html5_delayed_retry_count");this.G=new g.hz(function(){V.lL.X3()},g.zM(this.mM.experiments,"html5_delayed_retry_delay_ms")); g.S(this,this.G)}; Zfi=function(r,V,I){var d=r.videoData.X,a=r.videoData.Y;nk(r.lL.getVideoData())&&r.mM.U("html5_gapless_fallback_on_qoe_restart")&&Fdr(r.lL,"pe");if((V==="progressive.net.retryexhausted"||V==="fmt.unplayable"||V==="fmt.decode")&&!r.lL.gU.W&&d&&d.itag==="22")return r.lL.gU.W=!0,r.vy("qoe.restart",{reason:"fmt.unplayable.22"}),r.lL.fR(),!0;var f=!1;if(r.videoData.isExternallyHostedPodcast){if(f=r.videoData.n9E)I.mimeType=f.type,r.Hs("3pp",{url:f.url});I.ns="3pp";r.lL.Ut(V,1,"VIDEO_UNAVAILABLE",A4((new Gk(V, I,1)).details));return!0}var e=r.FG+3E4<(0,g.m)()||r.G.isActive();if(r.mM.U("html5_empty_src")&&r.videoData.isAd()&&V==="fmt.unplayable"&&/Empty src/.test(""+I.msg))return I.origin="emptysrc",r.vy("auth",I),!0;e||Ib(r.lL.dU())||(I.nonfg="paused",e=!0,r.lL.pauseVideo());(V==="fmt.decode"||V==="fmt.unplayable")&&(a==null?0:rg(a)||VU(a))&&(S7Z(r.mM.W,a.A0),I.acfallexp=a.A0,f=e=!0);!e&&r.S>0&&(r.G.start(),e=!0,I.delayed="1",--r.S);a=r.lL.loader;!e&&((d==null?0:h4(d))||(d==null?0:Pq(d)))&&(S7Z(r.mM.W, d.A0),f=e=!0,I.cfallexp=d.A0);if(r.mM.U("html5_ssap_ignore_decode_error_for_next_video")&&g.hI(r.videoData)&&V==="fmt.unplayable"&&I.cid&&I.ccid&&Ib(r.lL.dU())){if(I.cid!==I.ccid)return I.ignerr="1",r.vy("ssap.transitionfailure",I),!0;r.vy("ssap.transitionfailure",I);if(FbS(r.lL,V))return!0}if(!e)return lxZ(r,I);if(r.mM.U("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.hI(r.videoData)&&V==="fmt.unplayable"&&I.cid&&I.ccid&&I.cid!==I.ccid&&Ib(r.lL.dU())&&(r.vy("ssap.transitionfailure",I), FbS(r.lL,V)))return!0;e=!1;r.W?r.FG=(0,g.m)():e=r.W=!0;var n=r.videoData;if(n.Mk){n=n.Mk.kR();var D=Date.now()/1E3+1800;n=n6048E5&&SFU(r,"signature");return!1}; SFU=function(r,V){try{window.location.reload(),r.vy("qoe.restart",{detail:"pr."+V})}catch(I){}}; U8r=function(r,V){V=V===void 0?"fmt.noneavailable":V;var I=r.mM.W;I.L=!1;j4(I);r.vy("qoe.restart",{e:V,detail:"hdr"});r.lL.X3(!0)}; QAi=function(r,V,I,d,a,f){this.videoData=r;this.G=V;this.reason=I;this.X=d;this.token=a;this.videoId=f}; dL=function(r,V,I){this.yH=r;this.zZ=V;this.lL=I;this.j=this.C=this.G=this.Y=this.L=this.X=0;this.W=!1;this.V=g.zM(this.yH.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.S=new Map}; u0g=function(r,V,I){!r.yH.U("html5_tv_ignore_capable_constraint")&&g.Ai(r.yH)&&(I=I.compose(m8g(r,V)));return I}; pPZ=function(r){if(r.lL.dU().isInline())return vk;var V;r.U("html5_exponential_memory_for_sticky")?V=Rj(r.yH.ZQ,"sticky-lifetime")<.5?"auto":Cc[Pp()]:V=Cc[Pp()];return g.c7("auto",V,!1,"s")}; qFp=function(r,V){var I,d=vUU(r,(I=V.G)==null?void 0:I.videoInfos);I=r.lL.getPlaybackRate();return I>1&&d?(r=J3h(r.yH.W,V.G.videoInfos,I),new sG(0,r,!0,"o")):new sG(0,0,!1,"o")}; vUU=function(r,V){return V&&g.Ai(r.yH)?V.some(function(I){return I.video.fps>32}):!1}; PRS=function(r,V){if(r.U("html5_disable_ustreamer_constraint_for_sabr")&&xa(V.videoData))return vk;var I=r.lL.Mh();r.U("html5_use_video_quality_cap_for_ustreamer_constraint")&&I&&I.OA>0&&MO(V.videoData.IG)&&(r=I.OA,V.videoData.IG=new sG(0,r,!1,"u"));return V.videoData.IG}; m8g=function(r,V){if(g.Ai(r.yH)&&Gb(r.yH.W,Fq.HEIGHT))var I=V.G.videoInfos[0].video.qualityOrdinal;else{var d=r.Eh(!!V.G.G);j3(V.videoData)||vx(V.videoData);V=V.G.videoInfos;if(V.length){var a=g.zM(r.yH.experiments,"html5_override_oversend_fraction")||.85,f=V[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||JK||(a=.45);r=g.zM(r.yH.experiments,"html5_viewport_undersend_maximum");for(f=0;f0&&(I=Math.min(I,d));if(d=g.zM(r.yH.experiments,"html5_max_vertical_resolution")){r=4320;for(a=0;ad&&(r=Math.min(r,f.video.qualityOrdinal));if(r<4320){for(a=d=0;a32){a=!0;break a}}a=!1}a&&(I=Math.min(I,d));(d=g.zM(r.yH.experiments,"html5_live_quality_cap"))&&V.videoData.isLivePlayback&&(I=Math.min(I,d));I=kzh(r,V,I);r=g.zM(r.yH.experiments,"html5_byterate_soft_cap");return new sG(0,I===4320?0:I,!1,"d",r)}; rbp=function(r){var V,I,d,a;return g.L(function(f){switch(f.X){case 1:return r.G.G&&typeof((V=navigator.mediaCapabilities)==null?void 0:V.decodingInfo)==="function"?g.G(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:I=g.H(r.G.videoInfos),d=I.next();case 3:if(d.done){f.qk(0);break}a=d.value;return g.G(f,TUi(a),4);case 4:d=I.next(),f.qk(3)}})}; Ivj=function(r,V){if(!V.videoData.X||r.U("html5_disable_performance_downgrade"))return!1;Date.now()-r.L>6E4&&(r.X=0);r.X++;r.L=Date.now();if(r.X!==4)return!1;Vjg(r,V.videoData.X);return!0}; avr=function(r,V,I,d){if(!V||!I||!V.videoData.X)return!1;var a=g.zM(r.yH.experiments,"html5_df_downgrade_thresh"),f=r.U("html5_log_media_perf_info");if(!((0,g.m)()-r.Y<5E3?0:f||a>0))return!1;var e=((0,g.m)()-r.Y)/1E3;r.Y=(0,g.m)();I=I.getVideoPlaybackQuality();if(!I)return!1;var n=I.droppedVideoFrames-r.C,D=I.totalVideoFrames-r.j;r.C=I.droppedVideoFrames;r.j=I.totalVideoFrames;var x=I.displayCompositedVideoFrames===0?0:I.displayCompositedVideoFrames||-1;f&&r.yH.Ko()&&r.lL.Hs("ddf",{dr:I.droppedVideoFrames, de:I.totalVideoFrames,comp:x});if(d)return r.G=0,!1;if((D-n)/e>r.V||!a||g.Ai(r.yH))return!1;r.G=(D>60?n/D:0)>a?r.G+1:0;if(r.G!==3)return!1;Vjg(r,V.videoData.X);r.lL.Hs("dfd",Object.assign({dr:I.droppedVideoFrames,de:I.totalVideoFrames},drO()));return!0}; Vjg=function(r,V){var I=V.A0,d=V.video.fps,a=V.video.qualityOrdinal-1,f=r.S;V=""+I+(d>49?"p60":d>32?"p48":"");I=Sq(I,d,f);a>0&&(I=Math.min(I,a));if(!ab.has(V)&&h0().includes(V)){var e=I;I=kN();+I[V]>0&&(e=Math.min(+I[V],e));I[V]!==e&&(I[V]=e,g.X2("yt-player-performance-cap",I,2592E3))}else if(ab.has(V)||f==null){a:{e=e===void 0?!0:e;d=h0().slice();if(e){if(d.includes(V))break a;d.push(V)}else{if(!d.includes(V))break a;d.splice(d.indexOf(V),1)}g.X2("yt-player-performance-cap-active-set",d,2592E3)}gb.set(V, I)}else ab.add(V),f==null||f.set(V,I);r.lL.B1()}; fZ=function(r,V){if(!V.G.G)return r.W?new sG(0,360,!1,"b"):vk;for(var I=!1,d=!1,a=g.H(V.G.videoInfos),f=a.next();!f.done;f=a.next())h4(f.value)?I=!0:d=!0;I=I&&d;d=0;a=g.zM(r.yH.experiments,"html5_performance_cap_floor");a=r.yH.X?240:a;V=g.H(V.G.videoInfos);for(f=V.next();!f.done;f=V.next()){var e=f.value;if(!I||!h4(e))if(f=Sq(e.A0,e.video.fps,r.S),e=e.video.qualityOrdinal,Math.max(f,a)>=e){d=e;break}}return new sG(0,d,!1,"b")}; fvh=function(r,V){var I=r.lL.dU();return I.isInline()&&!V.Rz?new sG(0,480,!1,"v"):xa(V)?vk:I.isBackground()&&Gg()/1E3>60&&!g.Ai(r.yH)?new sG(0,360,!1,"v"):vk}; ewg=function(r,V,I){if(r.yH.experiments.uL("html5_disable_client_autonav_cap_for_onesie")&&V.fetchType==="onesie"||g.Ai(r.yH)&&(Pp(-1)>=1080||V.osid))return vk;var d=g.zM(r.yH.experiments,"html5_autonav_quality_cap"),a=g.zM(r.yH.experiments,"html5_autonav_cap_idle_secs");return d&&V.isAutonav&&Gg()/1E3>a?(I&&(d=kzh(r,I,d)),new sG(0,d,!1,"e")):vk}; kzh=function(r,V,I){if(r.U("html5_optimality_defaults_chooses_next_higher")&&I)for(r=V.G.videoInfos,V=1;V=0||(r.provider.lL.getVisibilityState()===3?r.W=!0:(r.G=g.$U(r.provider),r.delay.start()))}; jbv=function(r){if(!(r.X<0)){var V=g.$U(r.provider),I=V-r.Y;r.Y=V;r.playerState.state===8?r.playTimeSecs+=I:r.playerState.isBuffering()&&!g.v(r.playerState,16)&&(r.rebufferTimeSecs+=I)}}; Drr=function(r){var V;switch((V=r.yH.playerCanaryStage)==null?void 0:V.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"}}; xrg=function(r){return window.PressureObserver&&new window.PressureObserver(r)}; E4S=function(r){r=r===void 0?xrg:r;g.X.call(this);var V=this;try{this.S=r(function(d){V.X=d.at(-1)}); var I;this.Y=(I=this.S)==null?void 0:I.observe("cpu",{sampleInterval:2E3}).catch(function(d){d instanceof DOMException&&(V.G=d)})}catch(d){d instanceof DOMException&&(this.G=d)}}; NLg=function(r){var V={},I=window.h5vcc;V.hwConcurrency=navigator.hardwareConcurrency;r.G&&(V.cpe=r.G.message);r.X&&(V.cpt=r.X.time,V.cps=r.X.state);if(I==null?0:I.cVal)V.cb2s=I.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),V.cb5s=I.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),V.cb30s=I.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return V}; sbA=function(r){var V;g.L(function(I){switch(I.X){case 1:return g.wA(I,2),g.G(I,r.Y,4);case 4:g.$v(I,3);break;case 2:g.th(I);case 3:(V=r.S)==null||V.disconnect(),g.Hr(I)}})}; zwO=function(r,V){V?cbr.test(r):(r=g.n5(r),Object.keys(r).includes("cpn"))}; C8S=function(r,V,I,d,a,f,e){var n={format:"RAW"},D={};if(xQ(r)&&Eh()){if(e){var x;((x=Mjr.uaChPolyfill)==null?void 0:x.state.type)!==2?e=null:(e=Mjr.uaChPolyfill.state.data.values,e={"Synth-Sec-CH-UA-Arch":e.architecture,"Synth-Sec-CH-UA-Model":e.model,"Synth-Sec-CH-UA-Platform":e.platform,"Synth-Sec-CH-UA-Platform-Version":e.platformVersion,"Synth-Sec-CH-UA-Full-Version":e.uaFullVersion});D=Object.assign(D,e);n.withCredentials=!0}(e=g.kt("EOM_VISITOR_DATA"))?D["X-Goog-EOM-Visitor-Id"]=e:d?D["X-Goog-Visitor-Id"]= d:g.kt("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.kt("VISITOR_DATA"));I&&(D["X-Goog-PageId"]=I);(d=V.bL)&&!IU(V)&&(D["X-Goog-AuthUser"]=d);a&&(D.Authorization="Bearer "+a);V.U("enable_datasync_id_header_in_web_vss_pings")&&V.k_&&V.datasyncId&&(D["X-YouTube-DataSync-Id"]=V.datasyncId);e||D["X-Goog-Visitor-Id"]||a||I||d?n.withCredentials=!0:V.U("html5_send_cpn_with_options")&&cbr.test(r)&&(n.withCredentials=!0)}Object.keys(D).length>0&&(n.headers=D);f&&(n.onFinish=f);return Object.keys(n).length>1? n:null}; TLi=function(r,V,I,d,a,f,e,n){Eh()&&I.token&&(r=jJ(r,{ctt:I.token,cttype:I.ZS,mdx_environment:I.mdxEnvironment}));d.U("net_pings_low_priority")&&(V||(V={}),V.priority="low");f||n&&d.U("nwl_skip_retry")?(V==null?V={}:zwO(r,d.U("html5_assert_cpn_with_regex")),e?Vw().sendAndWrite(r,V):Vw().sendThenWrite(r,V,n)):V?(zwO(r,d.U("html5_assert_cpn_with_regex")),d.U("net_pings_use_fetch")?a2v(r,V):g.yr(r,V)):g.mn(r,a)}; HZj=function(r){for(var V=[],I=0;I0&&I>0&&!r.X&&r.S<1E7)try{r.Y=r.W({sampleInterval:V,maxBufferSize:I});var d;(d=r.Y)==null||d.addEventListener("samplebufferfull",function(){return g.L(function(a){if(a.X==1)return g.G(a,r.stop(),2);OZZ(r);g.Hr(a)})})}catch(a){r.X=bZi(a.message)}}; nZ=function(r,V){var I,d;return!!((I=window.h5vcc)==null?0:(d=I.settings)==null?0:d.set(r,V))}; $rO=function(){var r,V,I,d=(r=window.h5vcc)==null?void 0:(V=r.settings)==null?void 0:(I=V.getPersistentSettingAsString)==null?void 0:I.call(V,"cpu_usage_tracker_intervals");if(d!=null){var a;r=(a=JSON.parse(d))!=null?a:[];a=r.filter(function(x){return x.type==="total"}).map(function(x){return x.seconds}); V=g.H(WPX);for(I=V.next();!I.done;I=V.next())I=I.value,a.indexOf(I)===-1&&r.push({type:"total",seconds:I});var f,e;(f=window.h5vcc)==null||(e=f.settings)==null||e.set("cpu_usage_tracker_intervals_enabled",1);var n,D;(n=window.h5vcc)==null||(D=n.settings)==null||D.set("cpu_usage_tracker_intervals",JSON.stringify(r))}}; KPi=function(){var r=window.H5vccPlatformService,V="";if(r&&r.has("dev.cobalt.coat.clientloginfo")&&(r=r.open("dev.cobalt.coat.clientloginfo",function(){}))){var I=r.send(new ArrayBuffer(0)); I&&(V=String.fromCharCode.apply(String,g.R(new Uint8Array(I))));r.close()}return V}; g.x4=function(r,V){g.X.call(this);var I=this;this.provider=r;this.logger=new g.xP("qoe");this.G=new Map;this.sequenceNumber=1;this.C=NaN;this.Lq="N";this.V=this.Dh=this.xw=this.bL=this.X=0;this.Bp=this.TQ=this.L=this.L8="";this.CF=this.Ws=NaN;this.Hy=0;this.NJ=-1;this.Py=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.rH=this.isEmbargoed=this.R7=this.isOffline=this.isBuffering=!1;this.ll=[];this.QH=null;this.Qa=this.Y=this.ya=this.j=!1;this.S=-1;this.a7=!1;this.By=new g.hz(this.AB,750,this);this.zG= this.adCpn=this.kc=this.contentCpn="";this.adFormat=void 0;this.Gd=0;this.DM=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.MG=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.X_=!1;this.M2=NaN;this.p8=0;this.gH=!1;this.n8=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.dH=!1;this.m_={IW:function(a){I.IW(a)}, M8E:function(){return I.W}, E6:function(){return I.contentCpn}, T5H:function(){return I.kc}, reportStats:function(){I.reportStats()}, JpC:function(){return I.G.get("cat")||[]}, Qf:function(a){return I.G.get(a)||[]}, YZM:function(){return I.G}, hvs:function(){return I.n8}, meC:function(){return{adCpn:I.adCpn,zG:I.zG,adFormat:I.adFormat}}}; this.GQ=this.provider.yH.U("html5_qoe_relaxed_reporting");var d=g.zM(this.provider.yH.experiments,"html5_qoe_proto_mock_length");d&&!jj.length&&(jj=HZj(d));g.S(this,this.By);try{navigator.getBattery().then(function(a){I.QH=a})}catch(a){}g.Dv(this,0,"vps",["N"]); r.yH.Ko()&&(this.p8=(0,g.m)(),this.M2=g.HR(function(){var a=(0,g.m)(),f=a-I.p8;f>500&&I.Hs("vmlock",{diff:f.toFixed()});I.p8=a},250)); r.lL.Ro()&&V&&(this.n8=V-Math.round(g.$U(r)*1E3));this.provider.videoData.Si&&(this.remoteControlMode=Rwp[this.provider.videoData.Si]||0);this.provider.videoData.O6&&(V=oji(this.provider.videoData.O6),V==null?0:V.length)&&(this.remoteConnectedDevices=V);if(r.yH.Ko()||r.U("html5_log_cpu_info"))this.Mk=new E4S,g.S(this,this.Mk);V=g.zM(r.yH.experiments,"html5_js_self_profiler_sample_interval_ms");r=g.zM(r.yH.experiments,"html5_js_self_profiler_max_samples");V>0&&r>0&&(this.EE=new Y4(V,r),g.S(this,this.EE))}; El=function(r,V,I){var d=r.G.get(V);d?d.push(I):r.G.set(V,[I])}; g.Dv=function(r,V,I,d){El(r,I,V.toFixed(3)+":"+d.join(":"))}; tji=function(r,V){var I=r.adCpn||r.provider.videoData.clientPlaybackNonce,d=r.provider.getCurrentTime(I);g.Dv(r,V,"cmt",[d.toFixed(3)]);d=r.provider.hP(I);if(r.W&&d*1E3>r.W.zv+100&&r.W){var a=r.W;I=a.isAd;d=d*1E3-a.zv;r.wM=V*1E3-a.RCC-d-a.On8;a=(0,g.m)()-d;V=r.wM;d=r.provider.videoData;var f=d.isAd();if(I||f){f=(I?"ad":"video")+"_to_"+(f?"ad":"video");var e={};d.C&&(e.cttAuthInfo={token:d.C,videoId:d.videoId});e.startTime=a-V;uC(f,e);g.mI({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, f);Q2("pbs",a,f)}else a=r.provider.lL.nw(),a.C!==d.clientPlaybackNonce?(a.W=d.clientPlaybackNonce,a.X=V):d.bu()||g.gj(new g.ox("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));r.Hs("gllat",{l:r.wM.toFixed(),prev_ad:+I});delete r.W}}; Nr=function(r,V){V=V===void 0?NaN:V;V=V>=0?V:g.$U(r.provider);var I=r.provider.lL.fu(),d=I.JC-(r.Ws||0);d>0&&g.Dv(r,V,"bwm",[d,(I.jc-(r.CF||0)).toFixed(3)]);isNaN(r.Ws)&&I.JC&&r.isOffline&&r.IW(!1);r.Ws=I.JC;r.CF=I.jc;isNaN(I.bandwidthEstimate)||g.Dv(r,V,"bwe",[I.bandwidthEstimate.toFixed(0)]);r.provider.yH.Ko()&&Object.keys(I.G).length!==0&&r.Hs("bwinfo",I.G);if(r.provider.yH.Ko()||r.provider.yH.U("html5_log_meminfo"))d=gav(r.provider.yH.U("html5_enable_chrobalt_memory_apis")),Object.values(d).some(function(f){return f!== void 0})&&r.Hs("meminfo",d); if(r.provider.yH.Ko()||r.provider.yH.U("html5_log_cpu_info")){var a;(d=(a=r.Mk)==null?void 0:NLg(a))&&Object.values(d).some(function(f){return f!=null})&&r.Hs("cpuinfo",d)}r.EE&&r.Hs("jsprof",r.EE.flush()); r.QH&&g.Dv(r,V,"bat",[r.QH.level,r.QH.charging?"1":"0"]);a=r.provider.lL.getVisibilityState();r.NJ!==a&&(g.Dv(r,V,"vis",[a]),r.NJ=a);tji(r,V);(a=ybi(r.provider))&&a!==r.Hy&&(g.Dv(r,V,"conn",[a]),r.Hy=a);AbA(r,V,I)}; AbA=function(r,V,I){if(!isNaN(I.ZZ)){var d=I.ZZ;I.X96E3&&(new g.hz(r.reportStats,0,r)).start()}}; lvi=function(r){r.provider.videoData.SA&&sl(r,"prefetch");r.provider.videoData.M2&&r.Hs("reload",{r:r.provider.videoData.reloadReason,ct:r.provider.videoData.M2});r.provider.videoData.ya&&sl(r,"monitor");r.provider.videoData.isLivePlayback&&sl(r,"live");aj&&sl(r,"streaming");r.provider.videoData.Si&&r.Hs("ctrl",{mode:r.provider.videoData.Si},!0);if(r.provider.videoData.O6){var V=r.provider.videoData.O6.replace(/,/g,"_");r.Hs("ytp",{type:V},!0)}r.provider.videoData.Ga&&(V=r.provider.videoData.Ga.replace(/,/g, "."),r.Hs("ytrexp",{ids:V},!0));var I=r.provider.videoData;V=r.provider.yH.U("enable_white_noise")||r.provider.yH.U("enable_webgl_noop");I=g.Hx(I)||g.l3(I)||g.Lk(I)||g.JR(I);(V||I)&&(V=(0,g.ci)())&&r.G.set("gpu",[V]);vx(r.provider.videoData)&&g.Dv(r,g.$U(r.provider),"dt",["1"]);r.provider.yH.Ko()&&(V=(0,g.m)()-r.provider.yH.IB,r.Hs("playerage",{secs:Math.pow(1.6,Math.round(Math.log(V/1E3)/Math.log(1.6))).toFixed()}));r.Y=!0;r.C=g.HR(function(){r.reportStats()},1E4)}; JbX=function(r,V,I){var d=g.$U(r.provider);LPr(r,d,V,0,I);Nr(r,d);FPr(r)}; LPr=function(r,V,I,d,a){var f=r.provider.yH.G.cbrver;r.provider.yH.G.cbr==="Chrome"&&/^96[.]/.test(f)&&I==="net.badstatus"&&/rc\.500/.test(a)&&ZZA(r,3);r.provider.yH.U("html5_use_ump")&&/b248180278/.test(a)&&ZZA(r,4);f=r.provider.getCurrentTime(r.adCpn||r.provider.videoData.clientPlaybackNonce);d=d===1?"fatal":"";I=[I,d,f.toFixed(3)];d&&(a+=";a6s."+sT());a&&I.push(Xih(a));g.Dv(r,V,"error",I);r.Y=!0}; $Jh=function(r,V){var I=g.$U(r.provider);if(!r.provider.yH.experiments.uL("html5_refactor_sabr_video_format_selection_logging")||V.G.id!==r.L8){var d=[V.G.id,V.X,r.L8,V.reason];V.token&&d.push(V.token);g.Dv(r,I,"vfs",d);r.L8=V.G.id;d=r.provider.lL.getPlayerSize();if(d.width>0&&d.height>0){d=[Math.round(d.width),Math.round(d.height)];var a=g.rv();a>1&&d.push(a);g.Dv(r,I,"view",d)}r.ya||(r.provider.yH.Ko()&&sl(r,"rqs2"),r.provider.videoData.G&&OG(r.provider.videoData.G)&&r.G.set("preload",["1"]));r.ya= !0;r.Y=!0}V.reason==="m"&&++r.Gd===100&&ZZA(r,2);g.Dv(r,I,"vps",[r.Lq]);r.GQ||r.reportStats(I)}; BLr=function(r){r.S>=0||(r.provider.yH.KJ||r.provider.lL.getVisibilityState()!==3?r.S=g.$U(r.provider):r.a7=!0)}; g4Z=function(r,V,I,d){if(I!==r.Lq){r.GQ||V=10&&r.playTimeSecs<=180&&(r.G.set("qoealert",["1"]),r.rH=!0)),I!=="B"||r.Lq!=="PL"&&r.Lq!=="PB"||(r.isBuffering=!0),r.X=V);r.Lq==="PL"&&(I==="B"||I==="S")||r.provider.yH.Ko()?Nr(r,V):(r.X_||I!=="PL"||(r.X_=!0,AbA(r,V,r.provider.lL.fu())),tji(r,V));I==="PL"&&g.r3(r.By);var a=[I];I==="S"&&d&&a.push("ss."+d);g.Dv(r,V,"vps", a);r.Lq=I;r.bL=V;r.X=V;r.Y=!0}}; Wdh=function(r,V,I){if(r.provider.yH.experiments.uL("html5_refactor_sabr_audio_format_selection_logging")){V=I.G;var d=[V.audio&&V.video?V.fB?V.fB:"":V.id];V.uo&&V.uo.id&&d.push(V.uo.id);V=d.join(";");V!==r.L&&(d=[V,r.L,I.reason],I.token&&d.push(I.token),g.Dv(r,g.$U(r.provider),"afs",d),r.L=V)}else I.G.id!==r.L&&(d=[I.G.id,r.L,I.reason],I.token&&d.push(I.token),g.Dv(r,V,"afs",d),r.L=I.G.id)}; sl=function(r,V){El(r,"cat",V)}; z_=function(r,V,I,d,a,f){var e=g.$U(r.provider);I!==1&&I!==3&&I!==5||g.Dv(r,e,"vps",[r.Lq]);El(r,"xvt","t."+e.toFixed(3)+";m."+f.toFixed(3)+";g."+V+";tt."+I+";np.0;c."+d+";d."+a)}; ZZA=function(r,V){r.Qa||(El(r,"fcnz",""+V),r.Qa=!0)}; Xih=function(r){/[^a-zA-Z0-9;.!_-]/.test(r)&&(r=r.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return r}; CZ=function(r){this.provider=r;this.L=!1;this.G=0;this.Y=-1;this.MR=NaN;this.S=0;this.segments=[];this.C=this.W=0;this.previouslyEnded=!1;this.V=this.provider.lL.getVolume();this.j=this.provider.lL.isMuted()?1:0;this.X=Mr(this.provider)}; T_=function(r){r.X.startTime=r.S;r.X.endTime=r.G;var V=!1;r.segments.length&&g.Nm(r.segments).isEmpty()?(r.segments[r.segments.length-1].previouslyEnded&&(r.X.previouslyEnded=!0),r.segments[r.segments.length-1]=r.X,V=!0):r.segments.length&&r.X.isEmpty()||(r.segments.push(r.X),V=!0);V?r.X.endTime===0&&(r.previouslyEnded=!1):r.X.previouslyEnded&&(r.previouslyEnded=!0);r.W+=r.G-r.S;r.X=Mr(r.provider);r.X.previouslyEnded=r.previouslyEnded;r.previouslyEnded=!1;r.S=r.G}; iZX=function(r){SlO(r);r.C=g.HR(function(){r.update()},100); r.MR=g.$U(r.provider);r.X=Mr(r.provider)}; SlO=function(r){g.bd(r.C);r.C=NaN}; Uri=function(r,V,I){I-=r.MR;return V===r.G&&I>.5}; Qbi=function(r,V,I,d){this.yH=V;this.M2=I;this.segments=[];this.experimentIds=[];this.EE=this.dH=this.isFinal=this.delayThresholdMet=this.X_=this.Py=this.autoplay=this.autonav=!1;this.Bp="yt";this.C=[];this.L=this.V=null;this.sendVisitorIdHeader=this.a7=!1;this.j=this.pageId="";this.W=I==="watchtime";this.S=I==="playback";this.GQ=I==="atr";this.ZQ=I==="engage";this.sendVisitorIdHeader=!1;this.uri=this.GQ?"/api/stats/"+I:"//"+V.CS+"/api/stats/"+I;d&&(this.dH=d.fs,d.rtn&&(this.L=d.rtn),this.W?(this.playerState= d.state,d.rti>0&&(this.V=d.rti)):(this.KJ=d.mos,this.uZ=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.CF=d.inview),d.size&&(this.Hy=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.MG=g.IZ(V.G);this.j=fx(V.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.j==="all"||this.j==="once")this.gH=g.IZ(V.X_);this.LJ=V.Bp;this.experimentIds=GNj(V.experiments);this.L8=V.ll;this.Bp=V.QH;this.region= V.region;this.userAge=V.userAge;this.DM=V.Ol;this.By=Gg();this.sendVisitorIdHeader=V.sendVisitorIdHeader;this.n8=V.U("vss_pings_using_networkless")||V.U("kevlar_woffle");this.j7=V.U("vss_final_ping_send_and_write");this.R7=V.U("vss_use_send_and_write");this.pageId=V.pageId;this.IB=V.U("vss_playback_use_send_and_write");V.livingRoomAppMode&&(this.livingRoomAppMode=V.livingRoomAppMode);this.JP=V.Y&&V.U("embeds_append_synth_ch_headers");g.FG(V)&&(this.TQ=V.GQ);g.s3(g.UL(V))&&this.C.push(1);this.accessToken= g.QW(r);r.CS[this.M2]?this.Y=r.CS[this.M2]:r.CS.playback&&(this.Y=r.CS.playback);this.adFormat=r.adFormat;this.adQueryId=r.adQueryId;this.autoplay=swp(r);this.S&&(this.Py=r.S8&>(r)==="adunit"?!0:!1);this.autonav=r.isAutonav||this.autonav;this.contentVideoId=i3(r);this.clientPlaybackNonce=r.clientPlaybackNonce;this.X_=r.Mm;r.C&&(this.kc=r.C,this.Qa=r.tO);r.mdxEnvironment&&(this.mdxEnvironment=r.mdxEnvironment);this.G=r.TQ;this.rH=r.rH;r.X&&(this.ll=r.X.itag,r.Y&&r.Y.itag!==this.ll&&(this.ya=r.Y.itag)); r.G&&OG(r.G)&&(this.offlineDownloadUserChoice="1");this.eventLabel=gt(r);this.EE=r.uZ?!1:r.BH;this.Gd=r.yn;if(V=$a(r))this.Nm=V;this.XN=r.w_;this.partnerId=r.partnerId;this.eventId=r.eventId;this.playlistId=r.fL||r.playlistId;this.Tp=r.Tp;this.Si=r.Si;this.O6=r.O6;this.pC=r.pC;this.subscribed=r.subscribed;this.videoId=r.videoId;this.videoMetadata=r.videoMetadata;this.visitorData=r.visitorData;this.osid=r.osid;this.pG=r.pG;this.referrer=r.referrer;this.yp=r.FV||r.yp;this.Mk=r.GG;this.qg=r.qg;this.userGenderAge= r.userGenderAge;this.aF=r.aF;this.embedsRct=r.embedsRct;this.embedsRctn=r.embedsRctn;g.FG(this.yH)&&r.mutedAutoplay&&(r.mutedAutoplayDurationMode===2&&r.limitedPlaybackDurationInSeconds===0&&r.endSeconds===0?this.C.push(7):this.C.push(2));r.isEmbedsShortsMode(new g.LJ(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.C.push(3);g.d1(r)&&this.C.push(4);this.Ws=r.qC;r.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=r.compositeLiveIngestionOffsetToken)}; mrZ=function(r,V){var I=r.sendVisitorIdHeader?r.visitorData:void 0;return g.jQ(r.yH,r.accessToken).then(function(d){return C8S(r.uri,r.yH,r.pageId,I,d,V,r.JP)})}; v4X=function(r,V){return function(){r.yH.U("html5_simplify_pings")?(r.G=r.p8,r.NJ=V(),r.By=0,r.send()):mrZ(r).then(function(I){var d=uRA(r);d.cmt=d.len;d.lact="0";var a=V().toFixed(3);d.rt=Number(a).toString();d=g.Ly(r.uri,d);r.yH.U("vss_through_gel_double")&&pir(d);r.n8?(I==null&&(I={}),r.R7?Vw().sendAndWrite(d,I):Vw().sendThenWrite(d,I)):I?g.yr(d,I):g.mn(d)})}}; uRA=function(r){var V={ns:r.Bp,el:r.eventLabel,cpn:r.clientPlaybackNonce,ver:2,cmt:r.X(r.G),fmt:r.ll,fs:r.dH?"1":"0",rt:r.X(r.NJ),adformat:r.adFormat,content_v:r.contentVideoId,euri:r.LJ,lact:r.By,live:r.Nm,cl:(749652930).toString(),mos:r.KJ,state:r.playerState,volume:r.uZ};r.subscribed&&(V.subscribed="1");Object.assign(V,r.MG);r.j==="all"?Object.assign(V,r.gH):r.j==="once"&&r.S&&Object.assign(V,r.gH);r.autoplay&&(V.autoplay="1");r.Py&&(V.sautoplay="1");r.X_&&(V.dni="1");!r.W&&r.TQ&&(V.epm=qlj[r.TQ]); r.isFinal&&(V["final"]="1");r.EE&&(V.splay="1");r.rH&&(V.delay=r.rH);r.L8&&(V.hl=r.L8);r.region&&(V.cr=r.region);r.userGenderAge&&(V.uga=r.userGenderAge);r.userAge!==void 0&&r.DM&&(V.uga=r.DM+r.userAge);r.p8!==void 0&&(V.len=r.X(r.p8));!r.W&&r.experimentIds.length>0&&(V.fexp=r.experimentIds.toString());r.L!==null&&(V.rtn=r.X(r.L));r.yp&&(V.feature=r.yp);r.Si&&(V.ctrl=r.Si);r.O6&&(V.ytr=r.O6);r.ya&&(V.afmt=r.ya);r.offlineDownloadUserChoice&&(V.ODUC=r.offlineDownloadUserChoice);r.QH&&(V.lio=r.X(r.QH)); r.W?(V.idpj=r.Gd,V.ldpj=r.XN,r.delayThresholdMet&&(V.dtm="1"),r.V!=null&&(V.rti=r.X(r.V)),r.aF&&(V.ald=r.aF),r.compositeLiveIngestionOffsetToken&&(V.clio=r.compositeLiveIngestionOffsetToken)):r.adType!==void 0&&(V.at=r.adType);r.Hy&&(r.S||r.W)&&(V.size=r.Hy);r.S&&r.C.length&&(V.pbstyle=r.C.join(","));r.CF!=null&&(r.S||r.W)&&(V.inview=r.X(r.CF));r.W&&(V.volume=Hi(r,g.uE(r.segments,function(d){return d.volume})),V.st=Hi(r,g.uE(r.segments,function(d){return d.startTime})),V.et=Hi(r,g.uE(r.segments,function(d){return d.endTime})), r6(r.segments,function(d){return d.playbackRate!==1})&&(V.rate=Hi(r,g.uE(r.segments,function(d){return d.playbackRate}))),r6(r.segments,function(d){return d.G!=="-"})&&(V.als=g.uE(r.segments,function(d){return d.G}).join(",")),r6(r.segments,function(d){return d.previouslyEnded})&&(V.pe=g.uE(r.segments,function(d){return""+ +d.previouslyEnded}).join(","))); V.muted=Hi(r,g.uE(r.segments,function(d){return d.muted?1:0})); r6(r.segments,function(d){return d.visibilityState!==0})&&(V.vis=Hi(r,g.uE(r.segments,function(d){return d.visibilityState}))); r6(r.segments,function(d){return d.connectionType!==0})&&(V.conn=Hi(r,g.uE(r.segments,function(d){return d.connectionType}))); r6(r.segments,function(d){return d.X!==0})&&(V.blo=Hi(r,g.uE(r.segments,function(d){return d.X}))); r6(r.segments,function(d){return!!d.S})&&(V.blo=g.uE(r.segments,function(d){return d.S}).join(",")); r6(r.segments,function(d){return!!d.compositeLiveStatusToken})&&(V.cbs=g.uE(r.segments,function(d){return d.compositeLiveStatusToken}).join(",")); r6(r.segments,function(d){return d.Y!=="-"})&&(V.cc=g.uE(r.segments,function(d){return d.Y}).join(",")); r6(r.segments,function(d){return d.clipId!=="-"})&&(V.clipid=g.uE(r.segments,function(d){return d.clipId}).join(",")); if(r6(r.segments,function(d){return!!d.audioId})){var I="au"; r.S&&(I="au_d");V[I]=g.uE(r.segments,function(d){return d.audioId}).join(",")}Eh()&&r.kc&&(V.ctt=r.kc,V.cttype=r.Qa,V.mdx_environment=r.mdxEnvironment); r.ZQ&&(V.etype=r.bL!==void 0?r.bL:0);r.Mk&&(V.uoo=r.Mk);r.livingRoomAppMode&&r.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(V.clram=P8i[r.livingRoomAppMode]||r.livingRoomAppMode);r.Y?o4A(r,V):(V.docid=r.videoId,V.referrer=r.referrer,V.ei=r.eventId,V.of=r.pG,V.osid=r.osid,V.vm=r.videoMetadata,r.adQueryId&&(V.aqi=r.adQueryId),r.autonav&&(V.autonav="1"),r.playlistId&&(V.list=r.playlistId),r.pC&&(V.ssrt="1"),r.qg&&(V.upt=r.qg));r.S&&(r.embedsRct&&(V.rct=r.embedsRct),r.embedsRctn&&(V.rctn= r.embedsRctn),r.compositeLiveIngestionOffsetToken&&(V.clio=r.compositeLiveIngestionOffsetToken));r.Ws&&(V.host_cpn=r.Ws);return V}; o4A=function(r,V){if(V&&r.Y){var I=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),a=new Set(["aqi","autonav","list","ssrt","upt"]);r.Y.ns==="3pp"&&(V.ns="3pp");for(var f=g.H(Object.keys(r.Y)),e=f.next();!e.done;e=f.next())e=e.value,d.has(e)||I.has(e)||a.has(e)&&!r.Y[e]||(V[e]=r.Y[e])}}; Hi=function(r,V){return g.uE(V,r.X).join(",")}; pir=function(r){r.indexOf("watchtime")!==-1&&g.N9("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:r}})}; k_h=function(r,V){r.attestationResponse&&mrZ(r).then(function(I){I=I||{};I.method="POST";I.postParams={atr:r.attestationResponse};r.n8?r.R7?Vw().sendAndWrite(V,I):Vw().sendThenWrite(V,I):g.yr(V,I)})}; wL=function(r){g.X.call(this);this.provider=r;this.C="paused";this.W=NaN;this.L=[10,10,10,40];this.V=this.j=0;this.kc=this.GQ=this.bL=this.QH=this.S=!1;this.X=this.Y=NaN;this.logger=new g.xP("vss");this.G=new CZ(r)}; d2j=function(r){if(!r.S){r.provider.videoData.NI===16623&&g.gj(Error("Playback for EmbedPage"));var V=b8(r,"playback");r.L=hwi(r);iZX(r.G);V.L=Ol(r);r.X>0&&(V.G-=r.X);V.send();if(r.provider.videoData.pQ){V=r.provider.yH;var I=r.provider.videoData,d={html5:"1",video_id:I.videoId,cpn:I.clientPlaybackNonce,ei:I.eventId,ptk:I.pQ,oid:I.bv,ptchn:I.g4,pltype:I.qQ,content_v:i3(I)};I.FC&&Object.assign(d,{m:I.FC});V=g.Ly(V.Kj+"ptracking",d);rfX(r,V)}r.provider.videoData.rH||(V2X(r),IoS(r),r.JO());r.S=!0;r= r.G;r.G=r.hP();r.MR=g.$U(r.provider);!(r.S===0&&r.G<5)&&r.G-r.S>2&&(r.S=r.G);r.L=!0}}; hwi=function(r){var V=r.provider.videoData.yn,I=r.provider.videoData.w_,d=[10+V,10,10,40+I-V,40],a,f=(a=r.provider.videoData.getPlayerResponse())==null?void 0:a.playbackTracking,e=f==null?void 0:f.videostatsScheduledFlushWalltimeSeconds;a=f==null?void 0:f.videostatsDefaultFlushIntervalSeconds;if(!(e&&e.length>0&&a))return r.logger.info("Missing valid scheduled pings config "+e+" "+a),d;V=[e[0]+V].concat(g.R(e.slice(1).map(function(n,D){return n-e[D]})),[a+I-V, a]);return V.some(function(n){return n<0})?(r.logger.G(347111855,"Neg vss scheduled pings "+e+" "+a),d):V}; Ol=function(r,V){V=V===void 0?NaN:V;var I=g.$U(r.provider);V=isNaN(V)?I:V;V=Math.ceil(V);var d=r.L[r.j];r.j+11E3;!(f.length>1)&&f[0].isEmpty()||n||(e.L=Ol(r,a));e.send();r.V++}},(a-I)*1E3); return r.Y=a}; Wi=function(r){g.wB(r.W);r.W=NaN}; aoi=function(r){r.G.update();r=r.G;r.segments.length&&r.G===r.S||T_(r);var V=r.segments;r.segments=[];return V}; b8=function(r,V){var I=epr(r.provider);Object.assign(I,{state:r.C});V=new Qbi(r.provider.videoData,r.provider.yH,V,I);V.G=r.provider.lL.hP();I=r.provider.videoData.clientPlaybackNonce;V.G=r.provider.lL.e5(I);r.provider.videoData.isLivePlayback||(V.p8=r.provider.lL.getDuration(I));r.provider.videoData.G&&(I=r.provider.videoData.G.dF(V.G))&&(V.QH=I-V.G,r.provider.yH.U("html5_disable_live_dvr_shrink_for_cdm_vss")&&mm(r.provider.videoData)&&(V.G+=r.provider.lL.N2(),V.QH-=r.provider.lL.N2()));V.NJ=g.$U(r.provider); V.segments=[Mr(r.provider)];return V}; foh=function(r,V){var I=b8(r,"watchtime");YtA(r)&&(I.delayThresholdMet=!0,r.bL=!0);if(r.X>0){for(var d=g.H(V),a=d.next();!a.done;a=d.next())a=a.value,a.startTime-=r.X,a.endTime-=r.X;I.G-=r.X}else I.G=r.G.X5();I.segments=V;return I}; $4=function(r,V){var I=nZj(r,!isNaN(r.Y));V&&(r.Y=NaN);return I}; nZj=function(r,V){var I=foh(r,aoi(r));!isNaN(r.Y)&&V&&(I.V=r.Y);return I}; YtA=function(r){var V;if(V=r.provider.videoData.isLoaded()&&r.provider.videoData.rH&&r.S&&!r.bL)V=r.G,V=V.W+V.hP()-V.S>=r.provider.videoData.rH;return!!V}; V2X=function(r){r.provider.videoData.youtubeRemarketingUrl&&!r.GQ&&(rfX(r,r.provider.videoData.youtubeRemarketingUrl),r.GQ=!0)}; IoS=function(r){r.provider.videoData.googleRemarketingUrl&&!r.kc&&(rfX(r,r.provider.videoData.googleRemarketingUrl),r.kc=!0)}; j4r=function(r){if(!r.h0()&&r.S){r.C="paused";var V=$4(r);V.isFinal=!0;V.send();r.dispose()}}; D2r=function(r,V){if(!r.h0())if(g.v(V.state,2)||g.v(V.state,512)){if(r.C="paused",g.TQ(V,2)||g.TQ(V,512))g.TQ(V,2)&&(r.G.previouslyEnded=!0),r.S&&(Wi(r),$4(r).send(),r.Y=NaN)}else if(g.v(V.state,8)){r.C="playing";var I=r.S&&isNaN(r.W)?Ol(r):NaN;if(!isNaN(I)&&(CW(V,64)<0||CW(V,512)<0)){var d=nZj(r,!1);d.L=I;d.send()}g.TQ(V,16)&&V.state.seekSource===58&&(r.G.previouslyEnded=!0)}else r.C="paused"}; x2i=function(r,V,I){if(!r.QH){I||(I=b8(r,"atr"));I.attestationResponse=V;try{I.send()}catch(d){if(d.message!=="Unknown Error")throw d;}r.QH=!0}}; rfX=function(r,V){var I=r.provider.yH;g.jQ(r.provider.yH,g.QW(r.provider.videoData)).then(function(d){var a=r.provider.yH.pageId,f=r.provider.yH.sendVisitorIdHeader?r.provider.videoData.visitorData:void 0,e=r.provider.yH.U("vss_pings_using_networkless")||r.provider.yH.U("kevlar_woffle"),n=r.provider.yH.U("allow_skip_networkless");d=C8S(V,I,a,f,d);TLi(V,d,{token:r.provider.videoData.C,ZS:r.provider.videoData.tO,mdxEnvironment:r.provider.videoData.mdxEnvironment},I,void 0,e&&!n,!1,!0)})}; EZZ=function(){this.endTime=this.startTime=-1;this.Y="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.X=0;this.compositeLiveStatusToken=this.S=void 0;this.volume=this.connectionType=0;this.muted=!1;this.G=this.clipId="-";this.previouslyEnded=!1}; KZ=function(r,V,I){this.videoData=r;this.yH=V;this.lL=I;this.G=void 0}; g.$U=function(r){return Nnh(r)()}; Nnh=function(r){if(!r.G){var V=g.ep(function(d){var a=(0,g.m)();d&&a<=631152E6&&(r.lL.Hs("ytnerror",{issue:28799967,value:""+a}),a=(new Date).getTime()+2);return a},r.yH.U("html5_validate_yt_now")),I=V(); r.G=function(){return Math.round(V()-I)/1E3}; r.lL.d1()}return r.G}; epr=function(r){var V=r.lL.qv()||{};V.fs=r.lL.NR();V.volume=r.lL.getVolume();V.muted=r.lL.isMuted()?1:0;V.mos=V.muted;V.clipid=r.lL.F1();var I;V.playerheight=((I=r.lL.getPlayerSize())==null?void 0:I.height)||0;var d;V.playerwidth=((d=r.lL.getPlayerSize())==null?void 0:d.width)||0;r=r.videoData;I={};r.X&&(I.fmt=r.X.itag,r.Y&&(r.Hy?r.Y.itag!==r.X.itag:r.Y.itag!=r.X.itag)&&(I.afmt=r.Y.itag));I.ei=r.eventId;I.list=r.playlistId;I.cpn=r.clientPlaybackNonce;r.videoId&&(I.v=r.videoId);r.Xq&&(I.infringe=1); (r.uZ?0:r.BH)&&(I.splay=1);(d=$a(r))&&(I.live=d);r.S8&&(I.sautoplay=1);r.iz&&(I.autoplay=1);r.Tp&&(I.sdetail=r.Tp);r.partnerId&&(I.partnerid=r.partnerId);r.osid&&(I.osid=r.osid);r.BU&&(I.cc=g.Bhj(r.BU));return Object.assign(V,I)}; ybi=function(r){var V=ctr();if(V)return s4g[V]||s4g.other;if(g.Ai(r.yH)){r=navigator.userAgent;if(/[Ww]ireless[)]/.test(r))return 3;if(/[Ww]ired[)]/.test(r))return 30}return 0}; Mr=function(r){var V=new EZZ,I;V.Y=((I=epr(r).cc)==null?void 0:I.toString())||"-";V.playbackRate=r.lL.getPlaybackRate();I=r.lL.getVisibilityState();I!==0&&(V.visibilityState=I);r.yH.a7&&(V.X=1);V.S=r.videoData.sL;V.compositeLiveStatusToken=r.videoData.compositeLiveStatusToken;I=r.lL.getAudioTrack();I.uo&&I.uo.id&&I.uo.id!=="und"&&(V.audioId=I.uo.id);V.connectionType=ybi(r);V.volume=r.lL.getVolume();V.muted=r.lL.isMuted();V.clipId=r.lL.F1()||"-";V.G=r.videoData.XH||"-";return V}; g.Rb=function(r,V){g.X.call(this);var I=this;this.provider=r;this.Y=!1;this.S=new Map;this.Lq=new g.nP;this.m_={H97:function(){return I.qoe}, tes:function(){return I.G}, IUE:function(){return I.X}}; this.provider.videoData.IL()&&!this.provider.videoData.U6&&(this.G=new wL(this.provider),this.G.X=this.provider.videoData.j7/1E3,g.S(this,this.G),this.qoe=new g.x4(this.provider,V),g.S(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.g$=this.provider.videoData.clientPlaybackNonce)&&this.S.set(this.g$,this.G));if(r.yH.playerCanaryState==="canary"||r.yH.playerCanaryState==="holdback")this.X=new ej(this.provider),g.S(this,this.X)}; cfX=function(r){return!!r.G&&!!r.qoe}; tb=function(r){return g.$U(r.provider)}; yD=function(r){r.X&&n4g(r.X);r.qoe&&BLr(r.qoe)}; zph=function(r){if(r.qoe){r=r.qoe;for(var V=r.provider.videoData,I=r.provider.yH,d=g.H(I.Ld),a=d.next();!a.done;a=d.next())sl(r,a.value);if(r.provider.U("html5_enable_qoe_cat_list"))for(d=g.H(V.P1),a=d.next();!a.done;a=d.next())sl(r,a.value);else V.Ld&&sl(r,r.provider.videoData.Ld);V.Tz()&&(d=V.G,zV(V)&&sl(r,"manifestless"),d&&F5(d)&&sl(r,"live-segment-"+F5(d).toFixed(1)));xa(V)?sl(r,"sabr"):r.UY(TV(V));if(u3(V)||V.uJ())V.uJ()&&sl(r,"ssa"),sl(r,"lifa");mm(V)&&sl(r,"cdm");V.gatewayExperimentGroup&& (d=V.gatewayExperimentGroup,d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?d="spkadtrt":d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(d="spkadctrl"),sl(r,d));I.QH!=="yt"&&r.G.set("len",[V.lengthSeconds.toFixed(2)]);V.cotn&&!vx(V)&&r.IW(!0);I.Ko()&&(V=KPi())&&r.Hs("cblt",{m:V});if(I.U("html5_log_screen_diagonal")){I=r.Hs;var f;V=((f=window.H5vccScreen)==null?0:f.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;I.call(r,"cbltdiag",{v:V})}}}; M2A=function(r){if(r.provider.lL.Ro()){if(r.Y)return;r.Y=!0}r.G&&d2j(r.G);if(r.X){r=r.X;var V=g.$U(r.provider);r.G<0&&(r.G=V,r.delay.start());r.X=V;r.Y=V}}; ClU=function(r,V){r.G&&(r=r.G,V===58?r.G.update():r.S&&(Wi(r),$4(r).send(),r.Y=NaN))}; Tnp=function(r,V){if(g.TQ(V,1024)||g.TQ(V,512)||g.TQ(V,4)){if(r.X){var I=r.X;I.X>=0||(I.G=-1,I.delay.stop())}r.qoe&&(I=r.qoe,I.j||(I.S=-1))}if(r.provider.videoData.enableServerStitchedDai&&r.g$){var d;(d=r.S.get(r.g$))==null||D2r(d,V)}else r.G&&D2r(r.G,V);if(r.qoe){d=r.qoe;I=V.state;var a=g.$U(d.provider),f=d.getPlayerState(I);g4Z(d,a,f,I.seekSource||void 0);f=I.DD;g.v(I,128)&&f&&(f.Km=f.Km||"",LPr(d,a,f.errorCode,f.QC,f.Km));(g.v(I,2)||g.v(I,128))&&d.reportStats(a);I.isPlaying()&&!d.j&&(d.S>=0&& d.G.set("user_intent",[d.S.toString()]),d.j=!0);FPr(d)}r.X&&(d=r.X,jbv(d),d.playerState=V.state,d.X>=0&&g.TQ(V,16)&&d.seekCount++,V.state.isError()&&d.send());r.provider.lL.Ro()&&(r.Lq=V.state)}; HSX=function(r){r.X&&r.X.send();if(r.qoe){var V=r.qoe;if(V.Y){V.Lq==="PL"&&(V.Lq="N");var I=g.$U(V.provider);g.Dv(V,I,"vps",[V.Lq]);V.j||(V.S>=0&&V.G.set("user_intent",[V.S.toString()]),V.j=!0);V.provider.yH.Ko()&&V.Hs("finalized",{});V.R7=!0;V.reportStats(I)}}if(r.provider.videoData.enableServerStitchedDai)for(V=g.H(r.S.values()),I=V.next();!I.done;I=V.next())j4r(I.value);else r.G&&j4r(r.G);r.dispose()}; wXO=function(r,V){r.G&&x2i(r.G,V)}; bSA=function(r){if(!r.G)return null;var V=b8(r.G,"atr");return function(I){r.G&&x2i(r.G,I,V)}}; OSi=function(r,V,I,d){I.adFormat=I.dH;var a=V.lL;V=new wL(new KZ(I,V.yH,{getDuration:function(){return I.lengthSeconds}, getCurrentTime:function(){return a.getCurrentTime()}, hP:function(){return a.hP()}, e5:function(){return a.e5()}, Ro:function(){return a.Ro()}, fu:function(){return a.fu()}, getPlayerSize:function(){return a.getPlayerSize()}, getAudioTrack:function(){return I.getAudioTrack()}, getPlaybackRate:function(){return a.getPlaybackRate()}, jS:function(){return a.jS()}, getVisibilityState:function(){return a.getVisibilityState()}, nw:function(){return a.nw()}, qv:function(){return a.qv()}, getVolume:function(){return a.getVolume()}, isMuted:function(){return a.isMuted()}, NR:function(){return a.NR()}, F1:function(){return a.F1()}, getProximaLatencyPreference:function(){return a.getProximaLatencyPreference()}, d1:function(){a.d1()}, Hs:function(f,e){a.Hs(f,e)}, V1:function(){return a.V1()}, N2:function(){return a.N2()}})); V.X=d;g.S(r,V);return V}; W5U=function(){this.ZZ=0;this.S=this.jc=this.JC=this.X=NaN;this.G={};this.bandwidthEstimate=NaN}; Ab=function(r,V,I){g.X.call(this);var d=this;this.yH=r;this.lL=V;this.X=I;this.G=new Map;this.g$="";this.m_={yu:function(){return Array.from(d.G.keys())}}}; $2h=function(r,V){r.G.has(V)&&(HSX(r.G.get(V)),r.G.delete(V))}; K5i=function(){this.G=g.Yj;this.array=[]}; t2j=function(r,V,I){var d=[];for(V=Rpi(r,V);VI)break}return d}; yfg=function(r,V){var I=[];r=g.H(r.array);for(var d=r.next();!d.done&&!(d=d.value,d.contains(V)&&I.push(d),d.start>V);d=r.next());return I}; AfA=function(r){return r.array.slice(Rpi(r,0x7ffffffffffff),r.array.length)}; Rpi=function(r,V){r=l$(r.array,function(I){return V-I.start||1}); return r<0?-(r+1):r}; GLg=function(r,V){var I=NaN;r=g.H(r.array);for(var d=r.next();!d.done;d=r.next())if(d=d.value,d.contains(V)&&(isNaN(I)||d.endV&&(isNaN(I)||d.startr.mediaTime+r.W&&V1)r.Y=!0;if((a===void 0?0:a)||isNaN(r.X))r.X=V;if(r.G)V!==r.mediaTime&&(r.G=!1);else if(V>0&&r.mediaTime===V){a=1500;if(r.yH.U("html5_buffer_underrun_transition_fix")){a=g.zM(r.yH.experiments,"html5_min_playback_advance_for_steady_state_secs");var f=g.zM(r.yH.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");a=a>0&&f>0&&Math.abs(V-r.X)(d||!r.Y?a:400)}r.mediaTime=V;r.S=I;return!1}; XXj=function(r,V){this.videoData=r;this.G=V}; Bnv=function(r,V,I){return V.MC(I).then(function(){return ZJ(new XXj(V,V.S))},function(d){d instanceof Error&&g.gj(d); var a=J4('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=Xa('audio/mp4; codecs="mp4a.40.2"'),e=a||f,n=V.isLivePlayback&&!g.nx(r.W,!0);d="fmt.noneavailable";n?d="html5.unsupportedlive":e||(d="html5.missingapi");e=n||!e?2:1;a={buildRej:"1",a:V.Gf(),d:!!V.CF,drm:V.v3(),f18:V.IB.indexOf("itag=18")>=0,c18:a};V.G&&(V.v3()?(a.f142=!!V.G.G["142"],a.f149=!!V.G.G["149"],a.f279=!!V.G.G["279"]):(a.f133=!!V.G.G["133"],a.f140=!!V.G.G["140"],a.f242=!!V.G.G["242"]),a.cAAC=f,a.cAVC=Xa('video/mp4; codecs="avc1.42001E"'), a.cVP9=Xa('video/webm; codecs="vp9"'));V.W&&(a.drmsys=V.W.keySystem,f=0,V.W.G&&(f=Object.keys(V.W.G).length),a.drmst=f);return new Gk(d,a,e)})}; l8=function(r){this.data=window.Float32Array?new Float32Array(r):Array(r);this.X=this.G=r-1}; gZA=function(r){return r.data[r.G]||0}; StO=function(r){this.W=r;this.S=this.X=0;this.Y=new l8(50)}; Jb=function(r,V,I){g.NK.call(this);this.videoData=r;this.experiments=V;this.W=I;this.X=[];this.Ky=0;this.S=!0;this.Y=!1;this.C=0;I=new iSh;r.latencyClass==="ULTRALOW"&&(I.C=!1);r.ya?I.S=3:g.GV(r)&&(I.S=2);r.latencyClass==="NORMAL"&&(I.W=!0);I.QH=V.uL("html5_refactor_decouple_liveness");g.zM(V,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.zM(V,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||r.latencyClass!=="LOW"&&r.latencyClass!=="ULTRALOW"||(I.W=!0);var d=g.zM(V, "html5_liveness_drift_proxima_override");if(TV(r)!==0&&d){I.G=d;var a;((a=r.G)==null?0:pTj(a))&&I.G--}xa(r)&&V.uL("html5_sabr_parse_live_metadata_playback_boundaries")&&(I.kc=!0);if(g.p5("trident/")||g.p5("edge/"))a=g.zM(V,"html5_platform_minimum_readahead_seconds")||3,I.Y=Math.max(I.Y,a);g.zM(V,"html5_minimum_readahead_seconds")&&(I.Y=g.zM(V,"html5_minimum_readahead_seconds"));g.zM(V,"html5_maximum_readahead_seconds")&&(I.V=g.zM(V,"html5_maximum_readahead_seconds"));V.uL("html5_force_adaptive_readahead")&& (I.C=!0);if(a=g.zM(V,"html5_liveness_drift_chunk_override"))I.G=a;Mq(r)&&(I.G=(I.G+1)/5,r.latencyClass==="LOW"&&(I.G*=2));if(r.latencyClass==="ULTRALOW"||r.latencyClass==="LOW")I.j=g.zM(V,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,I.L=g.zM(V,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=I;this.L=this.policy.S!==1;this.G=LZ(this,U2p(this,isNaN(r.liveChunkReadahead)?3:r.liveChunkReadahead,r))}; Q4A=function(r,V){if(V)return V=r.videoData,V=U2p(r,isNaN(V.liveChunkReadahead)?3:V.liveChunkReadahead,V),LZ(r,V);if(r.X.length){if(Math.min.apply(null,r.X)>1)return LZ(r,r.G-1);if(r.policy.C)return LZ(r,r.G+1)}return r.G}; m2p=function(r,V){if(!r.X.length)return!1;var I=r.G;r.G=Q4A(r,V===void 0?!1:V);if(V=I!==r.G)r.X=[],r.Ky=0;return V}; Zv=function(r,V){return V>=r.Za()-uCA(r)}; pXA=function(r,V,I){V=Zv(r,V);I||V?V&&(r.S=!0):r.S=!1;r.L=r.policy.S===2||r.policy.S===3&&r.S}; vZO=function(r,V){V=Zv(r,V);r.Y!==V&&r.publish("livestatusshift",V);r.Y=V}; uCA=function(r){var V=r.policy.G;r.Y||(V=Math.max(V-1,0));return V*Bi(r)}; U2p=function(r,V,I){I.ya&&V--;Mq(I)&&(V=1);if(TV(I)!==0&&(r=g.zM(r.experiments,"html5_live_chunk_readahead_proxima_override"))){V=r;var d;((d=I.G)==null?0:pTj(d))&&V++}return V}; Bi=function(r){return r.videoData.G?F5(r.videoData.G)||5:5}; LZ=function(r,V){V=Math.max(Math.max(1,Math.ceil(r.policy.Y/Bi(r))),V);return Math.min(Math.min(8,Math.floor(r.policy.V/Bi(r))),V)}; iSh=function(){this.Y=0;this.V=Infinity;this.C=!0;this.X=this.G=2;this.S=1;this.W=!1;this.L=10;this.kc=!1;this.j=1;this.QH=!1}; i8=function(r){g.X.call(this);this.lL=r;this.G=0;this.X=null;this.C=this.Y=0;this.S={};this.yH=this.lL.N();this.W=new g.hz(this.Td,1E3,this);this.a7=new gL({delayMs:g.zM(this.yH.experiments,"html5_seek_timeout_delay_ms")});this.GQ=new gL({delayMs:g.zM(this.yH.experiments,"html5_long_rebuffer_threshold_ms")});this.Mk=Sj(this,"html5_seek_set_cmt");this.p8=Sj(this,"html5_seek_jiggle_cmt");this.Ws=Sj(this,"html5_seek_new_elem");this.rH=Sj(this,"html5_unreported_seek_reseek");this.kc=Sj(this,"html5_long_rebuffer_jiggle_cmt"); this.bL=new gL({delayMs:2E4});this.TQ=Sj(this,"html5_seek_new_elem_shorts");this.EE=Sj(this,"html5_seek_new_media_source_shorts_reuse");this.L8=Sj(this,"html5_seek_new_media_element_shorts_reuse");this.R7=Sj(this,"html5_reseek_after_time_jump");this.j=Sj(this,"html5_gapless_handoff_close_end_long_rebuffer");this.V=Sj(this,"html5_gapless_slow_seek");this.QH=Sj(this,"html5_gapless_slow_start");this.L=Sj(this,"html5_ads_preroll_lock_timeout");this.DM=new gL({delayMs:g.zM(this.yH.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,DC:!this.yH.U("html5_report_slow_ads_as_error")});this.ya=new gL({delayMs:g.zM(this.yH.experiments,"html5_skip_slow_ad_delay_ms")||5E3,DC:!this.yH.U("html5_skip_slow_buffering_ad")});this.Qa=new gL({delayMs:g.zM(this.yH.experiments,"html5_slow_start_timeout_delay_ms")});this.n8=Sj(this,"html5_slow_start_no_media_source");g.S(this,this.W)}; Sj=function(r,V){var I=g.zM(r.yH.experiments,V+"_delay_ms");r=r.yH.U(V+"_cfl");return new gL({delayMs:I,DC:r})}; qtS=function(r,V){r.G=V}; Ul=function(r,V,I,d,a,f,e,n){V.test(I)?(r.vy(a,V,e),V.DC||f()):(V.Aq&&V.X&&!V.Y?(I=(0,g.m)(),d?V.G||(V.G=I):V.G=0,f=!d&&I-V.X>V.Aq,I=V.G&&I-V.G>V.t6||f?V.Y=!0:!1):I=!1,I&&(n=Object.assign({},r.Qy(V),n),n.wn=e,n.we=a,n.wsuc=d,r.lL.Hs("workaroundReport",n),d&&(V.reset(),r.S[a]=!1)))}; gL=function(r){var V=r===void 0?{}:r;r=V.delayMs===void 0?0:V.delayMs;var I=V.t6===void 0?1E3:V.t6;var d=V.Aq===void 0?3E4:V.Aq;V=V.DC===void 0?!1:V.DC;this.G=this.X=this.S=this.startTimestamp=0;this.Y=!1;this.W=Math.ceil(r/1E3);this.t6=I;this.Aq=d;this.DC=V}; hpA=function(r){g.X.call(this);var V=this;this.lL=r;this.L=this.G=this.loader=this.mediaElement=this.playbackData=null;this.S=0;this.W=this.kc=this.Y=null;this.bL=!1;this.Qa=0;this.QH=!1;this.timestampOffset=0;this.j=!0;this.Ws=0;this.EE=this.X_=!1;this.C=0;this.Mk=!1;this.GQ=0;this.yH=this.lL.N();this.videoData=this.lL.getVideoData();this.policy=new PlS;this.V=new i8(this.lL);this.DM=this.TQ=this.p8=this.X=NaN;this.R7=new g.hz(function(){oZj(V,!1)},2E3); this.rH=new g.hz(function(){QD(V)}); this.L8=new g.hz(function(){V.bL=!0;kLX(V,{})}); this.ya=NaN;this.n8=new g.hz(function(){var I=V.yH.ZQ;I.G+=1E4/36E5;I.G-I.S>1/6&&(oXj(I),I.S=I.G);V.n8.start()},1E4); g.S(this,this.V);g.S(this,this.R7);g.S(this,this.L8);g.S(this,this.rH);g.S(this,this.n8)}; IwX=function(r,V){r.playbackData=V;r.videoData.isLivePlayback&&(r.L=new StO(function(){a:{if(r.playbackData&&r.playbackData.G.G){if(zV(r.videoData)&&r.loader){var I=r.loader.UR.PH()||0;break a}if(r.videoData.G){I=r.videoData.G.GQ;break a}}I=0}return I}),r.G=new Jb(r.videoData,r.yH.experiments,function(){return r.zd(!0)})); mP(r.lL)?(V=rWA(r),V.Hv?(xa(r.videoData)&&r.yU(V.Hv,V.startSeconds),r.S=V.startSeconds):V.startSeconds>0&&r.seekTo(V.startSeconds,{YX:"seektimeline_startPlayback",seekSource:15}),r.j=!1):Vtp(r)||(r.S=r.S||(g.hI(r.videoData)?0:r.videoData.startSeconds)||0)}; awA=function(r,V){(r.loader=V)?dZU(r,!0):u8(r)}; fwZ=function(r,V){g.r3(r.V.W);r.U("html5_exponential_memory_for_sticky")&&(V.state.isPlaying()?g.r3(r.n8):r.n8.stop());if(r.mediaElement)if(V.oldState.state===8&&cb(V.state)&&V.state.isBuffering()){V=r.mediaElement.getCurrentTime();var I=r.mediaElement.VX();var d=r.U("manifestless_post_live_ufph")||r.U("manifestless_post_live")?EV(I,Math.max(V-3.5,0)):EV(I,V-3.5);d>=0&&V>I.end(d)-1.1&&d+10?(pZ(r.lL,r.getCurrentTime()+r.videoData.limitedPlaybackDurationInSeconds),r.EE=!0):r.videoData.isLivePlayback&&r.videoData.endSeconds>0&&(pZ(r.lL,r.getCurrentTime()+r.videoData.endSeconds),r.EE=!0))}; YkA=function(r,V){var I=r.getCurrentTime(),d=r.isAtLiveHead(I);if(r.L&&d){var a=r.L;if(a.G&&!(I>=a.X&&I50&&a.X.shift())),a=r.G,pXA(a,I,V===void 0?!0:V),vZO(a,I),V&&oZj(r,!0));d!==r.X_&&(V=r.getCurrentTime()-r.DM<=500,I=r.Qa>=1E3,V||I||(V=r.lL.jR(),V.qoe&&(V=V.qoe,I=g.$U(V.provider), g.Dv(V,I,"lh",[d?"1":"0"])),r.X_=d,r.Qa++,r.DM=r.getCurrentTime()))}; oZj=function(r,V){if(r.G){var I=r.G;var d=r.getCurrentTime(),a=I.Za();var f=I.policy.X;I.Y||(f=Math.max(f-1,0));f*=Bi(I);d>=a-f||!I.Ei()?I=d0&&aL(r.mediaElement)>0&&(r.X=vi(r,r.X,!1)),!r.mediaElement||!NzA(r))r.rH.start(750);else if(!isNaN(r.X)&&isFinite(r.X)){var V=r.TQ-(r.X-r.timestampOffset);if(!(V===0||Math.abs(V)<.005))if(V=r.mediaElement.getCurrentTime()-r.X,Math.abs(V)<=r.Ws||Math.abs(V)<.005)s8A(r);else{if(r.videoData.PU)r.videoData.PU=!1;else if(!cx(r.videoData)&&r.X>=r.zd()-.1){r.X=r.zd();r.Y.resolve(r.zd()); r.lL.pT();return}try{var I=r.X-r.timestampOffset;r.mediaElement.seekTo(I);r.V.G=I;r.TQ=I;r.S=r.X;r.QH=!1}catch(d){}}}}; NzA=function(r){if(!r.mediaElement||r.mediaElement.TK()===0||r.mediaElement.hasError())return!1;var V=r.mediaElement.getCurrentTime()>0;if(!(r.videoData.S&&r.videoData.S.G||r.videoData.isLivePlayback)&&r.videoData.v3())return V;if(r.X>=0){var I=r.mediaElement.Cr();if(I.length||!V)return N$(I,r.X-r.timestampOffset)}return V}; s8A=function(r){r.Y&&(r.Y.resolve(r.mediaElement.getCurrentTime()),r.V.X=null)}; xZZ=function(r,V){r.W&&(r.W.resolve(V),r.lL.Nx(),r.yH.Ko()||EBX(r))&&(V=r.Qy(),V["native"]=""+ +r.QH,V.otgt=""+(r.X+r.timestampOffset),r.lL.Hs("seekEnd",V));u8(r)}; u8=function(r){r.X=NaN;r.TQ=NaN;r.Y=null;r.kc=null;r.W=null;r.bL=!1;r.QH=!1;r.Ws=0;r.R7.stop();r.L8.stop()}; MtU=function(r,V,I){var d=r.mediaElement,a=V.type;switch(a){case "seeking":var f=d.getCurrentTime()+r.timestampOffset;if(!r.Y||r.QH&&f!==r.X){var e=!!r.Y;r.Y=new IL;r.Y.then(function(D){xZZ(r,D)},function(){u8(r)}); if(r.videoData.isAd()){var n;POg({adCpn:r.videoData.clientPlaybackNonce,contentCpn:(n=r.videoData.qC)!=null?n:""},V.G)}r.TQ=f;qtS(r.V,d.getCurrentTime());r.seekTo(f,{seekSource:104,YX:"seektimeline_mediaElementEvent"});I&&cWZ(I,f*1E3,!!e);r.QH=!0}break;case "seeked":s8A(r);break;case "loadedmetadata":mP(r.lL)||zAv(r);QD(r);break;case "progress":QD(r);break;case "pause":r.C=r.getCurrentTime()}r.C&&((a==="play"||a==="playing"||a==="timeupdate"||a==="progress")&&r.getCurrentTime()-r.C>10&&(r.U("html5_enable_new_media_element_puase_jump")? (r.lL.vy(new Gk("qoe.restart",{reason:"pauseJump"})),r.lL.X3(),r.seekTo(r.C,{YX:"pauseJumpNewElement"})):r.seekTo(r.C,{YX:"pauseJump"})),a!=="pause"&&a!=="play"&&a!=="playing"&&a!=="progress"&&(r.C=0))}; CDA=function(r){return(F8(r.videoData)||!!r.videoData.liveUtcStartSeconds)&&(!!r.videoData.liveUtcStartSeconds||Vtp(r))&&!!r.videoData.G}; Vtp=function(r){return!!r.videoData.startSeconds&&isFinite(r.videoData.startSeconds)&&r.videoData.startSeconds>1E9}; rWA=function(r){var V=0,I=NaN,d="";if(!r.j)return{startSeconds:V,Hv:I,source:d};r.videoData.GQ?V=r.videoData.n8:cx(r.videoData)&&(V=Infinity);if(g.GV(r.videoData))return{startSeconds:V,Hv:I,source:d};r.videoData.startSeconds?(d="ss",V=r.videoData.startSeconds):r.videoData.Gd&&(d="stss",V=r.videoData.Gd);r.videoData.liveUtcStartSeconds&&(I=r.videoData.liveUtcStartSeconds);if(isFinite(V)&&(V>r.zd()||V r.zd()||I0?(d.onesie="0",r.handleError(new Gk("html5.missingapi",d)),!1):!0}; RAA=function(r){var V=Q_();md(V,r);return g.DR(V,wEO())}; W2i=function(r,V){var I,d,a,f,e,n,D,x,E,N,c,z,M,w,b,W,K,F,l,B,P,p,dA,fg,rA,ji;return g.L(function(k){if(k.X==1)return V.fetchType="onesie",I=GJp(V,r.getPlayerSize(),r.getVisibilityState()),d=new EF(r,I),g.G(k,d.fetch(),2);a=k.G;f={player_response:a};V.loading=!1;e=r.dh.uy;if(d.Sr){n=g.H(d.Sr.entries());for(D=n.next();!D.done;D=n.next())x=D.value,E=g.H(x),N=E.next().value,c=E.next().value,z=N,M=c,e.G.set(z,M,180),z===V.videoId&&(w=M.kC(),V.XG=w);e.Po=d}b=g.H(d.Dl.entries());for(W=b.next();!W.done;W= b.next())K=W.value,F=g.H(K),l=F.next().value,B=F.next().value,P=l,p=B,e.X.set(P,p,180);g.k9(V,f,!0);if(V.loading||Pk(V))return k.return(Promise.resolve());e.G.removeAll();e.X.removeAll();V.XG=[];dA={};fg="onesie.response";rA=0;V.errorCode?(fg="auth",dA.ec=V.errorCode,dA.ed=V.errorDetail,dA.es=V.cG||"",rA=2):(dA.successButUnplayable="1",dA.disposed=""+ +V.h0(),dA.afmts=""+ +/adaptiveFormats/.test(a),dA.cpn=V.clientPlaybackNonce);ji=new Gk(fg,dA,rA);return k.return(Promise.reject(ji))})}; bYA=function(r,V){var I,d,a,f,e,n,D,x,E,N,c;return g.L(function(z){switch(z.X){case 1:I=V.isAd(),d=!I,a=I?1:3,f=0;case 2:if(!(f0)){z.qk(5);break}return g.G(z,Ss(5E3),6);case 6:e=new g.ox("Retrying OnePlatform request",{attempt:f}),g.gj(e);case 5:return g.wA(z,7),g.G(z,tti(r,V),9);case 9:return z.return();case 7:n=g.th(z);D=lS(n);x=D.errorCode;E=r.N();N=E.U("html5_use_network_error_code_enums")?401:"401";d&&x==="manifest.net.badstatus"&&D.details.rc===N&&(d=!1,f===a-1&&(a+= 1));if(f===a-1)return c=yWO(I,D.details),c.details.backend="op",c.details.originec=x,z.return(Promise.reject(c));if(x==="auth"||x==="manifest.net.retryexhausted")return z.return(Promise.reject(D));r.handleError(D);if(Fa(D.severity)){z.qk(4);break}case 3:f++;z.qk(2);break;case 4:return z.return(Promise.reject(yWO(I,{backend:"op"})))}})}; tti=function(r,V){function I(fg){fg.readyState===2&&r.DR("ps_c")} var d,a,f,e,n,D,x,E,N,c,z,M,w,b,W,K,F,l,B,P,p,dA;return g.L(function(fg){switch(fg.X){case 1:V.fetchType="gp";d=r.N();a=g.jQ(d,g.QW(V));if(!a.G){f=a.getValue();fg.qk(2);break}return g.G(fg,a.G,3);case 3:f=fg.G;case 2:return e=f,n=RAA(e),D=GJp(V,r.getPlayerSize(),r.getVisibilityState()),x=g.aE(AWj),E=g.QW(V),N=(0,g.m)(),c=!1,z="empty",M=0,r.DR("psns"),w={dM:I},g.G(fg,g.k_(n,D,x,void 0,w),4);case 4:b=fg.G;r.DR("psnr");if(V.h0())return fg.return();b?"error"in b&&b.error?(c=!0,z="esf:"+b.error.message, M=b.error.code):b.errorMetadata&&(c=!0,z="its",M=b.errorMetadata.status):c=!0;if(c)return W=0,K=((0,g.m)()-N).toFixed(),F={},F=d.U("html5_use_network_error_code_enums")?{backend:"op",rc:M,rt:K,reason:z,has_kpt:V.NJ?"1":"0",has_mdx_env:V.mdxEnvironment?"1":"0",has_omit_key_flag:g.kt("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:E?"1":"0",has_vvt:V.R7?"1":"0",is_mdx:V.isMdxPlayback?"1":"0",mdx_ctrl:V.Si||"",token_eq:E===g.QW(V)?"1":"0"}:{backend:"op", rc:""+M,rt:K,reason:z,has_kpt:V.NJ?"1":"0",has_mdx_env:V.mdxEnvironment?"1":"0",has_omit_key_flag:g.kt("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:E?"1":"0",has_vvt:V.R7?"1":"0",is_mdx:V.isMdxPlayback?"1":"0",mdx_ctrl:V.Si||"",token_eq:E===g.QW(V)?"1":"0"},l="manifest.net.connect",M===429?(l="auth",W=2):M>200&&(l="manifest.net.badstatus",M===400&&(W=2)),fg.return(Promise.reject(new Gk(l,F,W)));V.loading=!1;g.k9(V,{raw_player_response:b},!0); B=b;g.B8(V.N())&&B&&B.trackingParams&&S9(B.trackingParams);if(V.errorCode)return P={ec:V.errorCode,ed:V.errorDetail,es:V.cG||""},fg.return(Promise.reject(new Gk("auth",P,2)));if(!V.loading&&!Pk(V))return p=V.isAd()?"auth":"manifest.net.retryexhausted",dA=V.isAd()?2:1,fg.return(Promise.reject(new Gk(p,{successButUnplayable:"1",hasMedia:g.Ra(V)?"1":"0"},dA)));g.Hr(fg)}})}; wDp=function(r,V,I){function d(M){M=lS(M);if(Fa(M.severity))return Promise.reject(M);r.handleError(M);return!1} function a(){return!0} var f,e,n,D,x,E,N,c,z;return g.L(function(M){switch(M.X){case 1:var w=r.N();r.getPlayerSize();r.getVisibilityState();r.isFullscreen();if(V.partnerId===38&&w.playerStyle==="books")w=V.videoId.indexOf(":"),w=g.Ly("//play.google.com/books/volumes/"+V.videoId.slice(0,w)+"/content/media",{aid:V.videoId.slice(w+1),sig:V.zh0});else if(V.partnerId===30&&w.playerStyle==="docs")w=g.Ly("https://docs.google.com/get_video_info",{docid:V.videoId,authuser:V.rD,authkey:V.b8Q,eurl:w.Bp});else if(V.partnerId===33&& w.playerStyle==="google-live")w=g.Ly("//google-liveplayer.appspot.com/get_video_info",{key:V.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+w.QH);f=w;n=(e=V.isAd())?1:3;D=0;case 2:if(!(D0)){M.qk(5);break}return g.G(M,Ss(5E3),6);case 6:E={playerretry:D,playerretrysrc:I},e||(E.recover="embedded"),x=DJ(f,E);case 5:return g.G(M,Gur(V,x).then(a,d),7);case 7:if(N=M.G)return M.return();D++;M.qk(2);break;case 4:c=e?"auth":"manifest.net.retryexhausted";z= e?2:1;if(!e&&Math.random()<1E-4)try{g.gj(new g.ox("b/152131571",btoa(f)))}catch(b){}return M.return(Promise.reject(new Gk(c,{backend:"gvi"},z)))}})}; Gur=function(r,V){function I(b){return d(b.xhr)} function d(b){if(!r.h0()){b=b?b.status:-1;var W=0,K=((0,g.m)()-E).toFixed();K=a.U("html5_use_network_error_code_enums")?{backend:"gvi",rc:b,rt:K}:{backend:"gvi",rc:""+b,rt:K};var F="manifest.net.connect";b===429?(F="auth",W=2):b>200&&(F="manifest.net.badstatus",b===400&&(W=2));return Promise.reject(new Gk(F,K,W))}} var a,f,e,n,D,x,E,N,c,z,M,w;return g.L(function(b){if(b.X==1){r.fetchType="gvi";a=r.N();var W={};r.O8&&(W.ytrext=r.O8);(n=g.ho(W)?void 0:W)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:n},e=DJ(V,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=V);D={};a.sendVisitorIdHeader&&r.visitorData&&(D["X-Goog-Visitor-Id"]=r.visitorData);(x=fx(a.experiments,"debug_sherlog_username"))&&(D["X-Youtube-Sherlog-Username"]=x);Object.keys(D).length> 0&&(f.headers=D);E=(0,g.m)();return g.G(b,Th(F7,e,f).then(void 0,I),2)}N=b.G;if(!N||!N.responseText)return b.return(d(N));r.loading=!1;c=eJ(N.responseText);g.k9(r,c,!0);if(r.errorCode)return z={ec:r.errorCode,ed:r.errorDetail,es:r.cG||""},b.return(Promise.reject(new Gk("auth",z,2)));if(!r.loading&&!Pk(r))return M=r.isAd()?"auth":"manifest.net.retryexhausted",w=r.isAd()?2:1,b.return(Promise.reject(new Gk(M,{successButUnplayable:"1"},w)));g.Hr(b)})}; yWO=function(r,V){return new Gk(r?"auth":"manifest.net.retryexhausted",V,r?2:1)}; rn=function(r,V,I){I=I===void 0?!1:I;var d,a,f,e;g.L(function(n){if(n.X==1){d=r.N();if(I&&(!g.dv(d)||gt(V)!=="embedded")||V.y0||gt(V)!=="adunit"&&(g.Ai(d)||px(d)||g.ih(d)||g.g$(d)||d$(d)==="WEB_CREATOR"))return n.return();a=g.jQ(d,g.QW(V));return a.G?g.G(n,a.G,3):(f=a.getValue(),n.qk(2))}n.X!=2&&(f=n.G);e=f;return n.return(F2r(r,V,e))})}; F2r=function(r,V,I){var d,a,f,e,n;return g.L(function(D){if(D.X==1){g.wA(D,2);d=RAA(I);var x=V.N();g.mL();var E={context:g.DL(V),videoId:V.videoId,racyCheckOk:V.racyCheckOk,contentCheckOk:V.contentCheckOk,autonavState:"STATE_NONE"};gt(V)==="adunit"&&(E.isAdPlayback=!0);x.embedConfig&&(E.serializedThirdPartyEmbedConfig=x.embedConfig);x.aF&&(E.showContentOwnerOnly=!0);V.nL&&(E.showShortsOnly=!0);g.uQ(0,141)&&(E.autonavState=g.uQ(0,140)?"STATE_OFF":"STATE_ON");if(g.VO(x)){var N=g.uQ(0,65);N=N!=null? !N:!1;var c=!!g.BJ("yt-player-sticky-caption");E.captionsRequested=N&&c}var z;if(x=(z=x.getWebPlayerContextConfig())==null?void 0:z.encryptedHostFlags)E.playbackContext={encryptedHostFlags:x};a=E;f=g.aE(lwr);r.DR("wn_s");return g.G(D,g.k_(d,a,f),4)}if(D.X!=2)return e=D.G,r.DR("wn_r"),!e||"error"in e&&e.error||(n=e,g.B8(V.N())&&n.trackingParams&&S9(n.trackingParams),g.k9(V,{raw_watch_next_response:e},!1)),g.$v(D,0);g.th(D);g.Hr(D)})}; L2O=function(r){r.DR("vir");r.DR("ps_s");qM("vir",void 0,"video_to_ad");var V=K2i(r);V.then(function(){r.DR("virc");qM("virc",void 0,"video_to_ad");r.DR("ps_r");qM("ps_r",void 0,"video_to_ad")},function(){r.DR("virc"); qM("virc",void 0,"video_to_ad")}); return V}; g.dn=function(r,V,I,d,a,f,e,n,D,x){D=D===void 0?new g.qC(r):D;x=x===void 0?!0:x;g.NK.call(this);var E=this;this.yH=r;this.playerType=V;this.hI=I;this.zZ=d;this.getVisibilityState=f;this.visibility=e;this.dh=n;this.videoData=D;this.e0=x;this.logger=new g.xP("VideoPlayer");this.Pr=null;this.vW=new rL;this.k7=null;this.c_=!0;this.f8=this.loader=null;this.e8=[];this.ij=new k4;this.AP=this.eN=null;this.x7=new k4;this.tq=null;this.Df=this.oU=!1;this.hq=NaN;this.jq=!1;this.playerState=new g.nP;this.oW=[]; this.Z5=new g.Su;this.Ik=new Gzj(this);this.mediaElement=null;this.Bw=new g.hz(this.nX7,15E3,this);this.Nt=this.KB=!1;this.Tj=NaN;this.u$=!1;this.JQ=0;this.iG=!1;this.g9=NaN;this.Ra=new qr(new Map([["bufferhealth",function(){return eAr(E.zP)}], ["bandwidth",function(){return E.P0()}], ["networkactivity",function(){return E.yH.schedule.bL}], ["livelatency",function(){return E.isAtLiveHead()&&E.isPlaying()?JWp(E):NaN}], ["rawlivelatency",function(){return JWp(E)}]])); this.FG=0;this.loop=!1;this.playbackRate=1;this.L6=0;this.zP=new hpA(this);this.EU=!1;this.TW=[];this.Ub=this.I4=0;this.Z2=this.c5=!1;this.jc=this.JC=0;this.eD=new g.hz(this.ZP,0,this);this.mK=this.j4=null;this.JIQ=[this.Z5,this.eD,this.Bw,this.Ra];this.KE=this.J1=null;this.r$=function(){var N=E.jR();N.provider.yH.KJ||N.provider.lL.getVisibilityState()===3||(N.provider.yH.KJ=!0);N.iq();if(N.X){var c=N.X;c.W&&c.G<0&&c.provider.lL.getVisibilityState()!==3&&n4g(c)}N.qoe&&(N=N.qoe,N.a7&&N.S<0&&N.provider.yH.KJ&& BLr(N),N.Y&&Nr(N));E.loader&&VR(E);E.yH.c9&&!E.videoData.backgroundable&&E.mediaElement&&!E.lk()&&(E.isBackground()&&E.mediaElement.wz()?(E.Hs("bgmobile",{suspend:1}),E.Q6(!0,!0)):E.isBackground()||I4(E)&&E.Hs("bgmobile",{resume:1}))}; this.m_={P9:function(N){E.P9(N)}, fsE:function(N){E.Pr=N}, ApH:function(){return E.qc}, R9:function(){return E.nW}, M3:function(){return E.f8}, nsQ:function(){return E.tQ}, Swz:function(){return E.hQ}, HYL:function(){}, N:function(){return E.yH}, Sx:function(){return E.mediaElement}, Q$c:function(N){E.R4(N)}, qZ8:function(){return E.zZ}}; this.logger.debug(function(){return"creating, type "+V}); this.sR=new ZSS(this.yH);this.gU=new dL(this.yH,this.zZ,this);this.k9=new g.G_(this,function(N,c){N!==g.nv("endcr")||g.v(E.playerState,32)||E.pT();a(N,c,E.playerType)},function(N,c){g.hI(E.videoData)&&E.Hs(N,c)}); g.S(this,this.k9);g.S(this,this.zP);ZYX(this,D);this.videoData.subscribe("dataupdated",this.nbL,this);this.videoData.subscribe("dataloaded",this.u4,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Hs,this);this.videoData.subscribe("ctmpstr",this.fk,this);this.bU();yMA(this.r$);this.visibility.subscribe("visibilitystatechange",this.r$);this.tQ=new g.hz(this.O3,g.zM(this.yH.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.hQ= new g.hz(this.O3,g.zM(this.yH.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Ox=new g.d3(this.kY,g.zM(this.yH.experiments,"html5_progress_event_throttle_ms")||350,this);g.S(this,this.Ox)}; ZYX=function(r,V){if(r.playerType===2||r.yH.Ow)V.Ge=!0;var I=Uji(V.dH,V.V5,r.yH.Y,r.yH.j);I&&(V.adFormat=I);r.playerType===2&&(V.iz=!0);if(r.isFullscreen()||r.yH.Y)I=g.BJ("yt-player-autonavstate"),V.autonavState=I||(r.yH.Y?2:r.videoData.autonavState);V.endSeconds&&V.endSeconds>V.startSeconds&&pZ(r,V.endSeconds)}; XDp=function(r){HSX(r.qc);g.NS(r.qc);for(var V=r.nW,I=g.H(V.G.values()),d=I.next();!d.done;d=I.next())HSX(d.value);V.G.clear();g.NS(r.nW)}; Bzh=function(r){var V=r.videoData;L2O(r).then(void 0,function(I){r.videoData!==V||V.h0()||(I=lS(I),I.errorCode==="auth"&&r.videoData.errorDetail?r.Ut(I.errorCode,2,unescape(r.videoData.errorReason),A4(I.details),r.videoData.errorDetail,r.videoData.cG||void 0):r.handleError(I))})}; iYr=function(r){if(!g.v(r.playerState,128))if(r.videoData.isLoaded(),r.logger.debug("finished loading playback data"),r.e8=g.W9(r.videoData.kc),g.Ra(r.videoData)){r.hI.tick("bpd_s");a4(r).then(function(){r.hI.tick("bpd_c");if(!r.h0()){r.oU&&(r.GP(xX(xX(r.playerState,512),1)),I4(r));var d=r.videoData;d.endSeconds&&d.endSeconds>d.startSeconds&&pZ(r,d.endSeconds);r.ij.finished=!0;fS(r,"dataloaded");r.x7.Wt()&&gBA(r);Yli(r.gU,r.AP)}}); r.U("html5_log_media_perf_info")&&r.Hs("loudness",{v:r.videoData.xQ.toFixed(3)},!0);var V,I=(V=r.mediaElement)==null?void 0:V.YN();if(I&&"disablePictureInPicture"in I&&r.yH.Zq)try{I.disablePictureInPicture=r.yH.S$&&!r.videoData.backgroundable}catch(d){g.gj(d)}Skg(r)}else fS(r,"dataloaded")}; a4=function(r){e2(r);r.AP=null;var V=Bnv(r.yH,r.videoData,r.lk());r.eN=V;r.eN.then(function(I){UZX(r,I)},function(I){r.h0()||(I=lS(I),r.visibility.isBackground()?(YZ(r,"vp_none_avail"),r.eN=null,r.ij.reset()):(r.ij.finished=!0,r.Ut(I.errorCode,I.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",A4(I.details))))}); return V}; UZX=function(r,V){if(!r.h0()&&!V.videoData.h0()){r.logger.debug("finished building playback data");r.AP=V;IwX(r.zP,r.AP);if(r.videoData.isLivePlayback){var I=Q8X(r.dh.uy,r.videoData.videoId)||r.loader&&!isNaN(r.loader.bL);I=r.U("html5_onesie_live")&&I;mP(r)||r.videoData.X_>0&&!zV(r.videoData)||I||r.seekTo(r.zd(),{YX:"videoplayer_playbackData",seekSource:18})}if(r.videoData.S.G){if(H3X(r.videoData)){r.U("html5_sabr_report_missing_url_as_error_terminal")?r.Ut("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", A4({missabrurl:1})):r.handleError(new Gk("fmt.missing",{missabrurl:"1"},2));return}r.loader?g.gj(Error("Duplicated Loader")):(I=g.zM(r.yH.experiments,"html5_onesie_defer_content_loader_ms"))&&r.q$()&&Q8X(r.dh.uy,r.videoData.Dm7)?g.Td(function(){r.h0()||r.loader||mZS(r)},I):mZS(r)}else!r.videoData.S.G&&vx(r.videoData)&&r.xL(new s1(r.videoData.videoId||"",4)); r.Uw();rbp(V).then(function(){var d={};r.B1(d);r.yH.Ko()&&r.U("html5_log_media_perf_info")&&r.Hs("av1Info",d);VR(r)})}}; gBA=function(r){r.h0();r.logger.debug("try finish readying playback");if(r.x7.finished)r.logger.debug("already finished readying");else if(r.ij.finished)if(g.v(r.playerState,128))r.logger.debug("cannot finish readying because of error");else if(r.e8.length)r.logger.debug(function(){return"cannot finish readying because of pending preroll: "+r.e8}); else if(r.k9.started||loZ(r.k9),r.Kl())r.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{r.loader&&(r.Df=FYX(r.loader.timing));r.x7.finished||(r.x7.finished=!0);var V=r.U("html5_onesie_live")&&r.loader&&!isNaN(r.loader.bL);!r.videoData.isLivePlayback||r.videoData.X_>0&&!zV(r.videoData)||V||mP(r)||(r.logger.debug("seek to head for live"),r.seekTo(Infinity,{YX:"videoplayer_readying",seekSource:18}),r.isBackground()&&(r.Nt=!0));zph(r.jR());r.logger.debug("finished readying playback"); r.publish("playbackready");pq("pl_c",r.hI.timerName)||(r.hI.tick("pl_c"),qM("pl_c",void 0,"video_to_ad"));pq("pbr",r.hI.timerName)||(r.hI.tick("pbr"),qM("pbr",void 0,"video_to_ad"))}else r.logger.debug("playback data not loaded")}; pZ=function(r,V){r.k7&&ufO(r);r.k7=new g.ex(V*1E3,0x7ffffffffffff);r.k7.namespace="endcr";r.addCueRange(r.k7)}; ufO=function(r){r.removeCueRange(r.k7);r.k7=null}; pDZ=function(r,V,I,d,a){var f=r.jR(a),e=g.hI(r.videoData)?f.getVideoData():r.videoData;e.X=I;var n=g.nS(r);I=new QAi(e,I,V,n?n.itag:"",d);r.yH.experiments.uL("html5_refactor_sabr_video_format_selection_logging")?(I.videoId=a,r.KE=I):f.qoe&&$Jh(f.qoe,I);a=r.gU;a.X=0;a.G=0;r.publish("internalvideoformatchange",e,V==="m")}; g.nS=function(r){var V=j2(r);return MO(V)||!r.AP?null:g.z6(r.AP.G.videoInfos,function(I){return V.Y(I)})}; j2=function(r){if(r.AP){var V=r.gU;var I=r.AP;r=r.Q5();var d=pPZ(V);if(MO(d)){if(d=m8g(V,I).compose(oUZ(V,I)).compose(hCX(V,I)).compose(fvh(V,I.videoData)).compose(ewg(V,I.videoData,I)).compose(fZ(V,I)).compose(qFp(V,I)),MO(r)||V.U("html5_apply_pbr_cap_for_drm"))d=d.compose(PRS(V,I))}else V.U("html5_perf_cap_override_sticky")&&(d=d.compose(fZ(V,I))),V.U("html5_ustreamer_cap_override_sticky")&&(d=d.compose(PRS(V,I)));d=d.compose(qFp(V,I));V=I.videoData.dj.compose(d).compose(I.videoData.Tn).compose(r)}else V= vk;return V}; YQZ=function(r){var V=r.gU;r=r.videoData;var I=fvh(V,r);V.U("html5_disable_client_autonav_cap_for_onesie")||I.compose(ewg(V,r));return I}; VR=function(r){if(r.videoData.S&&r.videoData.S.G){var V=j2(r);r.loader&&V$Z(r.loader,V)}}; vBv=function(r){var V;return!!(r.U("html5_native_audio_track_switching")&&g.WQ&&((V=r.videoData.X)==null?0:dg(V)))}; qkA=function(r){if(!vBv(r))return!1;var V;r=(V=r.mediaElement)==null?void 0:V.audioTracks();return!!(r&&r.length>1)}; oBA=function(r){var V=PDp(r);if(V)return ueX(r.videoData.getAvailableAudioTracks().find(function(I){return I.uo.getName()===V}))}; PDp=function(r){var V;if(r=(V=r.mediaElement)==null?void 0:V.audioTracks())for(V=0;V0&&(V.jI=d.TC));V.mD=d.FB;V.WZ=is(I,{},d.S||void 0,Dd(d));V.DM= j3(d)&&g.ih(I);xa(d)&&(V.Gd=!0,I.U("html5_sabr_report_partial_segment_estimated_duration")&&(V.R2=!0),V.G=!0,V.WR=I.U("html5_sabr_enable_live_clock_offset"),V.pC=I.U("html5_disable_client_resume_policy_for_sabr"),V.PX=I.U("html5_trigger_loader_when_idle_network"),V.q3=I.U("html5_sabr_parse_live_metadata_playback_boundaries"),V.bq=I.U("html5_enable_platform_backpressure_with_sabr"),V.H9=I.U("html5_consume_onesie_next_request_policy_for_sabr"),V.sy=I.U("html5_sabr_report_next_ad_break_time"),V.u_=I.U("html5_log_high_res_buffer_timeline")&& I.Ko(),V.Jt=I.U("html5_remove_stuck_slices_beyond_max_buffer_limits"),V.TE=I.U("html5_gapless_sabr_btl_last_slice")&&nk(d),V.qg=I.U("html5_reset_last_appended_slice_on_seek")&&nk(d),zV(d)?(V.pQ=!0,V.NH=I.U("html5_estimate_partial_segment_duration"),V.KC=I.U("html5_disable_variability_tracker_for_live"),V.EE=I.U("html5_sabr_use_accurate_slice_info_params"),I.U("html5_simplified_backup_timeout_sabr_live")&&(V.Rk=!0,V.uZ=V.Ne)):V.Hy=I.U("html5_probe_request_on_sabr_request_progress"),V.XC=I.U("html5_serve_start_seconds_seek_for_post_live_sabr"), V.ZQ=I.U("html5_flush_index_on_updated_timestamp_offset"),V.p8=cJr(d),V.GK=I.U("html5_ignore_partial_segment_from_live_readahead"),V.yn=I.U("html5_use_buffer_health_for_readahead"),V.mS=I.U("html5_use_non_active_broadcast_for_post_live"),V.n8=I.U("html5_use_centralized_player_time"),V.SA=I.U("html5_consume_onesie_sabr_seek"),V.kc=I.U("html5_enable_sabr_seek_loader_refactor"),V.P4=I.U("html5_update_segment_start_time_from_media_header"),d.enableServerStitchedDai&&(V.W=!0,V.V5=I.U("html5_reset_server_stitch_state_for_non_sabr_seek"), V.Y$=I.U("html5_remove_ssdai_append_pause")&&!d.uJ(),V.Mk=I.U("html5_consume_ssdai_info_with_streaming"),V.j7=I.U("html5_ssdai_log_ssevt_in_loader")),V.KR=I.Ko()||d.uJ());V.C=V.G&&I.U("html5_sabr_live");V.Qa=g.C7O(d);Gb(I.W,Fq.BITRATE)&&(V.VH=NaN);if(n=g.zM(I.experiments,"html5_request_size_max_kb"))V.Ws=n*1024;I.W.S?V.LJ="; "+Fq.EXPERIMENTAL.name+"=allowed":I.U("html5_enable_cobalt_tunnel_mode")&&(V.LJ="; tunnelmode=true");n=d.serverPlaybackStartConfig;(n==null?0:n.enable)&&(n==null?0:n.playbackStartPolicy)&& (V.xQ=!0,Ryh(V,n.playbackStartPolicy,2));n=kuX(r);r.vW.removeAll();a:{I=r.dh.uy;if(d=r.videoData.videoId)if(a=I.G.get(d)){I.G.remove(d);I=a;break a}I=void 0}r.loader=new g.OF(r,r.yH.schedule,V,r.videoData.G,r.videoData.S,j2(r),n,r.videoData.enableServerStitchedDai,I,r.videoData.QH);V=r.videoData.U("html5_disable_preload_for_ssdai_with_preroll")&&r.videoData.isLivePlayback&&r.q$()?!0:r.oU&&g.Ai(r.yH)&&r.videoData.isLivePlayback;r.loader.initialize(r.getCurrentTime(),j2(r),V);r.videoData.probeUrl&& (r.loader.EE=r.videoData.probeUrl);if(r.e8.length||r.oU)r.videoData.cotn||Do(r,!1);awA(r.zP,r.loader);r.j4&&(O8O(r.loader,new g.Kf(r.j4)),r.Hs("sdai",{sdl:1}));r.mK&&(r.loader.hS(r.mK),r.zP.j=!1);g.oa(r.videoData)&&(r=r.loader,r.policy.lh=r.policy.S2)}; e2=function(r){r.loader&&(r.loader.dispose(),r.loader=null,awA(r.zP,null));r.YQ()?hAp(r):r.GA()}; hAp=function(r){if(r.f8)if(r.logger.debug("release media source"),r.yZ(),r.f8.W)try{r.yH.Ko()&&r.Hs("rms",{l:"vprms",sr:r.YQ(),rs:rm(r.f8)});r.f8.clear();var V;(V=r.mediaElement)!=null&&(V.X=r.f8);r.f8=null}catch(I){V=new g.ox("Error while clearing Media Source in VideoPlayer: "+I.name+", "+I.message),V=lS(V),r.handleError(V),r.GA()}else r.GA()}; rup=function(r,V){V=V===void 0?!1:V;if(r.f8)return r.f8.S;r.logger.debug("update media source");a:{V=V===void 0?!1:V;try{g.qL()&&r.videoData.qN()&&AtO(r.mediaElement);var I=r.mediaElement.M3(r.Ru(),r.OB())}catch(a){if(Zfi(r.Ik,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",a);r.Ut("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}r.Sa(I,!1,!1,V)}var d;return((d=r.M3())==null?void 0:d.S)||null}; VZh=function(r,V){V=V===void 0?!1:V;if(r.loader){r.videoData.enableServerStitchedDai&&GmZ(r.loader);var I=r.getCurrentTime()-r.N2();r.loader.seek(I,{fU:V}).Q7(function(){})}else mZS(r)}; d7X=function(r,V,I,d){I=I===void 0?!1:I;d=d===void 0?!1:d;if(r.f8&&(!V||r.f8===V)){r.logger.debug("media source opened");var a=r.getDuration();!a&&zV(r.videoData)&&(a=25200);if(r.f8.isView){var f=a;r.logger.debug(function(){return"Set media source duration to "+f+", video duration "+a}); f>r.f8.getDuration()&&Itp(r,f)}else Itp(r,a);kVj(r.loader,r.f8,I,d);r.publish("mediasourceattached")}}; Itp=function(r,V){if(r.f8){r.f8.pR(V);var I;(I=r.loader)!=null&&I.policy.n8&&(I.C=V)}}; dJi=function(r,V){pDZ(r,V.reason,V.G.info,V.token,V.videoId)}; fS=function(r,V){r.publish("internalvideodatachange",V===void 0?"dataupdated":V,r.videoData)}; atg=function(r){var V="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");r.U("html5_remove_progress_event_listener")||(V.push("progress"),V.push("suspend"));V=g.H(V);for(var I=V.next();!I.done;I=V.next())r.Z5.K(r.mediaElement,I.value,r.R4,r);r.yH.RH&&r.mediaElement.Ho()&&(r.Z5.K(r.mediaElement,"webkitplaybacktargetavailabilitychanged",r.THM,r),r.Z5.K(r.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",r.oNk, r))}; etv=function(r){g.bd(r.hq);ftr(r)||(r.hq=g.HR(function(){return ftr(r)},100))}; ftr=function(r){var V=r.mediaElement;V&&r.KB&&!r.videoData.bL&&!pq("vfp",r.hI.timerName)&&V.TK()>=2&&!V.isEnded()&&zH(V.VX())&&r.hI.tick("vfp");return(V=r.mediaElement)&&!r.videoData.bL&&V.getDuration()>0&&(V.isPaused()&&V.TK()>=2&&zH(V.VX())&&(pq("pbp",r.hI.timerName)||r.hI.tick("pbp"),!r.videoData.S$||r.jq||V.isSeeking()||(r.jq=!0,r.publish("onPlaybackPauseAtStart"))),V=V.getCurrentTime(),FR(r.sR,V))?(r.dA(),!0):!1}; n1r=function(r){r.jR().uI();if(cx(r.videoData)&&Date.now()>r.L6+6283){if(!(!r.isAtLiveHead()||r.videoData.G&&yK(r.videoData.G))){var V=r.jR();if(V.qoe){V=V.qoe;var I=V.provider.lL.fu(),d=g.$U(V.provider);AbA(V,d,I);I=I.S;isNaN(I)||g.Dv(V,d,"e2el",[I.toFixed(3)])}}r.U("html5_alc_live_log_rawlat")?(V=r.videoData,V=g.ti(V.N())?!0:g.hK(V.N())?V.drmProduct==="6":!1):V=g.ti(r.yH);V&&r.Hs("rawlat",{l:ob(r.Ra,"rawlivelatency").toFixed(3)});r.L6=Date.now()}r.videoData.X&&dg(r.videoData.X)&&(V=r.nU())&&V.videoHeight!== r.Ub&&(r.Ub=V.videoHeight,pDZ(r,"a",YIU(r,r.videoData.Mk)))}; YIU=function(r,V){if(V.G.video.quality==="auto"&&dg(V.getInfo())&&r.videoData.By)for(var I=g.H(r.videoData.By),d=I.next();!d.done;d=I.next())if(d=d.value,d.getHeight()===r.Ub&&d.G.video.quality!=="auto")return d.getInfo();return V.getInfo()}; JWp=function(r){if(!cx(r.videoData))return NaN;var V=0;r.loader&&r.videoData.G&&(V=zV(r.videoData)?r.loader.UR.PH()||0:r.videoData.G.GQ);return(0,g.m)()/1E3-r.dF()-V}; D7p=function(r){r.mediaElement&&r.mediaElement.lk()&&(r.g9=(0,g.m)());r.yH.Ne?g.Td(function(){j7Z(r)},0):j7Z(r)}; j7Z=function(r){var V;if((V=r.f8)==null||!V.gB()){if(r.mediaElement)try{r.tq=r.mediaElement.playVideo()}catch(d){YZ(r,"err."+d)}if(r.tq){var I=r.tq;I.then(void 0,function(d){r.logger.debug(function(){return"playMediaElement failed: "+d}); if(!g.v(r.playerState,4)&&!g.v(r.playerState,256)&&r.tq===I)if(d&&d.name==="AbortError"&&d.message&&d.message.includes("load"))r.logger.debug(function(){return"ignore play media element failure: "+d.message}); else{var a="promise";d&&d.name&&(a+=";m."+d.name);YZ(r,a);r.EU=!0;r.videoData.uZ=!0}})}}}; YZ=function(r,V){g.v(r.playerState,128)||(r.GP(NU(r.playerState,1028,9)),r.Hs("dompaused",{r:V}),r.publish("onAutoplayBlocked"))}; I4=function(r,V){V=V===void 0?!1:V;if(!r.mediaElement||!r.videoData.S)return!1;var I=V;I=I===void 0?!1:I;var d=null;var a;if((a=r.videoData.S)==null?0:a.G){d=rup(r,I);var f;(f=r.loader)==null||f.resume()}else e2(r),r.videoData.Mk&&(d=r.videoData.Mk.Iz());a=r.mediaElement.wz();I=!1;a&&a.equals(d)||(x7g(r,d),I=!0);g.v(r.playerState,2)||(d=r.zP,V=V===void 0?!1:V,d.W||!(d.S>0)||d.mediaElement&&d.mediaElement.getCurrentTime()>0||(V={YX:"seektimeline_resumeTime",fU:V},d.videoData.bL||(V.seekSource=15), d.seekTo(d.S,V)));a:{V=I;if(xa(r.videoData)){if(!r.videoData.v3())break a}else if(!g.OQ(r.videoData))break a;if(r.mediaElement)if((d=r.videoData.W)&&r.mediaElement.Ho()){a=g.J(r.mediaElement.YN());if(r.Pr)if(a!==r.Pr.element)xZ(r);else if(V&&d.flavor==="fairplay"&&!PR())xZ(r);else break a;if(r.U("html5_report_error_for_unsupported_tvos_widevine")&&PR()&&d.flavor==="widevine")r.Ut("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{r.Pr=new HfX(a,r.videoData,r.yH); r.Pr.subscribe("licenseerror",r.gX,r);r.Pr.subscribe("qualitychange",r.qks,r);r.Pr.subscribe("heartbeatparams",r.hN,r);r.Pr.subscribe("keystatuseschange",r.P9,r);r.Pr.subscribe("ctmp",r.Hs,r);V=g.H(r.vW.keys);for(d=V.next();!d.done;d=V.next())d=r.vW.get(d.value),r.Pr.nk(d);r.U("html5_eme_loader_sync")||r.vW.removeAll()}}else r.Ut("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return I}; x7g=function(r,V){r.hI.tick("vta");qM("vta",void 0,"video_to_ad");r.getCurrentTime()>0&&nBX(r.zP,r.getCurrentTime());r.mediaElement.activate(V);r.f8&&eT(4);!r.videoData.bL&&r.playerState.isOrWillBePlaying()&&r.Bw.start();if(vBv(r)){var I;if(V=(I=r.mediaElement)==null?void 0:I.audioTracks())V.onchange=function(){r.publish("internalaudioformatchange",r.videoData,!0)}}}; xZ=function(r){r.Pr&&(r.Pr.dispose(),r.Pr=null)}; E1Z=function(r){var V=V===void 0?!1:V;r.logger.debug("reattachVideoSource");r.mediaElement&&(r.f8?(xZ(r),r.GA(),rup(r,V)):(r.videoData.Mk&&r.videoData.Mk.aV(),r.mediaElement.stopVideo()),r.playVideo())}; NMi=function(r,V){r.yH.U("html5_log_rebuffer_reason")&&(V={r:V,lact:Gg()},r.mediaElement&&(V.bh=fP(r.mediaElement)),r.Hs("bufreason",V))}; s7A=function(r,V){if(r.yH.Ko()&&r.mediaElement){var I=r.mediaElement.Qy();I.omt=(r.mediaElement.getCurrentTime()+r.N2()).toFixed(3);I.ps=r.playerState.state.toString(16);I.rt=(tb(r.jR())*1E3).toFixed();I.e=V;r.TW[r.I4++%5]=I}try{if(V==="timeupdate"||V==="progress")return}catch(d){}r.logger.debug(function(){return"video element event "+V})}; cuX=function(r){if(r.yH.Ko()){r.TW.sort(function(d,a){return+d.rt-+a.rt}); for(var V=g.H(r.TW),I=V.next();!I.done;I=V.next())I=I.value,r.Hs("vpe",Object.assign({t:I.rt},I));r.TW=[];r.I4=0}}; ztX=function(r){if(g.p5("cobalt")&&g.p5("nintendo switch")){var V=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;r.Hs("nxdock",{d:V})}}; Do=function(r,V){var I;(I=r.loader)==null||WP(I,V)}; FbS=function(r,V){return g.hI(r.videoData)&&r.mK?r.mK.handleError(V,void 0):!1}; Skg=function(r){hR(r.videoData,"html5_set_debugging_opt_in")&&(r=g.mL(),g.uQ(0,183)||(vJ(183,!0),r.save()))}; MZU=function(r){return g.hI(r.videoData)&&r.mK?M8(r.mK):r.videoData.zd()}; Fdr=function(r,V){r.dh.nj()||(r.Hs("sgap",{f:V}),r.dh.clearQueue(!1,V==="pe"))}; mP=function(r){return r.U("html5_disable_video_player_initiated_seeks")&&xa(r.videoData)}; CxO=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);NJ(this.api,"isLifaAdPlaying",function(){return V.api.isLifaAdPlaying()}); this.events.K(r,"serverstitchedvideochange",function(){var I;(I=V.api.getVideoData())!=null&&I.uJ()&&(V.api.isLifaAdPlaying()?(V.playbackRate=V.api.getPlaybackRate(),V.api.setPlaybackRate(1)):V.api.setPlaybackRate(V.playbackRate))}); this.playbackRate=1}; TMX=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);NJ(this.api,"seekToChapterWithAnimation",function(I){V.seekToChapterWithAnimation(I)}); NJ(this.api,"seekToTimeWithAnimation",function(I,d){V.seekToTimeWithAnimation(I,d)}); NJ(this.api,"renderChapterSeekingAnimation",function(I,d,a){V.api.renderChapterSeekingAnimation(I,d,a)}); NJ(this.api,"setMacroMarkers",function(I){V.setMacroMarkers(r,I)}); NJ(this.api,"changeMarkerVisibility",function(I,d,a){V.changeMarkerVisibility(I,d,a)}); NJ(this.api,"isSameMarkerTypeVisible",function(I){return V.isSameMarkerTypeVisible(I)})}; HlX=function(r,V,I){var d=r.api.getCurrentTime()*1E30&&a>0&&(I.width+=a,g.Be(V.element,"width",I.width+"px")));r.size=I}}; g.tf=function(r,V){var I=r.G[r.G.length-1];I!==V&&(r.G.push(V),p3O(r,I,V))}; g.yR=function(r){if(!(r.G.length<=1)){var V=r.G.pop(),I=r.G[0];r.G=[I];p3O(r,V,I,!0)}}; p3O=function(r,V,I,d){v1A(r);V&&(V.unsubscribe("size-change",r.Af,r),V.unsubscribe("back",r.q7,r));I.subscribe("size-change",r.Af,r);I.subscribe("back",r.q7,r);if(r.Hp){g.jN(I.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");I.Xz(r.element);I.focus();r.element.scrollLeft=0;r.element.scrollTop=0;var a=r.size;ulX(r);g.qG(r.element,a);r.C=new g.hz(function(){qIi(r,V,I,d)},20,r); r.C.start()}else I.Xz(r.element),V&&V.detach()}; qIi=function(r,V,I,d){r.C.dispose();r.C=null;g.jN(r.element,"ytp-popup-animating");d?(g.jN(V.element,"ytp-panel-animate-forward"),g.xS(I.element,"ytp-panel-animate-back")):(g.jN(V.element,"ytp-panel-animate-back"),g.xS(I.element,"ytp-panel-animate-forward"));g.qG(r.element,r.size);r.L=new g.hz(function(){g.xS(r.element,"ytp-popup-animating");V.detach();g.E8(V.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);r.L.dispose();r.L=null},250,r); r.L.start()}; v1A=function(r){r.C&&g.Vj(r.C);r.L&&g.Vj(r.L)}; Af=function(r){g.R4.call(this,r,"ytp-shopping-product-menu");this.e7=new g.$Z(this.T);g.S(this,this.e7);this.hide();g.tf(this,this.e7);g.g1(this.T,this.element,4)}; o1Z=function(r,V,I){var d,a=V==null?void 0:(d=V.text)==null?void 0:d.simpleText;a&&(I=PxA(r,I,a,V==null?void 0:V.icon,V==null?void 0:V.secondaryIcon),V.navigationEndpoint&&I.listen("click",function(){r.T.Bs("innertubeCommand",V.navigationEndpoint);r.hide()},r))}; kxj=function(r,V,I){var d,a=V==null?void 0:(d=V.text)==null?void 0:d.simpleText;a&&PxA(r,I,a,V==null?void 0:V.icon).listen("click",function(){var f;(V==null?void 0:(f=V.icon)==null?void 0:f.iconType)==="HIDE"?r.T.publish("featuredproductdismissed"):V.serviceEndpoint&&r.T.Bs("innertubeCommand",V.serviceEndpoint);r.hide()},r)}; PxA=function(r,V,I,d,a){V=new g.k6(g.h6({},[],!1,!!a),V,I);a&&V.updateValue("secondaryIcon",hth(a));V.setIcon(hth(d));g.S(r,V);r.e7.LF(V,!0);return V}; hth=function(r){if(!r)return null;switch(r.iconType){case "ACCOUNT_CIRCLE":return{J:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{J:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{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 MTX();case "HIDE":return{J:"svg",D:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"g",B:[{J:"path",D:{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 A2()}}; GL=function(r){Ot.call(this,r,!1,!0);this.isCounterfactual=this.X=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.j=!0;this.overflowButton=new g.u({J:"button",Yc:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.S(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.u({J:"img",Z:"ytp-suggested-action-badge-img",D:{src:"{{url}}"}}); this.thumbnailImage.hide();g.S(this,this.thumbnailImage);this.thumbnailIcon=new g.u({J:"div",Z:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.S(this,this.thumbnailIcon);this.banner=new g.u({J:"a",Z:"ytp-suggested-action-container",B:[this.thumbnailImage,this.thumbnailIcon,{J:"div",Z:"ytp-suggested-action-details",B:[{J:"text",Z:"ytp-suggested-action-title",OE:"{{title}}"},{J:"text",Z:"ytp-suggested-action-subtitle",OE:"{{subtitle}}"},{J:"text",Z:"ytp-suggested-action-metadata-text", OE:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.S(this,this.banner);this.banner.Xz(this.S.element);this.K(this.T,"videodatachange",this.onVideoDataChange);this.K(this.T,g.nv("suggested_action_view_model"),this.OF7);this.K(this.T,g.jx("suggested_action_view_model"),this.rzE);this.K(this.overflowButton.element,"click",this.YP);this.K(r,"featuredproductdismissed",this.iy);this.T.createServerVe(this.banner.element,this.banner,!0)}; rxv=function(r){r.isInitialized&&(r.enabled=r.isVisible,r.kc=r.isVisible,bl(r),r.Od(),r.thumbnailImage.Ok(r.isVisible),r.shouldHideDismissButton||r.dismissButton.Ok(r.isVisible),r.shouldShowOverflowButton&&r.overflowButton.Ok(r.isVisible))}; FC=function(){GL.apply(this,arguments)}; Vei=function(r){I5.call(this,r);this.G=new FC(this.api);g.S(this,this.G);g.g1(this.api,this.G.element,4)}; ll=function(r){I5.call(this,r);var V=this;this.G="";this.S=!0;this.X=this.api.U("html5_enable_audio_track_stickiness_phase_two");var I=new g.Su(r);g.S(this,I);I.K(r,"internalaudioformatchange",function(d,a){IWU(V,d,a)}); I.K(r,"videoplayerreset",function(){dfv(V)}); I.K(r,"videodatachange",function(d,a){V.onVideoDataChange(d,a)})}; IWU=function(r,V,I){if(I){var d="";if(aWA(r,V)&&(d=V,r.X||(r.G=V),r.api.U("html5_sabr_enable_server_xtag_selection"))){if(I=r.api.getVideoData(void 0,!0))I.GK=V;r.api.N().Mk=V}if(r.X&&d&&fWO(r,d)){kJp(r.api,r.G||d);var a;Wp(Db(r.api.N(),(a=r.api.getVideoData())==null?void 0:g.QW(a)),function(f){e$X(r,d,f)})}}}; dfv=function(r){if(r.G)YBp(r);else{var V;if(r.X&&((V=VN())==null?0:V.size)){var I;Wp(Db(r.api.N(),(I=r.api.getVideoData())==null?void 0:g.QW(I)),function(d){if((d=nWv(d))&&fWO(r,d)){var a=r.api.getVideoData(void 0,!0);a&&(a.GK=d);r.api.N().Mk=d}})}}}; YBp=function(r){var V=r.api.getVideoData(void 0,!0);V&&(V.GK=r.G)}; e$X=function(r,V,I){nWv(I)!==V&&(jBh([{settingItemId:LS(I),settingOptionValue:{stringValue:V}}]),Wp(r.va(),function(d){aDi(d,LS(I),{stringValue:V})}))}; DfA=function(r,V){$N(Wp(Wp(r.va(),function(I){return IDj(I,[LS(V)])}),function(I){if(I){I=g.H(I); for(var d=I.next();!d.done;d=I.next()){var a=d.value;d=a.key;a=a.value;d&&a&&(jBh([{settingItemId:d,settingOptionValue:a}]),dfv(r))}}}),function(){r.S=!0})}; aWA=function(r,V){r=r.api.getAvailableAudioTracks();r=g.H(r);for(var I=r.next();!I.done;I=r.next())if(I=I.value,I.getLanguageInfo().getId()===V)return I;return null}; nWv=function(r){r=LS(r);var V=VN();r=V?V.get(r):void 0;return r&&r.stringValue?r.stringValue:""}; LS=function(r){var V=(484).toString();r&&(V=(483).toString());return V}; fWO=function(r,V){var I;return V.split(".")[0]!==""&&((I=r.api.getVideoData())==null?void 0:!pk(I))}; jBh=function(r){var V=VN();V||(V=new Map);r=g.H(r);for(var I=r.next();!I.done;I=r.next())I=I.value,V.set(I.settingItemId,I.settingOptionValue);V=JSON.stringify(Object.fromEntries(V));g.X2("yt-player-user-settings",V,2592E3)}; g.Jf=function(r,V,I,d,a,f,e){g.k6.call(this,g.h6({"aria-haspopup":"true"}),V,r);this.F_=d;this.j=!1;this.S=null;this.options={};this.X=new g.$Z(I,void 0,r,a,f,e);g.S(this,this.X);this.listen("keydown",this.JY);this.listen("click",this.open)}; xfA=function(r){if(r.S){var V=r.options[r.S];V.element.getAttribute("aria-checked");V.element.setAttribute("aria-checked","false");r.S=null}}; EWr=function(r,V){g.Jf.call(this,"Sleep timer",g.cU.SLEEP_TIMER,r,V);this.T=r;this.V={};this.C=this.t8("Off");this.L=this.G="";r.U("web_settings_menu_icons")&&this.setIcon({J:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{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.Y=new g.u({J:"div",Yc:["ytp-menuitem-label-wrapper"],B:[{J:"div",OE:"End of video"},{J:"div",Yc:["ytp-menuitem-sublabel"],OE:"{{content}}"}]});g.S(this,this.Y);this.listen("click",this.onClick);this.K(r,"videodatachange",this.onVideoDataChange);this.K(r,"presentingplayerstatechange",this.UE);this.K(r,"settingsMenuVisibilityChanged",this.xGH);r.createClientVe(this.element,this,218889);this.UE();this.T.Bs("onSleepTimerFeatureAvailable")}; NxX=function(r){var V="Off 10 15 20 30 45 60".split(" "),I;((I=r.T.getVideoData())==null?0:I.isLivePlayback)||V.push("End of video");I=r.T.getPlaylist();var d;I&&((d=I.listId)==null?void 0:d.type)!=="RD"&&V.push("End of playlist");r.WL(g.uE(V,r.t8));r.V=g.gP(V,r.t8,r);V=r.t8("End of video");r.options[V]&&g.of(r.options[V],r.Y)}; sBX=function(r,V){var I=r.V[V],d=I==="End of video"||I==="End of playlist";I==="Off"&&(r.G="");r.T.getPlayerState()!==0&&r.T.getPlayerState()!==5||!d?(r.C=V,g.Jf.prototype.FM.call(r,V),r.lz(V),r.T.Bs("onSleepTimerSettingsChanged",I)):r.T.Bs("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; Zo=function(r){I5.call(this,r);var V=this;r.addEventListener("settingsMenuInitialized",function(){V.menuItem||(V.menuItem=new EWr(V.api,V.api.iV()),g.S(V,V.menuItem))}); r.addEventListener("openSettingsMenuItem",function(I){if(I==="menu_item_sleep_timer"){if(!V.menuItem){var d;(d=V.api.iV())==null||d.a8()}V.menuItem.open()}}); NJ(r,"resetSleepTimerMenuSettings",function(){V.resetSleepTimerMenuSettings()}); NJ(r,"setSleepTimerTimeLeft",function(I){V.setSleepTimerTimeLeft(I)}); NJ(r,"setVideoTimeLeft",function(I){V.setVideoTimeLeft(I)})}; cxO=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"onSnackbarMessage",function(I){switch(I){case 1:I=V.api.getPlayerStateObject(),I.isBuffering()&&g.v(I,8)&&g.v(I,16)&&V.api.Bs("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.BX=function(r,V,I,d,a){V=V===void 0?!1:V;d=d===void 0?!1:d;a=a===void 0?!1:a;g.NK.call(this);this.V=a;this.L=!1;this.Y=new Gc(this);this.W=this.C=null;this.S=this.X=!1;g.S(this,this.Y);this.target=r;this.G=V;this.j=I||r;this.L=d;V&&(g.Pz&&this.target.setAttribute("draggable","true"),a||(this.target.style.touchAction="none"));XC(this)}; gn=function(r){g.lQ(r.Y,!r.G)}; XC=function(r){r.W=null;r.C=null;r.K(S2("over"),r.lr);r.K("touchstart",r.A$);r.G&&r.K(S2("down"),r.Xpz)}; z$A=function(r,V){for(var I=0;Ia.start&&I>=5;w+=W}c=w.substr(0,4)+" "+w.substr(4,4)+" "+w.substr(8,4)+" "+(w.substr(12,4)+" "+w.substr(16,4))}else c="";e={video_id_and_cpn:String(V.videoId)+" / "+c,codecs:"", dims_and_frames:"",bandwidth_kbps:e.toFixed(0)+" Kbps",buffer_health_seconds:D.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:x?"":"display:none",drm:x,debug_info:I,extra_debug_info:"",bandwidth_style:N,network_activity_style:N,network_activity_bytes:n.toFixed(0)+" KB",shader_info:E,shader_info_style:E?"":"display:none",playback_categories:""};n=d.clientWidth+"x"+d.clientHeight+(a>1?"*"+a.toFixed(2):"");D="-";f.totalVideoFrames&&(D=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames); e.dims_and_frames=n+" / "+D;r=r.getVolume();n=Mnj(V);var F;if((F=V.Y)==null?0:F.audio.X)F="VB";else{var l;F=((l=V.Y)==null?0:l.audio.G)?"DRC":Math.round(r*n)+"%"}l=Math.round(r)+"% / "+F;F=V.xQ.toFixed(1);isFinite(Number(F))&&(l+=" (content loudness "+F+"dB)");e.volume=l;e.resolution=d.videoWidth+"x"+d.videoHeight;if(d=V.X){if(l=d.video)F=l.fps,F>1&&(e.resolution+="@"+F),(F=f.CH)&&F.video&&(e.resolution+=" / "+F.video.width+"x"+F.video.height,F.video.fps>1&&(e.resolution+="@"+F.video.fps)),e.codecs= beA(d),!V.Y||d.audio&&d.video?d.fB&&(e.codecs+=" / "+d.fB+"A"):e.codecs+=" / "+beA(V.Y),l.G||l.primaries?(F=l.G||"unknown",F==="smpte2084"?F+=" (PQ)":F==="arib-std-b67"&&(F+=" (HLG)"),e.color=F+" / "+(l.primaries||"unknown"),e.color_style=""):e.color_style="display:none";if(d.debugInfo)for(e.fmt_debug_info="",d=g.H(d.debugInfo),l=d.next();!l.done;l=d.next())l=l.value,e.fmt_debug_info+=l.label+":"+l.text+" ";e.fmt_debug_info_style=e.fmt_debug_info&&e.fmt_debug_info.length>0?"":"display:none"}d=V.isLivePlayback; l=V.Ue;e.live_mode_style=d||l?"":"display:none";e.live_latency_style=d?"":"display:none";if(l)e.live_mode="Post-Live"+(zV(V)?" Manifestless":"");else if(d){l=f.ES;e.live_latency_secs=l.toFixed(2)+"s";d=zV(V)?"Manifestless, ":"";V.GQ&&(d+="Windowed, ");F="Uncertain";if(l>=0&&l<120)if(V.latencyClass&&V.latencyClass!=="UNKNOWN")switch(V.latencyClass){case "NORMAL":F="Optimized for Normal Latency";break;case "LOW":F="Optimized for Low Latency";break;case "ULTRALOW":F="Optimized for Ultra Low Latency"; break;default:F="Unknown Latency Setting"}else F=V.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";d+=F;(l=f.a4)&&(d+=", seq "+l.sequence);e.live_mode=d}!f.isGapless||nk(V)&&f.nj||(e.playback_categories+="Gapless ");e.playback_categories_style=e.playback_categories?"":"display:none";e.bandwidth_samples=f.AU;e.network_activity_samples=f.Tv;e.live_latency_samples=f.BM;e.buffer_health_samples=f.Ky;f=g.oa(V);if(V.cotn||f)e.cotn_and_local_media=(V.cotn?V.cotn:"null")+ " / "+f;e.cotn_and_local_media_style=e.cotn_and_local_media?"":"display:none";hR(V,"web_player_release_debug")?(e.release_name=Y[85],e.release_style=""):e.release_style="display:none";e.debug_info&&z.length>0&&e.debug_info.length+z.length<=60?e.debug_info+=" "+z:e.extra_debug_info=z;e.extra_debug_info_style=e.extra_debug_info&&e.extra_debug_info.length>0?"":"display:none";return e}; beA=function(r){var V=/codecs="([^"]*)"/.exec(r.mimeType);return V&&V[1]?V[1]+" ("+r.itag+")":r.itag}; vX=function(r,V,I,d,a){g.u.call(this,{J:"div",Z:"ytp-horizonchart"});this.L=V;this.sampleCount=I;this.Y=d;this.C=a;this.index=0;this.heightPx=-1;this.S=this.X=null;this.G=Math.round(r/I);this.element.style.width=this.G*this.sampleCount+"px";this.element.style.height=this.L+"em"}; q2=function(r,V){if(r.heightPx===-1){var I=null;try{I=g.J(g.rX("CANVAS")),r.X=I.getContext("2d")}catch(n){}if(r.X){var d=r.G*r.sampleCount;r.S=I;r.S.width=d;r.S.style.width=d+"px";r.element.appendChild(r.S)}else for(r.sampleCount=Math.floor(r.sampleCount/4),r.G*=4,I=0;I1?2:1,r.S.height=r.heightPx*I, r.S.style.height=r.heightPx+"px",r.X.scale(1,I)));V=g.H(V);for(d=V.next();!d.done;d=V.next()){I=r;var a=r.index,f=d.value;for(d=0;d+20&&g.dX(V.S.element);d.classList.add("ytp-timely-actions-overlay");V.S.element.appendChild(d)}); g.S(this,this.S);g.g1(this.api,this.S.element,4)}; Bxi=function(r){r.timelyActions&&(r.Y=r.timelyActions.reduce(function(V,I){if(I.cueRangeId===void 0)return V;V[I.cueRangeId]=0;return V},{}))}; rz=function(r,V){if(r.timelyActions){r=g.H(r.timelyActions);for(var I=r.next();!I.done;I=r.next())if(I=I.value,I.cueRangeId===V)return I}}; gWg=function(r,V){if((r=rz(r,V))&&r.onCueRangeExit)return Qo(r.onCueRangeExit)}; hf=function(r){if(r.G!==void 0){var V=(V=rz(r,r.G))&&V.onCueRangeEnter?Qo(V.onCueRangeEnter):void 0;var I=rz(r,r.G);a:if(I&&I.additionalTrigger){var d=g.H(I.additionalTrigger);for(var a=d.next();!a.done;a=d.next())if(a=a.value,a.type){var f=void 0,e=void 0;if((f=r.V[a.type])==null?0:f((e=a.args)!=null?e:{})){d=!0;break a}}d=!1}else d=!0;V&&d&&(r.api.Bs("innertubeCommand",V),r.setTimeout(I),r.Y[r.G]!==void 0&&r.Y[r.G]++,r.C=!0)}}; LWv=function(r,V){return r.X===void 0?!1:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(V.seekLengthMilliseconds)===5E3?r.X===72:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(V.seekLengthMilliseconds)===1E4?r.X===74:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(V.seekLengthMilliseconds)===5E3?r.X===71:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(V.seekLengthMilliseconds)===1E4?r.X===73:!1}; JxS=function(r){if(r=r.getWatchNextResponse()){var V,I;r=(V=r.playerOverlays)==null?void 0:(I=V.playerOverlayRenderer)==null?void 0:I.timelyActionsOverlayViewModel;V=g.U(r,SBv);if(V!=null&&V.timelyActions)return V==null?void 0:V.timelyActions.map(function(d){return g.U(d,iep)}).filter(function(d){return!!d})}}; Ufr=function(r){I5.call(this,r);var V=this;sM(this.api,"getPlaybackRate",function(){return V.api.getPlaybackRate()}); sM(this.api,"setPlaybackRate",function(I){typeof I==="number"&&V.api.setPlaybackRate(I)})}; VX=function(r,V,I,d){jW.call(this,"VOICE_BOOST",g.cU.L2);this.G=!1;this.T=r;this.F_=r.iV();this.Y=V;this.S=I;this.hasVoiceBoostAudioTrack=d;this.K(r,"videodatachange",this.X);this.setIcon(W4i());this.subscribe("select",this.C,this);this.X()}; I8=function(r){I5.call(this,r);var V=this;this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"settingsMenuInitialized",function(){QBA(V)}); NJ(this.api,"getVoiceBoostUserPreference",function(){return V.getVoiceBoostUserPreference()}); NJ(this.api,"setVoiceBoostUserPreference",function(d){V.setVoiceBoostUserPreference(d)}); NJ(this.api,"hasVoiceBoostAudioTrack",function(){return V.hasVoiceBoostAudioTrack()}); var I;this.G=(I=QVj())!=null?I:0;this.updateEnvironmentData()}; QBA=function(r){r.menuItem||(r.menuItem=new VX(r.api,function(V){r.setVoiceBoostUserPreference(V)},function(){return r.getVoiceBoostUserPreference()},function(){return r.hasVoiceBoostAudioTrack()}),g.S(r,r.menuItem))}; mfA=function(r){r=r.fq();if(!r)return!1;r=g.n5(r).exp||"";return r.includes("xpv")||r.includes("xpe")}; uhj=function(r){r=g.H(g.dz(r,!0));for(var V=r.next();!V.done;V=r.next())if(mfA(V.value))return!0;return!1}; pfX=function(r,V){r=g.H(g.dz(r,!0));for(var I=r.next();!I.done;I=r.next())if(I=I.value,mfA(I)){var d={potc:"1",pot:V};I.url&&(I.url=jJ(I.url,d))}}; vWU=function(r){return g.L(function(V){if(V.X==1)return g.wA(V,2),g.G(V,r,4);if(V.X!=2)return g.$v(V,0);g.th(V);g.Hr(V)})}; fY=function(r){I5.call(this,r);var V=this;this.useLivingRoomPoToken=!1;this.W=new g.cA;this.G=!1;this.hI=null;this.j=!1;this.Y=null;this.C=!1;var I=r.N().getWebPlayerContextConfig();this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"spsumpreject",function(d,a,f){V.C=a;d&&V.j&&!V.Y&&(V.U("html5_generate_content_po_token")&&f?V.B4(f):V.U("html5_generate_session_po_token")&&qBh(V));V.Y||V.api.Hs("stp",{s:+V.j,b:+V.C})}); this.events.K(r,"poTokenVideoBindingChange",function(d){V.B4(d)}); this.useLivingRoomPoToken=!(I==null||!I.useLivingRoomPoToken);r.addEventListener("csiinitialized",function(){V.hI=r.nw();var d=(V.U("html5_generate_session_po_token")||V.U("html5_generate_content_po_token"))&&!V.useLivingRoomPoToken;try{if(V.U("html5_use_shared_owl_instance"))PMZ(V);else if(d){V.hI.zY("pot_isc");var a=g.zM(V.api.N().experiments,"html5_webpo_kaios_defer_timeout_ms");a?(V.S=ia(),g.Td(function(){a8(V)},a)):V.U("html5_webpo_idle_priority_job")?(V.S=ia(),g.IY(g.aY(),function(){a8(V)})): a8(V)}}catch(f){f instanceof Error&&g.gj(f)}}); r.addEventListener("trackListLoaded",this.Aa.bind(this));r.xS(this)}; oWv=function(r){var V=fx(r.experiments,"html5_web_po_request_key");return V?V:g.Ai(r)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; kWU=function(r){var V=new VsX,I={},d=(I["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",I);return new wY(V,r,function(){return d})}; h$A=function(r){return new ba(r)}; et=function(r,V){r.U("html5_webpo_bge_ctmp")&&r.api.Hs(V,{hwpo:!!r.X,hwpor:r.G})}; PMZ=function(r){var V,I;g.L(function(d){if(d.X==1)return et(r,"swpo_i"),r.S=ia(),YB(r),g.G(d,nQ(),2);if(d.X!=3)return V=d.G,et(r,"swpo_co"),g.G(d,FZU(V),3);I=d.G;r.U("html5_web_po_token_disable_caching")||I.eT(150);r.X=I;et(r,"swpo_cc");vWU(I.v0()).then(function(){r.G=!0;r.W.resolve();et(r,"swpo_re")}); g.Td(function(){a8(r);et(r,"swpo_si")},0); g.Hr(d)})}; Vdg=function(r){var V=r.api.N(),I=kWU(oWv(V)),d=I.Ep.bind(I);I.Ep=function(n){var D;return g.L(function(x){if(x.X==1)return g.G(x,d(n),2);D=x.G;r.api.Hs("itr",{});return x.return(D)})}; try{var a=h$A({Po:I,tX:{maxAttempts:5},oR:{mH:"CLEn",disable:V.experiments.uL("html5_web_po_disable_remote_logging")||rqr.includes(g.Rn(V.Kj)||""),CX:A3Z(V.experiments),m2k:r.U("wpo_dis_lfdms")?0:1E3},eps:g.gj});var f=new gY({x5:a,Po:I,onError:g.gj});vWU(f.v0()).then(function(){r.G=!0;r.W.resolve()}); r.U("html5_web_po_token_disable_caching")||f.eT(150);g.S(r,a);g.S(r,f);r.X=f}catch(n){g.gj(n);var e;(e=a)==null||e.dispose()}}; a8=function(r){var V=r.api.N();r.hI.zY("pot_ist");r.X||Vdg(r);r.U("html5_bandaid_attach_content_po_token")||(r.U("html5_generate_session_po_token")&&(YB(r),qBh(r)),V=g.zM(V.experiments,"html5_session_po_token_interval_time_ms")||0,V>0&&(r.L=g.HR(function(){YB(r)},V)),r.j=!0)}; YB=function(r){var V,I,d,a;g.L(function(f){if(!r.U("html5_generate_session_po_token")||r.useLivingRoomPoToken)return f.return();V=r.api.N();I=g.kt("EOM_VISITOR_DATA")||g.kt("VISITOR_DATA");d=V.k_?V.datasyncId:I;a=fx(V.experiments,"html5_mock_content_binding_for_session_token")||V.livingRoomPoTokenId||d;V.uZ=nY(r,a);g.Hr(f)})}; nY=function(r,V){if(!r.X){if(r.S)try{return r.S(V)}catch(f){g.gj(f)}return""}try{r.hI.zY(r.G?"pot_cms":"pot_csms");var I={hH:!0,RC:!0,NS:V};r.U("html5_web_po_token_disable_caching")||(I.I$={WI:V,Ze:!0,PY:!0});var d=r.X.Ur(I);r.hI.zY(r.G?"pot_cmf":"pot_csmf");if(r.G){var a;(a=r.Y)==null||a.resolve();r.Y=null;r.C&&(r.C=!1,r.api.app.jC().xr(!1))}return d}catch(f){return g.gj(f),""}}; qBh=function(r){r.X&&(r.Y=new IL,r.W.promise.then(function(){r.hI.zY("pot_if");YB(r)}))}; jt=function(r){I5.call(this,r);var V=this,I=new g.Su(r);g.S(this,I);I.K(r,"fullscreentoggled",function(d){IYh(V,d)}); NJ(this.api,"setFullscreenQuickActions",function(d){V.setFullscreenQuickActions(d)}); NJ(this.api,"setPlayerOverlayVideoDetailsRenderer",function(d){V.setPlayerOverlayVideoDetailsRenderer(d)})}; IYh=function(r,V){r.G&&g.oI(r.G,V);r.playerOverlayVideoDetailsRenderer&&g.oI(r.playerOverlayVideoDetailsRenderer,V)}; dhr=function(r){I5.call(this,r);var V=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Su(r);g.S(this,this.events);this.events.K(r,"heartbeatRequest",function(I){if(V.freePreviewUsageDetails.length||V.freePreviewWatchedDuration!==null)I.heartbeatRequestParams||(I.heartbeatRequestParams={}),I.heartbeatRequestParams.unpluggedParams||(I.heartbeatRequestParams.unpluggedParams={}),V.freePreviewUsageDetails.length>0?I.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= V.freePreviewUsageDetails:I.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+V.freePreviewWatchedDuration}}); NJ(r,"setFreePreviewWatchedDuration",function(I){V.freePreviewWatchedDuration=I}); NJ(r,"setFreePreviewUsageDetails",function(I){V.freePreviewUsageDetails=I})}; Dw=function(r){g.X.call(this);this.features=[];var V=this.G,I=new yb(r),d=new dR(r),a=new zL(r),f=new fY(r);var e=g.ti(r.N())?void 0:new bz(r);var n=new cX(r),D=new KWi(r),x=new Ufr(r),E=new t$(r);var N=g.ti(r.N())?new dhr(r):void 0;var c=r.U("html5_enable_ssap")?new wfv(r):void 0;var z=r.U("web_cinematic_watch_settings")&&(z=r.N().getWebPlayerContextConfig())!=null&&z.cinematicSettingsAvailable?new C0(r):void 0;var M=new R5(r);var w=r.U("enable_courses_player_overlay_purchase")?new y0j(r):void 0; var b=g.VO(r.N())?new $3X(r):void 0;var W=new OH(r);var K=r.N().Y?new TDU(r):void 0;var F=g.FG(r.N())?new CZj(r):void 0;var l=r.U("web_player_move_autonav_toggle")&&r.N().Gd?new D3U(r):void 0;var B=g.VO(r.N())?new TMX(r):void 0;var P=r.U("web_enable_speedmaster")&&g.VO(r.N())?new QR(r):void 0;var p=r.N().VM?void 0:new lWg(r);var dA=r.U("report_pml_debug_signal")?new edA(r):void 0;var fg=new FuO(r),rA=new HX(r);var ji=g.ih(r.N())?new U7A(r):void 0;var k=navigator.mediaSession&&window.MediaMetadata&& r.N().H9?new Et(r):void 0;var bX=r.U("html5_enable_drc")&&!r.N().C?new wR(r):void 0;var RX=new f0(r);var Ui=g.VO(r.N())?new Vei(r):void 0;var $f=r.U("html5_enable_d6de4")?new M2(r):void 0;var jp=g.VO(r.N())&&r.U("web_sleep_timer")?new Zo(r):void 0;var yZ=g.FG(r.N())?new wpU(r):void 0;var Kg=new ll(r),fG=new c0S(r),O=new CxO(r);var ng=r.U("enable_sabr_snackbar_message")?new cxO(r):void 0;var qm=r.U("web_enable_timely_actions")?new XfA(r):void 0;var Wt=new T4(r);var Ao=g.VO(r.N())?new jt(r):void 0; r=r.U("html5_enable_voice_boost")?new I8(r):void 0;V.call(this,I,d,a,f,e,n,D,x,E,N,c,z,M,w,b,W,K,F,l,B,P,p,dA,fg,rA,ji,void 0,k,bX,RX,void 0,Ui,$f,jp,yZ,void 0,Kg,fG,O,void 0,ng,qm,Wt,Ao,r)}; aYX=function(){this.X=this.G=NaN}; fYj=function(r,V){this.yH=r;this.timerName="";this.S=!1;this.X=NaN;this.Y=new aYX;this.G=V||null;this.S=!1}; exX=function(r,V,I){var d=g.B8(V.mM)&&!V.mM.C;if(V.mM.FB&&(Lx(V.mM)||V.mM.n8==="shortspage"||eQ(V.mM)||d)&&!r.S){r.S=!0;r.C=V.clientPlaybackNonce;g.kt("TIMING_ACTION")||oq("TIMING_ACTION",r.yH.csiPageType);r.yH.csiServiceName&&oq("CSI_SERVICE_NAME",r.yH.csiServiceName);if(r.G){d=r.G.nw();for(var a=g.H(Object.keys(d)),f=a.next();!f.done;f=a.next())f=f.value,Q2(f,d[f],r.timerName);d=g.I6(Lnp)(r.G.mQ);g.mI(d,r.timerName);d=r.G;d.X={};d.mQ={}}g.mI({playerInfo:{visibilityState:g.I6(lZh)()},playerType:"LATENCY_PLAYER_HTML5"}, r.timerName);r.W!==V.clientPlaybackNonce||Number.isNaN(r.X)||(pq("_start",r.timerName)?I=g.I6(BS)("_start",r.timerName)+r.X:g.gj(new g.ox("attempted to log gapless pbs before CSI timeline started",{cpn:V.clientPlaybackNonce})));I&&!pq("pbs",r.timerName)&&xB(r,I)}}; xB=function(r,V,I){Q2("pbs",V!=null?V:(0,g.m)(),I!=null?I:r.timerName)}; YWX=function(r,V,I,d,a,f,e,n){V=(V===d?"video":"ad")+"_to_"+(I===d?"video":"ad");if(V!=="video_to_ad"||e!=null&&e.bL){e=V==="ad_to_video"?e:a;d=e==null?void 0:e.Fo;var D={};if(a==null?0:a.C)D.cttAuthInfo={token:a.C,videoId:a.videoId};f&&(D.startTime=f);uC(V,D);var x,E,N;a={targetVideoId:(x=a==null?void 0:a.videoId)!=null?x:"empty_video",targetCpn:I,adVideoId:(E=e==null?void 0:e.videoId)!=null?E:"empty_video",adClientPlaybackNonce:(N=d==null?void 0:d.cpn)!=null?N:e==null?void 0:e.clientPlaybackNonce}; d&&(a.adBreakType=d.adBreakType,a.adType=d.adType);g.mI(a,V);xB(r,n,V)}}; Ek=function(r){m0O();Q1i();r.timerName=""}; nJh=function(r){if(r.G){var V=r.G;V.X={};V.mQ={}}r.S=!1;r.W=void 0;r.X=NaN}; j_i=function(r,V){g.NK.call(this);this.mM=r;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.G=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.V={};this.X=0;if(r=V.session_data)this.sessionData=a6(r,"&");this.index=Math.max(0,Number(V.index)||0);this.loop=!!V.loop;this.startSeconds=Number(V.startSeconds)||0;this.title=V.playlist_title||"";this.description=V.playlist_description||"";this.author= V.author||V.playlist_author||"";V.video_id&&(this.items[this.index]=V);if(r=V.api)typeof r==="string"&&r.length===16?V.list="PL"+r:V.playlist=r;if(r=V.list)switch(V.listType){case "user_uploads":this.listId=new Ki("UU","PLAYER_"+r);break;default:var I=V.playlist_length;I&&(this.length=Number(I)||0);this.listId=g.RU(r);if(r=V.video)this.items=r.slice(0),this.loaded=!0}else if(V.playlist){r=V.playlist.toString().split(",");this.index>0&&(this.items=[]);r=g.H(r);for(I=r.next();!I.done;I=r.next())(I= I.value)&&this.items.push({video_id:I});this.length=this.items.length;if(r=V.video)this.items=r.slice(0),this.loaded=!0}this.setShuffle(!!V.shuffle);if(r=V.suggestedQuality)this.quality=r;this.V=bL(V,"playlist_");this.S=(V=V.thumbnail_ids)?V.split(","):[]}; DhX=function(r){return!!(r.playlist||r.list||r.api)}; xhS=function(r){var V=r.index+1;return V>=r.length?0:V}; EJO=function(r){var V=r.index-1;return V<0?r.length-1:V}; g.NZ=function(r,V,I,d){V=V!==void 0?V:r.index;V=r.items&&V in r.items?r.items[r.order[V]]:null;var a=null;V&&(I&&(V.autoplay="1"),d&&(V.autonav="1"),a=new g.qC(r.mM,V),g.S(r,a),a.RH=!0,a.startSeconds=r.startSeconds||a.clipStart||0,r.listId&&(a.playlistId=r.listId.toString()));return a}; N5X=function(r,V){r.index=g.yv(V,0,r.length-1);r.startSeconds=0}; s_v=function(r,V){if(V.video&&V.video.length){r.title=V.title||"";r.description=V.description;r.views=V.views;r.likes=V.likes;r.dislikes=V.dislikes;r.author=V.author||"";var I=V.loop;I&&(r.loop=I);I=g.NZ(r);r.items=[];for(var d=g.H(V.video),a=d.next();!a.done;a=d.next())if(a=a.value)a.video_id=a.encrypted_id,r.items.push(a);r.length=r.items.length;(V=V.index)?r.index=V:r.findIndex(I);r.setShuffle(!1);r.loaded=!0;r.X++;r.G&&r.G()}}; MdZ=function(r,V){var I,d,a,f,e,n,D;return g.L(function(x){if(x.X==1){I=g.DR();var E=r.N(),N={context:g.DL(r),playbackContext:{contentPlaybackContext:{ancestorOrigins:E.ancestorOrigins}}},c=E.getWebPlayerContextConfig();if(c==null?0:c.encryptedHostFlags)N.playbackContext.contentPlaybackContext.encryptedHostFlags=c.encryptedHostFlags;if(c==null?0:c.hideInfo)N.playerParams={showinfo:!1};E=E.embedConfig;c=V.docid||V.video_id||V.videoId||V.id;if(!c){c=V.raw_embedded_player_response;if(!c){var z=V.embedded_player_response; z&&(c=JSON.parse(z))}if(c){var M,w,b,W,K,F;c=((F=g.U((M=c)==null?void 0:(w=M.embedPreview)==null?void 0:(b=w.thumbnailPreviewRenderer)==null?void 0:(W=b.playButton)==null?void 0:(K=W.buttonRenderer)==null?void 0:K.navigationEndpoint,g.dt))==null?void 0:F.videoId)||null}else c=null}M=(M=c)?M:void 0;w=r.playlistId?r.playlistId:V.list;b=V.listType;if(w){var l;b==="user_uploads"?l={username:w}:l={playlistId:w};cqX(E,M,V,l);N.playlistRequest=l}else V.playlist?(l={templistVideoIds:V.playlist.toString().split(",")}, cqX(E,M,V,l),N.playlistRequest=l):M&&(l={videoId:M},E&&(l.serializedThirdPartyEmbedConfig=E),N.singleVideoRequest=l);d=N;a=g.aE(zxA);g.wA(x,2);return g.G(x,g.k_(I,d,a),4)}if(x.X!=2)return f=x.G,e=r.N(),V.raw_embedded_player_response=f,e.GQ=N1(V,g.FG(e)),e.S=e.GQ==="EMBEDDED_PLAYER_MODE_PFL",f&&(n=f,n.trackingParams&&S9(n.trackingParams)),x.return(new g.qC(e,V));D=g.th(x);D instanceof Error||(D=Error("b259802748"));g.BG(D);return x.return(r)})}; cqX=function(r,V,I,d){I.index&&(d.playlistIndex=String(Number(I.index)+1));d.videoId=V?V:"";r&&(d.serializedThirdPartyEmbedConfig=r)}; g.cD=function(r,V){sk.get(r);sk.set(r,V)}; g.zu=function(r){g.NK.call(this);this.loaded=!1;this.player=r}; Cyr=function(){this.X=[];this.G=[]}; g.dz=function(r,V){return V?r.G.concat(r.X):r.G}; g.MZ=function(r,V){switch(V.kind){case "asr":T5Z(V,r.X);break;default:T5Z(V,r.G)}}; T5Z=function(r,V){g.z6(V,function(I){return r.equals(I)})||V.push(r)}; g.CY=function(r){g.X.call(this);this.zQ=r;this.X=new Cyr;this.Y=null;this.W=[];this.j=[]}; g.Tu=function(r,V,I){g.CY.call(this,r);this.videoData=V;this.audioTrack=I;this.G=null;this.S=!1;this.W=V.k$;this.j=V.pN;this.S=g.S3(V)}; g.HD=function(r,V){return YY(r.info.mimeType)?V?r.info.itag===V:!0:!1}; g.HdX=function(r,V){if(r.G!=null&&g.ti(V.N())&&!r.G.isManifestless&&r.G.G.rawcc!=null)return!0;if(!r.Tz())return!1;V=!!r.G&&r.G.isManifestless&&Object.values(r.G.G).some(function(I){return g.HD(I,"386")}); r=!!r.G&&!r.G.isManifestless&&g.vYZ(r.G);return V||r}; g.wz=function(r,V,I,d,a,f){g.CY.call(this,r);this.videoId=I;this.ek=a;this.eventId=f;this.C={};this.G=null;r=d||g.n5(V).hl||"";r=r.split("_").join("-");this.S=jJ(V,{hl:r})}; wWZ=function(r,V){return V?{Gy:r.Gy&&V.Gy,sync:r.sync&&V.sync,streaming:r.streaming&&V.streaming}:r}; OdU=function(r,V,I){return Wp(bdZ(V,I),Kw(function(d){return function f(){return Jh(f,function(e){if(e.X==1){g.Oi(e,2);try{return e.return(new WebAssembly.Instance(d,r))}catch(n){g.gj(n)}return TS(e,R$(WebAssembly.instantiate(d,r)),4)}if(e.X!=2)return e.return(e.G);g.Ah(e);return g.Fj(e,0)})}()}))}; WyZ=function(r,V){if(!r.G)return V=fetch(V),r.G=Wp(TK(V),function(I){return I.arrayBuffer()}),$N(r.G,function(I){r.G=void 0; I="wasm module fetch failure: "+I;g.gj(Error(I));throw I;}),V}; bdZ=function(r,V){var I=$hj;if(I.X)return I.X;var d=wWZ(I.capabilities,V);I.X=bZ(function(){return I.S(r,d)}); return I.X}; KyA=function(){}; RxZ=function(){var r=this;this.proc_exit=function(){}; this.fd_write=function(V,I,d){if(!r.exports)return 1;V=new Uint32Array(r.exports.memory.buffer,I,d*2);I=[];for(var a=0;a=11;r=r.api.N().L&&lD;return!(!V&&!r)}; m2=function(r,V){return!r.api.isInline()&&!xIr(r,yh(V))&&g.yY(V)}; DIU=function(r){r.Uj.tC();if(r.u0&&r.Q1)r.Q1=!1;else if(!r.api.N().p8&&!r.OZ()){var V=r.api.getPlayerStateObject();g.v(V,2)&&g.Fd(r.api)||r.Hi(V);!r.api.N().DM||V.isCued()||g.v(V,1024)?r.pY():r.d6.isActive()?(r.Ph(),r.d6.stop()):r.d6.start()}}; NyU=function(r,V){var I;if((I=r.api.getVideoData())==null?0:I.mutedAutoplay){var d,a;if((d=V.target)==null?0:(a=d.className)==null?0:a.includes("ytp-info-panel"))return!1}return g.yY(V)&&r.api.isMutedByMutedAutoplay()?(r.api.unMute(),r.api.getPresentingPlayerType()===2&&r.api.playVideo(),V=r.api.getPlayerStateObject(),!g.v(V,4)||g.v(V,8)||g.v(V,2)||r.pY(),!0):!1}; sFO=function(r,V,I){r.api.isFullscreen()?I<1-V&&r.api.toggleFullscreen():I>1+V&&r.api.toggleFullscreen()}; jFO=function(r){var V=vR()&&mg()>=67&&!r.api.N().L;r=r.api.N().disableOrganicUi;return!g.p5("tizen")&&!yi&&!V&&!r}; g.uD=function(r){g.u.call(this,{J:"div",B:[{J:"div",Z:"ytp-bezel-text-wrapper",B:[{J:"div",Z:"ytp-bezel-text",OE:"{{title}}"}]},{J:"div",Z:"ytp-bezel",D:{role:"status","aria-label":"{{label}}"},B:[{J:"div",Z:"ytp-bezel-icon",OE:"{{icon}}"}]}]});this.T=r;this.X=new g.hz(this.show,10,this);r=this.T.U("delhi_modern_web_player")?1E3:500;this.G=new g.hz(this.hide,r,this);g.S(this,this.X);g.S(this,this.G);this.hide()}; vD=function(r,V,I){if(V<=0){I=J2();V="muted";var d=0}else I=I?{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,D:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,D:{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"}}]},d=Math.floor(V),V=d+"volume";pY(r,I,V,d+"%")}; cTv=function(r,V){V=V?{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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"}}]}:z6i();var I=r.T.getPlaybackRate(),d=g.Tj("Speed is $RATE",{RATE:String(I)});pY(r,V,d,I+"x")}; zuX=function(r,V){V=V?"Subtitles/closed captions on":"Subtitles/closed captions off";pY(r,NDA(),V)}; pY=function(r,V,I,d){d=d===void 0?"":d;r.updateValue("label",I===void 0?"":I);r.updateValue("icon",V);g.Is(r.G);r.X.start();r.updateValue("title",d);g.NA(r.element,"ytp-bezel-text-hide",!d)}; MRg=function(r,V){g.u.call(this,{J:"button",Yc:["ytp-button","ytp-cards-button"],D:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.FG(r.N()))},B:[{J:"span",Z:"ytp-cards-button-icon-default",B:[{J:"div",Z:"ytp-cards-button-icon",B:[r.N().U("player_new_info_card_format")?TCA():{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {J:"div",Z:"ytp-cards-button-title",OE:"Info"}]},{J:"span",Z:"ytp-cards-button-icon-shopping",B:[{J:"div",Z:"ytp-cards-button-icon",B:[{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",Z:"ytp-svg-shadow",D:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{J:"path",Z:"ytp-svg-fill",D:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{J:"path",Z:"ytp-svg-shadow-fill",D:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{J:"div", Z:"ytp-cards-button-title",OE:"Shopping"}]}]});this.T=r;this.X=V;this.G=null;this.fade=new g.eO(this,250,!0,100);g.S(this,this.fade);g.NA(this.X,"ytp-show-cards-title",g.FG(r.N()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Dv(!0)}; CNX=function(r,V){g.u.call(this,{J:"div",Z:"ytp-cards-teaser",B:[{J:"div",Z:"ytp-cards-teaser-box"},{J:"div",Z:"ytp-cards-teaser-text",B:r.N().U("player_new_info_card_format")?[{J:"button",Z:"ytp-cards-teaser-info-icon",D:{"aria-label":"Show cards","aria-haspopup":"true"},B:[TCA()]},{J:"span",Z:"ytp-cards-teaser-label",OE:"{{text}}"},{J:"button",Z:"ytp-cards-teaser-close-button",D:{"aria-label":"Close"},B:[g.KB()]}]:[{J:"span",Z:"ytp-cards-teaser-label",OE:"{{text}}"}]}]});var I=this;this.T=r;this.qY= V;this.fade=new g.eO(this,250,!1,250);this.G=null;this.L=new g.hz(this.Th0,300,this);this.C=new g.hz(this.s8s,2E3,this);this.Y=[];this.X=null;this.j=new g.hz(function(){I.element.style.margin="0"},250); this.onClickCommand=this.S=null;g.S(this,this.fade);g.S(this,this.L);g.S(this,this.C);g.S(this,this.j);r.N().U("player_new_info_card_format")?(g.jN(r.getRootNode(),"ytp-cards-teaser-dismissible"),this.K(this.Fz("ytp-cards-teaser-close-button"),"click",this.Ca),this.K(this.Fz("ytp-cards-teaser-info-icon"),"click",this.C$),this.K(this.Fz("ytp-cards-teaser-label"),"click",this.C$)):this.listen("click",this.C$);this.K(V.element,"mouseover",this.jd);this.K(V.element,"mouseout",this.Kh);this.K(r,"cardsteasershow", this.OJc);this.K(r,"cardsteaserhide",this.Co);this.K(r,"cardstatechange",this.uR);this.K(r,"presentingplayerstatechange",this.uR);this.K(r,"appresize",this.i9);this.K(r,"onShowControls",this.i9);this.K(r,"onHideControls",this.S0);this.listen("mouseenter",this.WE)}; Tyi=function(r){g.u.call(this,{J:"button",Yc:[qZ.BUTTON,qZ.TITLE_NOTIFICATIONS],D:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},B:[{J:"div",Z:qZ.TITLE_NOTIFICATIONS_ON,D:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},B:[g.ye()]},{J:"div",Z:qZ.TITLE_NOTIFICATIONS_OFF,D:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},B:[{J:"svg",D:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},B:[{J:"path",D:{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=r;this.G=!1;r.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; HKh=function(r,V){r.G=V;r.element.classList.toggle(qZ.NOTIFICATIONS_ENABLED,r.G);var I=r.api.getVideoData();I?(V=V?I.Jh:I.YK)?(r=r.api.va())?oE(r,V):g.BG(Error("No innertube service available when updating notification preferences.")):g.BG(Error("No update preferences command available.")):g.BG(Error("No video data when updating notification preferences."))}; bKr=function(r,V,I){var d=d===void 0?800:d;var a=a===void 0?600:a;var f=document.location.protocol;r=hYr(f+"//"+r+"/signin?context=popup","feature",V,"next",f+"//"+location.hostname+"/post_login");w$S(r,I,d,a)}; w$S=function(r,V,I,d){I=I===void 0?800:I;d=d===void 0?600:d;if(r=g.ac(window,r,"loginPopup","width="+I+",height="+d+",resizable=yes,scrollbars=yes"))z8v(function(){V()}),r.moveTo((screen.width-I)/2,(screen.height-d)/2)}; g.PD=function(r,V,I,d,a,f,e,n,D,x,E,N){r=r.charAt(0)+r.substring(1).toLowerCase();I=I.charAt(0)+I.substring(1).toLowerCase();if(V==="0"||V==="-1")V=null;if(d==="0"||d==="-1")d=null;var c=E.N(),z=c.userDisplayName&&g.B8(c);g.u.call(this,{J:"div",Yc:["ytp-button","ytp-sb"],B:[{J:"div",Z:"ytp-sb-subscribe",D:z?{title:g.Tj("Subscribe as $USER_NAME",{USER_NAME:c.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Y9(c),"data-tooltip-opaque":String(g.FG(c)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},B:[{J:"div",Z:"ytp-sb-text",B:[{J:"div",Z:"ytp-sb-icon"},r]},V?{J:"div",Z:"ytp-sb-count",OE:V}:""]},{J:"div",Z:"ytp-sb-unsubscribe",D:z?{title:g.Tj("Subscribed as $USER_NAME",{USER_NAME:c.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":Y9(c),"data-tooltip-opaque":String(g.FG(c)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},B:[{J:"div",Z:"ytp-sb-text",B:[{J:"div",Z:"ytp-sb-icon"},I]},d?{J:"div",Z:"ytp-sb-count", OE:d}:""]}],D:{"aria-live":"polite"}});var M=this;this.channelId=e;this.T=E;this.S=N;var w=this.Fz("ytp-sb-subscribe"),b=this.Fz("ytp-sb-unsubscribe");f&&g.jN(this.element,"ytp-sb-classic");if(a){n?this.G():this.X();var W=function(){if(c.bL){var F=M.channelId;if(D||x){var l={c:F};var B;g.mB.isInitialized()&&(B=AiA(l));l=B||"";if(B=E.getVideoData())if(B=B.subscribeCommand){var P=E.va();P?(oE(P,B,{botguardResponse:l,feature:D}),E.Bs("SUBSCRIBE",F)):g.BG(Error("No innertube service available when updating subscriptions."))}else g.BG(Error("No subscribe command in videoData.")); else g.BG(Error("No video data available when updating subscription."))}b.focus();b.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}else bKr(g.P8(M.T.N()),"sb_button",M.Y)},K=function(){var F=M.channelId; if(D||x){var l=g.J(E.getVideoData());oE(g.J(E.va()),l.unsubscribeCommand,{feature:D});E.Bs("UNSUBSCRIBE",F)}w.focus();w.removeAttribute("aria-hidden");b.setAttribute("aria-hidden","true")}; this.K(w,"click",W);this.K(b,"click",K);this.K(w,"keypress",function(F){F.keyCode===13&&W(F)}); this.K(b,"keypress",function(F){F.keyCode===13&&K(F)}); this.K(E,"SUBSCRIBE",this.G);this.K(E,"UNSUBSCRIBE",this.X);this.S&&z&&(qjj(E),y_(E,w,this),y_(E,b,this))}else g.jN(w,"ytp-sb-disabled"),g.jN(b,"ytp-sb-disabled")}; $IO=function(r){g.u.call(this,{J:"div",Z:"ytp-title-channel",B:[{J:"div",Z:"ytp-title-beacon"},{J:"a",Z:"ytp-title-channel-logo",D:{href:"{{channelLink}}",target:r.N().V,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{J:"div",Z:"ytp-title-expanded-overlay",D:{"aria-hidden":"{{flyoutUnfocusable}}"},B:[{J:"div",Z:"ytp-title-expanded-heading",B:[{J:"div",Z:"ytp-title-expanded-title",B:[{J:"a",OE:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:r.N().V,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{J:"div",Z:"ytp-title-expanded-subtitle",OE:"{{expandedSubtitle}}",D:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var V=this;this.api=r;this.channel=this.Fz("ytp-title-channel");this.X=this.Fz("ytp-title-channel-logo");this.channelName=this.Fz("ytp-title-expanded-title");this.C=this.Fz("ytp-title-expanded-overlay");this.S=this.G=this.subscribeButton=null;this.Y=!1;r.createClientVe(this.X,this,36925);r.createClientVe(this.channelName,this, 37220);g.FG(this.api.N())&&OKg(this);this.K(r,"videodatachange",this.UE);this.K(r,"videoplayerreset",this.UE);this.K(this.channelName,"click",function(I){V.api.logClick(V.channelName);g.ac(window,WXj(V));I.preventDefault()}); this.K(this.X,"click",this.cIH);this.UE()}; KXr=function(r){if(!r.api.N().gH){var V=g.J(r.api.getVideoData()),I=new g.PD("Subscribe",null,"Subscribed",null,!0,!1,V.Sz,V.subscribed,"channel_avatar",null,r.api,!0);r.api.createServerVe(I.element,r);var d;r.api.setTrackingParams(I.element,((d=V.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);r.K(I.element,"click",function(){r.api.logClick(I.element)}); r.subscribeButton=I;g.S(r,r.subscribeButton);r.subscribeButton.Xz(r.C);r.subscribeButton.hide();var a=new Tyi(r.api);r.G=a;g.S(r,a);a.Xz(r.C);a.hide();r.K(r.api,"SUBSCRIBE",function(){V.zK&&(a.show(),r.api.logVisibility(a.element,!0))}); r.K(r.api,"UNSUBSCRIBE",function(){V.zK&&(a.hide(),r.api.logVisibility(a.element,!1),HKh(a,!1))})}}; OKg=function(r){var V=r.api.N();KXr(r);r.updateValue("flyoutUnfocusable","true");r.updateValue("channelTitleFocusable","-1");r.updateValue("shouldHideExpandedTitleForA11y","true");r.updateValue("shouldHideExpandedSubtitleForA11y","true");V.X||V.Ws||(r.K(r.channel,"mouseenter",r.N6),r.K(r.channel,"mouseleave",r.AQ),r.K(r.channel,"focusin",r.N6),r.K(r.channel,"focusout",function(I){r.channel.contains(I.relatedTarget)||r.AQ()})); r.S=new g.hz(function(){r.isExpanded()&&(r.api.logVisibility(r.channelName,!1),r.subscribeButton&&(r.subscribeButton.hide(),r.api.logVisibility(r.subscribeButton.element,!1)),r.G&&(r.G.hide(),r.api.logVisibility(r.G.element,!1)),r.channel.classList.remove("ytp-title-expanded"),r.channel.classList.add("ytp-title-show-collapsed"))},500); g.S(r,r.S);r.K(r.channel,Rug,function(){tRS(r)}); r.K(r.api,"onHideControls",r.W8);r.K(r.api,"appresize",r.W8);r.K(r.api,"fullscreentoggled",r.W8)}; tRS=function(r){r.channel.classList.remove("ytp-title-show-collapsed");r.channel.classList.remove("ytp-title-show-expanded")}; yTv=function(r){var V=r.api.getPlayerSize();return g.FG(r.api.N())&&V.width>=524}; WXj=function(r){var V=r.api.N(),I=g.J(r.api.getVideoData()),d=g.ni(V)+I.Qa;g.d1(I)&&(d="https://music.youtube.com"+I.Qa);if(!g.FG(V))return d;V={};g.zm(r.api,"addEmbedsConversionTrackingParams",[V]);return g.Ly(d,V)}; o8=function(r){var V=g.h6({"aria-haspopup":"true"});g.k6.call(this,V,r);this.listen("keydown",this.G)}; kB=function(r,V){r.element.setAttribute("aria-haspopup",String(V))}; ATr=function(r,V){g.u.call(this,{J:"div",Z:"ytp-user-info-panel",D:{"aria-label":"User info"},B:r.N().bL&&!r.U("embeds_web_always_enable_signed_out_state")?[{J:"div",Z:"ytp-user-info-panel-icon",OE:"{{icon}}"},{J:"div",Z:"ytp-user-info-panel-content",B:[{J:"div",Z:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable}}",role:"text"},OE:"{{watchingAsUsername}}"},{J:"div",Z:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable2}}",role:"text"},OE:"{{watchingAsEmail}}"}]}]:[{J:"div",Z:"ytp-user-info-panel-icon", OE:"{{icon}}"},{J:"div",Z:"ytp-user-info-panel-content",B:[{J:"div",B:[{J:"text",D:{tabIndex:"{{userInfoFocusable}}"},OE:"Signed out"}]},{J:"div",Z:"ytp-user-info-panel-login",B:[{J:"a",D:{tabIndex:"{{userInfoFocusable2}}",role:"button"},OE:r.N().gH?"":"Sign in on YouTube"}]}]}]});this.zQ=r;this.G=V;r.N().bL||r.N().gH||this.K(this.Fz("ytp-user-info-panel-login"),"click",this.U1);this.closeButton=new g.u({J:"button",Yc:["ytp-collapse","ytp-button"],D:{title:"Close"},B:[g.LB()]});this.closeButton.Xz(this.element); g.S(this,this.closeButton);this.K(window,"blur",this.hide);this.K(document,"click",this.z1);this.UE()}; FXv=function(r,V,I){g.$Z.call(this,r);this.F_=V;this.Kq=I;this.getVideoUrl=new o8(6);this.rr=new o8(5);this.Dp=new o8(4);this.Qy=new o8(3);this.fG=new g.k6(g.h6({href:"{{href}}",target:this.T.N().V},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.k6(g.h6(),1,"Stats for nerds");this.xe=new g.CB({J:"div",Yc:["ytp-copytext","ytp-no-contextmenu"],D:{draggable:"false",tabindex:"1"},OE:"{{text}}"});this.Yl=new WX(this.T,this.xe);this.fE=this.hE=null;g.FG(this.T.N())&&(this.closeButton= new g.u({J:"button",Yc:["ytp-collapse","ytp-button"],D:{title:"Close"},B:[g.LB()]}),g.S(this,this.closeButton),this.closeButton.Xz(this.element),this.closeButton.listen("click",this.Rp,this));g.FG(this.T.N())&&(this.GE=new g.k6(g.h6(),8,"Account"),g.S(this,this.GE),this.LF(this.GE,!0),this.GE.listen("click",this.DGM,this),r.createClientVe(this.GE.element,this.GE,137682));this.T.N().sX&&(this.lP=new jW("Loop",7),g.S(this,this.lP),this.LF(this.lP,!0),this.lP.listen("click",this.YkM,this),r.createClientVe(this.lP.element, this.lP,28661));g.S(this,this.getVideoUrl);this.LF(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.F_C,this);r.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.S(this,this.rr);this.LF(this.rr,!0);this.rr.listen("click",this.GP0,this);r.createClientVe(this.rr.element,this.rr,28660);g.S(this,this.Dp);this.LF(this.Dp,!0);this.Dp.listen("click",this.mJQ,this);r.createClientVe(this.Dp.element,this.Dp,28658);g.S(this,this.Qy);this.LF(this.Qy,!0);this.Qy.listen("click",this.bFH, this);g.S(this,this.fG);this.LF(this.fG,!0);this.fG.listen("click",this.fgs,this);g.S(this,this.showVideoInfo);this.LF(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.VxQ,this);g.S(this,this.xe);this.xe.listen("click",this.io0,this);g.S(this,this.Yl);V=document.queryCommandSupported&&document.queryCommandSupported("copy");qiX("Chromium")>=43&&(V=!0);qiX("Firefox")<=40&&(V=!1);V&&(this.hE=new g.u({J:"textarea",Z:"ytp-html5-clipboard",D:{readonly:"",tabindex:"-1"}}),g.S(this,this.hE), this.hE.Xz(this.element));var d;(d=this.GE)==null||d.setIcon(OHi());var a;(a=this.lP)==null||a.setIcon({J:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.Qy.setIcon({J:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{"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.fG.setIcon(MTX());this.showVideoInfo.setIcon(COZ());this.K(r,"onLoopChange",this.onLoopChange);this.K(r,"videodatachange",this.onVideoDataChange);G5j(this);this.qU(g.J(this.T.getVideoData()))}; hW=function(r,V){var I=!1;if(r.hE){var d=r.hE.element;d.value=V;d.select();try{I=document.execCommand("copy")}catch(a){}}I?r.F_.Co():(r.xe.ys(V,"text"),g.tf(r.F_,r.Yl),sH(r.xe.element),r.hE&&(r.hE=null,G5j(r)));return I}; G5j=function(r){var V=!!r.hE;g.of(r.Qy,V?"Copy debug info":"Get debug info");kB(r.Qy,!V);g.of(r.Dp,V?"Copy embed code":"Get embed code");kB(r.Dp,!V);g.of(r.getVideoUrl,V?"Copy video URL":"Get video URL");kB(r.getVideoUrl,!V);g.of(r.rr,V?"Copy video URL at current time":"Get video URL at current time");kB(r.rr,!V);r.Dp.setIcon(V?sYi():null);r.getVideoUrl.setIcon(V?RD():null);r.rr.setIcon(V?RD():null)}; lVi=function(r){return g.FG(r.T.N())?r.GE:r.lP}; JTX=function(r,V){g.R4.call(this,r);this.Kq=V;this.Y=new g.Su(this);this.QH=new g.hz(this.FEs,1E3,this);this.kc=this.S=null;g.S(this,this.Y);g.S(this,this.QH);V=this.T.N();r.createClientVe(this.element,this,28656);g.jN(this.element,"ytp-contextmenu");this.T.N().experiments.uL("delhi_modern_web_player")&&g.VO(V)&&g.jN(this.element,"ytp-delhi-modern-contextmenu");LXA(this);this.hide()}; LXA=function(r){g.lQ(r.Y);var V=r.T.N();V.playerStyle==="gvn"||V.X||V.Ws||(V=r.T.gs(),r.Y.K(V,"contextmenu",r.BHz),r.Y.K(V,"touchstart",r.onTouchStart,null,!0),r.Y.K(V,"touchmove",r.tM,null,!0),r.Y.K(V,"touchend",r.tM,null,!0))}; ZKr=function(r){r.T.isFullscreen()?g.g1(r.T,r.element,10):r.Xz(vF(r).body)}; rM=function(r,V,I){I=I===void 0?240:I;g.u.call(this,{J:"button",Yc:["ytp-button","ytp-copylink-button"],D:{title:"{{title-attr}}","data-tooltip-opaque":String(g.FG(r.N()))},B:[{J:"div",Z:"ytp-copylink-icon",OE:"{{icon}}"},{J:"div",Z:"ytp-copylink-title",OE:"Copy link",D:{"aria-hidden":"true"}}]});this.api=r;this.G=V;this.X=I;this.visible=!1;this.tooltip=this.G.lZ();V=r.N();this.tooltip.element.setAttribute("aria-live","polite");g.NA(this.element,"ytp-show-copylink-title",g.FG(V));r.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.K(r,"videodatachange",this.UE);this.K(r,"videoplayerreset",this.UE);this.K(r,"appresize",this.UE);this.UE();this.addOnDisposeCallback(g.t6(this.tooltip,this.element))}; X$v=function(r){var V=r.api.N(),I=g.J(r.api.getVideoData()),d=r.api.gs().getPlayerSize().width;V=V.S;return!!I.videoId&&d>=r.X&&I.KC&&!g.V_(I)&&!r.api.isEmbedsShortsMode()&&!V}; Byh=function(r){r.updateValue("icon",ON());if(r.api.N().X)r.tooltip.Qk(r.element,"Link copied to clipboard");else{r.updateValue("title-attr","Link copied to clipboard");r.tooltip.Q_();r.tooltip.Qk(r.element);var V=r.listen("mouseleave",function(){r.pF(V);r.UE();r.tooltip.L_()})}}; gcg=function(r,V){return g.L(function(I){if(I.X==1)return g.wA(I,2),g.G(I,navigator.clipboard.writeText(V),4);if(I.X!=2)return I.return(!0);g.th(I);var d=I.return,a=!1,f=g.rX("TEXTAREA");f.value=V;f.setAttribute("readonly","");var e=r.api.getRootNode();e.appendChild(f);if(oY){var n=window.getSelection();n.removeAllRanges();var D=g.J(document.createRange());D.selectNodeContents(f);n.addRange(D);f.setSelectionRange(0,V.length)}else f.select();try{a=document.execCommand("copy")}catch(x){}e.removeChild(f); return d.call(I,a)})}; SRg=function(r){g.u.call(this,{J:"div",Z:"ytp-doubletap-ui-legacy",B:[{J:"div",Z:"ytp-doubletap-fast-forward-ve"},{J:"div",Z:"ytp-doubletap-rewind-ve"},{J:"div",Z:"ytp-doubletap-static-circle",B:[{J:"div",Z:"ytp-doubletap-ripple"}]},{J:"div",Z:"ytp-doubletap-overlay-a11y"},{J:"div",Z:"ytp-doubletap-seek-info-container",B:[{J:"div",Z:"ytp-doubletap-arrows-container",B:[{J:"span",Z:"ytp-doubletap-base-arrow"},{J:"span",Z:"ytp-doubletap-base-arrow"},{J:"span",Z:"ytp-doubletap-base-arrow"}]},{J:"div", Z:"ytp-doubletap-tooltip",B:[{J:"div",Z:"ytp-seek-icon-text-container",B:[{J:"div",Z:"ytp-seek-icon",OE:"{{seekIcon}}"},{J:"div",Z:"ytp-chapter-seek-text-legacy",OE:"{{seekText}}"}]},{J:"div",Z:"ytp-doubletap-tooltip-label",OE:"{{seekTime}}"}]}]}]});this.T=r;this.Y=new g.hz(this.show,10,this);this.X=new g.hz(this.hide,700,this);this.L=this.S=0;this.QH=this.C=!1;this.G=this.Fz("ytp-doubletap-static-circle");g.S(this,this.Y);g.S(this,this.X);this.hide();this.j=this.Fz("ytp-doubletap-fast-forward-ve"); this.V=this.Fz("ytp-doubletap-rewind-ve");this.T.createClientVe(this.j,this,28240);this.T.createClientVe(this.V,this,28239);this.T.logVisibility(this.j,!0);this.T.logVisibility(this.V,!0);this.C=r.U("web_show_cumulative_seek_time");this.QH=r.U("web_center_static_circles")}; iKi=function(r,V){V=g.Tj("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:V.toString()});r.updateValue("seekTime",V)}; UIr=function(r){Ot.call(this,r,!1,!0);this.GQ=[];this.dH=[];this.j=!0;this.badge.element.classList.add("ytp-featured-product");this.n8=new g.u({J:"div",Z:"ytp-featured-product-open-in-new"});g.S(this,this.n8);this.countdownTimer=new g.u({J:"text",Z:"ytp-featured-product-countdown",OE:"{{content}}"});this.countdownTimer.hide();g.S(this,this.countdownTimer);this.X=new g.u({J:"div",Z:"ytp-featured-product-trending",B:[{J:"div",Z:"ytp-featured-product-trending-icon"},{J:"text",Z:"ytp-featured-product-trending-text", OE:"{{trendingOffer}}"}]});this.X.hide();g.S(this,this.X);this.overflowButton=new g.u({J:"button",Yc:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.S(this,this.overflowButton);this.L=new g.u({J:"text",Z:"ytp-featured-product-exclusive-countdown",OE:"{{content}}",D:{id:"exclusiveCountdown","aria-hidden":"true"}});this.L.hide();g.S(this,this.L);this.C=new g.u({J:"div",Z:"ytp-featured-product-exclusive-container",D:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, B:[{J:"div",Z:"ytp-featured-product-exclusive-badge-container",B:[{J:"div",Z:"ytp-featured-product-exclusive-badge",B:[{J:"text",Z:"ytp-featured-product-exclusive-badge-text",OE:"{{exclusive}}",D:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.L]});this.C.hide();g.S(this,this.C);this.banner=new g.u({J:"a",Z:"ytp-featured-product-container",B:[{J:"div",Z:"ytp-featured-product-thumbnail",B:[{J:"img",D:{src:"{{thumbnail}}"}},this.n8]},{J:"div",Z:"ytp-featured-product-details",B:[{J:"text",Z:"ytp-featured-product-title", OE:"{{title}}"},this.T.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",Z:"ytp-featured-product-price-container",D:{"aria-label":"{{priceA11yText}}"},B:[{J:"text",Z:"ytp-featured-product-price-when-promotion-text-enabled",OE:"{{price}}",D:{"aria-hidden":"true"}},{J:"text",Z:"ytp-featured-product-promotion-text",OE:"{{promotionText}}",D:{"aria-hidden":"true"}}]}:{J:"div",D:{"aria-label":"{{priceA11yText}}"},B:[{J:"text",Z:"ytp-featured-product-price",OE:"{{price}}", D:{"aria-hidden":"true"}},{J:"text",Z:"ytp-featured-product-sales-original-price",OE:"{{salesOriginalPrice}}",D:{"aria-hidden":"true"}},{J:"text",Z:"ytp-featured-product-price-drop-reference-price",OE:"{{priceDropReferencePrice}}",D:{"aria-hidden":"true"}}]},this.T.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",Z:"ytp-featured-product-when-promotion-text-enabled",B:[{J:"text",Z:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",OE:"{{affiliateDisclaimer}}"}, this.X,{J:"text",Z:"ytp-featured-product-vendor-when-promotion-text-enabled",OE:"{{vendor}}"}]}:{J:"div",B:[{J:"text",Z:"ytp-featured-product-affiliate-disclaimer",OE:"{{affiliateDisclaimer}}"},this.T.U("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.C:null,this.X,{J:"text",Z:"ytp-featured-product-vendor",OE:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.S(this,this.banner);this.banner.Xz(this.S.element);this.K(this.T,g.nv("featured_product"),this.E8Q);this.K(this.T, g.jx("featured_product"),this.oy);this.K(this.T,"videodatachange",this.onVideoDataChange);this.K(this.overflowButton.element,"click",this.Z4);this.K(r,"featuredproductdismissed",this.iy)}; QFi=function(r){var V,I;r=(V=r.G)==null?void 0:(I=V.bannerData)==null?void 0:I.itemData;var d,a,f;return(r==null||!r.affiliateDisclaimer)&&(r==null?0:(d=r.exclusivesData)==null?0:d.exclusiveOfferLabelText)&&(r==null?0:(a=r.exclusivesData)==null?0:a.expirationTimestampMs)&&(r==null?0:(f=r.exclusivesData)==null?0:f.exclusiveOfferCountdownText)?!0:!1}; uBh=function(r){var V,I,d,a,f=(V=r.G)==null?void 0:(I=V.bannerData)==null?void 0:(d=I.itemData)==null?void 0:(a=d.exclusivesData)==null?void 0:a.expirationTimestampMs;V=(Number(f)-Date.now())/1E3;if(V>0){if(V<604800){var e,n,D,x;I=(e=r.G)==null?void 0:(n=e.bannerData)==null?void 0:(D=n.itemData)==null?void 0:(x=D.exclusivesData)==null?void 0:x.exclusiveOfferCountdownText;if(I!==void 0)for(e=Date.now(),n=g.H(I),D=n.next();!D.done;D=n.next())if(D=D.value,D!==void 0&&D.text!==void 0&&(x=Number(D.textDisplayStartTimestampMs), !isNaN(x)&&e>=x)){D.insertCountdown?(V=D.text.replace(/\$0/,String(A0({seconds:V}))),r.L.ys(V)):r.L.ys(D.text);r.L.show();break}}var E,N,c,z;r.C.update({exclusive:(E=r.G)==null?void 0:(N=E.bannerData)==null?void 0:(c=N.itemData)==null?void 0:(z=c.exclusivesData)==null?void 0:z.exclusiveOfferLabelText});r.C.show();V1(r);var M;(M=r.M2)==null||M.start()}else mIS(r)}; mIS=function(r){var V;(V=r.M2)==null||V.stop();r.L.hide();r.C.hide();I7(r)}; p$i=function(r){var V,I,d=(V=r.G)==null?void 0:(I=V.bannerData)==null?void 0:I.itemData;return r.T.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(d==null||!d.priceReplacementText)&&(d==null?0:d.promotionText)?d==null?void 0:d.promotionText.content:null}; vcA=function(r){var V,I,d=(V=r.G)==null?void 0:(I=V.bannerData)==null?void 0:I.itemData,a,f;if(!(d!=null&&d.priceReplacementText||r.T.U("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(d==null?0:(a=d.dealsData)==null?0:(f=a.sales)==null?0:f.originalPrice)){var e,n;return d==null?void 0:(e=d.dealsData)==null?void 0:(n=e.sales)==null?void 0:n.originalPrice}return null}; qRA=function(r){var V,I,d=(V=r.G)==null?void 0:(I=V.bannerData)==null?void 0:I.itemData,a,f,e,n;if(!((d==null?0:d.priceReplacementText)||r.T.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(d==null?0:(a=d.dealsData)==null?0:(f=a.sales)==null?0:f.originalPrice))&&(d==null?0:(e=d.dealsData)==null?0:(n=e.priceDrop)==null?0:n.referencePrice)){var D,x;return d==null?void 0:(D=d.dealsData)==null?void 0:(x=D.priceDrop)==null?void 0:x.referencePrice}return null}; PNi=function(r){var V,I,d=(V=r.G)==null?void 0:(I=V.bannerData)==null?void 0:I.itemData;if(d==null?0:d.priceReplacementText)return d==null?void 0:d.priceReplacementText;if((d==null?0:d.promotionText)&&r.T.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var a;return(d==null?void 0:d.price)+" "+(d==null?void 0:(a=d.promotionText)==null?void 0:a.content)}var f,e;if(d==null?0:(f=d.dealsData)==null?0:(e=f.sales)==null?0:e.originalPrice){var n,D;return d==null?void 0:(n=d.dealsData)== null?void 0:(D=n.sales)==null?void 0:D.salesPriceAccessibilityLabel}var x,E;if(d==null?0:(x=d.dealsData)==null?0:(E=x.priceDrop)==null?0:E.referencePrice){var N,c;return(d==null?void 0:d.price)+" "+(d==null?void 0:(N=d.dealsData)==null?void 0:(c=N.priceDrop)==null?void 0:c.referencePrice)}return d==null?void 0:d.price}; oci=function(r){if(r.T.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var V,I,d;return r.X.Hp?null:(V=r.G)==null?void 0:(I=V.bannerData)==null?void 0:(d=I.itemData)==null?void 0:d.vendorName}var a,f,e,n,D,x;return r.X.Hp||r.C.Hp||((a=r.G)==null?0:(f=a.bannerData)==null?0:(e=f.itemData)==null?0:e.affiliateDisclaimer)?null:(n=r.G)==null?void 0:(D=n.bannerData)==null?void 0:(x=D.itemData)==null?void 0:x.vendorName}; hui=function(r,V){dM(r);if(V){var I=g.e3.getState().entities;I=ad(I,"featuredProductsEntity",V);if(I!=null&&I.productsData){V=[];I=g.H(I.productsData);for(var d=I.next();!d.done;d=I.next()){d=d.value;var a=void 0;if((a=d)!=null&&a.identifier&&d.featuredSegments){r.GQ.push(d);var f=void 0;a=g.H((f=d)==null?void 0:f.featuredSegments);for(f=a.next();!f.done;f=a.next()){var e=f.value;f=k5r(e.startTimeSec);f!==void 0&&(e=k5r(e.endTimeSec),V.push(new g.ex(f*1E3,e===void 0?0x7ffffffffffff:e*1E3,{id:d.identifier, namespace:"featured_product"})))}}}r.T.Dg(V)}}}; I7=function(r){if(r.trendingOfferEntityKey){var V=g.e3.getState().entities;if(V=ad(V,"trendingOfferEntity",r.trendingOfferEntityKey)){var I,d,a;V.encodedSkuId!==((I=r.G)==null?void 0:(d=I.bannerData)==null?void 0:(a=d.itemData)==null?void 0:a.encodedOfferSkuId)?V1(r):(r.X.update({trendingOffer:V.shortLabel+" \u2022 "+V.countLabel}),r.X.show(),r.banner.update({vendor:oci(r)}))}else V1(r)}else V1(r)}; V1=function(r){r.X.hide();r.banner.update({vendor:oci(r)})}; dM=function(r){r.GQ=[];r.oy();r.T.Zg("featured_product")}; rni=function(r){var V,I,d,a,f=(V=r.G)==null?void 0:(I=V.bannerData)==null?void 0:(d=I.itemData)==null?void 0:(a=d.hiddenProductOptions)==null?void 0:a.dropTimestampMs;V=(Number(f)-Date.now())/1E3;r.countdownTimer.ys(A0({seconds:V}));if(V>0){var e;(e=r.X_)==null||e.start()}}; Vmg=function(r){var V;(V=r.X_)==null||V.stop();r.countdownTimer.hide()}; k5r=function(r){if(r!==void 0&&r.trim()!==""&&(r=Math.trunc(Number(r.trim())),!(isNaN(r)||r<0)))return r}; e5X=function(r,V,I){g.u.call(this,{J:"div",Yc:["ytp-info-panel-action-item"],B:[{J:"div",Z:"ytp-info-panel-action-item-disclaimer",OE:"{{disclaimer}}"},{J:"a",Yc:["ytp-info-panel-action-item-button","ytp-button"],D:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},B:[{J:"div",Z:"ytp-info-panel-action-item-icon",OE:"{{icon}}"},{J:"div",Z:"ytp-info-panel-action-item-label",OE:"{{label}}"}]}]});this.T=r;this.G=I;this.disclaimer=this.Fz("ytp-info-panel-action-item-disclaimer");this.button= this.Fz("ytp-info-panel-action-item-button");this.IL=!1;this.T.createServerVe(this.element,this,!0);this.listen("click",this.onClick);r="";I=g.U(V==null?void 0:V.onTap,ic);var d=g.U(I,g.im);this.IL=!1;d?(r=d.url||"",r.startsWith("//")&&(r="https:"+r),this.IL=!0,g.kr(this.button,g.Pt(r))):(d=g.U(I,IIS))&&!this.G?((r=d.phoneNumbers)&&r.length>0?(r="sms:"+r[0],d.messageText&&(r+="?&body="+encodeURI(d.messageText))):r="",this.IL=!0,g.kr(this.button,g.Pt(r,[dvp]))):(I=g.U(I,aIr))&&!this.G&&(r=I.phoneNumber? "tel:"+I.phoneNumber:"",this.IL=!0,g.kr(this.button,g.Pt(r,[fIg])));var a;if(I=(a=V.disclaimerText)==null?void 0:a.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:(f=V.bodyText)==null?void 0:f.content,icon:A2(),disclaimer:I})}else{this.disclaimer.style.display="none";var e;this.update({label:(e=V.bodyText)==null?void 0:e.content,icon:A2()})}this.T.setTrackingParams(this.element,V.trackingParams||null);this.IL&&(this.X={externalLinkData:{url:r}})}; Ybv=function(r,V){var I=sN();g.p8.call(this,r,{J:"div",Z:"ytp-info-panel-detail-skrim",B:[{J:"div",Z:"ytp-info-panel-detail",D:{role:"dialog",id:I},B:[{J:"div",Z:"ytp-info-panel-detail-header",B:[{J:"div",Z:"ytp-info-panel-detail-title",OE:"{{title}}"},{J:"button",Yc:["ytp-info-panel-detail-close","ytp-button"],D:{"aria-label":"Close"},B:[g.KB()]}]},{J:"div",Z:"ytp-info-panel-detail-body",OE:"{{body}}"},{J:"div",Z:"ytp-info-panel-detail-items"}]}]},250);this.G=V;this.items=this.Fz("ytp-info-panel-detail-items"); this.S=new g.Su(this);this.itemData=[];this.Y=I;this.K(this.Fz("ytp-info-panel-detail-close"),"click",this.Co);this.K(this.Fz("ytp-info-panel-detail-skrim"),"click",this.Co);this.K(this.Fz("ytp-info-panel-detail"),"click",function(d){d.stopPropagation()}); g.S(this,this.S);this.T.createServerVe(this.element,this,!0);this.K(r,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",r.getVideoData());this.hide()}; nHX=function(r,V){r=g.H(r.itemData);for(var I=r.next();!I.done;I=r.next())I=I.value,I.T.logVisibility(I.element,V)}; xvi=function(r,V){g.u.call(this,{J:"div",Z:"ytp-info-panel-preview",D:{"aria-live":"assertive","aria-atomic":"true","aria-owns":V.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.FG(r.N()))},B:[{J:"div",Z:"ytp-info-panel-preview-text",OE:"{{text}}"},{J:"div",Z:"ytp-info-panel-preview-chevron",OE:"{{chevron}}"}]});var I=this;this.T=r;this.Lq=this.G=this.videoId=null;this.S=this.showControls=this.X=!1;this.K(this.element,"click",function(){r.logClick(I.element);r.OZ();qJ(V)}); this.fade=new g.eO(this,250,!1,100);g.S(this,this.fade);this.T.createServerVe(this.element,this,!0);this.K(r,"videodatachange",this.onVideoDataChange);this.K(r,"presentingplayerstatechange",this.dg);this.K(this.T,"paidcontentoverlayvisibilitychange",this.EQ);this.K(this.T,"infopaneldetailvisibilitychange",this.EQ);var d=r.getVideoData()||{};jph(d)&&Dvh(this,d);this.K(r,"onShowControls",this.jl);this.K(r,"onHideControls",this.Ka)}; Dvh=function(r,V){if(!V.fn||!r.T.Kl()){var I=V.OR||1E4,d=jph(V);r.G?V.videoId&&V.videoId!==r.videoId&&(g.Is(r.G),r.videoId=V.videoId,d?(EHj(r,I,V),r.a8()):(r.Co(),r.G.dispose(),r.G=null)):d&&(V.videoId&&(r.videoId=V.videoId),EHj(r,I,V),r.a8())}}; jph=function(r){var V,I,d,a;return!!((V=r.ZQ)==null?0:(I=V.title)==null?0:I.content)||!!((d=r.ZQ)==null?0:(a=d.bodyText)==null?0:a.content)}; EHj=function(r,V,I){r.G&&r.G.dispose();r.G=new g.hz(r.ATs,V,r);g.S(r,r.G);var d;V=((d=I.ZQ)==null?void 0:d.trackingParams)||null;r.T.setTrackingParams(r.element,V);var a;var f,e;if(I==null?0:(f=I.ZQ)==null?0:(e=f.title)==null?0:e.content){var n;d=(a=I.ZQ)==null?void 0:(n=a.title)==null?void 0:n.content;var D,x;if((D=I.ZQ)==null?0:(x=D.bodyText)==null?0:x.content)d+=" \u2022 ";a=d}else a="";var E,N;I=((E=I.ZQ)==null?void 0:(N=E.bodyText)==null?void 0:N.content)||"";r.update({text:a+I,chevron:g.$5()})}; NaS=function(r,V){r.G&&(g.v(V,8)?(r.X=!0,r.a8(),r.G.start()):(g.v(V,2)||g.v(V,64))&&r.videoId&&(r.videoId=null))}; a7=function(r){var V=null;try{V=r.toLocaleString("en",{style:"percent"})}catch(I){V=r.toLocaleString(void 0,{style:"percent"})}return V}; fl=function(r,V){var I=0;r=g.H(r);for(var d=r.next();!(d.done||d.value.startTime>V);d=r.next())I++;return I===0?I:I-1}; spi=function(r,V){for(var I=0,d=g.H(r),a=d.next();!a.done;a=d.next()){a=a.value;if(V=a.timeRangeStartMillis&&V0?V[0]:null;var I=g.vz("ytp-chrome-bottom"),d=g.vz("ytp-ad-module");r.Y=!(I==null||!I.contains(V));r.j=!(d==null||!d.contains(V));r.V=!(V==null||!V.hasAttribute("data-tooltip-target-fixed"));return V}; GRX=function(r,V,I){if(!r.C){if(V){r.tooltipRenderer=V;V=r.tooltipRenderer.text;var d=!1,a;(V==null?0:(a=V.runs)==null?0:a.length)&&V.runs[0].text&&(r.update({title:V.runs[0].text.toString()}),d=!0);g.oI(r.title,d);V=r.tooltipRenderer.detailsText;a=!1;var f;if((V==null?0:(f=V.runs)==null?0:f.length)&&V.runs[0].text){d=V.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(f>-1)if(r.tooltipRenderer.targetId){V=[];d=d.split("$TARGET_ICON");var e=new g.cL({J:"span",Z:"ytp-promotooltip-details-icon", B:[ynA[r.tooltipRenderer.targetId]]});g.S(r,e);for(var n=[],D=g.H(d),x=D.next();!x.done;x=D.next())x=new g.cL({J:"span",Z:"ytp-promotooltip-details-component",OE:x.value}),g.S(r,x),n.push(x);d.length===2?(V.push(n[0].element),V.push(e.element),V.push(n[1].element)):d.length===1&&(f===0?(V.push(e.element),V.push(n[0].element)):(V.push(n[0].element),V.push(e.element)));f=V.length?V:null}else f=null;else f=d;if(f){if(typeof f!=="string")for(g.dX(r.details),a=g.H(f),f=a.next();!f.done;f=a.next())r.details.appendChild(f.value); else r.update({details:f});a=!0}}g.oI(r.details,a);a=r.tooltipRenderer.acceptButton;f=!1;var E,N,c;((E=g.U(a,g.Q4))==null?0:(N=E.text)==null?0:(c=N.runs)==null?0:c.length)&&g.U(a,g.Q4).text.runs[0].text&&(r.update({acceptButtonText:g.U(a,g.Q4).text.runs[0].text.toString()}),f=!0);g.oI(r.acceptButton,f);E=r.tooltipRenderer.dismissButton;N=!1;var z,M,w;((z=g.U(E,g.Q4))==null?0:(M=z.text)==null?0:(w=M.runs)==null?0:w.length)&&g.U(E,g.Q4).text.runs[0].text&&(r.update({dismissButtonText:g.U(E,g.Q4).text.runs[0].text.toString()}), N=!0);g.oI(r.dismissButton,N)}I&&(r.S=I);r.G=tmO(r);r.L=!1;r.T.N().U("web_player_hide_nitrate_promo_tooltip")||r.Ok(!0);AnZ(r);r.Hp&&!r.QH&&(r.QH=!0,r.m_.Am(0));r.X&&r.T.logVisibility(r.element,r.Hp)}}; EI=function(r){r.Ok(!1);r.X&&r.T.logVisibility(r.element,r.Hp)}; Fwi=function(r){var V,I,d,a=((V=g.U(r.acceptButton,g.Q4))==null?void 0:(I=V.text)==null?void 0:(d=I.runs)==null?void 0:d.length)&&!!g.U(r.acceptButton,g.Q4).text.runs[0].text,f,e,n;V=((f=g.U(r.dismissButton,g.Q4))==null?void 0:(e=f.text)==null?void 0:(n=e.runs)==null?void 0:n.length)&&!!g.U(r.dismissButton,g.Q4).text.runs[0].text;return a||V}; AnZ=function(r){var V;if(!(V=!r.G)){V=r.G;var I=window.getComputedStyle(V);V=I.display==="none"||I.visibility==="hidden"||V.getAttribute("aria-hidden")==="true"}if(V||r.T.isMinimized())r.Ok(!1);else if(V=g.Pe(r.G),V.width&&V.height){r.T.RJ(r.element,r.G);var d=r.T.gs().getPlayerSize().height;I=g.Pe(r.Fz("ytp-promotooltip-container")).height;r.Y?r.element.style.top=d-I-V.height-12+"px":r.V||(d=r.T.gL().height-I-V.height-12,r.element.style.top=d+"px");d=r.Fz("ytp-promotooltip-pointer");var a=g.ve(r.G, r.T.getRootNode()),f=Number(r.element.style.left.replace(/[^\d\.]/g,""));r=r.T.isFullscreen()?18:12;d.style.left=a.x-f+V.width/2-r+"px";d.style.top=I+"px"}else r.Ok(!1)}; N7=function(r){g.u.call(this,{J:"button",Yc:["ytp-replay-button","ytp-button"],D:{title:"Replay"},B:[g.FU()]});this.T=r;this.K(r,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Az(r.getPlayerStateObject());y_(this.T,this.element,this)}; sI=function(r,V){V=V===void 0?240:V;g.u.call(this,{J:"button",Yc:["ytp-button","ytp-search-button"],D:{title:"Search","data-tooltip-opaque":String(g.FG(r.N()))},B:[{J:"div",Z:"ytp-search-icon",OE:"{{icon}}"},{J:"div",Z:"ytp-search-title",OE:"Search"}]});this.api=r;this.X=V;this.visible=!1;this.updateValue("icon",{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},B:[{J:"path",Z:"ytp-svg-fill",D:{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"}}]}); r.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.G();this.K(r,"appresize",this.G);this.K(r,"videodatachange",this.G);y_(r,this.element,this)}; c3=function(){g.u.call(this,{J:"div",Z:"ytp-seek-overlay",B:[{J:"div",Yc:["ytp-seek-overlay-side-container","ytp-seek-overlay-back"],B:[{J:"div",Yc:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-back"]}]},{J:"div",Yc:["ytp-seek-overlay-side-container","ytp-seek-overlay-forward"],B:[{J:"div",Yc:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-forward"]}]}]});this.G=0;this.S=this.Fz("ytp-seek-overlay-arrow-container-back");this.Y=this.Fz("ytp-seek-overlay-arrow-container-forward"); this.hide()}; JnA=function(r,V,I){r.show();lIS(r,V);I!==void 0&&Lwr(r,V,I)}; lIS=function(r,V){var I=new g.cL({J:"svg",Z:"ytp-seek-overlay-arrow",D:{viewBox:"0 0 100 100"},B:[{J:"path",Z:"ytp-seek-overlay-arrow-path",D:{d:V===-1?"M 80 20 L 50 50 L 80 80":"M 20 20 L 50 50 L 20 80",fill:"none",stroke:"white","stroke-width":"10"}}]});g.S(r,I);V===-1?I.Xz(r.S):I.Xz(r.Y);var d=I.element;d.animate([{translate:V===-1?"30px":"-30px",scale:"1.4 0.4",opacity:0,easing:"ease"},{offset:.15,opacity:"1",easing:"ease"},{offset:.5,translate:"0",scale:"1 1",easing:"ease"}],{duration:800}).addEventListener("finish", function(){d.remove();Zzp(r)}); I.Fz("ytp-seek-overlay-arrow-path").animate([{strokeWidth:"0"},{offset:.5,strokeWidth:"10"},{offset:.7,strokeWidth:"10"},{offset:1,strokeWidth:"0"}],{duration:800,easing:"ease"})}; Lwr=function(r,V,I){r.C!==V&&(r.G=0,r.C=V);r.G+=I;I=new g.cL({J:"div",Z:"ytp-seek-overlay-duration",OE:V===-1?"\u2212"+g.tt(r.G):"+"+g.tt(r.G)});g.S(r,I);V===-1?I.Xz(r.S):I.Xz(r.Y);r.X&&r.X.animate([{offset:0},{offset:1,opacity:0}],{duration:300,easing:"ease",fill:"forwards"});var d=I.element;r.X=d;d.animate([{offset:0,scale:.5,opacity:0,easing:"ease-out"},{offset:.5,scale:1,opacity:1},{offset:.8,scale:1,opacity:1},{offset:1,opacity:0}],{duration:800,easing:"ease"}).addEventListener("finish",function(){d.remove(); r.X===d&&(r.X=void 0);Zzp(r)})}; Zzp=function(r){r.S.children.length===0&&r.Y.children.length===0&&r.hide()}; g.zx=function(r,V,I,d){d=d===void 0?240:d;g.u.call(this,{J:"button",Yc:["ytp-button","ytp-share-button"],D:{title:"Share","aria-haspopup":"true","aria-owns":I.element.id,"data-tooltip-opaque":String(g.FG(r.N()))},B:[{J:"div",Z:"ytp-share-icon",OE:"{{icon}}"},{J:"div",Z:"ytp-share-title",OE:"Share"}]});this.api=r;this.G=V;this.S=I;this.Y=d;this.X=this.visible=!1;this.tooltip=this.G.lZ();r.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.K(r,"videodatachange",this.UE); this.K(r,"videoplayerreset",this.UE);this.K(r,"appresize",this.UE);this.K(r,"presentingplayerstatechange",this.UE);this.UE();this.addOnDisposeCallback(g.t6(this.tooltip,this.element))}; XjX=function(r){var V=r.api.N(),I=g.J(r.api.getVideoData()),d=g.FG(V)&&g.J6(r.api)&&g.v(r.api.getPlayerStateObject(),128);V=V.S||V.disableSharing&&r.api.getPresentingPlayerType()!==2||!I.showShareButton||I.KC||d||g.V_(I)||r.X;d=r.api.gs().getPlayerSize().width;return!!I.videoId&&d>=r.Y&&!V}; Bap=function(r,V){V.name!=="InvalidStateError"&&V.name!=="AbortError"&&(V.name==="NotAllowedError"?(r.G.OZ(),qJ(r.S,r.element,!1)):g.BG(V))}; SbU=function(r,V){var I=sN(),d=r.N();I={J:"div",Z:"ytp-share-panel",D:{id:sN(),role:"dialog","aria-labelledby":I},B:[{J:"div",Z:"ytp-share-panel-inner-content",B:[{J:"div",Z:"ytp-share-panel-title",D:{id:I},OE:"Share"},{J:"a",Yc:["ytp-share-panel-link","ytp-no-contextmenu"],D:{href:"{{link}}",target:d.V,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},OE:"{{linkText}}"},{J:"label",Z:"ytp-share-panel-include-playlist",B:[{J:"input",Z:"ytp-share-panel-include-playlist-checkbox",D:{type:"checkbox", checked:"true"}},"Include playlist"]},{J:"div",Z:"ytp-share-panel-loading-spinner",B:[NW()]},{J:"div",Z:"ytp-share-panel-service-buttons",OE:"{{buttons}}"},{J:"div",Z:"ytp-share-panel-error",OE:"An error occurred while retrieving sharing information. Please try again later."}]},{J:"button",Yc:["ytp-share-panel-close","ytp-button"],D:{title:"Close"},B:[g.KB()]}]};g.p8.call(this,r,I,250);var a=this;this.moreButton=null;this.api=r;this.tooltip=V.lZ();this.S=[];this.C=this.Fz("ytp-share-panel-inner-content"); this.closeButton=this.Fz("ytp-share-panel-close");this.K(this.closeButton,"click",this.Co);this.addOnDisposeCallback(g.t6(this.tooltip,this.closeButton));this.Y=this.Fz("ytp-share-panel-include-playlist-checkbox");this.K(this.Y,"click",this.UE);this.G=this.Fz("ytp-share-panel-link");this.addOnDisposeCallback(g.t6(this.tooltip,this.G));this.api.createClientVe(this.G,this,164503);this.K(this.G,"click",function(f){f.preventDefault();a.api.logClick(a.G);var e=a.api.getVideoUrl(!0,!0,!1,!1);e=gHg(a,e); g.EH(e,a.api,f)&&a.api.Bs("SHARE_CLICKED")}); this.listen("click",this.vE);this.K(r,"videoplayerreset",this.hide);this.K(r,"fullscreentoggled",this.onFullscreenToggled);this.K(r,"onLoopRangeChange",this.xk8);this.hide()}; Qpi=function(r,V){izA(r);for(var I=V.links||V.shareTargets,d=0,a={},f=0;f0&&!P&&!l?(F.length===2&&(F=["noreferrer"]),g.ac(z,w,c,F[0]),z=hqj()):(b=K.join(","),$E()&&z.navigator&&z.navigator.standalone&&c&&c!="_self"?(b=g.rX("A"),g.kr(b,w),b.target=c,W&&(b.rel="noreferrer"),((M=M.attributionsrc)||M==="")&&b.setAttribute("attributionsrc",M),M=document.createEvent("MouseEvent"), M.initMouseEvent("click",!0,!0,z,1),b.dispatchEvent(M),z=hqj()):W?(z=g.ac(z,"",c,b),M=g.u_(w),z&&(z.opener=null,M===""&&(M="javascript:''"),M='',M=Ic(M),(w=z.document)&&w.write&&(w.write(dl(M)),w.close()))):((z=g.ac(z,w,c,b))&&M.noopener&&(z.opener=null),z&&M.noreferrer&&(z.opener=null)));z&&(z.opener||(z.opener=window),z.focus());N.preventDefault()}}}(a)); a.mF.addOnDisposeCallback(g.t6(r.tooltip,a.mF.element));n==="Facebook"?r.api.createClientVe(a.mF.element,a.mF,164504):n==="Twitter"&&r.api.createClientVe(a.mF.element,a.mF,164505);r.K(a.mF.element,"click",function(E){return function(){r.api.logClick(E.mF.element)}}(a)); r.api.logVisibility(a.mF.element,!0);r.S.push(a.mF);d++}}var D=V.more||V.moreLink,x=new g.u({J:"a",Yc:["ytp-share-panel-service-button","ytp-button"],B:[{J:"span",Z:"ytp-share-panel-service-button-more",B:[{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},B:[{J:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",D:{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"}}]}]}],D:{href:D,target:"_blank",title:"More"}});x.listen("click",function(E){var N=D;r.api.logClick(r.moreButton.element);N=gHg(r,N);g.EH(N,r.api,E)&&r.api.Bs("SHARE_CLICKED")}); x.addOnDisposeCallback(g.t6(r.tooltip,x.element));r.api.createClientVe(x.element,x,164506);r.K(x.element,"click",function(){r.api.logClick(x.element)}); r.api.logVisibility(x.element,!0);r.S.push(x);r.moreButton=x;r.updateValue("buttons",r.S)}; gHg=function(r,V){var I={};g.FG(r.api.N())&&(g.zm(r.api,"addEmbedsConversionTrackingParams",[I]),V=g.Ly(V,I));return V}; izA=function(r){for(var V=g.H(r.S),I=V.next();!I.done;I=V.next())I=I.value,I.detach(),g.NS(I);r.S=[]}; M7=function(r){return r===void 0||r.startSec===void 0||r.endSec===void 0?!1:!0}; mvZ=function(r,V){r.startSec+=V;r.endSec+=V}; pjr=function(r){Ot.call(this,r);this.X=this.G=this.isContentForward=this.L=!1;u3X(this);this.K(this.T,"changeProductsInVideoVisibility",this.Gds);this.K(this.T,"videodatachange",this.onVideoDataChange)}; vHS=function(r){r.C&&r.R7.element.removeChild(r.C.element);r.C=void 0}; PBA=function(r,V){return V.map(function(I){var d,a;if((I=(d=g.U(I,qbX))==null?void 0:(a=d.thumbnail)==null?void 0:a.thumbnails)&&I.length!==0)return I[0].url}).filter(function(I){return I!==void 0}).map(function(I){I=new g.u({J:"img", Z:"ytp-suggested-action-product-thumbnail",D:{alt:"",src:I}});g.S(r,I);return I})}; oHr=function(r,V){r.isContentForward=V;g.NA(r.badge.element,"ytp-suggested-action-badge-content-forward",V)}; Cl=function(r){var V=r.isContentForward&&!r.s3();g.NA(r.badge.element,"ytp-suggested-action-badge-preview-collapsed",V&&r.G);g.NA(r.badge.element,"ytp-suggested-action-badge-preview-expanded",V&&r.X)}; Tx=function(r,V,I){return new g.ex(r*1E3,V*1E3,{priority:9,namespace:I})}; kRA=function(r){r.T.Zg("shopping_overlay_visible");r.T.Zg("shopping_overlay_preview_collapsed");r.T.Zg("shopping_overlay_preview_expanded");r.T.Zg("shopping_overlay_expanded")}; u3X=function(r){r.K(r.T,g.nv("shopping_overlay_visible"),function(){r.r$(!0)}); r.K(r.T,g.jx("shopping_overlay_visible"),function(){r.r$(!1)}); r.K(r.T,g.nv("shopping_overlay_expanded"),function(){r.kc=!0;bl(r)}); r.K(r.T,g.jx("shopping_overlay_expanded"),function(){r.kc=!1;bl(r)}); r.K(r.T,g.nv("shopping_overlay_preview_collapsed"),function(){r.G=!0;Cl(r)}); r.K(r.T,g.jx("shopping_overlay_preview_collapsed"),function(){r.G=!1;Cl(r)}); r.K(r.T,g.nv("shopping_overlay_preview_expanded"),function(){r.X=!0;Cl(r)}); r.K(r.T,g.jx("shopping_overlay_preview_expanded"),function(){r.X=!1;Cl(r)})}; Vhi=function(r){g.u.call(this,{J:"div",Z:"ytp-shorts-title-channel",B:[{J:"a",Z:"ytp-shorts-title-channel-logo",D:{href:"{{channelLink}}",target:r.N().V,"aria-label":"{{channelLogoLabel}}"}},{J:"div",Z:"ytp-shorts-title-expanded-heading",B:[{J:"div",Z:"ytp-shorts-title-expanded-title",B:[{J:"a",OE:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:r.N().V,tabIndex:"0"}}]}]}]});var V=this;this.api=r;this.G=this.Fz("ytp-shorts-title-channel-logo");this.channelName=this.Fz("ytp-shorts-title-expanded-title"); this.subscribeButton=null;r.createClientVe(this.G,this,36925);this.K(this.G,"click",function(I){V.api.logClick(V.G);g.ac(window,h5Z(V));I.preventDefault()}); r.createClientVe(this.channelName,this,37220);this.K(this.channelName,"click",function(I){V.api.logClick(V.channelName);g.ac(window,h5Z(V));I.preventDefault()}); r9A(this);this.K(r,"videodatachange",this.UE);this.K(r,"videoplayerreset",this.UE);this.UE()}; r9A=function(r){if(!r.api.N().gH){var V=g.J(r.api.getVideoData()),I=new g.PD("Subscribe",null,"Subscribed",null,!0,!1,V.Sz,V.subscribed,"channel_avatar",null,r.api,!0);r.api.createServerVe(I.element,r);var d;r.api.setTrackingParams(I.element,((d=V.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);r.K(I.element,"click",function(){r.api.logClick(I.element)}); r.subscribeButton=I;g.S(r,r.subscribeButton);r.subscribeButton.Xz(r.element)}}; h5Z=function(r){var V=r.api.N(),I=g.J(r.api.getVideoData());I=g.ni(V)+I.Qa;if(!g.FG(V))return I;V={};g.zm(r.api,"addEmbedsConversionTrackingParams",[V]);return g.Ly(I,V)}; H3=function(r){g.p8.call(this,r,{J:"button",Yc:["ytp-skip-intro-button","ytp-popup","ytp-button"],B:[{J:"div",Z:"ytp-skip-intro-button-text",OE:"Skip Intro"}]},100);var V=this;this.S=!1;this.G=new g.hz(function(){V.hide()},5E3); this.KJ=this.wy=NaN;g.S(this,this.G);this.L=function(){V.show()}; this.C=function(){V.hide()}; this.Y=function(){var I=V.T.getCurrentTime();I>V.wy/1E3&&I0?{J:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{J:"path",Yc:["ytp-circle-arrow","ytp-svg-fill"],D:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {J:"text",Yc:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"7.05",y:"15.05"}}]}:{J:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{J:"path",Yc:["ytp-circle-arrow","ytp-svg-fill"],D:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {J:"text",Yc:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"6.5",y:"15"}}]}]});var I=this;this.T=r;this.G=V;this.X=new g.hz(function(){I.S?(I.S=!1,I.X.start()):I.element.classList.remove("ytp-jump-spin","backwards")},250); this.S=!1;(V=V>0)?this.T.createClientVe(this.element,this,36843):this.T.createClientVe(this.element,this,36844);var d=g.Tj(V?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.G).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":V?"\u2192":"\u2190"});this.Y=this.element.querySelector(".ytp-jump-button-text");this.Y.textContent=Math.abs(this.G).toString();this.listen("click",this.onClick,this);y_(r,this.element, this)}; nFA=function(r,V){V?r.element.classList.add("ytp-jump-button-enabled"):r.element.classList.remove("ytp-jump-button-enabled");r.T.logVisibility(r.element,V);r.T.Q_()}; R7=function(r,V){bx.call(this,r,V,"timedMarkerCueRange","View key moments");this.K(r,g.jx("timedMarkerCueRange"),this.Uk);this.K(r,"updatemarkervisibility",this.updateVideoData)}; jRr=function(r){var V,I=(V=r.T.getVideoData())==null?void 0:V.DM;if(I)for(r=r.Y.L8,I=g.H(I),V=I.next();!V.done;V=I.next())if(V=r[V.value]){var d=void 0,a=void 0,f=void 0;if(((d=V.onTap)==null?void 0:(a=d.innertubeCommand)==null?void 0:(f=a.changeEngagementPanelVisibilityAction)==null?void 0:f.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return V}}; tu=function(r){var V=r.U("web_enable_pip_on_miniplayer");g.u.call(this,{J:"button",Yc:["ytp-miniplayer-button","ytp-button"],D:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},B:[V?{J:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},B:[{J:"g",D:{transform:"translate(96, -96) scale(0.8)"},B:[{J:"path",bJ:!0,D:{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"}}]}]}: $9Z()]});this.T=r;this.visible=!1;this.listen("click",this.onClick);this.K(r,"fullscreentoggled",this.UE);this.updateValue("title",g.A6(r,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});y_(r,this.element,this);r.createClientVe(this.element,this,62946);this.UE()}; y1=function(r,V,I){I=I===void 0?!1:I;g.u.call(this,{J:"button",Yc:["ytp-mute-button","ytp-button"],D:r.N().TQ?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},OE:"{{icon}}"});this.T=r;this.n8=I;this.G=null;this.Y=this.V=this.C=this.kc=NaN;this.bL=this.L=null;this.S=[];this.X=[];this.visible=!1;this.j=null;r.U("delhi_modern_web_player")&&this.update({"data-priority":4}); I=this.T.N();this.updateValue("icon",J2());this.tooltip=V.lZ();this.G=new g.cL({J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"defs",B:[{J:"clipPath",D:{id:"ytp-svg-volume-animation-mask"},B:[{J:"path",D:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{J:"path",D:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{J:"path",Z:"ytp-svg-volume-animation-mover",D:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{J:"clipPath",D:{id:"ytp-svg-volume-animation-slash-mask"}, B:[{J:"path",Z:"ytp-svg-volume-animation-mover",D:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{J:"path",bJ:!0,Yc:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{J:"path",bJ:!0,Yc:["ytp-svg-fill","ytp-svg-volume-animation-hider"],D:{"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.S(this,this.G);this.L=this.G.Fz("ytp-svg-volume-animation-speaker");this.bL=g.J(this.L.getAttribute("d"));this.S=g.ub("ytp-svg-volume-animation-mover",this.G.element);this.X=g.ub("ytp-svg-volume-animation-hider",this.G.element);this.GQ=new o4;g.S(this,this.GQ);this.QH=new o4;g.S(this,this.QH);this.listen("click",this.oXz);this.K(r,"appresize",this.dR);this.K(r,"onVolumeChange",this.onVolumeChange);var d=null;I.TQ?r.U("delhi_modern_web_player")? this.addOnDisposeCallback(g.t6(V.lZ(),this.element,-120)):this.addOnDisposeCallback(g.t6(V.lZ(),this.element)):(V="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),d=new g.p8(r,{J:"span",Yc:["ytp-popup","ytp-generic-popup"],D:{tabindex:"0"},B:[V[0],{J:"a",D:{href:"https://support.google.com/youtube/?p=noaudio",target:I.V},OE:V[2]},V[4]]},100,!0),g.S(this,d),d.hide(),d.subscribe("show",function(a){r.PS(d,a)}),g.g1(r,d.element,4)); this.message=d;r.createClientVe(this.element,this,28662);this.dR(r.gs().getPlayerSize());this.setVolume(r.getVolume(),r.isMuted())}; EFS=function(r,V){r.kc=V;var I=r.bL;V&&(I+=Axi(DtX,xtO,V));r.L.setAttribute("d",I)}; N9X=function(r,V){r.V=V;for(var I=20*V,d=0;d=3&&r.T.getPresentingPlayerType()!==2}; Cqj=function(r){var V=L8(r.T.Gz());return V?r.G?V.Dq():V.Zr():!1}; c9O=function(r){var V={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},I=r.playlist!=null&&r.playlist.Dq();I=g.J6(r.T)&&(!r.G||I);var d=r.G&&g.S$(r.T),a=Cqj(r),f=r.G&&r.T.getPresentingPlayerType()===5,e=g.A6(r.T,"Next","SHIFT+n"),n=g.A6(r.T,"Previous","SHIFT+p");if(f)V.title="Start video";else if(r.S)V.title="Replay";else if(I){var D=null;r.playlist&&(D=g.NZ(r.playlist,r.G?xhS(r.playlist):EJO(r.playlist)));if(D){if(D.videoId){var x=r.playlist.listId; V.url=r.T.N().getVideoUrl(D.videoId,x?x.toString():void 0)}V.text=D.title;V.duration=D.lengthText?D.lengthText:D.lengthSeconds?g.tt(D.lengthSeconds):null;V.preview=D.YG("mqdefault.jpg")}r.G?(V.title=e,V["data-title-no-tooltip"]="Next",V["aria-keyshortcuts"]="SHIFT+n"):(V.title=n,V["data-title-no-tooltip"]="Previous",V["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(n=(D=r.videoData)==null?void 0:g.aa(D))V.url=n.Iv(),V.text=n.title,V.duration=n.lengthText?n.lengthText:n.lengthSeconds?g.tt(n.lengthSeconds): null,V.preview=n.YG("mqdefault.jpg");V.title=e;V["data-title-no-tooltip"]="Next";V["aria-keyshortcuts"]="SHIFT+n"}V.disabled=!d&&!I&&!a&&!f;r.update(V);r.L=!!V.url;d||I||r.S||a||f?r.X||(r.X=g.t6(r.tooltip,r.element),r.C=r.listen("click",r.onClick,r)):r.X&&(r.X(),r.X=null,r.pF(r.C),r.C=null);r.tooltip.Q_();g.NA(r.element,"ytp-playlist-ui",r.G&&I)}; HCv=function(r,V){g.u.call(this,{J:"div",Z:"ytp-fine-scrubbing",B:[{J:"div",Z:"ytp-fine-scrubbing-draggable",B:[{J:"div",Z:"ytp-fine-scrubbing-thumbnails",D:{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}}"}}]},{J:"div",D:{"aria-hidden":"true"},Z:"ytp-fine-scrubbing-cursor"},{J:"div",Z:"ytp-fine-scrubbing-seek-time",D:{"aria-hidden":"true"}, OE:"{{seekTime}}"},{J:"div",Z:"ytp-fine-scrubbing-play",B:[Gi()],D:{title:"Play from this position",role:"button"}},{J:"div",Z:"ytp-fine-scrubbing-dismiss",B:[g.KB()],D:{title:"Exit precise seeking",role:"button"}}]});var I=this;this.api=r;this.C=this.Fz("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Fz("ytp-fine-scrubbing-dismiss");this.bL=this.Fz("ytp-fine-scrubbing-draggable");this.playButton=this.Fz("ytp-fine-scrubbing-play");this.thumbnails=[];this.X=[];this.p8=this.G=0;this.R7=void 0; this.QH=NaN;this.TQ=this.V=this.S=this.j=0;this.Y=[];this.interval=this.frameCount=0;this.L=160;this.scale=1;this.Ws=0;this.isEnabled=this.n8=!1;T9i(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.t6(V,this.dismissButton));this.addOnDisposeCallback(g.t6(V,this.playButton));this.GQ=new g.BX(this.bL,!0);this.GQ.subscribe("dragstart",this.V3,this);this.GQ.subscribe("dragmove",this.DE,this);this.GQ.subscribe("dragend",this.BE,this);this.K(r,"SEEK_COMPLETE",this.im);r.U("web_fix_fine_scrubbing_false_play")&& this.K(r,"rootnodemousedown",function(d){I.kc=d}); this.C.addEventListener("keydown",function(){}); g.S(this,this.GQ);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.C,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; T9i=function(r,V){var I=g.tt(V),d=g.Tj("Seek to $PROGRESS",{PROGRESS:g.tt(V,!0)});r.update({ariamin:0,ariamax:Math.floor(r.api.getDuration()),arianow:Math.floor(V),arianowtext:d,seekTime:I})}; w0S=function(r){r.QH=NaN;r.V=0;r.j=r.S}; WCU=function(r){var V=r.api.GD();if(V){var I=90*r.scale,d=SQ(V,160*r.scale);if(V=V.levels[d]){r.L=V.width;if(!r.Y.length){d=[];for(var a=iL(V,V.hd()),f=V.columns*V.rows,e=V.frameCount,n=0;n<=a;n++)for(var D=er.Y.length;)d= void 0,(d=r.thumbnails.pop())==null||d.dispose();for(;r.thumbnails.lengthI.length;)d=void 0,(d=r.X.pop())==null||d.dispose(); for(;r.X.length-I?-V/I*r.interval*.5:-(V+I/2)/I*r.interval}; $tO=function(r){return-((r.C.offsetWidth||(r.frameCount-1)*r.L*r.scale)-r.G/2)}; bCp=function(){g.u.call(this,{J:"div",Z:"ytp-fine-scrubbing-thumbnail"})}; OCO=function(){g.u.call(this,{J:"div",Z:"ytp-fine-scrubbing-chapter-title",B:[{J:"div",Z:"ytp-fine-scrubbing-chapter-title-content",OE:"{{chapterTitle}}"}]})}; R7i=function(r){g.u.call(this,{J:"div",Z:"ytp-heat-map-chapter",B:[{J:"svg",Z:"ytp-heat-map-svg",D:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},B:[{J:"defs",B:[{J:"clipPath",D:{id:"{{id}}"},B:[{J:"path",Z:"ytp-heat-map-path",D:{d:"",fill:"white"}}]},{J:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},B:[{J:"stop",D:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{J:"stop",D:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{J:"rect",Z:"ytp-heat-map-graph",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",Z:"ytp-heat-map-hover",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",Z:"ytp-heat-map-play",D:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{J:"path",Z:"ytp-modern-heat-map",D:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=r;this.j=this.Fz("ytp-heat-map-svg");this.C=this.Fz("ytp-heat-map-path");this.Y=this.Fz("ytp-heat-map-graph");this.L=this.Fz("ytp-heat-map-play");this.G=this.Fz("ytp-heat-map-hover");this.S=this.Fz("ytp-modern-heat-map");this.IL=!1;this.X=60;r=""+g.dP(this);this.update({id:r});r="url(#"+r+")";this.Y.setAttribute("clip-path",r);this.L.setAttribute("clip-path",r);this.G.setAttribute("clip-path", r)}; thO=function(r,V){V>0&&(r.X=V,r.j.style.height=r.X+"px")}; lx=function(){g.u.call(this,{J:"div",Z:"ytp-chapter-hover-container",B:[{J:"div",Z:"ytp-progress-bar-padding"},{J:"div",Z:"ytp-progress-list",B:[{J:"div",Yc:["ytp-play-progress","ytp-swatch-background-color"]},{J:"div",Z:"ytp-progress-linear-live-buffer"},{J:"div",Z:"ytp-load-progress"},{J:"div",Z:"ytp-hover-progress"},{J:"div",Z:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.X=this.Fz("ytp-progress-list");this.C=this.Fz("ytp-progress-linear-live-buffer"); this.Y=this.Fz("ytp-ad-progress-list");this.L=this.Fz("ytp-load-progress");this.j=this.Fz("ytp-play-progress");this.S=this.Fz("ytp-hover-progress");this.G=this.Fz("ytp-chapter-hover-container")}; Ll=function(r,V){g.Be(r.G,"width",V)}; y9g=function(r,V){g.Be(r.G,"margin-right",V+"px")}; A9A=function(){this.X=this.position=this.S=this.G=this.Y=this.width=NaN}; G7i=function(){g.u.call(this,{J:"div",Z:"ytp-timed-marker"});this.G=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Zt=function(r,V){g.CB.call(this,{J:"div",Z:"ytp-progress-bar-container",D:{"aria-disabled":"true"},B:[{J:"div",Yc:["ytp-heat-map-container"],B:[{J:"div",Z:"ytp-heat-map-edu"}]},{J:"div",Yc:["ytp-progress-bar"],D:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},B:[{J:"div",Z:"ytp-chapters-container"},{J:"div",Z:"ytp-timed-markers-container"},{J:"div",Z:"ytp-clip-start-exclude"}, {J:"div",Z:"ytp-clip-end-exclude"},{J:"div",Z:"ytp-scrubber-container",B:[{J:"div",Yc:["ytp-scrubber-button","ytp-swatch-background-color"],B:[{J:"div",Z:"ytp-scrubber-pull-indicator"},{J:"img",Yc:["ytp-decorated-scrubber-button"]}]}]}]},{J:"div",Yc:["ytp-fine-scrubbing-container"],B:[{J:"div",Z:"ytp-fine-scrubbing-edu"}]},{J:"div",Z:"ytp-bound-time-left",OE:"{{boundTimeLeft}}"},{J:"div",Z:"ytp-bound-time-right",OE:"{{boundTimeRight}}"},{J:"div",Z:"ytp-clip-start",D:{title:"{{clipstarttitle}}"},OE:"{{clipstarticon}}"}, {J:"div",Z:"ytp-clip-end",D:{title:"{{clipendtitle}}"},OE:"{{clipendicon}}"}]});this.api=r;this.BH=!1;this.KJ=this.SA=this.a7=this.C=this.wy=0;this.j7=null;this.ZQ=!1;this.Ws={};this.Bp={};this.clipEnd=Infinity;this.dH=this.Fz("ytp-clip-end");this.By=new g.BX(this.dH,!0);this.NJ=this.Fz("ytp-clip-end-exclude");this.ll=this.Fz("ytp-clip-start-exclude");this.clipStart=0;this.M2=this.Fz("ytp-clip-start");this.MG=new g.BX(this.M2,!0);this.QH=this.Qa=0;this.progressBar=this.Fz("ytp-progress-bar");this.X_= {};this.L8={};this.Mk=this.Fz("ytp-chapters-container");this.eA=this.Fz("ytp-timed-markers-container");this.G=[];this.L=[];this.uZ={};this.GR=null;this.n8=-1;this.rH=this.R7=0;this.JP=this.j=null;this.IB=this.Fz("ytp-scrubber-button");this.bL=this.Fz("ytp-decorated-scrubber-button");this.Ja=this.Fz("ytp-scrubber-container");this.ya=new g.Fw;this.Py=0;this.jI=new A9A;this.S=new XI(0,0);this.tI=null;this.V=this.fn=!1;this.Ol=null;this.kc=this.Fz("ytp-heat-map-container");this.XN=this.Fz("ytp-heat-map-edu"); this.Y=[];this.heatMarkersDecorations=[];this.DM=this.Fz("ytp-fine-scrubbing-container");this.Gd=this.Fz("ytp-fine-scrubbing-edu");this.X=void 0;this.p8=this.LJ=this.TQ=!1;this.tooltip=V.lZ();this.addOnDisposeCallback(g.t6(this.tooltip,this.dH));g.S(this,this.By);this.By.subscribe("hoverstart",this.IC,this);this.By.subscribe("hoverend",this.df,this);this.K(this.dH,"click",this.vF);this.addOnDisposeCallback(g.t6(this.tooltip,this.M2));g.S(this,this.MG);this.MG.subscribe("hoverstart",this.IC,this); this.MG.subscribe("hoverend",this.df,this);this.K(this.M2,"click",this.vF);FCp(this);this.K(r,"resize",this.yy);this.K(r,"presentingplayerstatechange",this.Ma);this.K(r,"videodatachange",this.xg);this.K(r,"videoplayerreset",this.cq);this.K(r,"cuerangesadded",this.xYQ);this.K(r,"cuerangesremoved",this.bnc);this.K(r,"onLoopRangeChange",this.Is);this.K(r,"innertubeCommand",this.onClickCommand);this.K(r,g.nv("timedMarkerCueRange"),this.wKH);this.K(r,"updatemarkervisibility",this.aX);this.K(r,"serverstitchedvideochange", this.DYs);this.updateVideoData(r.getVideoData(),!0);this.Is(r.getLoopRange());Ju(this)&&!this.X&&(this.X=new HCv(this.api,this.tooltip),r=g.pj(this.element).x||0,this.X.yy(r,this.C),this.X.Xz(this.DM),g.S(this,this.X),this.K(this.X.dismissButton,"click",this.y5),this.K(this.X.playButton,"click",this.aD),this.K(this.X.element,"dblclick",this.aD));this.api.createClientVe(this.kc,this,139609,!0);this.api.createClientVe(this.XN,this,140127,!0);this.api.createClientVe(this.Gd,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; FCp=function(r){if(r.G.length===0){var V=new lx;r.G.push(V);g.S(r,V);V.Xz(r.Mk,0)}for(;r.G.length>1;)r.G.pop().dispose();Ll(r.G[0],"100%");r.G[0].startTime=0;r.G[0].title=""}; lNX=function(r){var V=V===void 0?NaN:V;var I=new R7i(r.api);r.Y.push(I);g.S(r,I);I.Xz(r.kc);V>=0&&(I.element.style.width=V+"px")}; LCi=function(r){for(;r.L.length;)r.L.pop().dispose()}; ZCi=function(r){var V,I,d,a,f;return(f=g.U((a=g.U((V=r.getWatchNextResponse())==null?void 0:(I=V.playerOverlays)==null?void 0:(d=I.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,AI))==null?void 0:a.playerBar,J9S))==null?void 0:f.chapters}; X0g=function(r){for(var V=r.G,I=[],d=0;d=e&&w<=E&&f.push(c)}D>0&&(r.kc.style.height=D+"px");e=r.Y[d];E=f;c=a;M=D;w=d===0;w=w===void 0?!1:w;thO(e,M);N=E;z=e.X;w=w===void 0?!1:w;var b=1E3/N.length,W=[];W.push({x:0,y:100});for(var K=0;K0&&(I=f[f.length-1])}g.Xl(r);n=[];V=g.H(V.heatMarkersDecorations||[]);for(a=V.next();!a.done;a=V.next())if(a=g.U(a.value,mtX))D=a.label,d=I=x=void 0,n.push({visibleTimeRangeStartMillis:(x=a.visibleTimeRangeStartMillis)!=null?x:-1,visibleTimeRangeEndMillis:(I=a.visibleTimeRangeEndMillis)!=null?I:-1,decorationTimeMillis:(d=a.decorationTimeMillis)!=null?d:NaN,label:D?g.wF(D):""});r.heatMarkersDecorations=n}}; SZi=function(r,V){r.L.push(V);g.S(r,V);V.Xz(r.eA,r.eA.children.length)}; iCA=function(r,V){V=g.H(V);for(var I=V.next();!I.done;I=V.next()){I=I.value;var d=B3(r,I.timeRangeStartMillis/(r.S.G*1E3),gM(r));g.Be(I.element,"transform","translateX("+d+"px) scaleX(0.6)")}}; B9S=function(r,V){var I=0,d=!1;V=g.H(V);for(var a=V.next();!a.done;a=V.next()){a=a.value;if(g.U(a,p0S)){a=g.U(a,p0S);var f={startTime:NaN,title:null,onActiveCommand:void 0},e=a.title;f.title=e?g.wF(e):"";e=a.timeRangeStartMillis;e!=null&&(f.startTime=e);f.onActiveCommand=a.onActiveCommand;a=f;I===0&&a.startTime!==0&&(r.G[I].startTime=0,r.G[I].title="",r.G[I].onActiveCommand=a.onActiveCommand,I++,d=!0);r.G.length<=I&&(f=new lx,r.G.push(f),g.S(r,f),f.Xz(r.Mk,r.Mk.children.length));r.G[I].startTime= a.startTime;r.G[I].title=a.title?a.title:"";r.G[I].onActiveCommand=a.onActiveCommand;r.G[I].index=d?I-1:I}I++}for(;I=0;d--)if(r.G[d].width>0){y9g(r.G[d],0);var a=Math.floor(r.G[d].width);r.G[d].width=a;Ll(r.G[d],a+"px");break}r.G[I].width=0;Ll(r.G[I],"0")}else I===r.G.length-1?(d=Math.floor(r.G[I].width+V),r.G[I].width=d,Ll(r.G[I],d+"px")):(V=r.G[I].width+V,d=Math.round(V),V-=d,r.G[I].width=d,Ll(r.G[I],d+"px"));I=0;if(r.Y.length===r.G.length)for(V=0;V< r.Y.length;V++)d=r.G[V].width,r.Y[V].element.style.width=d+"px",r.Y[V].element.style.left=I+"px",I+=d+ix(r);r.api.U("delhi_modern_web_player")&&(r.G.length===1?r.G[0].X.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(r.G[0].X.classList.remove("ytp-progress-bar-end"),r.G[0].X.classList.add("ytp-progress-bar-start"),r.G[r.G.length-1].X.classList.add("ytp-progress-bar-end")))}; vFO=function(r,V){var I=0,d=!1,a=r.G.length,f=r.S.G*1E3;f===0&&(f=r.api.getProgressState().seekableEnd*1E3);if(f>0&&r.C>0){for(var e=r.C-ix(r)*r.R7,n=r.rH===0?3:e*r.rH,D=g.H(r.G),x=D.next();!x.done;x=D.next())x.value.width=0;for(;I1);x=(f===0?0:D/f*e)+r.G[I].width;if(x>n)r.G[I].width=x;else{r.G[I].width=0;var E=r,N=I,c=E.G[N-1];c!==void 0&&c.width>0? c.width+=x:Nr.rH&&(r.rH=D/f),d=!0)}I++}}return d}; SZ=function(r){if(r.C){var V=r.api.getProgressState(),I=r.api.getVideoData();if(!(I&&I.enableServerStitchedDai&&I.m0)||isFinite(V.current)){var d;if(((d=r.api.getVideoData())==null?0:r1(d))&&V.airingStart&&V.airingEnd)var a=UI(r,V.airingStart,V.airingEnd);else if(r.api.getPresentingPlayerType()===2){var f,e,n;a=(I=(a=r.api.getVideoData())==null?void 0:(f=a.getPlayerResponse())==null?void 0:(e=f.playerConfig)==null?void 0:(n=e.webPlayerConfig)==null?void 0:n.skippableAdProgressBarDuration)?UI(r,V.seekableStart, I/1E3):UI(r,V.seekableStart,V.seekableEnd)}else a=UI(r,V.seekableStart,V.seekableEnd);f=BC(a,V.loaded,0);V=BC(a,V.current,0);e=r.S.X!==a.X||r.S.G!==a.G;r.S=a;Q1(r,V,f);e&&qZg(r);Pqj(r)}}}; UI=function(r,V,I){return oFr(r)?new XI(Math.max(V,r.tI.startTimeMs/1E3),Math.min(I,r.tI.endTimeMs/1E3)):new XI(V,I)}; h7v=function(r,V){var I,d,a;V=g.U((I=V.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(a=d.playerOverlayRenderer)==null?void 0:a.decoratedPlayerBarRenderer,AI);if(V==null?0:V.progressColor)for(I=0;I1){I=mu(r,V.S,!0);for(var d=0,a=0;a0&&(d+=r.G[a].width,d+=ix(r));I=(r.G[I].startTime+(V.S-d)/r.G[I].width*((I===r.G.length-1?r.S.G*1E3:r.G[I+1].startTime)-r.G[I].startTime))/1E3||0}return I}; pl=function(r,V,I,d,a){V=V<0?0:Math.floor(Math.min(V,r.api.getDuration())*1E3);I=I<0?0:Math.floor(Math.min(I,r.api.getDuration())*1E3);r=r.progressBar.visualElement;d={seekData:{startMediaTimeMs:V,endMediaTimeMs:I,seekSource:d}};(V=g.A8())&&g.I6(dF)(void 0,V,r,a,d,void 0)}; VEv=function(r,V,I){if(I>=r.G.length)return!1;var d=r.C-ix(r)*r.R7;return Math.abs(V-r.G[I].startTime/1E3)/r.S.G*d<4}; qZg=function(r){r.IB.style.removeProperty("height");for(var V=g.H(Object.keys(r.Ws)),I=V.next();!I.done;I=V.next())IMv(r,I.value);v3(r);Q1(r,r.QH,r.Qa)}; gM=function(r){var V=r.ya.x;V=g.yv(V,0,r.C);r.jI.update(V,r.C);return r.jI}; P3=function(r){return(r.V?135:90)-q7(r)}; q7=function(r){var V=48,I=r.api.N();r.V?V=54:g.FG(I)&&!I.X?V=40:r.api.U("delhi_modern_web_player")&&(V=r.V?96:68);return V}; Q1=function(r,V,I){r.QH=V;r.Qa=I;var d=gM(r),a=r.S.G;var f=r.S;f=f.X+r.QH*f.getLength();var e=g.Tj("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.tt(f,!0),DURATION:g.tt(a,!0)}),n=fl(r.G,f*1E3);n=r.G[n].title;r.update({ariamin:Math.floor(r.S.X),ariamax:Math.floor(a),arianow:Math.floor(f),arianowtext:n?n+" "+e:e});a=r.clipStart;f=r.clipEnd;r.tI&&r.api.getPresentingPlayerType()!==2&&(a=r.tI.startTimeMs/1E3,f=r.tI.endTimeMs/1E3);a=BC(r.S,a,0);n=BC(r.S,f,1);e=r.api.getVideoData();f=g.yv(V,a,n);I=(e==null? 0:g.oa(e))?1:g.yv(I,a,n);V=B3(r,V,d);g.Be(r.Ja,"transform","translateX("+V+"px)");r.api.U("delhi_modern_web_player")&&dgi(r,V);o7(r,d,a,f,"PLAY_PROGRESS");(e==null?0:r1(e))?(V=r.api.getProgressState().seekableEnd)&&o7(r,d,f,BC(r.S,V),"LIVE_BUFFER"):o7(r,d,a,I,"LOAD_PROGRESS");if(r.api.U("web_player_heat_map_played_bar")){var D;(D=r.Y[0])!=null&&D.L.setAttribute("width",(f*100).toFixed(2)+"%")}}; dgi=function(r,V){r.api.getPresentingPlayerType()!==1?r.Mk.style.removeProperty("clip-path"):(V||(V=B3(r,r.QH,gM(r))),r.Mk.style.clipPath='path("'+(r.ZQ?aMi(r,8,V,r.V?50:36,0,6):aMi(r,4,V,r.V?34:24,2,3))+'")')}; aMi=function(r,V,I,d,a,f){var e=I-d/2;I+=d/2;V+=a;return"M 0 "+a+" L 0 "+(V+" L ")+(e+" "+V+" C ")+(e+f+" "+V+" "+(e+f)+" "+a+" "+e+" "+a+" L 0 ")+(a+" M ")+(I+" "+a+" L ")+(r.C+" "+a+" L ")+(r.C+" "+V+" L ")+(I+" "+V+" C ")+(I-f+" "+V+" "+(I-f)+" "+a+" "+I+" "+a)}; o7=function(r,V,I,d,a){var f=r.G.length,e=V.G-r.R7*ix(r),n=I*e;I=mu(r,n);var D=d*e;e=mu(r,D);a==="HOVER_PROGRESS"&&(e=mu(r,V.G*d,!0),D=V.G*d-fMU(r,V.G*d)*ix(r));d=Math.max(n-eIg(r,I),0);for(n=I;n=r.G.length)return r.C;for(var I=0,d=0;d0||r.NJ.clientWidth>0?(f=V.clientWidth/I,r=-1*r.ll.clientWidth/I):(f/=I,r=-1*r.G[a].element.offsetLeft/I),g.Be(V,"background-size",f+"px"),g.Be(V,"background-position-x",r+"px"))}; k1=function(r,V,I,d,a){a||r.api.N().X?V.style.width=I+"px":g.Be(V,"transform","scalex("+(d?I/d:0)+")")}; mu=function(r,V,I){var d=0;(I===void 0?0:I)&&(V-=fMU(r,V)*ix(r));I=g.H(r.G);for(var a=I.next();!a.done;a=I.next()){a=a.value;if(V>a.width)V-=a.width;else break;d++}return d===r.G.length?d-1:d}; B3=function(r,V,I){var d=V*r.S.G*1E3;for(var a=-1,f=g.H(r.G),e=f.next();!e.done;e=f.next())e=e.value,d>e.startTime&&e.width>0&&a++;d=a<0?0:a;a=I.G-ix(r)*r.R7;return V*a+ix(r)*d+I.Y}; fMU=function(r,V){for(var I=r.G.length,d=0,a=g.H(r.G),f=a.next();!f.done;f=a.next())if(f=f.value,f.width!==0)if(V>f.width)V-=f.width,V-=ix(r),d++;else break;return d===I?I-1:d}; g.jkj=function(r,V,I,d){var a=r.C!==I,f=r.V!==d;r.wy=V;r.C=I;r.V=d;Ju(r)&&(V=r.X)!=null&&(V.scale=d?1.5:1);qZg(r);r.G.length===1&&(r.G[0].width=I||0);a&&g.Xl(r);r.X&&f&&Ju(r)&&(r.X.isEnabled&&(I=r.V?135:90,d=I-q7(r),r.DM.style.height=I+"px",g.Be(r.kc,"transform","translateY("+-d+"px)"),g.Be(r.progressBar,"transform","translateY("+-d+"px)")),WCU(r.X))}; v3=function(r){var V=!!r.tI&&r.api.getPresentingPlayerType()!==2,I=r.clipStart,d=r.clipEnd,a=!0,f=!0;V&&r.tI?(I=r.tI.startTimeMs/1E3,d=r.tI.endTimeMs/1E3):(a=I>r.S.X,f=r.S.G>0&&dr.QH);g.NA(r.IB,"ytp-scrubber-button-hover",I===d&&r.G.length>1);if(r.api.U("web_player_heat_map_played_bar")){var f;(f=r.Y[0])!=null&&f.G.setAttribute("width",(V.X*100).toFixed(2)+"%")}}}; IMv=function(r,V){var I=r.Ws[V];V=r.Bp[V];var d=gM(r),a=BC(r.S,I.start/1E3,0),f=DKZ(I,r.V)/d.width;var e=BC(r.S,I.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(a=g.yv(a,0,e-f));e=Math.min(e,a+f);I.color&&(V.style.background=I.color);I=a;V.style.left=Math.max(I*d.G+d.Y,0)+"px";k1(r,V,g.yv((e-I)*d.G+d.Y,0,d.width),d.width,!0)}; DgX=function(r,V){var I=V.getId();r.Ws[I]===V&&(g.fy(r.Bp[I]),delete r.Ws[I],delete r.Bp[I])}; Ju=function(r){var V=g.VO(r.api.N())&&(r.api.U("web_shorts_pip")||r.api.U("web_watch_pip")),I;return!((I=r.api.getVideoData())==null?0:I.isLivePlayback)&&!r.api.isMinimized()&&!r.api.isInline()&&(!r.api.uu()||!V)}; hu=function(r){r.X&&(r.X.disable(),r.a7=0,r.kc.style.removeProperty("transform"),r.progressBar.style.removeProperty("transform"),r.DM.style.removeProperty("height"),r.element.parentElement&&r.element.parentElement.style.removeProperty("height"))}; xgr=function(r,V){var I=V/P3(r)*q7(r);g.Be(r.progressBar,"transform","translateY("+-V+"px)");g.Be(r.kc,"transform","translateY("+-V+"px)");g.Be(r.DM,"transform","translateY("+I+"px)");r.DM.style.height=V+I+"px";r.element.parentElement&&(r.element.parentElement.style.height=q7(r)-I+"px")}; EKX=function(r,V){V?r.j||(r.element.removeAttribute("aria-disabled"),r.j=new g.BX(r.progressBar,!0),r.j.subscribe("hovermove",r.n5H,r),r.j.subscribe("hoverend",r.qek,r),r.j.subscribe("dragstart",r.Xr7,r),r.j.subscribe("dragmove",r.Ye0,r),r.j.subscribe("dragend",r.SeM,r),r.api&&r.api.U("delhi_modern_web_player")&&(r.JP=new g.BX(r.progressBar,!0),r.JP.subscribe("hoverstart",function(){r.ZQ=!0;dgi(r)},r),r.JP.subscribe("hoverend",function(){r.ZQ=!1; dgi(r)},r)),r.Ol=r.listen("keydown",r.gg)):r.j&&(r.element.setAttribute("aria-disabled","true"),r.pF(r.Ol),r.j.cancel(),r.j.dispose(),r.j=null)}; ix=function(r){return r.api.U("delhi_modern_web_player")?4:r.V?3:2}; oFr=function(r){var V;return!((V=r.tI)==null||!V.postId)&&r.api.getPresentingPlayerType()!==2}; rx=function(r,V){g.u.call(this,{J:"button",Yc:["ytp-remote-button","ytp-button"],D:{title:"Play on TV","aria-haspopup":"true","data-priority":"10"},OE:"{{icon}}"});this.T=r;this.F_=V;this.G=null;this.K(r,"onMdxReceiversChange",this.UE);this.K(r,"presentingplayerstatechange",this.UE);this.K(r,"appresize",this.UE);r.createClientVe(this.element,this,139118);this.UE();this.listen("click",this.X,this);y_(r,this.element,this)}; V5=function(r,V){g.u.call(this,{J:"button",Yc:["ytp-button","ytp-settings-button"],D:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":sN(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},B:[g.lm()]});this.T=r;this.F_=V;this.X=!0;this.listen("click",this.S);this.K(r,"onPlaybackQualityChange",this.updateBadge);this.K(r,"videodatachange",this.updateBadge);this.K(r,"webglsettingschanged",this.updateBadge);this.K(r,"appresize",this.G);y_(r,this.element,this);this.T.createClientVe(this.element, this,28663);this.updateBadge();this.G(r.gs().getPlayerSize())}; NOv=function(r,V){r.X=!!V;r.G(r.T.gs().getPlayerSize())}; IB=function(r,V){jW.call(this,"Annotations",g.cU.FR);this.T=r;this.F_=V;this.G=!1;r.U("web_settings_menu_icons")&&this.setIcon({J:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{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.K(r,"videodatachange",this.UE);this.K(r,"onApiChange",this.UE);this.subscribe("select",this.onSelect,this);this.UE()}; dx=function(r,V){g.Jf.call(this,"Audio track",g.cU.AUDIO,r,V);this.T=r;this.tracks={};g.jN(this.element,"ytp-audio-menu-item");this.countLabel=new g.u({J:"div",B:[{J:"span",OE:"Audio track"},{J:"span",Z:"ytp-menuitem-label-count",OE:"{{content}}"}]});r.U("web_settings_menu_icons")&&this.setIcon(W4i());g.S(this,this.countLabel);g.of(this,this.countLabel);this.K(r,"videodatachange",this.UE);this.K(r,"onPlaybackAudioChange",this.UE);this.UE()}; aB=function(r,V){jW.call(this,"Autoplay",g.cU.JD);this.T=r;this.F_=V;this.G=!1;this.S=[];this.K(r,"presentingplayerstatechange",this.X);this.subscribe("select",this.onSelect,this);r.createClientVe(this.element,this,113682);this.X()}; ski=function(r,V){g.k6.call(this,g.h6({"aria-haspopup":"false"}),0,"More options");this.T=r;this.F_=V;this.K(this.element,"click",this.onClick);this.F_.LF(this)}; cyr=function(r,V){var I;g.VO(r.N())&&(I={J:"div",Z:"ytp-panel-footer-content",B:[{J:"span",OE:"Adjust download quality from your "},{J:"a",Z:"ytp-panel-footer-content-link",OE:"Settings",D:{href:"/account_downloads"}}]});g.Jf.call(this,"Quality",g.cU.J3,r,V,void 0,void 0,I);this.T=r;this.bL={};this.V={};this.Y={};this.GQ=new Set;this.G=this.C=!1;this.L="unknown";this.QH="";this.kc=new g.kA;g.S(this,this.kc);this.C=this.T.U("web_player_use_new_api_for_quality_pullback");this.G=this.T.U("web_player_enable_premium_hbr_playback_cap"); r.U("web_settings_menu_icons")&&this.setIcon({J:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{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.jN(this.X.element,"ytp-quality-menu");this.K(r,"videodatachange",this.us);this.K(r,"videoplayerreset",this.us);this.K(r,"onPlaybackQualityChange",this.Nw);this.us();r.createClientVe(this.element,this,137721)}; MEi=function(r,V,I){var d=r.bL[V],a=g.Qf[V];return zIp(r,d?d.qualityLabel:a?a+"p":"Auto",V,I)}; CKi=function(r,V,I,d,a){var f=(V=r.G?r.Y[V]:r.V[V])&&V.quality,e=V&&V.qualityLabel;e=e?e:"Auto";d&&(e="("+e);r=zIp(r,e,f||"",a);d&&r.B.push(")");(d=(d=V&&V.paygatedQualityDetails)&&d.paygatedIndicatorText)&&I&&r.B.push({J:"div",Z:"ytp-premium-label",OE:d});return r}; zIp=function(r,V,I,d){V={J:"span",Yc:d,B:[V]};var a;d="ytp-swatch-color";if(r.C||r.G)d="ytp-swatch-color-white";I==="highres"?a="8K":I==="hd2880"?a="5K":I==="hd2160"?a="4K":I.indexOf("hd")===0&&I!=="hd720"&&(a="HD");a&&(V.B.push(" "),V.B.push({J:"sup",Z:d,OE:a}));return V}; fe=function(r,V,I,d,a,f){f=f===void 0?!1:f;var e={J:"div",Yc:["ytp-input-slider-section"],B:[{J:"input",Z:"ytp-input-slider",D:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};a&&e.B.unshift(a);f&&e.Yc.push("ytp-vertical-slider");g.u.call(this,e);this.C=r;this.L=V;this.j=I;this.initialValue=d;this.header=a;this.X=this.Fz("ytp-input-slider");this.G=d?d:r;this.init();this.K(this.X,"input",this.Y);this.K(this.X,"keydown", this.S)}; ee=function(r,V){r.G=V;r.updateValue("slidervalue",r.G);r.X.valueAsNumber=r.G;TOi(r,V)}; TOi=function(r,V){r.X.style.setProperty("--yt-slider-shape-gradient-percent",(V-r.C)/(r.L-r.C)*100+"%")}; YW=function(r){fe.call(this,r.getAvailablePlaybackRates()[0],r.getAvailablePlaybackRates()[r.getAvailablePlaybackRates().length-1],.05,r.getPlaybackRate(),{J:"div",Z:"ytp-speedslider-indicator-container",B:[{J:"div",Z:"ytp-speedslider-badge"},{J:"p",Z:"ytp-speedslider-text"}]});this.T=r;this.QH=Cy(this.kc,50,this);g.jN(this.X,"ytp-speedslider");this.V=this.Fz("ytp-speedslider-text");this.GQ=this.Fz("ytp-speedslider-badge");H6g(this);this.K(this.X,"change",this.bL)}; H6g=function(r){r.V.textContent=r.G+"x";r.GQ.classList.toggle("ytp-speedslider-premium-badge",r.G>2&&r.T.U("enable_web_premium_varispeed"))}; ne=function(r,V,I,d,a,f,e){g.u.call(this,{J:"div",Z:"ytp-slider-section",D:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},B:[{J:"div",Z:"ytp-slider",B:[{J:"div",Z:"ytp-slider-handle"}]}]});this.j=r;this.V=V;this.X=I;this.S=d;this.QH=a;this.n8=f;this.range=this.S-this.X;this.R7=this.Fz("ytp-slider-section");this.Y=this.Fz("ytp-slider");this.kc=this.Fz("ytp-slider-handle");this.L=new g.BX(this.Y, !0);this.G=e?e:I;g.S(this,this.L);this.L.subscribe("dragmove",this.D4,this);this.K(this.element,"keydown",this.Vt);this.K(this.element,"wheel",this.xP);this.init()}; je=function(r){ne.call(this,.05,.05,r.getAvailablePlaybackRates()[0],r.getAvailablePlaybackRates()[r.getAvailablePlaybackRates().length-1],150,20,r.getPlaybackRate());this.T=r;this.C=g.rX("P");this.GQ=Cy(this.bL,50,this);g.jN(this.Y,"ytp-speedslider");g.jN(this.C,"ytp-speedslider-text");r=this.C;var V=this.Y;V.parentNode&&V.parentNode.insertBefore(r,V.nextSibling);w2v(this);this.K(this.T,"onPlaybackRateChange",this.updateValues)}; w2v=function(r){r.C.textContent=b6r(r,r.G)+"x"}; b6r=function(r,V){r=Number(g.yv(V,r.X,r.S).toFixed(2));V=Math.floor((r+.001)*100%5+2E-15);var I=r;V!==0&&(I=r-V*.01);return Number(I.toFixed(2))}; O6X=function(r){g.CB.call(this,{J:"div",Z:"ytp-speedslider-component"});r.U("web_settings_use_input_slider")?this.G=new YW(r):this.G=new je(r);g.S(this,this.G);this.element.appendChild(this.G.element)}; W8A=function(r){var V=new O6X(r);WX.call(this,r,V,"Custom");g.S(this,V)}; $gX=function(r,V){var I=new W8A(r);g.Jf.call(this,"Playback speed",g.cU.Rl,r,V,DW(r)?void 0:"Custom",DW(r)?void 0:function(){g.tf(V,I)}); var d=this;this.Y=!1;g.S(this,I);this.L=new YW(r);g.S(this,this.L);r.U("web_settings_menu_icons")&&this.setIcon({J:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"path",D:{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.T=r;this.Y=!1;this.QH=null;DW(r)?(this.G=g.Tj("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.T.getPlaybackRate().toString()}),this.C=this.T.getPlaybackRate()):this.C=this.G=null;this.V=this.T.getAvailablePlaybackRates();this.K(r,"presentingplayerstatechange",this.UE);var a;((a=this.T.getVideoData())==null?0:a.uJ())&&this.K(r,"serverstitchedvideochange",this.UE);this.K(this.L.X,"change",function(){d.Y=!0;d.UE()}); this.UE()}; K8i=function(r,V){var I=xW(V);r.G&&(r.Y||V===r.C)?(r.lz(r.G),r.ys(V.toString())):r.lz(I)}; tEX=function(r){r.WL(r.V.map(xW));r.G=null;r.C=null;var V=r.T.getPlaybackRate();DW(r.T)&&RIO(r,V);!r.V.includes(V)||r.Y?r.lz(r.G):r.lz(xW(V))}; RIO=function(r,V){r.C=V;r.G=g.Tj("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:V.toString()});V=r.V.map(xW);V.unshift(r.G);r.WL(V)}; xW=function(r){return r.toString()}; DW=function(r){return r.U("web_settings_menu_surface_custom_playback")}; yyX=function(r){return r.U("web_settings_menu_surface_custom_playback")&&r.U("web_settings_use_input_slider")}; Gai=function(r,V,I,d){var a=new g.$Z(V,void 0,"Video Override");g.Jf.call(this,d.text||"",r,V,I,"Video Override",function(){g.tf(I,a)}); var f=this;g.jN(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();r=d.options;this.settings=g.gP(r,this.uN,this);this.C=a;g.S(this,this.C);V=new g.k6({J:"div",Z:"ytp-menuitemtitle",OE:"Allow for a different caption style if specified by the video."},0);g.S(this,V);this.C.LF(V,!0);this.Y=new g.k6({J:"div",Z:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},B:[{J:"div",Z:"ytp-menuitem-label",OE:"On"}]},-1);g.S(this,this.Y);this.C.LF(this.Y,!0);this.K(this.Y.element, "click",function(){Ayr(f,!0)}); this.G=new g.k6({J:"div",Z:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},B:[{J:"div",Z:"ytp-menuitem-label",OE:"Off"}]},-2);g.S(this,this.G);this.C.LF(this.G,!0);this.K(this.G.element,"click",function(){Ayr(f,!1)}); this.WL(g.uE(r,this.uN))}; Ayr=function(r,V){r.publish("settingChange",r.setting+"Override",!V);r.F_.q7()}; EB=function(r,V){g.$Z.call(this,r,void 0,"Options");var I=this;this.EP={};for(var d=0;d=0);if(!(V<0||V===r.Y)){r.Y=V;V=243*r.scale;var I=141*r.scale,d=cQj(r.X,r.Y,V);aNr(r.bg,d,V,I,!0);r.QH.start()}}; YEZ=function(r){var V=r.G;r.type===3&&r.kc.stop();r.api.removeEventListener("appresize",r.V);r.L||V.setAttribute("title",r.S);r.S="";r.G=null;r.update({text:"",title:"",keyBoardShortcut:"",keyBoardShortcutTitle:"",pillTitle:"",pillTimestamp:"",duration:"",eduText:""});r.wrapper.style.width=""}; jlg=function(r){g.u.call(this,{J:"button",Yc:["ytp-watch-later-button","ytp-button"],D:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.FG(r.N()))},B:[{J:"div",Z:"ytp-watch-later-icon",OE:"{{icon}}"},{J:"div",Z:"ytp-watch-later-title",OE:"Watch later"}]});this.T=r;this.icon=null;this.visible=this.isRequestPending=this.G=!1;qjj(r);r.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.K(r,"videoplayerreset",this.onReset);this.K(r,"appresize", this.cU);this.K(r,"videodatachange",this.cU);this.K(r,"presentingplayerstatechange",this.cU);this.cU();r=this.T.N();var V=g.BJ("yt-player-watch-later-pending");r.Y&&V?(SpZ(),n3v(this)):this.UE(2);g.NA(this.element,"ytp-show-watch-later-title",g.FG(r));y_(this.T,this.element,this)}; DVp=function(r){var V=r.T.getPlayerSize(),I=r.T.N(),d=g.J(r.T.getVideoData()),a=g.FG(I)&&g.J6(r.T)&&g.v(r.T.getPlayerStateObject(),128),f=I.S;return I.MG&&V.width>=240&&!d.isAd()&&d.MG&&!a&&!g.V_(d)&&!r.T.isEmbedsShortsMode()&&!f}; xVh=function(r,V){bKr(g.P8(r.T.N()),"wl_button",function(){SpZ({videoId:V});window.location.reload()})}; n3v=function(r){if(!r.isRequestPending){r.isRequestPending=!0;r.UE(3);var V=g.J(r.T.getVideoData());V=r.G?V.removeFromWatchLaterCommand:V.addToWatchLaterCommand;var I=g.J(r.T.va()),d=r.G?function(){r.G=!1;r.isRequestPending=!1;r.UE(2);r.T.N().j&&r.T.Bs("WATCH_LATER_VIDEO_REMOVED")}:function(){r.G=!0; r.isRequestPending=!1;r.UE(1);r.T.N().X&&r.T.Qk(r.element);r.T.N().j&&r.T.Bs("WATCH_LATER_VIDEO_ADDED")}; oE(I,V).then(d,function(){r.isRequestPending=!1;r.UE(4,"An error occurred. Please try again later.");r.T.N().j&&r.T.Bs("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; E3g=function(r,V){if(V!==r.icon){switch(V){case 3:var I=NW();break;case 1:I=ON();break;case 2:I={J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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:I={J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path", bJ:!0,D:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}r.updateValue("icon",I);r.icon=V}}; g.tx=function(){g.Uk.apply(this,arguments);this.E2=(this.sZ=g.FG(this.api.N()))&&(this.api.N().X||ax()||Ix());this.Es=48;this.cI=69;this.ER=this.Nf=null;this.Mu=[];this.I5=this.Lj=this.NU=this.xz=this.Kq=null;this.hX=[];this.contextMenu=this.cH=this.overflowButton=this.TD=this.qY=this.searchButton=this.copyLinkButton=this.shareButton=this.xo=this.wY=this.title=this.channelAvatar=this.Aj=this.tooltip=null;this.Rb=!1;this.nG=this.Ng=this.bG=this.mq=null;this.D_=this.vT=this.H0=!1}; NpZ=function(r){var V=r.api.N(),I=g.v(r.api.getPlayerStateObject(),128);return V.Y&&I&&!r.api.isFullscreen()}; slv=function(r){if(r.Qx()&&!r.api.isEmbedsShortsMode()&&r.TD){var V=r.api.U("web_player_hide_overflow_button_if_empty_menu");!r.xo||V&&!DVp(r.xo)||Ozh(r.TD,r.xo);!r.shareButton||V&&!XjX(r.shareButton)||Ozh(r.TD,r.shareButton);!r.copyLinkButton||V&&!X$v(r.copyLinkButton)||Ozh(r.TD,r.copyLinkButton)}else{V=r.api.N().getWebPlayerContextConfig();if(r.TD){for(var I=r.TD,d=g.H(I.actionButtons),a=d.next();!a.done;a=d.next())a.value.detach();I.actionButtons=[]}r.searchButton&&!g.eG(r.wY.element,r.searchButton.element)&& r.searchButton.Xz(r.wY.element);!r.xo||(V==null?0:V.hideTopWatchNextButton)||g.eG(r.wY.element,r.xo.element)||r.xo.Xz(r.wY.element);!r.shareButton||(V==null?0:V.hideTopShareButton)||g.eG(r.wY.element,r.shareButton.element)||r.shareButton.Xz(r.wY.element);r.copyLinkButton&&!g.eG(r.wY.element,r.copyLinkButton.element)&&r.copyLinkButton.Xz(r.wY.element)}}; cNS=function(r,V,I){V=I?V.lastElementChild:V.firstElementChild;for(var d=null;V;){if(ig(V,"display")!=="none"&&V.getAttribute("aria-hidden")!=="true"){var a=void 0;V.tabIndex>=0?a=V:a=cNS(r,V,I);a&&(d?I?a.tabIndex>d.tabIndex&&(d=a):a.tabIndexd/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=V.Sx())&&d.isView()&&(d=d.mediaElement);if(d&&d.wj().length>12&&g.OQ(a))return{msg:"played-ranges"};if(!a.S)return null;if(!e)return{msg:"no-pvd-formats"};if(!a.S.G||!e.G)return{msg:"non-dash"};d=e.videoInfos[0];var n=a.S.videoInfos[0];r.j&&nk(f)&&(d=V.Ru(),n= I.Ru());if(!d||!n)return{msg:"no-video-info"};if(r.S&&(h4(d)||h4(n)))return{msg:"av1"};V=r.G&&f.bu()&&bA();if(n.containerType!==d.containerType)if(V)f.Hs("sgap",{ierr:"container"});else return{msg:"container"};if(r.X&&!V&&(n.A0!==d.A0||n.A0===""||d.A0===""))return{msg:"codec"};if(r.Y&&n.video&&d.video&&Math.abs(n.video.width/n.video.height-d.video.width/d.video.height)>.01)return{msg:"ratio"};if(g.OQ(f)&&g.OQ(a))return{msg:"content-protection"};e=e.G[0];a=a.S.G[0];I=e.audio;var D=a.audio;if(I.sampleRate!== D.sampleRate&&!g.Zk)if(V)f.Hs("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:e.itag,cr:I.sampleRate,ni:a.itag,nr:D.sampleRate};return(I.numChannels||2)!==(D.numChannels||2)?{msg:"channel-count"}:r.C&&f.bu()&&d.video.fps!==n.video.fps?{msg:"fps"}:null}; TpS=function(r,V,I){var d=r.getVideoData(),a=V.getVideoData();if(!d.N().supportsGaplessShorts())return{nq:"env"};if(I.L){if(d.iz&&!d.isAd()||a.iz&&!a.isAd())return{nq:"autoplay"}}else if(d.iz||a.iz)return{nq:"autoplay"};if(I.W&&d.endSeconds>0)return{nq:"endcr"};if(!d.j)return{nq:"client"};if(!r.nj())return{nq:"no-empty"};r=Cui(I,r,V,Infinity);return r!=null?{nq:r.msg}:null}; GW=function(r){g.X.call(this);this.app=r;this.W=this.Y=this.X=this.G=null;this.S=1;this.events=new g.Su(this);this.events.K(this.app.zQ,g.jx("gaplessshortslooprange"),this.j);g.S(this,this.events)}; HuS=function(){this.W=this.Y=this.L=this.S=this.j=this.C=this.X=this.G=!1}; wOr=function(r){var V=new HuS;V.G=r.U("h5_gapless_support_types_diff");V.C=r.U("h5_gapless_error_on_fps_diff");V.j=r.U("html5_gapless_use_format_info_fix");V.S=r.U("html5_gapless_disable_on_av1")&&!r.U("html5_gapless_enable_on_av1");V.X=r.U("html5_gapless_check_codec_diff_strictly");V.L=r.U("html5_gapless_on_ad_autoplay");V.Y=r.U("html5_gapless_disable_diff_aspect_radio");V.W=r.U("html5_gapless_disable_on_end_cue_range");return V}; g.Fh=function(r,V,I,d){d=d===void 0?!1:d;dm.call(this);this.mediaElement=r;this.start=V;this.end=I;this.G=d}; buZ=function(r,V,I,d,a,f){f=f===void 0?0:f;g.X.call(this);var e=this;this.policy=r;this.G=V;this.X=I;this.dh=a;this.W=f;this.Y=this.S=null;this.currentVideoDuration=this.C=-1;this.L=!1;this.TA=new IL;this.Y2=d-V.N2()*1E3;this.TA.then(void 0,function(){}); this.timeout=new g.hz(function(){e.rY("timeout")},1E4); g.S(this,this.timeout);this.j=isFinite(d)||this.dh.N().experiments.uL("html5_pseudogapless_shorts")&&nk(V.getVideoData());this.status={status:0,error:null}}; $VO=function(r){var V,I,d,a,f,e,n,D,x,E;return g.L(function(N){if(N.X==1){if(r.h0())return N.return(Promise.reject(Error(r.status.error||"disposed")));r.timeout.start();V=g.lM.L5();return g.G(N,r.TA,2)}g.lM.r3("gtfta",V);I=r.G.Sx();if(I.isEnded())return r.rY("ended_in_finishTransition"),N.return(Promise.reject(Error(r.status.error||"")));if(!r.Y||!$Y(r.Y))return r.rY("next_mse_closed"),N.return(Promise.reject(Error(r.status.error||"")));if(r.X.M3()!==r.Y)return r.rY("next_mse_mismatch"),N.return(Promise.reject(Error(r.status.error|| "")));d=OuA(r);a=d.WP;f=d.s5;e=d.oC;r.G.Cj(!1,!0);n=W9r(I,a,e,!r.X.getVideoData().isAd());r.X.setMediaElement(n);(D=r.G.mw())&&r.X.tS(D.xw,D.Dh);r.j&&(r.X.seekTo(r.X.getCurrentTime()+.001,{J4:!0,K$:3,YX:"gapless_pseudo"}),n.play(),ZJ());x=I.Qy();x.cpn=r.G.getVideoData().clientPlaybackNonce;x.st=""+a;x.et=""+e;r.X.Hs("gapless",x);r.G.Hs("gaplessTo",{cpn:r.X.getVideoData().clientPlaybackNonce});E=r.G.getPlayerType()===r.X.getPlayerType();r.G.hm(f,!0,!1,E,r.X.getVideoData().clientPlaybackNonce);r.X.hm(r.X.getCurrentTime(), !0,!0,E,r.G.getVideoData().clientPlaybackNonce);g.$i(function(){!r.X.getVideoData().bL&&r.X.getPlayerState().isOrWillBePlaying()&&r.X.dA()}); Le(r,6);r.dispose();return N.return(Promise.resolve())})}; yNi=function(r){if(r.X.getVideoData().S){var V=r.dh.N().U("html5_gapless_suspend_next_loader")&&r.W===1;r.X.Sa(r.Y,V,K9A(r));Le(r,3);RUh(r);var I=tVO(r);V=I.H6;I=I.uM;V.subscribe("updateend",r.s0,r);I.subscribe("updateend",r.s0,r);r.s0(V);r.s0(I)}}; RUh=function(r){r.G.unsubscribe("internalvideodatachange",r.KS,r);r.X.unsubscribe("internalvideodatachange",r.KS,r);r.dh.N().U("html5_gapless_use_format_info_fix")&&(r.G.unsubscribe("internalvideoformatchange",r.KS,r),r.X.unsubscribe("internalvideoformatchange",r.KS,r));r.G.unsubscribe("mediasourceattached",r.KS,r);r.X.unsubscribe("statechange",r.vj,r)}; W9r=function(r,V,I,d){r=r.isView()?r.mediaElement:r;return new g.Fh(r,V,I,d)}; Le=function(r,V){V<=r.status.status||(r.status={status:V,error:null},V===5&&r.TA.resolve())}; K9A=function(r){return r.dh.N().U("html5_gapless_no_clear_buffer_timeline")&&r.W===1&&xa(r.G.getVideoData())}; OuA=function(r){var V=r.G.Sx();V=V.isView()?V.start:0;var I=r.G.getVideoData().isLivePlayback?Infinity:r.G.Qu(!0);I=Math.min(r.Y2/1E3,I)+V;var d=r.j?100:0;r=I-r.X.hP()+d;return{B2:V,WP:r,s5:I,oC:Infinity}}; tVO=function(r){return{H6:r.S.G.ex,uM:r.S.X.ex}}; Jx=function(r){g.X.call(this);var V=this;this.app=r;this.W=this.X=this.G=null;this.j=!1;this.S=this.Y=null;this.L=wOr(this.app.N());this.C=function(){g.$i(function(){ANX(V)})}}; Gfi=function(r,V,I,d,a){d=d===void 0?0:d;a=a===void 0?0:a;r.nj()||ZW(r);r.Y=new IL;r.G=V;var f=I,e=a===0;e=e===void 0?!0:e;var n=r.app.jC(),D=n.getVideoData().isLivePlayback?Infinity:n.Qu(!0)*1E3;f>D&&(f=D-200,r.j=!0);e&&n.getCurrentTime()>=f/1E3?r.C():(r.X=n,e&&(e=f,f=r.X,r.app.zQ.addEventListener(g.nv("vqueued"),r.C),e=isFinite(e)||e/1E3>f.getDuration()?e:0x8000000000000,r.W=new g.ex(e,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(r.W)));e=d/=1E3;f=V.getVideoData().G;d&&f&&r.X&&(n=d,D=0, V.getVideoData().isLivePlayback&&(e=Math.min(I/1E3,r.X.Qu(!0)),D=Math.max(0,e-r.X.getCurrentTime()),n=Math.min(d,V.Qu()+D)),e=c3j(f,n)||d,e!==d&&r.G.Hs("qvaln",{st:d,at:e,rm:D,ct:n}));V=e;d=r.G;d.getVideoData().SA=!0;d.getVideoData().j=!0;d.qZ(!0);f={};r.X&&(f=r.X.vL(),e=r.X.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:e});d.Hs("queued",f);V!==0&&d.seekTo(V+.01,{J4:!0,K$:3,YX:"videoqueuer_queued"});r.S=new buZ(r.L,r.app.jC(),r.G,I,r.app,a);I=r.S;I.status.status!==Infinity&&(Le(I, 1),I.G.subscribe("internalvideodatachange",I.KS,I),I.X.subscribe("internalvideodatachange",I.KS,I),I.dh.N().U("html5_gapless_use_format_info_fix")&&(I.G.subscribe("internalvideoformatchange",I.KS,I),I.X.subscribe("internalvideoformatchange",I.KS,I)),I.G.subscribe("mediasourceattached",I.KS,I),I.X.subscribe("statechange",I.vj,I),I.G.subscribe("newelementrequired",I.BP,I),I.KS());return r.Y}; ANX=function(r){var V,I,d,a,f,e,n,D,x;g.L(function(E){switch(E.X){case 1:if(r.h0()||!r.Y||!r.G)return E.return();r.j&&r.app.jC().pT(!0,!1);I=r.app.N().U("html5_force_csdai_gapful_transition")&&((V=r.app.jC())==null?void 0:V.getVideoData().isDaiEnabled());d=null;if(!r.S||I){E.qk(2);break}g.wA(E,3);return g.G(E,$VO(r.S),5);case 5:g.$v(E,2);break;case 3:d=a=g.th(E);case 2:if(!r.G)return E.return();g.lM.SM("vqsp",function(){r.app.FZ(r.G)}); if(!r.G)return E.return();f=r.G.Sx();r.app.N().U("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&r.G.seekTo(0);g.lM.SM("vqpv",function(){r.app.playVideo()}); if(d||I)r.G?(e=d?d.message:"forced",(n=r.X)==null||n.Hs("gapfulfbk",{r:e}),r.G.TT(e)):(D=r.X)==null||D.Hs("gapsp",{});x=r.Y;ZW(r);x&&x.resolve();return E.return(Promise.resolve())}})}; ZW=function(r,V){V=V===void 0?!1:V;if(r.X){if(r.W){var I=r.X;r.app.zQ.removeEventListener(g.nv("vqueued"),r.C);I.removeCueRange(r.W)}r.X=null;r.W=null}r.S&&(r.S.status.status!==6&&(I=r.S,I.status.status!==Infinity&&I.W!==1&&I.rY("Canceled")),r.S=null);r.Y=null;r.G&&!V&&r.G!==r.app.eR()&&r.G!==r.app.jC()&&r.G.dispose();r.G&&V&&r.G.GA();r.G=null;r.j=!1}; F9i=function(r){var V;return((V=r.S)==null?void 0:V.currentVideoDuration)||-1}; lGi=function(r,V,I){if(r.nj())return"qie";if(r.G==null||r.G.h0()||r.G.getVideoData()==null)return"qpd";if(V.videoId!==r.G.Ty())return"vinm";if(F9i(r)<=0)return"ivd";if(I!==1)return"upt";if((I=r.S)==null)r=void 0;else if(I.getStatus().status!==5)r="niss";else if(Cui(I.policy,I.G,I.X,I.Y2)!=null)r="pge";else{V=tVO(I);r=V.H6;var d=V.uM;V=g.zM(I.dh.N().experiments,"html5_shorts_gapless_next_buffer_in_seconds");I=I.C+V;d=N$(d.yz(),I);r=N$(r.yz(),I);r=!(V>0)||d&&r?null:"neb"}return r!=null?r:null}; L9X=function(){g.NK.call(this);var r=this;this.fullscreen=0;this.Y=this.S=this.pictureInPicture=this.G=this.X=this.inline=!1;this.W=function(){r.r$()}; yMA(this.W);this.C=this.getVisibilityState(this.lk(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.uu(),this.Db(),this.rM(),this.uh())}; Ib=function(r){return!(r.isMinimized()||r.isInline()||r.isBackground()||r.uu()||r.Db()||r.rM()||r.uh())}; g.Xh=function(r){g.X.call(this);this.yH=r;this.videoData=this.playerState=null}; g.Bf=function(r,V){g.X.call(this);this.S={};this.BO=this.L=null;this.W={};this.C=null;this.X=this.G=new g.Xh(r);this.Y=V}; JNX=function(r){for(var V=g.H(Object.values(r.W)),I=V.next();!I.done;I=V.next())I.value.dispose();r.W={};r.C=null}; Zug=function(r,V){r.W[V.hT()]=V;r.C=V}; iuS=function(r){var V=r.experiments,I=V.uL.bind(V);XOS=I("html5_use_async_stopVideo");Bpg=I("html5_pause_for_async_stopVideo");g3i=I("html5_not_reset_media_source");I("html5_listen_for_audio_output_changed")&&(LRv=!0);KI=I("html5_not_reset_media_source");SEi=I("html5_not_reset_media_source");HT=I("html5_retain_source_buffer_appends_for_debugging");CMX(I("web_watch_pip"));I("html5_mediastream_applies_timestamp_offset")&&(CT=!0);var d=g.zM(V,"html5_cobalt_override_quic");d&&nZ("QUIC",+(d>0));(d=g.zM(V, "html5_cobalt_audio_write_ahead_ms"))&&nZ("Media.AudioWriteDurationLocal",d);(d=I("html5_cobalt_enable_decode_to_texture"))&&nZ("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(r.Ko()||I("html5_log_cpu_info"))&&$rO();Error.stackTraceLimit=50;var a=g.zM(V,"html5_idle_rate_limit_ms");a&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,a)}}); Xbj(r.W);CUv(I("html5_use_ump_request_slicer"));FBi(I("html5_record_now"));I("html5_disable_streaming_xhr")&&(aj=!1);I("html5_byterate_constraints")&&(zb=!0);I("html5_use_non_active_broadcast_for_post_live")&&(aJ=!0);I("html5_enable_encrypted_av1")&&(kd=!0);ZMZ(g.zM(r.experiments,"html5_sticky_duration_mos"));r.U("html5_estimate_live_partial_slice_duration")&&(a$p=!0)}; UVX=function(r,V){return r.slice(V.length).replace(/_[a-z]/g,function(I){return I.toUpperCase().replace("_","")}).replace("Dot",".")}; Qli=function(r){for(var V={},I=g.H(Object.keys(r.experiments.flags)),d=I.next();!d.done;d=I.next())if(d=d.value,d.startsWith("cobalt_h5vcc")){if(d.startsWith("cobalt_h5vcc_string")){I=UVX(d,"cobalt_h5vcc_string");r=fx(r.experiments,d);I&&r&&(V[I]=nZ(I,r));break}if(d.startsWith("cobalt_h5vcc")){I=UVX(d,"cobalt_h5vcc");r=g.zM(r.experiments,d);I&&r&&(V[I]=nZ(I,r));break}}return V}; gx=function(r,V,I,d,a){a=a===void 0?[]:a;g.X.call(this);this.yH=r;this.ZV=V;this.Y=I;this.segments=a;this.G=void 0;this.X=new Map;a.length&&(this.G=a[0])}; mVA=function(r){if(!(r.segments.length<2)){var V=r.segments.shift();if(V){var I=V.G,d=[];if(I.size){I=g.H(I.values());for(var a=I.next();!a.done;a=I.next()){a=g.H(a.value);for(var f=a.next();!f.done;f=a.next()){f=f.value;for(var e=g.H(f.segments),n=e.next();!n.done;n=e.next())(n=n.value.hT())&&d.push(n);f.removeAll()}}}(I=V.hT())&&d.push(I);d=g.H(d);for(I=d.next();!I.done;I=d.next())r.X.delete(I.value);V.dispose()}}}; Se=function(r,V,I,d){if(!r.G||V>I)return!1;V=new gx(r.yH,V,I,r.G,d);d=g.H(d);for(I=d.next();!I.done;I=d.next()){I=I.value;var a=I.hT();a&&a!==r.G.hT()&&r.X.set(a,[I])}r=r.G;r.G.has(V.RB())?r.G.get(V.RB()).push(V):r.G.set(V.RB(),[V]);return!0}; HP=function(r,V){return r.X.get(V)}; uZS=function(r,V,I){r.X.set(V,I)}; iM=function(r,V,I,d,a,f){return new pOp(I,I+(d||0),!d,V,r,a,f)}; pOp=function(r,V,I,d,a,f,e){g.X.call(this);this.ZV=r;this.X=V;this.S=I;this.type=d;this.Y=a;this.videoData=f;this.mR=e;this.G=new Map;tR(f)}; v3h=function(r){if(r.G.size)for(var V=g.H(r.G.values()),I=V.next();!I.done;I=V.next()){I=g.H(I.value);for(var d=I.next();!d.done;d=I.next())d.value.dispose()}r.G.clear()}; UB=function(r,V,I){g.u5.call(this,I.UB());this.j4=r;this.videoData=V}; qEX=function(r){this.end=this.start=r}; g.Q5=function(){this.G=new Map;this.S=new Map;this.X=new Map}; g.mW=function(r,V,I,d){g.X.call(this);var a=this;this.api=r;this.yH=V;this.playback=I;this.app=d;this.p8=new g.Q5;this.X=new Map;this.C=[];this.W=[];this.Y=new Map;this.Bp=new Map;this.L=new Map;this.EE=null;this.M2=NaN;this.X_=this.dH=null;this.gH=new g.hz(function(){PuX(a,a.M2,a.dH||void 0)}); this.events=new g.Su(this);this.Qa=15E3;this.n8=new g.hz(function(){a.R7=!0;a.playback.ND(a.Qa);o3S(a);if(a.playback.getVideoData().uJ()){var f;a.Ps({togab:(f=a.bL)==null?void 0:f.identifier})}a.So(!1)},this.Qa); this.R7=!1;this.V=new Map;this.DM=[];this.bL=null;this.rH=new Set;this.TQ=[];this.Hy=[];this.By=[];this.NJ=[];this.G=void 0;this.GQ=0;this.L8=!0;this.j=!1;this.Ws=[];this.Mk=new Set;this.MG=new Set;this.ll=new Set;this.Uo=0;this.a7=new Set;this.Py=0;this.dB=this.CF=!1;this.SR=this.S="";this.kc=null;this.logger=new g.xP("dai");this.m_={bRE:function(){return a.X}, sF0:function(){return a.C}, GAM:function(){return a.Y}, SZE:function(){return a.S}, St:function(f){a.onCueRangeEnter(a.X.get(f))}, QFE:function(f){a.onCueRangeExit(a.X.get(f))}, To0:function(f,e){a.X.set(f,e)}, CfM:function(f){a.SR=f}, AO:function(){return a.AO()}, Fa0:function(f){return a.L.get(f)}, n7M:function(){return a.kc}}; this.playback.getPlayerType();this.playback.Xd(this);this.ya=this.yH.Ko();g.S(this,this.gH);g.S(this,this.events);g.S(this,this.n8);this.events.K(this.api,g.nv("serverstitchedcuerange"),this.onCueRangeEnter);this.events.K(this.api,g.jx("serverstitchedcuerange"),this.onCueRangeExit);Zug(this.app.OO(),new UB(this,this.playback.getVideoData(),this.playback))}; VYX=function(r,V,I,d,a,f,e,n,D){if(r.yH.U("html5_ignore_ads_after_noadresponse")&&D&&r.rH.has(D))return uM(r,{reason:"addafternoad",cueid:D}),"";D=kfi(r,f,f+a);r.R7&&r.Ps({adaftto:1});I||r.Ps({missadcon:1,enter:f,len:a,aid:n});r.QH&&!r.QH.fg&&(r.QH.fg=n);r.dB&&r.Ps({adfbk:1,enter:f,len:a,aid:n});var x=r.playback;e=e===void 0?f+a:e;f===e&&!a&&r.yH.U("html5_allow_zero_duration_ads_on_timeline")&&r.Ps({attl0d:1});f>e&&uM(r,{reason:"enterTime_greater_than_return",ZV:f,bl:e});var E=x.Wy()*1E3;fx&&uM(r,{reason:"parent_return_greater_than_content_duration",bl:e,rCM:x});x=null;E=g.Fe(r.W,{bl:f},function(N,c){return N.bl-c.bl}); E>=0&&(x=r.W[E],x.bl>f&&hUp(r,V.video_id||"",f,e,x));if(D&&x)for(E=0;E.5&&r.Ps({ttdtb:1,delta:e,cpn:a.cpn,enter:V.adCpn,exit:I.adCpn,seek:d,skip:f});r.api.U("html5_ssdai_enable_media_end_cue_range")&&r.api.oF();if(V.isAd&&I.isAd){a=!!f;if(V.adCpn&&I.adCpn){var n=r.Y.get(V.adCpn);var D=r.Y.get(I.adCpn)}a?r.Ps({igtransskip:1,enter:V.adCpn,exit:I.adCpn,seek:d,skip:f}):oB(r,D,n,I.Kw,V.Kw,d,a)}else if(!V.isAd&&I.isAd){r.SR=a.cpn;qf(r,a.videoData);r.api.publish("serverstitchedvideochange");n=vf(r, "a2c");r.Ps(n);r.Uo=0;if(n=I.Wr)r.GQ=n.end;var x;I.adCpn&&(x=r.Y.get(I.adCpn));x&&r.playback.Xw(x,a,I.Kw,V.Kw,d,!!f)}else if(V.isAd&&!I.isAd){var E;V.adCpn&&(E=r.Y.get(V.adCpn));E&&(r.GQ=0,r.SR=E.cpn,qf(r,E.videoData),Pf(r,E),x=vf(r,"c2a",E),r.Ps(x),r.Uo=1,r.playback.Xw(a,E,I.Kw,V.Kw,d,!!f))}}; hx=function(r,V,I){I=I===void 0?0:I;var d=g.Fe(r.W,{ZV:(V+I)*1E3},function(n,D){return n.ZV-D.ZV}); d=d<0?(d+2)*-1:d;if(d>=0)for(var a=V*1E3,f=d;f<=d+1&&f=e.ZV-I*1E3&&a<=e.bl+I*1E3)return{K_:e,AE:V}}return{K_:void 0,AE:V}}; dRZ=function(r,V){var I="";(V=IlZ(r,V))&&(I=V.getId());return I?r.Y.get(I):void 0}; IlZ=function(r,V){if(r.SR){var I=r.X.get(r.SR);if(I&&I.start-200<=V&&I.end+200>=V)return I}r=g.H(r.X.values());for(I=r.next();!I.done;I=r.next())if(I=I.value,I.start<=V&&I.end>=V)return I}; PuX=function(r,V,I){var d=r.X_||r.app.jC().getPlayerState();r5(r,!0);r.playback.seekTo(V,I);r=r.app.jC();V=r.getPlayerState();d.isOrWillBePlaying()&&!V.isOrWillBePlaying()?r.playVideo():d.isPaused()&&!V.isPaused()&&r.pauseVideo()}; r5=function(r,V){r.M2=NaN;r.dH=null;r.gH.stop();r.EE&&V&&r.EE.w3();r.X_=null;r.EE=null}; alX=function(r){var V=V===void 0?-1:V;var I=I===void 0?Infinity:I;for(var d=[],a=g.H(r.W),f=a.next();!f.done;f=a.next())f=f.value,(f.ZVI)&&d.push(f);r.W=d;d=g.H(r.X.values());for(a=d.next();!a.done;a=d.next())a=a.value,a.start>=V&&a.end<=I&&(r.playback.removeCueRange(a),r.X.delete(a.getId()),r.Ps({rmAdCR:1}));d=hx(r,V/1E3);V=d.K_;d=d.AE;if(V&&(d=d*1E3-V.ZV,a=V.ZV+d,V.durationMs=d,V.bl=a,d=r.X.get(V.cpn))){a=g.H(r.C);for(f=a.next();!f.done;f=a.next())f=f.value,f.start===d.end?f.start=V.ZV+ V.durationMs:f.end===d.start&&(f.end=V.ZV);d.start=V.ZV;d.end=V.ZV+V.durationMs}if(V=hx(r,I/1E3).K_){var e;d="playback_timelinePlaybackId_"+V.Vy+"_video_id_"+((e=V.videoData)==null?void 0:e.videoId)+"_durationMs_"+V.durationMs+"_enterTimeMs_"+V.ZV+"_parentReturnTimeMs_"+V.bl;r.ML("Invalid_clearEndTimeMs_"+I+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; flZ=function(r){r.p8.clearAll();r.X.clear();r.C=[];r.W=[];r.Y.clear();r.Bp.clear();r.L.clear();r.V.clear();r.DM=[];r.bL=null;r.rH.clear();r.TQ=[];r.Hy=[];r.By=[];r.NJ=[];r.Ws=[];r.Mk.clear();r.MG.clear();r.ll.clear();r.a7.clear();r.R7=!1;r.G=void 0;r.GQ=0;r.L8=!0;r.j=!1;r.Uo=0;r.Py=0;r.CF=!1;r.dB=!1;r.S="";r.n8.isActive()&&pe(r)}; Y0i=function(r,V,I,d,a,f){if(!r.dB)if(g.ebA(r,I))r.Ps({gdu:"undec",seg:I,itag:a});else if(V=V6(r,V,I,d,f),!(r.playback.getVideoData().uJ()&&(V==null?0:V.QJ)))return V}; V6=function(r,V,I,d,a){var f=r.V.get(I);if(!f){if(f=nLh(r,V))return f;V=r.WD(I-1,d!=null?d:2);if(a)return r.Ps({misscue:a,sq:I,type:d,prevsstate:V==null?void 0:V.Cy,prevrecord:r.V.has(I-1)}),r.V.get(I-1);if((V==null?void 0:V.Cy)===2)return r.Ps({adnf:1,sq:I,type:d,prevrecord:r.V.has(I-1)}),r.V.get(I-1)}return f}; nLh=function(r,V){V+=r.Ll();if(r.playback.getVideoData().uJ())a:{var I=1;I=I===void 0?0:I;var d=V*1E3;r=g.H(r.W);for(var a=r.next();!a.done;a=r.next()){a=a.value;var f=a.UX?a.UX*1E3:a.ZV;if(d>=a.ZV-I*1E3&&d<=f+a.durationMs+I*1E3){d={K_:a,AE:V};break a}}d={K_:void 0,AE:V}}else d=hx(r,V),((I=d)==null?0:I.K_)||(d=hx(r,V,1));var e;return(e=d)==null?void 0:e.K_}; jWA=function(r,V){V=V===void 0?"":V;var I=xg(V)||void 0;if(!V||!I){var d;r.Ps({adcfg:(d=V)==null?void 0:d.length,dcfg:I==null?void 0:I.length})}return I}; DRr=function(r){if(r.Ws.length)for(var V=g.H(r.Ws),I=V.next();!I.done;I=V.next())r.onCueRangeExit(I.value);V=g.H(r.X.values());for(I=V.next();!I.done;I=V.next())r.playback.removeCueRange(I.value);V=g.H(r.C);for(I=V.next();!I.done;I=V.next())r.playback.removeCueRange(I.value);r.X.clear();r.C=[];r.p8.clearAll();r.G||(r.L8=!0)}; oB=function(r,V,I,d,a,f,e){if(V&&I){r.SR=I.cpn;qf(r,I.videoData);Pf(r,I);var n=vf(r,"a2a",I);r.Ps(n);r.Uo++;r.playback.Xw(V,I,d||0,a||0,!!f,!!e)}else r.Ps({misspbkonadtrans:1,enter:(I==null?void 0:I.cpn)||"",exit:(V==null?void 0:V.cpn)||"",seek:f,skip:e})}; ELj=function(r,V,I,d){if(d)for(d=0;dI){var f=a.end;a.end=V;xRA(r,I,f)}else if(a.start>=V&&a.startI)a.start=I;else if(a.end>V&&a.end<=I&&a.start=V&&a.end<=I){r.playback.removeCueRange(a);if(r.Ws.includes(a))r.onCueRangeExit(a);r.C.splice(d,1);continue}d++}else xRA(r,V,I)}; xRA=function(r,V,I){V=r.Nz(V,I);I=!0;g.Xe(r.C,V,function(e,n){return e.start-n.start}); for(var d=0;d0){var a=r.C[d],f=r.C[d-1];if(Math.round(f.end/1E3)>=Math.round(a.start/1E3)){f.end=a.end;a!==V?r.playback.removeCueRange(a):I=!1;r.C.splice(d,1);continue}}d++}if(I)for(r.playback.addCueRange(V),V=r.playback.bj("serverstitchedcuerange",36E5),V=g.H(V),I=V.next();!I.done;I=V.next())r.X.delete(I.value.getId())}; I_=function(r,V,I){if(I===void 0||!I){I=g.H(r.DM);for(var d=I.next();!d.done;d=I.next()){d=d.value;if(V>=d.start&&V<=d.end)return;if(V===d.end+1){d.end+=1;return}}r.DM.push(new qEX(V))}}; g.ebA=function(r,V){r=g.H(r.DM);for(var I=r.next();!I.done;I=r.next())if(I=I.value,V>=I.start&&V<=I.end)return!0;return!1}; d5=function(r,V,I){var d;if(d=r.playback.getVideoData().uJ()||r.yH.U("html5_ssdai_extent_last_unfinished_ad_cue_range"))d=(d=r.Y.get(V))&&d.ov?(r=r.L.get(d==null?void 0:d.ov))&&r.slice(-1)[0].cpn===V:!1;return d&&I===2?1E3:0}; hUp=function(r,V,I,d,a){var f;V={reason:"overlapping_playbacks",ls8:V,ZV:I,bl:d,lUs:a.Vy,HRs:((f=a.videoData)==null?void 0:f.videoId)||"",Vgk:a.durationMs,PtM:a.ZV,ypQ:a.bl};uM(r,V)}; uM=function(r,V,I){r.playback.Eg(V,I)}; N0A=function(r,V){var I=[];r=r.L.get(V);if(!r)return[];r=g.H(r);for(V=r.next();!V.done;V=r.next())V=V.value,V.cpn&&I.push(V.cpn);return I}; sWS=function(r,V,I){var d=0;r=r.L.get(I);if(!r)return-1;r=g.H(r);for(I=r.next();!I.done;I=r.next()){if(I.value.cpn===V)return d;d++}return-1}; cPS=function(r,V){var I=0;r=r.L.get(V);if(!r)return 0;r=g.H(r);for(V=r.next();!V.done;V=r.next())V=V.value,V.durationMs!==0&&V.bl!==V.ZV&&I++;return I}; zbA=function(r,V,I){var d=!1;if(I&&(I=r.L.get(I))){I=g.H(I);for(var a=I.next();!a.done;a=I.next())a=a.value,a.durationMs!==0&&a.bl!==a.ZV&&(a=a.cpn,V===a&&(d=!0),d&&!r.MG.has(a)&&(r.Ps({decoratedAd:a}),r.MG.add(a)))}}; o3S=function(r){r.ya&&r.Ps({adf:"0_"+((new Date).getTime()/1E3-r.Py)+"_isTimeout_"+r.R7})}; kfi=function(r,V,I){if(r.TQ.length)for(var d=g.H(r.TQ),a=d.next(),f={};!a.done;f={Vi:void 0},a=d.next()){f.Vi=a.value;a=f.Vi.startSecs*1E3;var e=f.Vi.aB*1E3+a;if(V>a&&Va&&I=V)return I}}; llA=function(r){var V=r.playback.getVideoData();r.SR&&(r=r.Sg.get(r.SR))&&(V=r);return V}; Lzp=function(r,V,I){I=I===void 0?!1:I;var d=r.timeline.G;if(d){d=d.G;var a=Array.from(d.keys());g.LG(a);V=g.Fe(a,V);V=d.get(a[V<0?(V+2)*-1:V]);if(!I&&V){I=g.H(V);for(V=I.next();!V.done;V=I.next())if(V=V.value,V.RB()!==V.rU())return V;return r.timeline}return V&&V.length>0?V[V.length-1]:void 0}}; yPZ=function(r,V,I){I=I===void 0?!1:I;var d=Lzp(r,V,I);if(d){if(r=d.segments,r.length){for(var a=g.H(r),f=a.next();!f.done;f=a.next())if(f=f.value,f.RB()<=V&&f.rU()>V)return f;if(I&&d.RB()===d.rU())return r[0]}}else r.api.Hs("ssap",{ctnf:1})}; wKZ=function(r,V){var I;if(r.MK)for(I=r.wb.shift();I&&I!==r.MK;)I=r.wb.shift();else I=r.wb.shift();if(I){if(r.gq.has(I))JPO(r,I);else if(V===3||V===4)r.ZI.stop(),r.api.playVideo(1);r.EW.set(r.SR,V);r.api.Hs("ssap",{onvftn:1});RbX(r,I);return!1}r.api.Hs("ssap",{onvftv:1});r.ZI.stop();return!0}; JPO=function(r,V){V=HP(r.timeline,V);if(V==null?0:V.length)r.api.pauseVideo(),r.ZI.start(V[0].mR)}; RbX=function(r,V){var I=r.playback.getVideoData(),d=I.clientPlaybackNonce;r.kJ&&(r.events.pF(r.kJ),r.kJ=null);var a=r.SR,f=!1;if(a==="")a=d,f=!0;else if(a===void 0){var e=r.playback.yb();e&&r.timeline.X.has(e)&&(a=e);r.api.Hs("ssap",{mcc:a+";"+V});r.playback.vy(new Gk("ssap.timelineerror",{e:"missing_current_cpn",pcpn:a,ccpn:V}))}if(a===V)f&&I&&Z7i(r,I,f);else{e=r.EW.get(a);if(!f&&(!e||e!==3&&e!==5&&e!==6&&e!==7)){var n=r.api.oF(r.SR);r.api.Hs("ssap",{nmec:n,cpc:r.SR,ec:V})}e&&e!==2||r.nY();r.SR= V;r.nY();V=HP(r.timeline,r.SR);if(V==null?0:V.length){V=V[0];n=V.getType();a!==d&&(r.Vf=a,I=r.Sg.get(a));e?r.EW.delete(a):e=f?1:2;r.api.Hs("ssapt",{ostro:e,pcpn:a,ccpn:r.SR});a:{var D=r.SR;if(!r.T6.has(D))for(var x=g.H(r.T6),E=x.next();!E.done;E=x.next()){var N=g.H(E.value);E=N.next().value;N=N.next().value;if(N.getId().includes(D)){D=E;break a}}}x=r.api.N().U("html5_ssap_insert_su_before_nonvideo")&&D!==r.SR;r.playback.Z8(D,x);D=Math.max(0,a_(r,a));x=r.playback.getCurrentTime();x=Math.max(0,x-XX(r, r.SR)/1E3);E=V.getVideoData();N=e===3||e===5||e===6||e===7;if(r.api.U("html5_ssap_skip_illegal_seeking")){var c=r.playback.getPlayerState();c=!g.v(c,8)&&g.v(c,16);N=N||c;c&&r.api.Hs("ssap",{iis:1})}r.playback.Sq(a,r.SR,D,x,!1,N,r.playback.getPlayerState(),!0);r.api.Hs("ssapt",{ostri:e,pcpn:a,ccpn:r.SR});var z;r.playback.l3(a,r.SR,d,E,(z=r.E3.get(a))!=null?z:(0,g.m)(),I);r.E3.delete(a);f?I=void 0:I||r.api.Hs("ssap",{pvdm:a+";"+r.SR,pvdmc:r.SR===d?"1":"0"});r.api.Hs("ssap",{tpac:a+";"+r.SR,tpcc:d,tpv:(E== null?0:E.IL())?"1":"0"},!1,1);r.api.NP();r.api.publish("videodatachange","newdata",E,n,I,e);V.S||r.playback.getVideoData().publish("dataupdated");r.gq.delete(a);r.MK="";E&&n===1?Z7i(r,E):r.playback.Hs("ssap",{nis:r.SR});n===2?r.Uo++:r.Uo=0}}}; Z7i=function(r,V,I){I=I===void 0?!1:I;if(V.startSeconds&&r.cY){var d=V.startSeconds;V=HP(r.timeline,V.clientPlaybackNonce);if(V==null?0:V.length)d+=V[0].RB()/1E3,r.api.U("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=r.X5()||(r.playback.seekTo(d,{qy:!0}),r.cY=!1,r.playback.Hs("ssap",{is:r.SR,co:I?"1":"0",tse:d.toFixed()}))}}; KzX=function(r,V,I){V=HP(r.timeline,V);if(V!=null&&V.length&&(V=Lzp(r,V[0].RB()))){V=g.H(V.segments);for(var d=V.next();!d.done;d=V.next()){d=d.value;if(d.hT()===I)break;if(d=d.hT()){var a=r.T6.get(d);a&&r.playback.removeCueRange(a);r.T6.delete(d)}}}}; AF=function(r){return r.playback.getVideoData().clientPlaybackNonce}; T$S=function(r,V){if(r.C5&&r.SR!==V)return!1;if(r.P2)return!0;if(V=r.T6.get(V))if(V=V.getId().split(","),V.length>1)for(var I=0;If)return fd(r,"enterAfterReturn enterTimeMs="+a+" is greater than parentReturnTimeMs="+f.toFixed(3),e,n),"";var x=D.Wy()*1E3;if(ax)return D="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+x+". And timestampOffset in seconds is "+ D.N2(),fd(r,D,e,n),"";x=null;for(var E=g.H(r.X),N=E.next();!N.done;N=E.next()){N=N.value;if(a>=N.ZV&&aN.ZV)return fd(r,"overlappingReturn",e,n),"";if(f===N.ZV)return fd(r,"outOfOrder",e,n),"";a===N.bl&&(x=N)}e="cs_childplayback_"+gLr++;n={Wr:ed(d,!0),Y2:Infinity,target:null};var c={Vy:e,playerVars:V,playerType:I,durationMs:d,ZV:a,bl:f,Pk:n};r.X=r.X.concat(c).sort(function(w,b){return w.ZV-b.ZV}); x?S0i(r,x,{Wr:ed(x.durationMs,!0),Y2:x.Pk.Y2,target:c}):(V={Wr:ed(a,!1),Y2:a,target:c},r.W.set(V.Wr,V),D.addCueRange(V.Wr));V=!0;if(r.G===r.app.jC()&&(D=D.getCurrentTime()*1E3,D>=c.ZV&&DV)break;if(f>V)return{K_:d,AE:V-a};I=f-d.bl/1E3}return{K_:null,AE:V-I}}; XKv=function(r,V,I){I=I===void 0?{}:I;var d=r.C||r.app.jC().getPlayerState();jd(r,!0);V=isFinite(V)?V:r.G.Za();var a=pKA(r,V);V=a.AE;var f=(a=a.K_)&&!YJ(r,a)||!a&&r.G!==r.app.jC(),e=V*1E3;e=r.S&&r.S.start<=e&&e<=r.S.end;!f&&e||nd(r);a?i7X(r,a,V,I,d):vLA(r,V,I,d)}; vLA=function(r,V,I,d){var a=r.G;a!==r.app.jC()&&r.app.Qq();a.seekTo(V,Object.assign({},{YX:"application_timelinemanager"},I));q0S(r,d)}; i7X=function(r,V,I,d,a){var f=YJ(r,V);if(!f){V.playerVars.prefer_gapless=!0;r.yH.U("html5_enable_ssap_entity_id")&&(V.playerVars.cached_load=!0);var e=new g.qC(r.yH,V.playerVars);e.Vy=V.Vy;r.api.jo(e,V.playerType)}e=r.app.jC();f||e.addCueRange(V.Pk.Wr);e.seekTo(I,Object.assign({},{YX:"application_timelinemanager"},d));q0S(r,a)}; q0S=function(r,V){r=r.app.jC();var I=r.getPlayerState();V.isOrWillBePlaying()&&!I.isOrWillBePlaying()?r.playVideo():V.isPaused()&&!I.isPaused()&&r.pauseVideo()}; jd=function(r,V){r.QH=NaN;r.V=null;r.j.stop();r.Y&&V&&r.Y.w3();r.C=null;r.Y=null}; YJ=function(r,V){r=r.app.jC();return!!r&&r.getVideoData().Vy===V.Vy}; PJO=function(r){var V=r.X.find(function(a){return YJ(r,a)}); if(V){var I=r.app.jC();nd(r);var d=new g.nP(8);V=uEi(r,V)/1E3;vLA(r,V,{},d);I.Hs("forceParentTransition",{childPlayback:1});r.G.Hs("forceParentTransition",{parentPlayback:1})}}; k8p=function(r,V,I){V=V===void 0?-1:V;I=I===void 0?Infinity:I;for(var d=V,a=I,f=g.H(r.W),e=f.next();!e.done;e=f.next()){var n=g.H(e.value);e=n.next().value;n=n.next().value;n.Y2>=d&&n.target&&n.target.bl<=a&&(r.G.removeCueRange(e),r.W.delete(e))}d=V;a=I;f=[];e=g.H(r.X);for(n=e.next();!n.done;n=e.next())if(n=n.value,n.ZV>=d&&n.bl<=a){var D=r;D.L===n&&nd(D);YJ(D,n)&&D.app.Qq()}else f.push(n);r.X=f;d=pKA(r,V/1E3);V=d.K_;d=d.AE;V&&(d*=1E3,oLX(r,V,d,V.bl===V.ZV+V.durationMs?V.ZV+d:V.bl));(V=pKA(r,I/1E3).K_)&& fd(r,"Invalid clearEndTimeMs="+I+" that falls during playback={timelinePlaybackId="+(V.Vy+" video_id="+V.playerVars.video_id+" durationMs="+V.durationMs+" enterTimeMs="+V.ZV+" parentReturnTimeMs="+V.bl+"}.Child playbacks can only have duration updated not their start."))}; oLX=function(r,V,I,d){V.durationMs=I;V.bl=d;d={Wr:ed(I,!0),Y2:I,target:null};S0i(r,V,d);YJ(r,V)&&r.app.jC().getCurrentTime()*1E3>I&&(V=uEi(r,V)/1E3,I=r.app.jC().getPlayerState(),vLA(r,V,{},I))}; fd=function(r,V,I,d){r.G.Hs("timelineerror",{e:V,cpn:I?I:void 0,videoId:d?d:void 0})}; rdA=function(r){r&&r!=="web"&&hbZ.includes(r)}; EW=function(r,V){g.X.call(this);var I=this;this.data=[];this.S=r||NaN;this.X=V||null;this.G=new g.hz(function(){DY(I);xJ(I)}); g.S(this,this.G)}; oli=function(r){DY(r);return r.data.map(function(V){return V.value})}; DY=function(r){var V=(0,g.m)();r.data.forEach(function(I){I.expiref?{width:V.width,height:V.width/a,aspectRatio:a}:aa?r.width=r.height*I:ID;if(zw(r)){var x=eeX(r);var E=isNaN(x)||g.kw||Yh&&g.WQ||D;oY&&!g.tS(601)?x=a.aspectRatio:E=E||f.controlsType==="3";E?D?(E=f.U("place_shrunken_video_on_left_of_player")?16:r.getPlayerSize().width-V.width-16,x=Math.max((r.getPlayerSize().height-V.height)/2,0),E=new g.JV(E,x,V.width, V.height),r.e4.style.setProperty("border-radius","12px")):E=new g.JV(0,0,V.width,V.height):(I=a.aspectRatio/x,E=new g.JV((V.width-a.width/I)/2,(V.height-a.height)/2,a.width/I,a.height),I===1&&g.WQ&&(x=E.width-V.height*x,x>0&&(E.width+=x,E.height+=x)));g.NA(r.element,"ytp-fit-cover-video",Math.max(E.width-a.width,E.height-a.height)<1);if(n||r.aS)r.e4.style.display="";r.oK=!0}else{E=-V.height;oY?E*=window.devicePixelRatio:g.aU&&(E-=window.screen.height);E=new g.JV(0,E,V.width,V.height);if(n||r.aS)r.e4.style.display= "none";r.oK=!1}ZE(r.fm,E)||(r.fm=E,g.g$(f)?(r.e4.style.setProperty("width",E.width+"px","important"),r.e4.style.setProperty("height",E.height+"px","important")):g.qG(r.e4,E.getSize()),d=new g.Fw(E.left,E.top),g.mZ(r.e4,Math.round(d.x),Math.round(d.y)),d=!0);V=new g.JV((V.width-a.width)/2,(V.height-a.height)/2,a.width,a.height);ZE(r.gM,V)||(r.gM=V,d=!0);g.Be(r.e4,"transform",I===1?"":"scaleX("+I+")");e&&D!==r.Cm&&(D&&(r.e4.addEventListener(z4,r.e3),r.e4.addEventListener("transitioncancel",r.e3),r.e4.classList.add(g.IC.VIDEO_CONTAINER_TRANSITIONING)), r.Cm=D,r.app.zQ.publish("playerUnderlayVisibilityChange",r.Cm?"transitioning":"hidden"));return d}; DzU=function(r){r.Kd=!r.Kd;r.U$=!0;r.element.classList.toggle("ytp-retro-player",r.Kd);r.resize();r.U$=!1;r.app.zQ.Bs("onRetroModeChanged",r.Kd)}; xzA=function(){this.csn=g.A8();this.clientPlaybackNonce=null;this.elements=new Set;this.S=new Set;this.G=new Set;this.X=new Set}; E2i=function(r){if(r.csn!==g.A8())if(r.csn==="UNDEFINED_CSN")r.csn=g.A8();else{var V=g.A8(),I=g.yo();if(V&&I){r.csn=V;for(var d=g.H(r.elements),a=d.next();!a.done;a=d.next())(a=a.value.visualElement)&&a.isClientVe()&&V&&I&&(g.WR("combine_ve_grafts")?gD(Xc(),a,I):g.I6(g.kR)(void 0,V,I,a))}if(V)for(r=g.H(r.G),I=r.next();!I.done;I=r.next())(I=I.value.visualElement)&&I.isClientVe()&&g.Y5(V,I)}}; g.Mh=function(r,V,I,d){g.X.call(this);var a=this;this.logger=new g.xP("App");this.fW=this.LM=!1;this.Lm={};this.Ft=[];this.Xp=!1;this.mJ=null;this.intentionalPlayback=!1;this.L1=!0;this.Oq=!1;this.G7=this.jk=this.Zy=null;this.ye=!0;this.mediaElement=this.tI=null;this.Vj=NaN;this.OV=!1;this.vr=this.Vq=this.mK=this.gF=this.screenLayer=this.playlist=null;this.c8=[];this.NN=0;this.m_={OO:function(){return a.Ek}, Ro:function(){return a.mK}, Gc7:function(){return a.gF}, hS:function(f){a.mK=f}, X7:function(f,e){a.mK&&a.mK.X7(f,e)}}; this.logger.debug("constructor begin");this.config=uKh(V||{});this.webPlayerContextConfig=I;fXv();V=this.config.args||{};this.yH=new v8(V,I,I?I.canaryState:this.config.assets.player_canary_state,d,this);g.S(this,this.yH);iuS(this.yH);d=Qli(this.yH);this.yH.Ko()&&this.c8.push({key:"h5vcc",value:d});this.yH.experiments.uL("jspb_serialize_with_worker")&&gQi();this.yH.experiments.uL("gzip_gel_with_worker")&&G$Z();this.yH.X&&!NdA&&(window.addEventListener(tK?"touchstart":"click",MVj,{capture:!0,passive:!0}), NdA=!0);this.U("html5_onesie")&&(this.Jc=new rf(this.yH),g.S(this,this.Jc));this.M1=Ym(Lx(this.yH)&&!0,V.enablesizebutton);this.sb=Ym(!1,V.player_wide);this.visibility=new L9X;g.S(this,this.visibility);this.U("web_log_theater_mode_visibility")&&this.TZ(Ym(!1,V.player_wide));this.LM=Ym(!1,V.external_list);this.events=new g.Su(this);g.S(this,this.events);this.U("start_client_gcf")&&(Jv(gT(),{PW:Ec,QD:VPi()}),this.Cv=gT().resolve(Ec),acX(this.Cv));this.iJ7=new MJ;g.S(this,this.iJ7);this.RZ=new xzA;d= new C8;this.zQ=new g.Gm(this,d);g.S(this,this.zQ);this.template=new aaX(this);g.S(this,this.template);this.appState=1;this.x9=sKh(this);g.S(this,d);d={};this.p7=(d.internalvideodatachange=this.Zoz,d.playbackready=this.fV0,d.playbackstarted=this.U2k,d.statechange=this.LKC,d);this.UN=new Dw(this.zQ);this.HK=cdX(this);d=this.U("html5_load_wasm");V=this.U("html5_allow_asmjs");d&&zeX||V?(this.yH.By=qWi(this.HK,V),$N(Wp(this.yH.By,function(f){a.yH.Gy=f;a.jC().Hs("wasm",{a:f.gK})}),function(f){g.gj(f); a.jC().Hs("wasm",{e:"message"in f&&f.message||f.toString()||""})})):d&&!zeX&&this.jC().Hs("wasm",{e:"wasm unavailable"}); this.hI=new fYj(this.yH,this.HK);this.zQ.publish("csiinitialized");d=10;g.Ai(this.yH)&&(d=3);IU(this.yH)&&(d=g.zM(this.yH.experiments,"tvhtml5_unplugged_preload_cache_size"));d=new EW(d,function(f){f!==a.xN(f.getPlayerType())&&f.dispose()}); g.S(this,d);this.Ek=new g.Bf(this.yH,d);d=M5p(this);this.Ek.r6(d);CWh(this);d={};this.Bz=(d.airplayactivechange=this.IRM,d.airplayavailabilitychange=this.NhM,d.beginseeking=this.aRM,d.sabrCaptionsDataLoaded=this.Hqz,d.endseeking=this.vXH,d.internalAbandon=this.Bhz,d.internalaudioformatchange=this.uhz,d.internalvideodatachange=this.wrM,d.internalvideoformatchange=this.mGs,d.liveviewshift=this.AzM,d.playbackstalledatstart=this.r9M,d.progresssync=this.y98,d.onAbnormalityDetected=this.dJC,d.onSnackbarMessage= this.e17,d.onLoadProgress=this.iFC,d.SEEK_COMPLETE=this.QL0,d.SEEK_TO=this.kdC,d.onVideoProgress=this.Ftz,d.onLoadedMetadata=this.gXC,d.onAutoplayBlocked=this.EXz,d.onPlaybackPauseAtStart=this.DJE,d.playbackready=this.V4k,d.statechange=this.Hz,d.newelementrequired=this.le,d.heartbeatparams=this.M4M,d.videoelementevent=this.bqC,d.drmoutputrestricted=this.czL,d.signatureexpired=this.OqL,d.nonfatalerror=this.xJQ,d.reloadplayer=this.lgQ,d);this.Nu=new g.Su(this);g.S(this,this.Nu);this.uy=new sW;g.S(this, this.uy);this.uU=this.dP=-1;this.VA=new g.hz(this.template.resize,16,this.template);g.S(this,this.VA);this.j4=new B0Z(this.zQ,this.yH,this.eR(),this);this.r5=new gx(this.yH);this.wq=new Jx(this);g.S(this,this.wq);this.Oa=new GW(this);g.S(this,this.Oa);rdA(this.yH.G.c);this.events.K(this.zQ,g.nv("appapi"),this.Co0);this.events.K(this.zQ,g.jx("appapi"),this.WKE);this.events.K(this.zQ,g.nv("appprogressboundary"),this.prC);this.events.K(this.zQ,g.jx("applooprange"),this.QK);this.events.K(this.zQ,"presentingplayerstatechange", this.R1);this.events.K(this.zQ,"resize",this.UG7);this.template.Xz(g.J(Qv(document,r)));this.events.K(this.zQ,"offlineslatestatechange",this.fRc);this.events.K(this.zQ,"sabrCaptionsTrackChanged",this.agc);this.events.K(this.zQ,"sabrCaptionsBufferedRangesUpdated",this.E5C);this.HK.T.N().eA&&$B(this.HK,"offline");this.yH.EE&&g.cD("ux",g.y5);r=g.zM(this.yH.experiments,"html5_defer_fetch_att_ms");this.KL=new g.hz(this.lDL,r,this);g.S(this,this.KL);this.Hr().IL()&&(g.Sb()&&this.Hr().kc.push("remote"), TdZ(this));this.hI.tick("fs");Hsj(this);this.yH.EE&&$B(this.HK,"ux",!0);g.FG(this.HK.T.N())&&$B(this.HK,"embed");this.U("web_player_sentinel_is_uniplayer")||g.gj(new g.ox("Player experiment flags missing","web_player_sentinel_is_uniplayer"));r=this.U("web_player_sentinel_yt_experiments_sync");d=g.WR("web_player_sentinel_yt_experiments_sync");r!==d&&g.gj(new g.ox("b/195699950",{yt:r,player:d}));I||g.gj(new g.ox("b/179532961"));this.jH=wgO(this);if(I=g.zM(this.yH.experiments,"html5_block_pip_safari_delay"))this.gW= new g.hz(this.Vw,I,this),g.S(this,this.gW);X7=this.yH.M2;I=g.zM(this.yH.experiments,"html5_performance_impact_profiling_timer_ms");I>0&&(this.Ux=new g.Bu(I),g.S(this,this.Ux),this.events.K(this.Ux,"tick",function(){a.LH&&bsg.r3("apit",a.LH);a.LH=bsg.L5()})); this.zQ.publish("applicationInitialized");this.logger.debug("constructor end")}; wgO=function(r){function V(I){I.stack&&I.stack.indexOf("player")!==-1&&r.jC().vB(I)} SU.subscribe("handleError",V);rB.push(V);return function(){SU.unsubscribe("handleError",V);var I=rB.indexOf(V);I!==-1&&rB.splice(I,1)}}; M5p=function(r){var V=new g.qC(r.yH,r.config.args);r.zQ.publish("initialvideodatacreated",V);return Cd(r,1,V,!1)}; CWh=function(r){var V=r.eR(),I=V.setPlaybackRate;if(r.yH.Y)var d=1;else d=Number(g.BJ("yt-player-playback-rate"))||1,d=Osh(r,d);I.call(V,d);V.SU(r.p7,r);V.o3()}; cdX=function(r){var V="",I=Iav(r);I.indexOf("//")===0&&(I=r.yH.protocol+":"+I);var d=I.lastIndexOf("/base.js");d!==-1&&(V=I.substring(0,d+1));if(I=Error().stack)if(I=I.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))I=I[1],I.includes(V)||g.gj(Error("Player module URL mismatch: "+(I+" vs "+V+".")));V=new Gwi(r.zQ,V);WJA(r,V);return V}; WJA=function(r,V){var I={};I=(I.destroyed=function(){r.onApiChange()},I); V.S=I}; sKh=function(r){if(r.yH.storeUserVolume){r=g.BJ("yt-player-volume")||{};var V=r.volume;r={volume:isNaN(V)?100:g.yv(Math.floor(V),0,100),muted:!!r.muted}}else r={volume:100,muted:r.yH.mute};return r}; Tw=function(r){r.mediaElement=r.yH.deviceIsAudioOnly?new g.pS(g.rX("AUDIO")):Ax.pop()||new g.pS(g.rX("VIDEO"));g.S(r,r.mediaElement);r.jC().setMediaElement(r.mediaElement);try{r.yH.Hy?(r.Vq&&r.events.pF(r.Vq),r.Vq=r.events.K(r.mediaElement,"volumechange",r.RpC)):(r.mediaElement.Y1(r.x9.muted),r.mediaElement.setVolume(r.x9.volume/100))}catch(a){r.rY("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(a&&typeof a==="object"&&"message"in a&&typeof a.message==="string"&&a.message.replace(/[;:,]/g, "_")));return}g.lQ(r.Nu);$zv(r);var V=r.template,I=r.mediaElement.YN();V.e4=I;V.L4=!1;V.e4.parentNode||an(V.g_,V.e4,0);V.fm=new g.JV(0,0,0,0);jKU(V);cW(V);I=V.e4;g.jN(I,"video-stream");g.jN(I,g.IC.MAIN_VIDEO);var d=V.app.N();d.xQ&&I.setAttribute("data-no-fullscreen","true");d.U("html5_local_playsinline")?"playsInline"in LN()&&(I.playsInline=!0):d.Ke&&(I.setAttribute("webkit-playsinline",""),I.setAttribute("playsinline",""));d.TC&&V.e4&&V.K(I,"click",I.play,I);try{r.mediaElement.activate()}catch(a){r.rY("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(a&&typeof a==="object"&&"message"in a&&typeof a.message==="string"&&a.message.replace(/[;:,]/g,"_")))}}; Rej=function(r){if(!KJX(r)){var V=r.eR().Sx();V&&(V=V.kW(),V instanceof Promise&&V.catch(function(){})); HW(r,zN(r.getPlayerStateObject()))}}; $zv=function(r){var V=r.mediaElement;Bq()?r.Nu.K(V,"webkitpresentationmodechanged",r.v5k):window.document.pictureInPictureEnabled&&(r.Nu.K(V,"enterpictureinpicture",function(){r.JS(!0)}),r.Nu.K(V,"leavepictureinpicture",function(){r.JS(!1)})); rs&&(r.Nu.K(V,"webkitbeginfullscreen",function(){r.mV(3)}),r.Nu.K(V,"webkitendfullscreen",function(){r.mV(0)}))}; t5p=function(r,V){var I=V.getPlayerType(),d=r.Ek.S[I]||null;V!==r.eR()&&V!==d&&(d==null||d.dispose(),r.Ek.S[I]=V)}; ydS=function(r,V){V=V===void 0?!0:V;r.logger.debug("start clear presenting player");var I;if(I=r.vr){I=r.vr;var d=r.mediaElement;I=!!d&&d===I.mediaElement}I&&(r.Cj(),Tw(r));I=r.jC();I.Cj(!V);I.N8(r.Bz,r);I.getPlayerType()!==1&&I.dispose();V=r.Ek;V.X=V.G;r.logger.debug("finish clear presenting player")}; g.Adi=function(r,V,I,d){var a=r.hI;V===2&&(a=new fYj(r.yH));return new g.dn(r.yH,V,a,r.template,function(f,e,n){r.zQ.publish(f,e,n)},function(){return r.zQ.getVisibilityState()},r.visibility,r,I,d)}; Cd=function(r,V,I,d,a){r=g.Adi(r,V,I,a);r=new g.u5(r);d&&r.o3();return r}; w5=function(r,V){return r.QX(V)?r.eR():V}; by=function(r,V){var I=r.jC();return V===r.eR()&&r.QX(V)&&r.QX(I)?I:V}; laA=function(r){r.logger.debug("start application playback");if(r.eR().getPlayerState().isError())r.logger.debug("start application playback done, player in error state");else{var V=OW(r);r.Hr().isLoaded();V&&r.Ys(6);Gyg(r);idg(r.HK)||FJi(r)}}; FJi=function(r){if(!OW(r)){var V=R8(r.HK);V&&!V.created&&Fyj(r.HK)&&(r.logger.debug("reload ad module"),V.create())}}; Gyg=function(r){r.logger.debug("start presenter playback");var V=r.getVideoData(),I=r.HK;idg(I)||I.Op();!zeX&&I.T.U("html5_allow_asmjs")&&vJX(I);$B(I,"embed");$B(I,"kids");$B(I,"remote");$B(I,"miniplayer");$B(I,"offline");$B(I,"unplugged");$B(I,"ypc",!1,!0);$B(I,"ypc_clickwrap",!1,!0);$B(I,"yto",!1,!0);$B(I,"webgl",!1,!0);UhZ(I)||($B(I,"captions",!0),$B(I,"endscreen"),I.kE()||I.wP(),$B(I,"creatorendscreen",!0));I.pP();r.zQ.publish("videoready",V)}; WW=function(r){r=r.Hr();r.IL();return UQ(r)}; Hsj=function(r){r.logger.debug("start prepare initial playback");r.tv();var V=r.config.args;Tw(r);r.events.K(window,"resize",r.LtE);var I=r.Hr();r.zQ.fJ("onVolumeChange",r.x9);if(V&&DhX(V)){var d=kg(r.yH);d&&!r.LM&&(V.fetch=0);var a=g.FG(r.yH);a&&!r.LM&&(V.fetch=0);$J(r,V);g.FG(r.yH)&&r.hI.tick("ep_pr_s");if(!d||r.LM)if(a&&!r.LM)LJO(r);else if(!I.IL())r.playlist.onReady(function(){Kd(r)})}r.FZ(r.eR(),!1,!0); g.v(r.eR().getPlayerState(),128)||(V=soS(!r.yH.deviceIsAudioOnly),V==="fmt.noneavailable"?r.rY("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):V==="html5.missingapi"?r.rY(V,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):I&&I.IL()&&WW(r)&&(r.yH.BH||r.yH.GR)?R_(r):I.XI?r.zQ.mutedAutoplay({durationMode:I.mutedAutoplayDurationMode}):g.BJ("yt-player-playback-on-reload")?(g.N9("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!r.yH.bL}),g.X2("yt-player-playback-on-reload",!1), R_(r)):eQ(r.yH)||JdS(r),g.VO(r.yH)||d$(r.yH)==="MWEB"?(g.IY(g.aY(),function(){tq(r)}),g.IY(g.aY(),function(){sMv()})):(tq(r),sMv()),r.logger.debug("finish prepare initial playback"))}; tq=function(r){if(!r.U("use_rta_for_player"))if(r.U("fetch_att_independently"))g.r3(r.KL);else{var V=r.getVideoData().botguardData;V&&g.vp(V,r.yH,r.getVideoData().DU||"")}}; JdS=function(r){r.logger.debug("start initialize to CUED mode");r.zQ.publish("initializingmode");r.Ys(2);r.U("embeds_web_enable_defer_loading_remote_js")&&g.dv(r.yH)?g.IY(g.aY(),function(){$B(r.HK,"remote")}):$B(r.HK,"remote"); $B(r.HK,"miniplayer");r.logger.debug("initialized to CUED mode")}; R_=function(r){r.logger.debug("start initialize application playback");var V=r.eR();if(g.v(V.getPlayerState(),128))return!1;var I=V.getVideoData();WW(r)&&r.yH.GR&&(Ax.length&&r.fW?(y6(r,{muted:!1,volume:r.x9.volume},!1),Aq(r,!1)):Ax.length||r.x9.muted||(y6(r,{muted:!0,volume:r.x9.volume},!1),Aq(r,!0)));WW(r)&&g.FG(r.yH)&&I.mutedAutoplay&&(y6(r,{muted:!0,volume:r.x9.volume},!1),Aq(r,!0));I.tJ&&y6(r,{muted:!0,volume:r.x9.volume},!1);ZsA(r,1,I,!1);r.zQ.publish("initializingmode");r.FZ(r.eR());r.Ys(3); var d;if(!(d=!r.yH.Tw)){if(d=r.vr){d=r.vr;var a=r.mediaElement;d=!!a&&a===d.mediaElement}d=d&&r.Xp}d&&(r.Cj(),Tw(r),V.setMediaElement(r.mediaElement));V.UW();if(g.v(V.getPlayerState(),128))return!1;I.S$||HW(r,3);return r.Xp=!0}; OW=function(r){r=L8(r.HK);return!!r&&r.loaded}; Xgj=function(r,V){if(!r.tI)return!1;var I=r.tI.startTimeMs*.001-1,d=r.tI.endTimeMs*.001;r.tI.type==="repeatChapter"&&d--;return Math.abs(V-I)<=1E-6||Math.abs(V-d)<=1E-6||V>=I&&V<=d}; Bdg=function(r){var V=r.jC();nk(V.getVideoData())&&!V.oG()&&(V=Gw(r)*1E3-r.getVideoData().q0,r.U("html5_gapless_new_slr")?(r=r.Oa,FP(r.app,"gaplessshortslooprange"),V=new g.ex(0,V,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(r=r.app.jC())&&r.addCueRange(V)):r.setLoopRange({startTimeMs:0,endTimeMs:V,type:"shortsLoop"}))}; g2Z=function(r){var V=r.eR();if(!(g.v(V.getPlayerState(),64)&&r.Hr().isLivePlayback&&r.tI.startTimeMs<5E3)){if(r.tI.type==="repeatChapter"){var I,d=(I=Sji(r.Gz()))==null?void 0:I.El(),a;I=(a=r.getVideoData())==null?void 0:a.jI;d instanceof g.Uk&&I&&(a=I[fl(I,r.tI.startTimeMs)],d.renderChapterSeekingAnimation(0,a.title));isNaN(Number(r.tI.loopCount))?r.tI.loopCount=0:r.tI.loopCount++;r.tI.loopCount===1&&r.zQ.Bs("innertubeCommand",r.getVideoData().JTL)}d={YX:"application_loopRangeStart"};if(r.tI.type=== "clips"||r.tI.type==="shortsLoop")d.seekSource=58;V.seekTo(r.tI.startTimeMs*.001,d)}}; Osh=function(r,V){var I=r.zQ.getAvailablePlaybackRates();V=Number(V.toFixed(2));r=I[0];I=I[I.length-1];V<=r?V=r:V>=I?V=I:(r=Math.floor(V*100+.001)%5,V=r===0?V:Math.floor((V-r*.01)*100+.001)/100);return V}; Gw=function(r,V){V=r.xN(V);if(!V)return r.Ek.G.Qu();V=w5(r,V);return ly(r,V.Qu(),V)}; ly=function(r,V,I){if(r.QX(I)&&(I=I.getVideoData(),!Ld(r))){r=r.j4;for(var d=g.H(r.X),a=d.next();!a.done;a=d.next())if(a=a.value,I.Vy===a.Vy){V+=a.ZV/1E3;break}d=V;r=g.H(r.X);for(a=r.next();!a.done;a=r.next()){a=a.value;if(I.Vy===a.Vy)break;var f=a.ZV/1E3;if(f1&&(a=!1);if(!r.OV||a!==V){I=I.lock(a?"portrait":"landscape");if(I!=null)I["catch"](function(){}); r.OV=!0}}else r.OV&&(r.OV=!1,I.unlock())}; Sd=function(r,V,I){r.zQ.publish(V,I);var d=g.Ai(r.yH)||g.g$(r.yH)||g.ih(r.yH);if(I&&d){switch(V){case "cuerangemarkersupdated":var a="onCueRangeMarkersUpdated";break;case "cuerangesadded":a="onCueRangesAdded";break;case "cuerangesremoved":a="onCueRangesRemoved"}a&&r.zQ.Bs(a,I.map(function(f){return{getId:function(){return this.id}, end:f.end,id:f.getId(),namespace:f.namespace==="ad"?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}}; iy=function(r,V,I,d,a,f){I=I===void 0?!0:I;var e=r.xN(a);e&&(e.getPlayerType()===2&&!r.QX(e)||g.GV(e.getVideoData()))||(r.getPresentingPlayerType()===3?r.Ek.BO.seekTo(V,{HJ:!I,Ay:d,YX:"application",seekSource:f}):(e&&e===r.eR()&&r.tI&&!Xgj(r,V)&&r.setLoopRange(null),r.seekTo(V,I,d,a,f)))}; ddA=function(r,V,I,d){I&&(r.Cj(),Tw(r));I=r.jC();I.aW(V);var a=r.getVideoData(),f={};f.video_id=a.videoId;f.adformat=a.adFormat;a.isLivePlayback||(f.start=I.getCurrentTime(),f.resume="1");a.isLivePlayback&&zV(a)&&g.ti(r.yH)&&(f.live_utc_start=I.dF(),f.resume="1");a.R7&&(f.vvt=a.R7);a.C&&(f.vss_credentials_token=a.C,f.vss_credentials_token_type=a.tO);a.oauthToken&&(f.oauth_token=a.oauthToken);f.autoplay=1;f.reload_count=a.M2+1;f.reload_reason=V;a.GG&&(f.unplugged_partner_opt_out=a.GG);a.GR&&(f.ypc_is_premiere_trailer= a.GR);a.playerParams&&(f.player_params=a.playerParams);r.loadVideoByPlayerVars(f,void 0,!0,void 0,void 0,d);V==="signature"&&r.gF&&FJi(r)}; a0i=function(r,V){r.Hr().autonavState=V;g.X2("yt-player-autonavstate",V);r.zQ.publish("autonavchange",V)}; f0O=function(r){var V=r.getVideoData().Xq,I=r.yH.a7,d=r.isInline()&&!r.getVideoData().p4,a=r.mediaElement;V||I||d?a.RD():(a.W0(),y6(r,r.x9))}; Jq=function(r){var V=R8(r.Gz());V&&V.created&&(r.logger.debug("reset ad module"),V.destroy())}; Ld=function(r){return r.getVideoData().enableServerStitchedDai&&!!r.gF}; eXr=function(r,V){V.bounds=r.getBoundingClientRect();for(var I=g.H(["display","opacity","visibility","zIndex"]),d=I.next();!d.done;d=I.next())d=d.value,V[d]=ig(r,d);V.hidden=!!r.hidden}; Iav=function(r){if(r.webPlayerContextConfig){var V=r.webPlayerContextConfig.trustedJsUrl;return V?Rq(V).toString():r.webPlayerContextConfig.jsUrl}return r.config.assets&&r.config.assets.js?r.config.assets.js:""}; YgZ=function(r,V){var I=r.xN(1);if(I){if(I.getVideoData().clientPlaybackNonce===V)return I;if((r=r.wq.G)&&r.getVideoData().clientPlaybackNonce===V)return r}return null}; nzS=function(r){return r.name==="TypeError"&&r.stack.includes("/s/player/")&&mg()<=105}; jzr=function(r){return r.isTimeout?"NO_BID":"ERR_BID"}; DdA=function(){var r=null;yzS().then(function(V){return r=V},function(V){return r=jzr(V)}); return r}; xdj=function(){var r=Ss(1E3,"NO_BID");return g.Zi(pnX([yzS(),r]).Q7(jzr),function(){r.cancel()})}; UW=function(r){return r.Gd?g.uQ(g.mL(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Q6=function(r){this.player=r;this.S=this.G=1}; szA=function(r,V,I,d,a,f){V.client||(V.client={});r.player.N().U("h5_remove_url_for_get_ad_break")||(V.client.originalUrl=I);var e=xQ(I),n=g.Rn(I)?!1:!0;(e||n)&&typeof Intl!=="undefined"&&(V.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);n=g.Rn(I)?!1:!0;if(e||n||d!==""){var D={};I=f5(zd(d)).split("&");var x=new Map;I.forEach(function(E){E=E.split("=");E.length>1&&x.set(E[0].toString(),decodeURIComponent(E[1].toString()))}); x.has("bid")&&(D.bid=x.get("bid"));D.params=[];Ezh.forEach(function(E){x.has(E)&&(E={key:E,value:x.get(E)},D.params.push(E))}); Nev(r,D);V.adSignalsInfo=D}V.client.unpluggedAppInfo||(V.client.unpluggedAppInfo={});V.client.unpluggedAppInfo.enableFilterMode=!1;I=a.G.cosver;I!=null&&I!=="cosver"&&(V.client.osVersion=I);I=a.G.cplatform;I!=null&&I!=="cplatform"&&I!==""&&(V.client.platform=I);I=a.G.cmodel;I!=null&&I!=="cmodel"&&(V.client.deviceModel=I);I=a.G.cplayer;I!=null&&I!=="cplayer"&&(V.client.playerType=I);I=a.G.cbrand;I!=null&&I!=="cbrand"&&(V.client.deviceMake=I);V.user||(V.user={});V.user.lockedSafetyMode=!1;(a.U("embeds_web_enable_iframe_api_send_full_embed_url")|| a.U("embeds_enable_autoplay_and_visibility_signals"))&&g.B8(a)&&pEX(V,f,r.player.getPlayerState(1))}; MLS=function(r,V){var I=!1;if(V==="")return I;V.split(",").forEach(function(d){var a={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},e="ACTIVE";d[0]==="!"&&(d=d.substring(1),e="INACTIVE");d=d.split("-");d.length<3||(d[0]in ccr&&(f.clientName=ccr[d[0]]),d[1]in zXj&&(f.platform=zXj[d[1]]),f.applicationState=e,f.clientVersion=d.length>2?d[2]:"",a.remoteClient=f,r.remoteContexts?r.remoteContexts.push(a):r.remoteContexts=[a],I=!0)}); return I}; TeS=function(r){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in C1r))return!1;r=r.split(RegExp("[:&]"));var V=C1r.FLAG_AUTO_CAPTIONS_DEFAULT_ON,I="f"+(1+Math.floor(V/31)).toString();V=1<=2?e[1]:"";var n=w6g.test(V),D=baA.exec(V);D=D!=null&&D.length>=2?D[1]:"";var x=Oag.exec(V);x=x!=null&&x.length>=2&&!Number.isNaN(Number(x[1]))?Number(x[1]):1;var E=Woj.exec(V);E=E!=null&&E.length>=2?E[1]:"0";var N=mD(r.player.N().Kj),c=r.player.getVideoData(1),z=g.V2(c.EE,!0),M="BISCOTTI_ID"in I?I.BISCOTTI_ID:"";szA(r,z,V,M.toString(),r.player.N(), c);c={splay:!1,lactMilliseconds:I.LACT.toString(),playerHeightPixels:Math.trunc(I.P_H),playerWidthPixels:Math.trunc(I.P_W),vis:Math.trunc(I.VIS),signatureTimestamp:20199,autonavState:UW(r.player.N())};d&&(d={},MLS(d,I.YT_REMOTE)&&(c.mdxContext=d));if(d=$dv.includes(N)?void 0:g.SJ("PREF")){for(var w=d.split(RegExp("[:&]")),b=0,W=w.length;b1&&K[1].toUpperCase()==="TRUE"){z.user.lockedSafetyMode=!0;break}}c.autoCaptionsDefaultOn= TeS(d)}V=Koi.exec(V);(V=V!=null&&V.length>=2?V[1]:"")&&D&&(z.user.credentialTransferTokens=[{token:V,scope:"VIDEO"}]);V={contentPlaybackContext:c};e={adBlock:Math.trunc(I.AD_BLOCK),params:e,breakIndex:x,breakPositionMs:E,clientPlaybackNonce:I.CPN,topLevelDomain:N,isProxyAdTagRequest:n,context:z,adSignalsInfoString:f5(zd(M.toString())),overridePlaybackContext:V};a!==void 0&&(e.cueProcessedMs=Math.round(a).toString());D&&(e.videoId=D);I.LIVE_TARGETING_CONTEXT&&(e.liveTargetingParams=I.LIVE_TARGETING_CONTEXT); I.AD_BREAK_LENGTH&&(e.breakLengthMs=Math.trunc(I.AD_BREAK_LENGTH*1E3).toString());f&&(e.driftFromHeadMs=f.toString());e.currentMediaTimeMs=Math.round(r.player.getCurrentTime(1)*1E3);(r=r.player.getGetAdBreakContext())&&(e.getAdBreakContext=r);return e}; tLX=function(){Q6.apply(this,arguments)}; ycv=function(r,V,I,d,a){var f=I.At;var e=I.Wr;var n=r.player.N().SA,D=0;I.cueProcessedMs&&e&&!f&&(I=e.end-e.start,I>0&&(D=Math.floor(I/1E3)));var x={AD_BLOCK:a,AD_BREAK_LENGTH:f?f.aB:D,AUTONAV_STATE:UW(r.player.N()),CA_TYPE:"image",CPN:r.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:r.player.cL()*1E3,LACT:Gg(),LIVE_INDEX:f?r.S++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:r.player.getVisibilityState(), P_H:r.player.gs().Xf().height,P_W:r.player.gs().Xf().width,YT_REMOTE:n?n.join(","):""},E=cR(sh);Object.keys(E).forEach(function(N){E[N]!=null&&(x[N.toUpperCase()]=E[N].toString())}); d!==""&&(x.BISCOTTI_ID=d);d={};NL(V)&&(d.sts="20199",(r=r.player.N().forcedExperiments)&&(d.forced_experiments=r));return DJ(g.Lm(V,x),d)}; Acr=function(r,V){var I=r.player.N(),d,a=(d=r.player.getVideoData(1))==null?void 0:d.oauthToken;return g.jQ(I,a).then(function(f){if(f&&Eh()){var e=Q_();md(e,f)}return g.k_(g.J(r.player.va(e)),V,"/youtubei/v1/player/ad_break").then(function(n){return n})})}; GDS=function(r){this.sE=r}; FoX=function(r){this.T=r}; l0j=function(r){this.sE=r}; JcS=function(r){g.X.call(this);this.G=r;this.eP=LoA(this)}; LoA=function(r){var V=new s9X(r.G.gh);g.S(r,V);r=[new GDS(r.G.sE),new FoX(r.G.T),new l0j(r.G.sE),new Jk(r.G.yF,r.G.TL),new Xi,new S7(r.G.w$,r.G.N3,r.G.sE),new Zq,new LX];r=g.H(r);for(var I=r.next();!I.done;I=r.next())c8A(V,I.value);r=g.H(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(I=r.next();!I.done;I=r.next())Ba(V,I.value,function(){}); return V}; my=function(r){var V=r.C8,I=r.ws;r=r.Ot;var d=new JUO,a={QM:new E8S(V.get(),I),ws:I};return{Lo:new N3(I,r,V,a),context:a,B3:d}}; uy=function(r,V,I,d,a){g.X.call(this);this.X=V;this.SC=I;this.C8=d;this.Br=a;this.listeners=[];var f=new Gc(this);g.S(this,f);f.K(r,"internalAbandon",this.sC);this.addOnDisposeCallback(function(){g.lQ(f)})}; pd=function(r){this.T=r;this.adVideoId=this.G=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.X=this.S=!1;this.adFormat=null;this.Y="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; ZaA=function(r){r.contentCpn=null;r.adCpn=null;r.videoId=null;r.adVideoId=null;r.adFormat=null;r.Y="AD_PLACEMENT_KIND_UNKNOWN";r.actionType="unknown_type";r.S=!1;r.X=!1}; X6O=function(r,V){r=g.H(V);for(V=r.next();!V.done;V=r.next())if((V=V.value.renderer)&&(V.instreamVideoAdRenderer||V.linearAdSequenceRenderer||V.sandwichedLinearAdRenderer||V.instreamSurveyAdRenderer)){Q2("ad_i");g.mI({isMonetized:!0});break}}; BeA=function(r){var V;(V=r.T.getVideoData(1))!=null&&V.bL&&(r.X=!1,V={},r.G&&r.videoId&&(V.cttAuthInfo={token:r.G,videoId:r.videoId}),uC("video_to_ad",V))}; oL=function(r){r.X=!1;var V={};r.G&&r.videoId&&(V.cttAuthInfo={token:r.G,videoId:r.videoId});uC("ad_to_video",V);gzO(r)}; gzO=function(r){if(r.S)if(r.Y==="AD_PLACEMENT_KIND_START"&&r.actionType==="video_to_ad")SK("video_to_ad");else{var V={adBreakType:KP(r.Y),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:r.videoStreamType};r.actionType==="ad_to_video"?(r.contentCpn&&(V.targetCpn=r.contentCpn),r.videoId&&(V.targetVideoId=r.videoId)):(r.adCpn&&(V.targetCpn=r.adCpn),r.adVideoId&&(V.targetVideoId=r.adVideoId));r.adFormat&&(V.adType=r.adFormat);r.contentCpn&& (V.clientPlaybackNonce=r.contentCpn);r.videoId&&(V.videoId=r.videoId);r.adCpn&&(V.adClientPlaybackNonce=r.adCpn);r.adVideoId&&(V.adVideoId=r.adVideoId);g.mI(V,r.actionType);r.T.N().experiments.uL("html5_ads_csi_qoes")&&(V=r.T.vL(r.actionType==="ad_to_video"?1:2),V=(0,g.m)()-1E3*V,vS("qoes",V,r.actionType))}}; vW=function(r){g.X.call(this);this.T=r;this.G=new Map;this.X=new Gc(this);g.S(this,this.X);this.X.K(this.T,g.nv("ad"),this.onCueRangeEnter,this);this.X.K(this.T,g.jx("ad"),this.onCueRangeExit,this)}; Sgv=function(r,V,I,d,a){g.ex.call(this,V,I,{id:r,namespace:"ad",priority:a,visible:d})}; qh=function(r){this.T=r}; iaA=function(r,V){r.T.cueVideoByPlayerVars(V,2)}; PW=function(r){this.T=r}; o_=function(r){this.T=r;g.zM(this.T.N().experiments,"tv_pacf_logging_sample_rate")}; UdX=function(r){return kp(r,"html5_ssap_play_cached_preroll")}; t4=function(r,V){V=V===void 0?!1:V;return r.T.N().U("html5_ssap_force_ads_ctmp")?!0:(V||r.T.N().Ko())&&r.T.N().U("html5_ssap_pacf_qoe_ctmp")}; QzU=function(r){return r.T.N().U("dai_layout_log_skip_exit_reason")}; kJ=function(r){var V,I;return(I=(V=r.T.getVideoData(1))==null?void 0:g.hI(V))!=null?I:!1}; R3S=function(r){return!r.T.N().U("html5_override_ad_video_length_killswitch")}; kp=function(r,V){return r.T.N().U(V)}; mdi=function(r){return r.T.N().U("substitute_ad_cpn_macro_in_ssdai")}; AJ=function(r){var V,I,d;return((V=r.T.getVideoData(1).getPlayerResponse())==null?void 0:(I=V.playerConfig)==null?void 0:(d=I.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1}; Whr=function(r){return r.T.N().U("html5_enable_vod_slar_with_notify_pacf")}; RRA=function(r){return r.T.N().U("h5_check_forecasting_renderer_for_throttled_midroll")}; uWA=function(r){return r.T.N().U("html5_recognize_predict_start_cue_point")}; n3=function(r){return r.T.N().experiments.uL("enable_desktop_player_underlay")}; p6O=function(r){return r.T.N().experiments.uL("html5_disable_sodar_for_tvhtml5")}; tHj=function(r){return r.T.N().Ko()}; vzX=function(r){return r.T.N().experiments.uL("html5_load_empty_player_in_media_break_sub_lra")}; Bb=function(r){return r.T.N().experiments.uL("html5_load_ads_instead_of_cue")}; gm=function(r){return r.T.N().experiments.uL("html5_preload_ads")}; qgi=function(r){return r.T.N().experiments.uL("should_ignore_cuepoints_during_lifa_preroll")}; YN=function(r){return r.T.N().experiments.uL("enable_ads_control_flow_deterministic_id_generation")}; P1X=function(r){return r.T.N().experiments.uL("enable_desktop_discovery_video_abandon_pings")||g.hK(r.T.N())}; ozO=function(r){return r.T.N().experiments.uL("enable_progres_commands_lr_feeds")}; GJ=function(r){return r.T.N().experiments.uL("html5_cuepoint_identifier_logging")}; GUU=function(r){r=r.T.getVideoData(1);return!!r&&r.U("html5_preload_first_vod_video_ad")&&!r.isDaiEnabled()}; kDp=function(r){switch(r){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}}; hXi=function(){g.NK.call(this);var r=this;this.G={};this.addOnDisposeCallback(function(){for(var V=g.H(Object.keys(r.G)),I=V.next();!I.done;I=V.next())delete r.G[I.value]})}; hq=function(){if(rlv===null){rlv=new hXi;qQ(Iu).X="b";var r=qQ(Iu),V=qn(r)=="h"||qn(r)=="b",I=!(jX(),!1);V&&I&&(r.W=!0,r.C=new D6X)}return rlv}; V8A=function(r,V,I){r.G[V]=I}; I6r=function(r){switch(r){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}}; ry=function(r,V,I){this.SC=r;this.T=V;this.ws=I;this.X=new Set;this.G=new Map;hq().subscribe("adactiveviewmeasurable",this.m8,this);hq().subscribe("adfullyviewableaudiblehalfdurationimpression",this.wV,this);hq().subscribe("adviewableimpression",this.Fx,this);hq().subscribe("adaudioaudible",this.eE,this);hq().subscribe("adaudiomeasurable",this.rV,this)}; IF=function(r,V,I){var d=I.LY,a=I.jV,f=I.listener,e=I.jP;I=I.Yo===void 0?!1:I.Yo;if(r.G.has(V))zQ("Unexpected registration of layout in LidarApi");else{if(e){if(r.X.has(e))return;r.X.add(e)}r.G.set(V,f);Ni(jX().o8,"fmd",1);Hjh(qQ(Iu),d);var n=I?V:void 0;V8A(hq(),V,{bC:function(){if(!a)return{};var D=r.T.getPresentingPlayerType(!0),x;return(x=r.T.getVideoData(D))!=null&&x.isAd()?{currentTime:r.SC.get().getCurrentTimeSec(D,!1,n),duration:a,isPlaying:VM(r.SC.get(),D).isPlaying(),isVpaid:!1,isYouTube:!0, volume:r.SC.get().isMuted()?0:r.SC.get().getVolume()/100}:{}}})}}; dy=function(r,V){r.G.has(V)?(r.G.delete(V),delete hq().G[V]):zQ("Unexpected unregistration of layout in LidarApi")}; dNj=function(r,V){if(r.T.isLifaAdPlaying()){var I=r.T.gL(!0,!0);r.Ev(V,I.width*.5*1.1,I.height*.25*1.1,I.width*.5*.9,I.height*.5*.9)}}; ekg=function(r,V,I){var d={};a6i(r,d,V,I);f6j(d);d.LACT=aF(function(){return Gg().toString()}); d.VIS=aF(function(){return r.getVisibilityState().toString()}); d.SDKV="h.3.0";d.VOL=aF(function(){return r.isMuted()?"0":Math.round(r.getVolume()).toString()}); d.VED="";return d}; YxA=function(r,V){var I={};if(V)return I;if(!r.kind)return g.BG(Error("AdPlacementConfig without kind")),I;if(r.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||r.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!r.adTimeOffset||!r.adTimeOffset.offsetStartMilliseconds)return g.BG(Error("malformed AdPlacementConfig")),I;I.MIDROLL_POS=aF(sS(Math.round(bb(r.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else I.MIDROLL_POS=aF(sS("0"));return I}; aF=function(r){return{toString:function(){return r()}}}; nbX=function(r,V,I){function d(n,D){(D=I[D])&&(f[n]=D)} function a(n,D){(D=I[D])&&(f[n]=e(D))} if(!I||g.ho(I))return r;var f=Object.assign({},r),e=V?encodeURIComponent:function(n){return n}; a("DV_VIEWABILITY","doubleVerifyViewability");a("IAS_VIEWABILITY","integralAdsViewability");a("MOAT_INIT","moatInit");a("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f}; a6i=function(r,V,I,d){V.CPN=aF(function(){var a;(a=r.getVideoData(1))?a=a.clientPlaybackNonce:(g.gj(Error("Video data is null.")),a=null);return a}); V.AD_MT=aF(function(){if(d!=null)var a=d;else{var f=I;r.N().U("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(r.N().U("enable_h5_shorts_ad_fill_ad_mt_macro")||r.N().U("enable_desktop_discovery_pings_ad_mt_macro")||g.hK(r.N())){var e=r.getPresentingPlayerType(!0),n;a=((n=r.getVideoData(e))==null?0:n.isAd())?jPX(r,e,f):0}else a=jPX(r,2,f)}return DNU(a)}); V.MT=aF(function(){return DNU(r.getCurrentTime(1,!1))}); V.P_H=aF(function(){return r.gs().Xf().height.toString()}); V.P_W=aF(function(){return r.gs().Xf().width.toString()}); V.PV_H=aF(function(){return r.gs().getVideoContentRect().height.toString()}); V.PV_W=aF(function(){return r.gs().getVideoContentRect().width.toString()})}; DNU=function(r){return Math.round(Math.max(0,r*1E3)).toString()}; f6j=function(r){r.CONN=aF(sS("0"));r.WT=aF(function(){return Date.now().toString()})}; jPX=function(r,V,I){return I!==void 0?r.getCurrentTime(V,!1,I):r.getCurrentTime(V,!1)}; xNg=function(){}; Ebv=function(r,V,I,d,a){var f,e,n,D,x,E,N,c,z,M,w,b,W;g.L(function(K){switch(K.X){case 1:f=!!V.scrubReferrer;e=g.Lm(V.baseUrl,nbX(I,f,d));n={};if(!V.headers){K.qk(2);break}D=r.Y();if(!D.G){x=D.getValue();K.qk(3);break}return g.G(K,D.G,4);case 4:x=K.G;case 3:E=x;N=g.H(V.headers);for(c=N.next();!c.done;c=N.next())switch(z=c.value,z.headerType){case "VISITOR_ID":g.kt("VISITOR_DATA")&&(n["X-Goog-Visitor-Id"]=g.kt("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.kt("EOM_VISITOR_DATA")&&(n["X-Goog-EOM-Visitor-Id"]= g.kt("EOM_VISITOR_DATA"));break;case "USER_AUTH":E&&(n.Authorization="Bearer "+E);break;case "PLUS_PAGE_ID":(M=r.W())&&(n["X-Goog-PageId"]=M);break;case "AUTH_USER":w=r.G();!E&&w&&(n["X-Goog-AuthUser"]=w);break;case "DATASYNC_ID":if(b=void 0,(b=r.S())==null?0:b.uL("enable_datasync_id_header_in_web_vss_pings"))W=r.X(),xQ(e)&&g.kt("LOGGED_IN")&&W&&(n["X-YouTube-DataSync-Id"]=W)}"X-Goog-EOM-Visitor-Id"in n&&"X-Goog-Visitor-Id"in n&&delete n["X-Goog-Visitor-Id"];case 2:g.mn(e,void 0,f,Object.keys(n).length!== 0?n:void 0,"",!0,a),g.Hr(K)}})}; NGi=function(r,V,I,d,a){this.Y=r;this.W=V;this.G=I;this.X=d;this.S=a}; sPv=function(r,V){this.G=r;this.ws=V}; fK=function(r,V,I,d,a,f,e){var n=n===void 0?new NGi(function(){var D=r.N(),x=r.getVideoData(1);return g.jQ(D,x?g.QW(x):"")},function(){return r.N().pageId},function(){return r.N().bL},function(){var D; return(D=r.N().datasyncId)!=null?D:""},function(){return r.N().experiments}):n; this.T=r;this.X=V;this.wH=I;this.C8=d;this.Lo=a;this.ws=f;this.B3=e;this.Y=n;this.SV=null;this.G=new Map;this.S=new sPv(n,this.ws)}; zki=function(r,V,I,d,a){var f=Sn(r.X.get(),I);f?(I=FS(r,clZ(f),f,void 0,void 0,d),V.hasOwnProperty("baseUrl")?r.Y.send(V,I):r.S.send(V,I,{},a)):zQ("Trying to ping from an unknown layout",void 0,void 0,{layoutId:I})}; wLi=function(r,V,I,d,a,f){d=d===void 0?[]:d;var e=Sn(r.X.get(),V);if(e){var n=r.wH.get().xG(V,I),D=FS(r,clZ(e),e,a,f);d.forEach(function(x,E){x.baseUrl&&(r.S.send(x.baseUrl,D,n,x.attributionSrcMode),x.serializedAdPingMetadata&&r.Lo.L9("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,e,new VIZ(x,E),void 0,void 0,e.adLayoutLoggingData))})}else zQ("Trying to track from an unknown layout.",void 0,void 0,{layoutId:V, trackingType:I})}; Ws=function(r,V){r.T.sendVideoStatsEngageEvent(V,void 0,2)}; f1=function(r,V){g.N9("adsClientStateChange",V)}; M8i=function(r,V){r.G.has(V.s9())?zQ("Trying to register an existing AdErrorInfoSupplier."):r.G.set(V.s9(),V)}; CVr=function(r,V){r.G.delete(V.s9())||zQ("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; jo=function(r,V,I){typeof I==="string"?r.T.getVideoData(1).fk(V,I):r.T.getVideoData(1).Hs(V,I)}; clZ=function(r){var V=g.J(jC(r.clientMetadata,"metadata_type_ad_placement_config"));r=jC(r.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:V,F2:r}}; FS=function(r,V,I,d,a,f){var e=I?TGj(r):{},n=I?H4g(r,I.layoutId):{},D=wVr(r),x,E=a!=null?a:(x=bf(r.C8.get(),2))==null?void 0:x.clientPlaybackNonce;a=void 0;if(I){var N;if((N=r.B3.G.get(I.layoutId))==null?0:N.Yo)a=I.layoutId}N={};r=Object.assign({},ekg(r.T,a,d),YxA(V.adPlacementConfig,(I==null?void 0:I.renderingContent)!==void 0),n,e,D,(N.FINAL=aF(function(){return"1"}),N.AD_CPN=aF(function(){return E||""}),N)); (I==null?void 0:I.renderingContent)!==void 0||(r.SLOT_POS=aF(function(){return(V.F2||0).toString()})); I={};f=Object.assign({},r,f);r=g.H(Object.values(b4g));for(d=r.next();!d.done;d=r.next())d=d.value,e=f[d],e!=null&&e.toString()!=null&&(I[d]=e.toString());return I}; TGj=function(r){var V={},I,d=(I=r.SV)==null?void 0:I.pM/1E3;d!=null&&(V.SURVEY_ELAPSED_MS=aF(function(){return Math.round(d*1E3).toString()})); V.SURVEY_LOCAL_TIME_EPOCH_S=aF(function(){return Math.round(Date.now()/1E3).toString()}); return V}; H4g=function(r,V){r=r.G.get(V);if(!r)return{};r=r.xa();if(!r)return{};V={};return V.YT_ERROR_CODE=r.Fy.toString(),V.ERRORCODE=r.Un.toString(),V.ERROR_MSG=r.errorMessage,V}; wVr=function(r){var V={},I=r.T.getVideoData(1);V.ASR=aF(function(){var d;return(d=I==null?void 0:I.vR)!=null?d:null}); V.EI=aF(function(){var d;return(d=I==null?void 0:I.eventId)!=null?d:null}); return V}; eR=function(r,V,I){g.X.call(this);this.T=r;this.Sj=V;this.ws=I;this.listeners=[];this.dG=null;this.G9=new Map;V=new g.Su(this);g.S(this,V);V.K(r,"videodatachange",this.qtQ);V.K(r,"serverstitchedvideochange",this.A9M);this.pp=bf(this)}; bf=function(r,V){var I=r.T.getVideoData(V);return I?r.MC(I,V||r.T.getPresentingPlayerType(!0)):null}; eo=function(r){return r.pp}; O4X=function(r,V,I){var d=r.MC(V,I);r.pp=d;r.listeners.forEach(function(a){a.yA(d)})}; Wai=function(r){switch(r){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}}; Yc=function(r,V,I){g.X.call(this);this.T=r;this.C8=V;this.ws=I;this.listeners=[];this.jJ=[];this.G=function(){zQ("Called 'doUnlockPreroll' before it's initialized.")}; V=new Gc(this);I=new g.Su(this);g.S(this,I);g.S(this,V);V.K(r,"progresssync",this.J9Q);V.K(r,"presentingplayerstatechange",this.PJ0);V.K(r,"fullscreentoggled",this.onFullscreenToggled);V.K(r,"onVolumeChange",this.onVolumeChange);V.K(r,"minimized",this.TR);V.K(r,"overlayvisibilitychange",this.M7);V.K(r,"shortsadswipe",this.AK);V.K(r,"resize",this.yy);I.K(r,g.nv("appad"),this.cZ)}; nK=function(r){kJ(r.ws.get())||r.G()}; $NZ=function(r,V){r.jJ=r.jJ.filter(function(I){return I!==V})}; jR=function(r,V,I){return r.getCurrentTimeSec(V,I)}; tJ=function(r){return r.getCurrentTimeSec(1,!1)}; Kav=function(r,V){var I;V=(I=r.C8.get().G9.get(V))!=null?I:null;if(V===null)return zQ("Expected ad video start time on playback timeline"),0;r=r.T.getCurrentTime(2,!0);return r0){var f=V.end.toString();a.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&e.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&e.adTimeOffset&&e.adTimeOffset.offsetEndMilliseconds==="-1"&&e.adTimeOffset.offsetEndMilliseconds!==f&&(e.adTimeOffset.offsetEndMilliseconds=f)}); d.map(function(e){return g.U(e,pt)}).forEach(function(e){var n; (e=e==null?void 0:(n=e.slotEntryTrigger)==null?void 0:n.mediaTimeRangeTrigger)&&e.offsetEndMilliseconds==="-1"&&(e.offsetEndMilliseconds=f)})}return{o2:a, adSlots:d,NF:!1,ssdaiAdsConfig:r.ssdaiAdsConfig}}; sR=function(r){g.X.call(this);this.T=r;this.listeners=[];this.G=new Gc(this);g.S(this,this.G);this.G.K(this.T,"aduxclicked",this.onAdUxClicked);this.G.K(this.T,"aduxmouseover",this.OC);this.G.K(this.T,"aduxmouseout",this.kV);this.G.K(this.T,"muteadaccepted",this.sTQ)}; FaO=function(r,V,I){V=g.uE(V,function(d){return new L4r(d,I,d.id)}); r.T.Bs("onAdUxUpdate",V)}; c$=function(r,V){r=g.H(r.listeners);for(var I=r.next();!I.done;I=r.next())V(I.value)}; z5=function(r,V){this.X=r;this.S=V===void 0?!1:V;this.G={}}; l6X=function(r,V){var I=r.startSecs+r.aB;I=I<=0?null:I;if(I===null)return null;switch(r.event){case "start":case "continue":case "stop":break;case "predictStart":if(V)break;return null;default:return null}V=Math.max(r.startSecs,0);return{Ip:new KL(V,I),tCz:new oC(V,I-V,r.context,r.identifier,r.event,r.G)}}; LaX=function(){this.G=[]}; T4v=function(r,V,I){var d=g.Fe(r.G,V);if(d>=0)return V;V=-d-1;return V>=r.G.length||r.G[V]>I?null:r.G[V]}; MI=function(r,V,I){g.X.call(this);this.T=r;this.ws=V;this.sE=I;this.listeners=[];this.W=!1;this.Y=[];this.G=null;this.C=new z5(this,uWA(V.get()));this.S=new LaX;this.X=null}; JlX=function(r){return r.Y}; Z4X=function(r,V){r.Y.push(V);for(var I=!1,d=g.H(r.listeners),a=d.next();!a.done;a=d.next())I=a.value.Z_(V)||I;r.W=I;GJ(r.ws.get())&&jo(r.sE.get(),"onci","cpi."+V.identifier+";cpe."+V.event+";cps."+V.startSecs+";cbi."+I)}; BGO=function(r,V){f1(r.sE.get(),{cuepointTrigger:{event:XVU(V.event),cuepointId:V.identifier,totalCueDurationMs:V.aB*1E3,playheadTimeMs:V.G,cueStartTimeMs:V.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:r.T.getVideoData(1).clientPlaybackNonce}})}; XVU=function(r){switch(r){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 hr(r,"Unexpected cuepoint event")}}; CK=function(r){this.T=r}; T5=function(r){this.T=r}; gbi=function(r){switch(r){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:hr(r,"unknown transitionReason")}}; H$=function(){g.X.apply(this,arguments)}; Sxp=function(r){this.T=r}; i4i=function(r,V,I,d,a){g.X.call(this);var f=this,e=m1(function(){return new e9(f.ws)}); g.S(this,e);var n=m1(function(){return new nw(e,f.ws)}); g.S(this,n);var D=m1(function(){return new XV}); g.S(this,D);var x=m1(function(){return new JJ(r)}); g.S(this,x);var E=m1(function(){return new j9(e,n,f.ws)}); g.S(this,E);var N=m1(function(){return new sf}); g.S(this,N);this.wh=m1(function(){return new sR(V)}); g.S(this,this.wh);this.RT=m1(function(){return new pM(a)}); g.S(this,this.RT);this.TP=m1(function(){return new pd(V)}); g.S(this,this.TP);this.ZR=m1(function(){return new vW(V)}); g.S(this,this.ZR);this.Xh=m1(function(){return new qh(V)}); g.S(this,this.Xh);this.gh=m1(function(){return new PW(V)}); g.S(this,this.gh);this.ws=m1(function(){return new o_(V)}); g.S(this,this.ws);var c=m1(function(){return new NI(d)}); g.S(this,c);var z=m1(function(){return new M_(f.ws)}); g.S(this,z);this.d$=m1(function(){return new CK(V)}); g.S(this,this.d$);this.Rm=m1(function(){return new PE}); g.S(this,this.Rm);this.C8=m1(function(){return new eR(V,N,f.ws)}); g.S(this,this.C8);var M=my({C8:this.C8,ws:this.ws,Ot:z}),w=M.context,b=M.B3;this.Lo=M.Lo;this.Br=m1(function(){return new MI(V,f.ws,f.sE)}); g.S(this,this.Br);this.Fh=m1(function(){return new T5(V)}); g.S(this,this.Fh);this.SC=m1(function(){return new Yc(V,f.C8,f.ws)}); g.S(this,this.SC);this.oo=m1(function(){return new H$}); g.S(this,this.oo);M=m1(function(){return new $l(e,E,n,f.ws,z,"SLOT_TYPE_ABOVE_FEED",f.SC,f.Cl,f.iZ)}); g.S(this,M);this.xb=m1(function(){return new oV(f.ws)}); this.wH=m1(function(){return new ry(f.SC,V,f.ws)}); g.S(this,this.wH);this.sE=m1(function(){return new fK(V,D,f.wH,f.C8,f.Lo,f.ws,b)}); g.S(this,this.sE);this.PO=new l7(FV,wy,function(K,F,l,B){return Yl(n.get(),K,F,l,B)},x,E,n,z,this.ws,this.C8); g.S(this,this.PO);this.J9=new L3(x,M,I,this.ws,r,this.C8,this.SC,this.TP);g.S(this,this.J9);var W=new uy(V,this.J9,this.SC,this.C8,this.Br);this.Ln=m1(function(){return W}); this.Gj=W;this.Cl=new yQ(x,E,this.Ln,this.Br,this.SC,this.ws,this.sE,this.Fh);g.S(this,this.Cl);this.vH=new Z1(x,E,this.ZR,this.Ln,w);g.S(this,this.vH);this.h9=new up(this.ws,x,E,M,this.C8,this.vH,I,this.Xh);g.S(this,this.h9);this.Sm=m1(function(){return new cs(c,n,z,f.ws,f.sE,f.SC,f.Fh)}); g.S(this,this.Sm);this.qm=m1(function(){return new zj}); g.S(this,this.qm);this.XM=new u7(r,this.wh,this.ws);g.S(this,this.XM);this.AI=new p3(r);g.S(this,this.AI);this.MX=new vc(r);g.S(this,this.MX);this.dY=new Pc(r,this.Ln,w);g.S(this,this.dY);this.Vz=new ow(r,this.ZR,this.SC,this.C8,w);g.S(this,this.Vz);this.Mg=new kl(r,this.C8);g.S(this,this.Mg);this.iZ=new VV(r,this.Br,this.SC,this.sE,this.Ln);g.S(this,this.iZ);this.Yb=new hJ(r);g.S(this,this.Yb);this.oL=new fw(r);g.S(this,this.oL);this.DN=new rD(r);g.S(this,this.DN);this.xn=new a$(r);g.S(this,this.xn); this.oL=new fw(r);g.S(this,this.oL);this.bZ=m1(function(){return new i7}); g.S(this,this.bZ);this.y6=m1(function(){return new Uj(f.SC)}); g.S(this,this.y6);this.hU=m1(function(){return new iBA(f.wh,f.sE,r,D,f.wH)}); g.S(this,this.hU);this.qL=m1(function(){return new Vf(f.h9,x,e)}); g.S(this,this.qL);this.fl=m1(function(){return new ae(f.ws,f.sE,f.Yb,f.wH)}); g.S(this,this.fl);this.V7=m1(function(){return new Mj(r,f.oL,f.Yb,f.C8,f.Fh,f.SC,f.oo,f.sE,N,f.Br,f.wH,f.xb,f.Xh,f.ZR,f.TP,f.gh,f.RT,f.d$,f.ws,D,w,b)}); g.S(this,this.V7);this.eM=m1(function(){return new Ifi(f.SC,f.sE,f.RT,f.ws,f.wH,f.C8)}); g.S(this,this.eM);this.RU=m1(function(){return new QEi(f.wh,f.SC,f.sE,D,f.wH,f.MX,f.xn,f.RT,f.ws,I)}); g.S(this,this.RU);this.dO=m1(function(){return new UKX(f.wh,f.sE,D)}); g.S(this,this.dO);this.ww=new ER(r,this.Rm,e);g.S(this,this.ww);this.Lw={aR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.h9],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Cl],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.PO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.J9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.vH]]),Ht:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Sm],["SLOT_TYPE_ABOVE_FEED",this.qm],["SLOT_TYPE_FORECASTING",this.qm], ["SLOT_TYPE_IN_PLAYER",this.qm],["SLOT_TYPE_PLAYER_BYTES",this.qm],["SLOT_TYPE_PLAYER_UNDERLAY",this.qm],["SLOT_TYPE_PLAYBACK_TRACKING",this.qm],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.qm]]),pS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.XM],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.XM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.AI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.AI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.AI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.AI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.AI],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.AI],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.AI],["TRIGGER_TYPE_CLOSE_REQUESTED",this.MX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.dY],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Vz],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Vz],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Vz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vz],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vz],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Vz],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Vz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Mg],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Mg],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Yb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.dY],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.DN],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.xn],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iZ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.iZ],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iZ],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iZ],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iZ]]),WV:new Map([["SLOT_TYPE_ABOVE_FEED",this.bZ], ["SLOT_TYPE_AD_BREAK_REQUEST",this.bZ],["SLOT_TYPE_FORECASTING",this.bZ],["SLOT_TYPE_IN_PLAYER",this.bZ],["SLOT_TYPE_PLAYER_BYTES",this.y6],["SLOT_TYPE_PLAYER_UNDERLAY",this.bZ],["SLOT_TYPE_PLAYBACK_TRACKING",this.bZ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.bZ]]),ZG:new Map([["SLOT_TYPE_ABOVE_FEED",this.hU],["SLOT_TYPE_AD_BREAK_REQUEST",this.qL],["SLOT_TYPE_FORECASTING",this.fl],["SLOT_TYPE_PLAYER_BYTES",this.V7],["SLOT_TYPE_PLAYBACK_TRACKING",this.eM],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.eM],["SLOT_TYPE_IN_PLAYER",this.RU],["SLOT_TYPE_PLAYER_UNDERLAY",this.dO]])};this.listeners=[D.get()];this.GS={h9:this.h9,N3:this.ws.get(),I7:this.RT.get(),BW:this.SC.get(),J9:this.J9,Yr:e.get(),qH:this.Rm.get(),TL:this.XM,yF:D.get(),w$:this.C8.get()}}; UNj=function(r,V,I,d,a){g.X.call(this);var f=this,e=m1(function(){return new e9(f.ws)}); g.S(this,e);var n=m1(function(){return new nw(e,f.ws)}); g.S(this,n);var D=m1(function(){return new XV}); g.S(this,D);var x=m1(function(){return new JJ(r)}); g.S(this,x);var E=m1(function(){return new j9(e,n,f.ws)}); g.S(this,E);var N=m1(function(){return new sf}); g.S(this,N);this.wh=m1(function(){return new sR(V)}); g.S(this,this.wh);this.RT=m1(function(){return new pM(a)}); g.S(this,this.RT);this.TP=m1(function(){return new pd(V)}); g.S(this,this.TP);this.ZR=m1(function(){return new vW(V)}); g.S(this,this.ZR);this.Xh=m1(function(){return new qh(V)}); g.S(this,this.Xh);this.gh=m1(function(){return new PW(V)}); g.S(this,this.gh);this.ws=m1(function(){return new o_(V)}); g.S(this,this.ws);var c=m1(function(){return new NI(d)}); g.S(this,c);var z=m1(function(){return new M_(f.ws)}); g.S(this,z);var M=m1(function(){return new $l(e,E,n,f.ws,z,null,null,f.Cl,f.iZ)}); g.S(this,M);this.d$=m1(function(){return new CK(V)}); g.S(this,this.d$);this.Rm=m1(function(){return new PE}); g.S(this,this.Rm);this.C8=m1(function(){return new eR(V,N,f.ws)}); g.S(this,this.C8);var w=my({C8:this.C8,ws:this.ws,Ot:z}),b=w.context,W=w.B3;this.Lo=w.Lo;this.Br=m1(function(){return new MI(V,f.ws,f.sE)}); this.SC=m1(function(){return new Yc(V,f.C8,f.ws)}); g.S(this,this.SC);this.oo=m1(function(){return new H$}); g.S(this,this.oo);this.wH=m1(function(){return new ry(f.SC,V,f.ws)}); g.S(this,this.wH);this.sE=m1(function(){return new fK(V,D,f.wH,f.C8,f.Lo,f.ws,W)}); g.S(this,this.sE);this.xb=m1(function(){return new oV(f.ws)}); g.S(this,this.xb);this.PO=new l7(FV,wy,function(F,l,B,P){return Yl(n.get(),F,l,B,P)},x,E,n,z,this.ws,this.C8); g.S(this,this.PO);this.J9=new L3(x,M,I,this.ws,r,this.C8,this.SC,this.TP);g.S(this,this.J9);var K=new uy(V,this.J9,this.SC,this.C8,this.Br);this.Ln=m1(function(){return K}); this.Gj=K;this.Cl=new yQ(x,E,this.Ln,this.Br,this.SC,this.ws,this.sE);g.S(this,this.Cl);this.vH=new Z1(x,E,this.ZR,this.Ln,b);g.S(this,this.vH);this.h9=new up(this.ws,x,E,M,this.C8,this.vH,I,this.Xh);g.S(this,this.h9);this.Sm=m1(function(){return new cs(c,n,z,f.ws,f.sE,f.SC)}); g.S(this,this.Sm);this.qm=m1(function(){return new zj}); g.S(this,this.qm);this.XM=new u7(r,this.wh,this.ws);g.S(this,this.XM);this.AI=new p3(r);g.S(this,this.AI);this.MX=new vc(r);g.S(this,this.MX);this.dY=new Pc(r,this.Ln,b);g.S(this,this.dY);this.Vz=new ow(r,this.ZR,this.SC,this.C8,b);g.S(this,this.Vz);this.Yb=new hJ(r);g.S(this,this.Yb);this.DN=new rD(r);g.S(this,this.DN);this.xn=new a$(r);g.S(this,this.xn);this.Fh=m1(function(){return new T5(V)}); g.S(this,this.Fh);this.oL=new fw(r);g.S(this,this.oL);this.iZ=new VV(r,this.Br,this.SC,this.sE,this.Ln);g.S(this,this.iZ);this.bZ=m1(function(){return new i7}); g.S(this,this.bZ);this.y6=m1(function(){return new Uj(f.SC)}); g.S(this,this.y6);this.qL=m1(function(){return new Vf(f.h9,x,e)}); g.S(this,this.qL);this.fl=m1(function(){return new ae(f.ws,f.sE,f.Yb,f.wH)}); g.S(this,this.fl);this.RU=m1(function(){return new mMh(f.wh,f.SC,f.sE,D,f.wH,f.MX,f.xn,f.RT,f.ws,I)}); g.S(this,this.RU);this.V7=m1(function(){return new C1(r,f.oL,f.Yb,f.sE,f.wH,f.xb,f.Xh,f.C8,f.SC,f.oo,f.ZR,f.TP,f.gh,f.RT,f.d$,f.ws,f.Fh,b,W)}); g.S(this,this.V7);this.ww=new ER(r,this.Rm,e);g.S(this,this.ww);this.Lw={aR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.h9],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Cl],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.PO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.J9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.vH]]),Ht:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Sm],["SLOT_TYPE_FORECASTING",this.qm],["SLOT_TYPE_IN_PLAYER",this.qm], ["SLOT_TYPE_PLAYER_BYTES",this.qm]]),pS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.XM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.AI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.AI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.AI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.AI], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.AI],["TRIGGER_TYPE_CLOSE_REQUESTED",this.MX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.dY],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vz],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vz],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Vz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Yb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.dY],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.DN],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.xn],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iZ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.iZ],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iZ],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iZ],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iZ]]),WV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bZ],["SLOT_TYPE_FORECASTING",this.bZ],["SLOT_TYPE_IN_PLAYER",this.bZ],["SLOT_TYPE_PLAYER_BYTES",this.y6]]), ZG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qL],["SLOT_TYPE_FORECASTING",this.fl],["SLOT_TYPE_IN_PLAYER",this.RU],["SLOT_TYPE_PLAYER_BYTES",this.V7]])};this.listeners=[D.get()];this.GS={h9:this.h9,N3:this.ws.get(),I7:this.RT.get(),BW:this.SC.get(),J9:this.J9,Yr:e.get(),qH:this.Rm.get(),TL:this.XM,yF:D.get(),w$:this.C8.get()}}; QPA=function(r,V,I,d,a){g.X.call(this);var f=this,e=m1(function(){return new e9(f.ws)}); g.S(this,e);var n=m1(function(){return new nw(e,f.ws)}); g.S(this,n);var D=m1(function(){return new XV}); g.S(this,D);var x=m1(function(){return new JJ(r)}); g.S(this,x);var E=m1(function(){return new j9(e,n,f.ws)}); g.S(this,E);var N=m1(function(){return new sf}); g.S(this,N);this.wh=m1(function(){return new sR(V)}); g.S(this,this.wh);this.RT=m1(function(){return new pM(a)}); g.S(this,this.RT);this.TP=m1(function(){return new pd(V)}); g.S(this,this.TP);this.ZR=m1(function(){return new vW(V)}); g.S(this,this.ZR);this.Xh=m1(function(){return new qh(V)}); g.S(this,this.Xh);this.gh=m1(function(){return new PW(V)}); g.S(this,this.gh);this.ws=m1(function(){return new o_(V)}); g.S(this,this.ws);var c=m1(function(){return new NI(d)}); g.S(this,c);var z=m1(function(){return new M_(f.ws)}); g.S(this,z);var M=m1(function(){return new $l(e,E,n,f.ws,z,null,null,null,null)}); g.S(this,M);this.d$=m1(function(){return new CK(V)}); g.S(this,this.d$);this.C8=m1(function(){return new eR(V,N,f.ws)}); g.S(this,this.C8);var w=my({C8:this.C8,ws:this.ws,Ot:z}),b=w.context,W=w.B3;this.Lo=w.Lo;this.SC=m1(function(){return new Yc(V,f.C8,f.ws)}); g.S(this,this.SC);this.oo=m1(function(){return new H$}); g.S(this,this.oo);this.wH=m1(function(){return new ry(f.SC,V,f.ws)}); g.S(this,this.wH);this.sE=m1(function(){return new fK(V,D,f.wH,f.C8,f.Lo,f.ws,W)}); g.S(this,this.sE);this.xb=m1(function(){return new oV(f.ws)}); g.S(this,this.xb);this.PO=new l7(FV,wy,function(F,l,B,P){return Yl(n.get(),F,l,B,P)},x,E,n,z,this.ws,this.C8); g.S(this,this.PO);this.J9=new L3(x,M,I,this.ws,r,this.C8,this.SC,this.TP);g.S(this,this.J9);var K=new uy(V,this.J9,this.SC,this.C8);this.Ln=m1(function(){return K}); this.Gj=K;this.vH=new Z1(x,E,this.ZR,this.Ln,b);g.S(this,this.vH);this.h9=new up(this.ws,x,E,M,this.C8,this.vH,I,this.Xh);g.S(this,this.h9);this.Sm=m1(function(){return new cs(c,n,z,f.ws,f.sE,f.SC)}); g.S(this,this.Sm);this.qm=m1(function(){return new zj}); g.S(this,this.qm);this.XM=new u7(r,this.wh,this.ws);g.S(this,this.XM);this.AI=new p3(r);g.S(this,this.AI);this.dY=new Pc(r,this.Ln,b);g.S(this,this.dY);this.Vz=new ow(r,this.ZR,this.SC,this.C8,b);g.S(this,this.Vz);this.Yb=new hJ(r);g.S(this,this.Yb);this.DN=new rD(r);g.S(this,this.DN);this.Fh=m1(function(){return new T5(V)}); g.S(this,this.Fh);this.oL=new fw(r);g.S(this,this.oL);this.bZ=m1(function(){return new i7}); g.S(this,this.bZ);this.y6=m1(function(){return new Uj(f.SC)}); g.S(this,this.y6);this.qL=m1(function(){return new Vf(f.h9,x,e)}); g.S(this,this.qL);this.fl=m1(function(){return new ae(f.ws,f.sE,f.Yb,f.wH)}); g.S(this,this.fl);this.fH=m1(function(){return new VOA(f.wh,f.SC,f.sE,D,I,f.ws)}); g.S(this,this.fH);this.V7=m1(function(){return new C1(r,f.oL,f.Yb,f.sE,f.wH,f.xb,f.Xh,f.C8,f.SC,f.oo,f.ZR,f.TP,f.gh,f.RT,f.d$,f.ws,f.Fh,b,W)}); g.S(this,this.V7);this.Lw={aR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.h9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.PO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.J9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.vH]]),Ht:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Sm],["SLOT_TYPE_FORECASTING",this.qm],["SLOT_TYPE_IN_PLAYER",this.qm],["SLOT_TYPE_PLAYER_BYTES",this.qm]]),pS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.XM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.AI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.AI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.AI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.AI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.dY],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vz],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Vz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Yb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.dY],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.DN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oL]]),WV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bZ],["SLOT_TYPE_ABOVE_FEED",this.bZ],["SLOT_TYPE_FORECASTING",this.bZ],["SLOT_TYPE_IN_PLAYER",this.bZ],["SLOT_TYPE_PLAYER_BYTES",this.y6]]),ZG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qL],["SLOT_TYPE_FORECASTING",this.fl],["SLOT_TYPE_IN_PLAYER", this.fH],["SLOT_TYPE_PLAYER_BYTES",this.V7]])};this.listeners=[D.get()];this.GS={h9:this.h9,N3:this.ws.get(),I7:this.RT.get(),BW:this.SC.get(),J9:this.J9,Yr:e.get(),qH:null,TL:this.XM,yF:D.get(),w$:this.C8.get()}}; mNA=function(r,V,I,d,a){g.X.call(this);var f=this,e=m1(function(){return new e9(f.ws)}); g.S(this,e);var n=m1(function(){return new nw(e,f.ws)}); g.S(this,n);var D=m1(function(){return new XV}); g.S(this,D);var x=m1(function(){return new JJ(r)}); g.S(this,x);var E=m1(function(){return new j9(e,n,f.ws)}); g.S(this,E);var N=m1(function(){return new sf}); g.S(this,N);this.zw=m1(function(){return new Sxp(V)}); g.S(this,this.zw);this.wh=m1(function(){return new sR(V)}); g.S(this,this.wh);this.RT=m1(function(){return new pM(a)}); g.S(this,this.RT);this.TP=m1(function(){return new pd(V)}); g.S(this,this.TP);this.ZR=m1(function(){return new vW(V)}); g.S(this,this.ZR);this.Xh=m1(function(){return new qh(V)}); g.S(this,this.Xh);this.gh=m1(function(){return new PW(V)}); g.S(this,this.gh);this.ws=m1(function(){return new o_(V)}); g.S(this,this.ws);var c=m1(function(){return new NI(d)}); g.S(this,c);var z=m1(function(){return new M_(f.ws)}); g.S(this,z);var M=m1(function(){return new $l(e,E,n,f.ws,z,null,null,null,null)}); g.S(this,M);this.d$=m1(function(){return new CK(V)}); g.S(this,this.d$);this.C8=m1(function(){return new eR(V,N,f.ws)}); g.S(this,this.C8);var w=my({C8:this.C8,ws:this.ws,Ot:z}),b=w.context,W=w.B3;this.Lo=w.Lo;this.SC=m1(function(){return new Yc(V,f.C8,f.ws)}); g.S(this,this.SC);this.oo=m1(function(){return new H$}); g.S(this,this.oo);this.wH=m1(function(){return new ry(f.SC,V,f.ws)}); g.S(this,this.wH);this.sE=m1(function(){return new fK(V,D,f.wH,f.C8,f.Lo,f.ws,W)}); g.S(this,this.sE);this.xb=m1(function(){return new oV(f.ws)}); g.S(this,this.xb);this.PO=new l7(Fhp,wy,function(F,l,B,P){return VCv(n.get(),F,l,B,P)},x,E,n,z,this.ws,this.C8); g.S(this,this.PO);this.J9=new L3(x,M,I,this.ws,r,this.C8,this.SC,this.TP);g.S(this,this.J9);var K=new uy(V,this.J9,this.SC,this.C8);this.Ln=m1(function(){return K}); this.Gj=K;this.vH=new Z1(x,E,this.ZR,this.Ln,b);g.S(this,this.vH);this.h9=new up(this.ws,x,E,M,this.C8,this.vH,I,this.Xh);g.S(this,this.h9);this.Sm=m1(function(){return new cs(c,n,z,f.ws,f.sE,f.SC)}); g.S(this,this.Sm);this.qm=m1(function(){return new zj}); g.S(this,this.qm);this.XM=new u7(r,this.wh,this.ws);g.S(this,this.XM);this.AI=new p3(r);g.S(this,this.AI);this.dY=new Pc(r,this.Ln,b);g.S(this,this.dY);this.Vz=new ow(r,this.ZR,this.SC,this.C8,b);g.S(this,this.Vz);this.Yb=new hJ(r);g.S(this,this.Yb);this.DN=new rD(r);g.S(this,this.DN);this.Fh=m1(function(){return new T5(V)}); g.S(this,this.Fh);this.oL=new fw(r);g.S(this,this.oL);this.bZ=m1(function(){return new i7}); g.S(this,this.bZ);this.y6=m1(function(){return new Uj(f.SC)}); g.S(this,this.y6);this.qL=m1(function(){return new Vf(f.h9,x,e)}); g.S(this,this.qL);this.fl=m1(function(){return new ae(f.ws,f.sE,f.Yb,f.wH)}); g.S(this,this.fl);this.V7=m1(function(){return new C1(r,f.oL,f.Yb,f.sE,f.wH,f.xb,f.Xh,f.C8,f.SC,f.oo,f.ZR,f.TP,f.gh,f.RT,f.d$,f.ws,f.Fh,b,W)}); g.S(this,this.V7);this.Hm=m1(function(){return new pSA(f.wh,f.SC,f.sE,D,f.zw,I,f.C8)}); g.S(this,this.Hm);this.Lw={aR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.h9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.PO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.J9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.vH]]),Ht:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Sm],["SLOT_TYPE_FORECASTING",this.qm],["SLOT_TYPE_IN_PLAYER",this.qm],["SLOT_TYPE_PLAYER_BYTES",this.qm]]),pS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.XM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.AI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.AI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.AI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.AI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.dY],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vz],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Vz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Yb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.dY],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.DN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oL]]),WV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bZ],["SLOT_TYPE_FORECASTING",this.bZ],["SLOT_TYPE_IN_PLAYER",this.bZ],["SLOT_TYPE_PLAYER_BYTES",this.y6]]),ZG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qL],["SLOT_TYPE_FORECASTING",this.fl],["SLOT_TYPE_IN_PLAYER",this.Hm],["SLOT_TYPE_PLAYER_BYTES", this.V7]])};this.listeners=[D.get()];this.GS={h9:this.h9,N3:this.ws.get(),I7:this.RT.get(),BW:this.SC.get(),J9:this.J9,Yr:e.get(),qH:null,TL:this.XM,yF:D.get(),w$:this.C8.get()}}; uHO=function(r,V,I,d,a){g.X.call(this);var f=this,e=m1(function(){return new e9(f.ws)}); g.S(this,e);var n=m1(function(){return new nw(e,f.ws)}); g.S(this,n);var D=m1(function(){return new XV}); g.S(this,D);var x=m1(function(){return new JJ(r)}); g.S(this,x);var E=m1(function(){return new j9(e,n,f.ws)}); g.S(this,E);var N=m1(function(){return new sf}); g.S(this,N);this.zw=m1(function(){return new Sxp(V)}); g.S(this,this.zw);this.wh=m1(function(){return new sR(V)}); g.S(this,this.wh);this.RT=m1(function(){return new pM(a)}); g.S(this,this.RT);this.TP=m1(function(){return new pd(V)}); g.S(this,this.TP);this.ZR=m1(function(){return new vW(V)}); g.S(this,this.ZR);this.Xh=m1(function(){return new qh(V)}); g.S(this,this.Xh);this.gh=m1(function(){return new PW(V)}); g.S(this,this.gh);this.ws=m1(function(){return new o_(V)}); g.S(this,this.ws);var c=m1(function(){return new NI(d)}); g.S(this,c);var z=m1(function(){return new M_(f.ws)}); g.S(this,z);this.d$=m1(function(){return new CK(V)}); g.S(this,this.d$);this.C8=m1(function(){return new eR(V,N,f.ws)}); g.S(this,this.C8);var M=my({C8:this.C8,ws:this.ws,Ot:z}),w=M.context,b=M.B3;this.Lo=M.Lo;this.Br=m1(function(){return new MI(V,f.ws,f.sE)}); g.S(this,this.Br);this.Fh=m1(function(){return new T5(V)}); g.S(this,this.Fh);this.SC=m1(function(){return new Yc(V,f.C8,f.ws)}); g.S(this,this.SC);this.oo=m1(function(){return new H$}); g.S(this,this.oo);M=m1(function(){return new $l(e,E,n,f.ws,z,null,f.SC,f.Cl,f.iZ,3)}); g.S(this,M);this.xb=m1(function(){return new oV(f.ws)}); this.wH=m1(function(){return new ry(f.SC,V,f.ws)}); g.S(this,this.wH);this.sE=m1(function(){return new fK(V,D,f.wH,f.C8,f.Lo,f.ws,b)}); g.S(this,this.sE);this.J9=new L3(x,M,I,this.ws,r,this.C8,this.SC,this.TP);g.S(this,this.J9);var W=new uy(V,this.J9,this.SC,this.C8,this.Br);this.Ln=m1(function(){return W}); this.Gj=W;this.PO=new l7(lyv,wy,function(K,F,l,B){return VCv(n.get(),K,F,l,B)},x,E,n,z,this.ws,this.C8); g.S(this,this.PO);this.Cl=new yQ(x,E,this.Ln,this.Br,this.SC,this.ws,this.sE,this.Fh);g.S(this,this.Cl);this.vH=new Z1(x,E,this.ZR,this.Ln,w);g.S(this,this.vH);this.h9=new up(this.ws,x,E,M,this.C8,this.vH,I,this.Xh);g.S(this,this.h9);this.Sm=m1(function(){return new cs(c,n,z,f.ws,f.sE,f.SC,f.Fh)}); g.S(this,this.Sm);this.qm=m1(function(){return new zj}); g.S(this,this.qm);this.XM=new u7(r,this.wh,this.ws);g.S(this,this.XM);this.AI=new p3(r);g.S(this,this.AI);this.dY=new Pc(r,this.Ln,w);g.S(this,this.dY);this.Vz=new ow(r,this.ZR,this.SC,this.C8,w);g.S(this,this.Vz);this.Mg=new kl(r,this.C8);g.S(this,this.Mg);this.iZ=new VV(r,this.Br,this.SC,this.sE,this.Ln);g.S(this,this.iZ);this.Yb=new hJ(r);g.S(this,this.Yb);this.DN=new rD(r);g.S(this,this.DN);this.oL=new fw(r);g.S(this,this.oL);this.bZ=m1(function(){return new i7}); g.S(this,this.bZ);this.y6=m1(function(){return new Uj(f.SC)}); g.S(this,this.y6);this.qL=m1(function(){return new Vf(f.h9,x,e)}); g.S(this,this.qL);this.fl=m1(function(){return new ae(f.ws,f.sE,f.Yb,f.wH)}); g.S(this,this.fl);this.V7=m1(function(){return new Mj(r,f.oL,f.Yb,f.C8,f.Fh,f.SC,f.oo,f.sE,N,f.Br,f.wH,f.xb,f.Xh,f.ZR,f.TP,f.gh,f.RT,f.d$,f.ws,D,w,b)}); g.S(this,this.V7);this.RU=m1(function(){return new v_U(f.wh,f.SC,f.sE,D,f.zw,I,f.ws,f.C8)}); g.S(this,this.RU);this.Lw={aR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.h9],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Cl],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.PO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.J9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.vH]]),Ht:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Sm],["SLOT_TYPE_FORECASTING",this.qm],["SLOT_TYPE_IN_PLAYER",this.qm],["SLOT_TYPE_PLAYER_BYTES",this.qm]]),pS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.XM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.AI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.AI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.AI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.AI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.AI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.AI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.dY],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Vz],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Mg],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Mg],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Yb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.dY],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.DN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iZ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.iZ],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iZ],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iZ],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iZ]]),WV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bZ],["SLOT_TYPE_FORECASTING",this.bZ],["SLOT_TYPE_IN_PLAYER",this.bZ],["SLOT_TYPE_PLAYER_BYTES",this.y6]]),ZG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qL],["SLOT_TYPE_FORECASTING",this.fl],["SLOT_TYPE_PLAYER_BYTES",this.V7],["SLOT_TYPE_IN_PLAYER",this.RU]])};this.listeners=[D.get()]; this.GS={h9:this.h9,N3:this.ws.get(),I7:this.RT.get(),BW:this.SC.get(),J9:this.J9,Yr:e.get(),qH:null,TL:this.XM,yF:D.get(),w$:this.C8.get()}}; vbh=function(r,V,I,d){function a(){return f.X} g.X.call(this);var f=this;r.N().experiments.uL("html5_dispose_of_manager_before_dependency")?(this.G=pVO(a,r,V,I,d),this.X=(new uj(this.G)).S(),g.S(this,this.X),g.S(this,this.G)):(this.G=pVO(a,r,V,I,d),g.S(this,this.G),this.X=(new uj(this.G)).S(),g.S(this,this.X))}; bN=function(r){return r.G.GS}; pVO=function(r,V,I,d,a){try{var f=V.N();if(g.VO(f))var e=new i4i(r,V,I,d,a);else if(g.dv(f))e=new UNj(r,V,I,d,a);else if(px(f))e=new QPA(r,V,I,d,a);else if(g.ih(f))e=new mNA(r,V,I,d,a);else if(g.g$(f))e=new uHO(r,V,I,d,a);else throw new TypeError("Unknown web interface");return e}catch(n){return e=V.N(),zQ("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.G.cplatform,interface:e.G.c,Lk7:e.G.cver,Uvc:e.G.ctheme,f3E:e.G.cplayer,F6z:e.playerStyle}),new Alr(r,V,I,d,a)}}; qxj=function(r){qK.call(this,r)}; PVi=function(r,V,I,d,a){dU.call(this,r,{J:"div",Z:"ytp-ad-timed-pie-countdown-container",B:[{J:"svg",Z:"ytp-ad-timed-pie-countdown",D:{viewBox:"0 0 20 20"},B:[{J:"circle",Z:"ytp-ad-timed-pie-countdown-background",D:{r:"10",cx:"10",cy:"10"}},{J:"circle",Z:"ytp-ad-timed-pie-countdown-inner",D:{r:"5",cx:"10",cy:"10"}},{J:"circle",Z:"ytp-ad-timed-pie-countdown-outer",D:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",V,I,d,a);this.Y=this.Fz("ytp-ad-timed-pie-countdown-container");this.S=this.Fz("ytp-ad-timed-pie-countdown-inner"); this.C=this.Fz("ytp-ad-timed-pie-countdown-outer");this.X=Math.ceil(2*Math.PI*5);this.hide()}; obX=function(r,V,I,d,a,f){Ti.call(this,r,{J:"div",Z:"ytp-ad-action-interstitial",D:{tabindex:"0"},B:[{J:"div",Z:"ytp-ad-action-interstitial-background-container"},{J:"div",Z:"ytp-ad-action-interstitial-slot",B:[{J:"div",Z:"ytp-ad-action-interstitial-instream-info"},{J:"div",Z:"ytp-ad-action-interstitial-card",B:[{J:"div",Z:"ytp-ad-action-interstitial-image-container"},{J:"div",Z:"ytp-ad-action-interstitial-headline-container"},{J:"div",Z:"ytp-ad-action-interstitial-description-container"},{J:"div", Z:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",V,I,d);this.wc=a;this.R5=f;this.navigationEndpoint=this.G=this.skipButton=this.X=this.actionButton=null;this.TQ=this.Fz("ytp-ad-action-interstitial-instream-info");this.p8=this.Fz("ytp-ad-action-interstitial-image-container");this.V=new m3(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,"ytp-ad-action-interstitial-image");g.S(this,this.V);this.V.Xz(this.p8);this.n8=this.Fz("ytp-ad-action-interstitial-headline-container"); this.C=new VY(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,"ytp-ad-action-interstitial-headline");g.S(this,this.C);this.C.Xz(this.n8);this.kc=this.Fz("ytp-ad-action-interstitial-description-container");this.S=new VY(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,"ytp-ad-action-interstitial-description");g.S(this,this.S);this.S.Xz(this.kc);this.Mk=this.Fz("ytp-ad-action-interstitial-background-container");this.Ws=new m3(this.api,this.layoutId,this.interactionLoggingClientData, this.I7,"ytp-ad-action-interstitial-background",!0);g.S(this,this.Ws);this.Ws.Xz(this.Mk);this.a7=this.Fz("ytp-ad-action-interstitial-action-button-container");this.slot=this.Fz("ytp-ad-action-interstitial-slot");this.DQ=this.Fz("ytp-ad-action-interstitial-card");this.Y=new Gc;g.S(this,this.Y);this.hide()}; kEh=function(r){var V=g.vz("html5-video-player");V&&g.NA(V,"ytp-ad-display-override",r)}; IU_=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-ad-overlay-slot",B:[{J:"div",Z:"ytp-ad-overlay-container"}]},"invideo-overlay",V,I,d);this.V=[];this.Mk=this.n8=this.Y=this.a7=this.TQ=null;this.Ws=!1;this.C=null;this.kc=0;r=this.Fz("ytp-ad-overlay-container");this.p8=new x8(r,45E3,6E3,.3,.4);g.S(this,this.p8);this.S=hkv(this);g.S(this,this.S);this.S.Xz(r);this.X=rhY(this);g.S(this,this.X);this.X.Xz(r);this.G=Vi6(this);g.S(this,this.G);this.G.Xz(r);this.hide()}; hkv=function(r){var V=new g.CB({J:"div",Z:"ytp-ad-text-overlay",B:[{J:"div",Z:"ytp-ad-overlay-ad-info-button-container"},{J:"div",Z:"ytp-ad-overlay-close-container",B:[{J:"button",Z:"ytp-ad-overlay-close-button",B:[Zu(dpc)]}]},{J:"div",Z:"ytp-ad-overlay-title",OE:"{{title}}"},{J:"div",Z:"ytp-ad-overlay-desc",OE:"{{description}}"},{J:"div",Yc:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],OE:"{{displayUrl}}"}]});r.K(V.Fz("ytp-ad-overlay-title"),"click",function(I){OR(r,V.element,I)}); r.K(V.Fz("ytp-ad-overlay-link"),"click",function(I){OR(r,V.element,I)}); r.K(V.Fz("ytp-ad-overlay-close-container"),"click",r.Pv);V.hide();return V}; rhY=function(r){var V=new g.CB({J:"div",Yc:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],B:[{J:"div",Z:"ytp-ad-overlay-ad-info-button-container"},{J:"div",Z:"ytp-ad-overlay-close-container",B:[{J:"button",Z:"ytp-ad-overlay-close-button",B:[Zu(dpc)]}]},{J:"div",Z:"ytp-ad-overlay-text-image",B:[{J:"img",D:{src:"{{imageUrl}}"}}]},{J:"div",Z:"ytp-ad-overlay-title",OE:"{{title}}"},{J:"div",Z:"ytp-ad-overlay-desc",OE:"{{description}}"},{J:"div",Yc:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], OE:"{{displayUrl}}"}]});r.K(V.Fz("ytp-ad-overlay-title"),"click",function(I){OR(r,V.element,I)}); r.K(V.Fz("ytp-ad-overlay-link"),"click",function(I){OR(r,V.element,I)}); r.K(V.Fz("ytp-ad-overlay-close-container"),"click",r.Pv);r.K(V.Fz("ytp-ad-overlay-text-image"),"click",r.ehk);V.hide();return V}; Vi6=function(r){var V=new g.CB({J:"div",Z:"ytp-ad-image-overlay",B:[{J:"div",Z:"ytp-ad-overlay-ad-info-button-container"},{J:"div",Z:"ytp-ad-overlay-close-container",B:[{J:"button",Z:"ytp-ad-overlay-close-button",B:[Zu(dpc)]}]},{J:"div",Z:"ytp-ad-overlay-image",B:[{J:"img",D:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});r.K(V.Fz("ytp-ad-overlay-image"),"click",function(I){OR(r,V.element,I)}); r.K(V.Fz("ytp-ad-overlay-close-container"),"click",r.Pv);V.hide();return V}; aUY=function(r,V){if(V){var I=g.U(V,ip)||null;I==null?g.BG(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(V=g.vz("video-ads ytp-ad-module")||null,V==null?g.BG(Error("Could not locate the root ads container element to attach the ad info dialog.")):(r.n8=new g.CB({J:"div",Z:"ytp-ad-overlay-ad-info-dialog-container"}),g.S(r,r.n8),r.n8.Xz(V),V=new rU(r.api,r.layoutId,r.interactionLoggingClientData,r.I7,r.n8.element,!1),g.S(r,V),V.init(x5("ad-info-hover-text-button"),I,r.macros), r.C?(V.Xz(r.C,0),V.subscribe("f",r.haE,r),V.subscribe("e",r.LZ,r),r.K(r.C,"click",r.RaM),r.K(g.vz("ytp-ad-button",V.element),"click",function(){var d;if(g.U((d=g.U(I.button,g.Q4))==null?void 0:d.serviceEndpoint,m9X))r.Ws=r.api.getPlayerState(1)===2,r.api.pauseVideo();else r.api.onAdUxClicked("ad-info-hover-text-button",r.layoutId)}),r.Mk=V):g.BG(Error("Ad info button container within overlay ad was not present."))))}else g.gj(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; eOP=function(r,V){if(fU6(r,W$)||r.api.isMinimized())return!1;var I=HL(V.title),d=HL(V.description);if(g.CD(I)||g.CD(d))return!1;r.createServerVe(r.S.element,V.trackingParams||null);r.S.updateValue("title",HL(V.title));r.S.updateValue("description",HL(V.description));r.S.updateValue("displayUrl",HL(V.displayUrl));V.navigationEndpoint&&g.KG(r.V,V.navigationEndpoint);r.S.show();r.p8.start();r.logVisibility(r.S.element,!0);r.K(r.S.element,"mouseover",function(){r.kc++}); return!0}; Yic=function(r,V){if(fU6(r,W$)||r.api.isMinimized())return!1;var I=HL(V.title),d=HL(V.description);if(g.CD(I)||g.CD(d))return!1;r.createServerVe(r.X.element,V.trackingParams||null);r.X.updateValue("title",HL(V.title));r.X.updateValue("description",HL(V.description));r.X.updateValue("displayUrl",HL(V.displayUrl));r.X.updateValue("imageUrl",nwA(V.image));V.navigationEndpoint&&g.KG(r.V,V.navigationEndpoint);r.a7=V.imageNavigationEndpoint||null;r.X.show();r.p8.start();r.logVisibility(r.X.element,!0); r.K(r.X.element,"mouseover",function(){r.kc++}); return!0}; nvf=function(r,V){if(r.api.isMinimized())return!1;var I=jYU(V.image),d=I;I.width0?(V=new gU(r.api,r.G), V.Xz(r.playerOverlay),g.S(r,V)):(r=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(V)),g.BG(r))}}else g.BG(Error("addCommonComponents() needs to be called before starting countdown."))}; TAm=function(r){function V(I){return{toString:function(){return I()}}} r.macros.SURVEY_LOCAL_TIME_EPOCH_S=V(function(){var I=new Date;return(Math.round(I.valueOf()/1E3)+-1*I.getTimezoneOffset()*60).toString()}); r.macros.SURVEY_ELAPSED_MS=V(function(){return(Date.now()-r.S).toString()})}; Hg9=function(r,V,I,d,a){tT.call(this,r,V,I,d,"survey-question-multi-select");this.kc=a;this.noneOfTheAbove=null;this.submitEndpoints=[];this.C=null;this.hide()}; wrK=function(r,V,I){r.noneOfTheAbove=new sX_(r.api,r.layoutId,r.interactionLoggingClientData,r.I7);r.noneOfTheAbove.Xz(r.answers);r.noneOfTheAbove.init(x5("survey-none-of-the-above"),V,I)}; Ogf=function(r){r.X.forEach(function(V){V.G.toggleButton(!1)}); bgm(r,!0)}; bgm=function(r,V){var I=r.Y;r=WA6(r);V=V===void 0?!1:V;I.G&&(r?I.G.hide():I.G.show(),V&&I.G instanceof bh&&!I.G.Y&&rBA(I.G,!1));I.X&&(r?I.X.show():I.X.hide())}; WA6=function(r){return r.X.some(function(V){return V.G.isToggled()})||r.noneOfTheAbove.button.isToggled()}; yM=function(r,V,I,d,a){tT.call(this,r,V,I,d,"survey-question-single-select",function(e){f.api.N().U("supports_multi_step_on_desktop")&&a([e])}); var f=this;this.hide()}; AT=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-ad-survey",B:[{J:"div",Z:"ytp-ad-survey-questions"}]},"survey",V,I,d);this.questions=[];this.X=[];this.conditioningRules=[];this.G=0;this.C=this.Fz("ytp-ad-survey-questions");this.api.N().U("fix_survey_color_contrast_on_destop")&&this.Fz("ytp-ad-survey").classList.add("color-contrast-fix");this.api.N().U("web_enable_speedmaster")&&this.Fz("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; ROm=function(r,V){var I=r.X[V],d;(d=r.S)==null||d.dispose();g.U(I,gI)?$p$(r,g.U(I,gI),r.macros):g.U(I,B_)&&KAm(r,g.U(I,B_),r.macros);r.G=V}; $p$=function(r,V,I){var d=new yM(r.api,r.layoutId,r.interactionLoggingClientData,r.I7,r.Y.bind(r));d.Xz(r.C);d.init(x5("survey-question-single-select"),V,I);r.api.N().U("supports_multi_step_on_desktop")?r.S=d:r.questions.push(d);g.S(r,d)}; KAm=function(r,V,I){var d=new Hg9(r.api,r.layoutId,r.interactionLoggingClientData,r.I7,r.Y.bind(r));d.Xz(r.C);d.init(x5("survey-question-multi-select"),V,I);r.api.N().U("supports_multi_step_on_desktop")?r.S=d:r.questions.push(d);g.S(r,d)}; G5=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-ad-survey-interstitial",B:[{J:"div",Z:"ytp-ad-survey-interstitial-contents",B:[{J:"div",Z:"ytp-ad-survey-interstitial-logo",B:[{J:"div",Z:"ytp-ad-survey-interstitial-logo-image"}]},{J:"div",Z:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",V,I,d);this.G=this.actionButton=null;this.interstitial=this.Fz("ytp-ad-survey-interstitial");this.X=this.Fz("ytp-ad-survey-interstitial-contents");this.text=this.Fz("ytp-ad-survey-interstitial-text"); this.logoImage=this.Fz("ytp-ad-survey-interstitial-logo-image");this.transition=new g.eO(this,500,!1,300);g.S(this,this.transition)}; tiK=function(r,V){V=V&&Qe(V)||"";if(g.CD(V))g.gj(Error("Found ThumbnailDetails without valid image URL"));else{var I=r.style;r=r.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=r;r=XuZ(d.style);I.cssText=[r,'background-image:url("'+V+'");'].join("")}}; yho=function(r){var V=g.vz("html5-video-player");V&&g.NA(V,"ytp-ad-display-override",r)}; FB=function(r,V,I,d,a,f){f=f===void 0?0:f;dU.call(this,r,{J:"div",Z:"ytp-preview-ad",B:[{J:"div",Z:"ytp-preview-ad__text"}]},"preview-ad",V,I,d,a);var e=this;this.kc=f;this.X=0;this.Y=-1;this.S=this.Fz("ytp-preview-ad__text");switch(this.kc){case 1:this.S.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.eO(this,400,!1,100,function(){e.hide()}); g.S(this,this.transition);this.hide()}; lN=function(r,V,I,d){Ti.call(this,r,{J:"img",Z:"ytp-ad-avatar"},"ad-avatar",V,I,d);this.hide()}; Ahc=function(r){switch(r.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}}; LK=function(r,V,I,d,a,f){a=a===void 0?!1:a;f=f===void 0?!1:f;Ti.call(this,r,{J:"button",Z:"ytp-ad-button-vm"},"ad-button",V,I,d);this.buttonText=this.buttonIcon=null;this.hide();this.G=a;this.X=f}; GS_=function(r,V,I,d,a){dU.call(this,r,{J:"div",Yc:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],B:[{J:"div",Z:"ytp-ad-avatar-lockup-card__avatar_and_text_container",B:[{J:"div",Z:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",V,I,d,a);this.startMilliseconds=0;this.adAvatar=new lN(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,this.adAvatar);an(this.element,this.adAvatar.element,0);this.headline=new lh(this.api,this.layoutId, this.interactionLoggingClientData,this.I7);g.S(this,this.headline);this.headline.Xz(this.Fz("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,this.description);this.description.Xz(this.Fz("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new LK(this.api, this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,this.adButton);this.adButton.Xz(this.element);this.hide()}; JT=function(r,V,I,d){Ti.call(this,r,{J:"button",Z:"ytp-skip-ad-button",B:[{J:"div",Z:"ytp-skip-ad-button__text"}]},"skip-button",V,I,d);var a=this;this.X=!1;this.Y=this.Fz("ytp-skip-ad-button__text");this.transition=new g.eO(this,500,!1,100,function(){a.hide()}); g.S(this,this.transition);this.G=new x8(this.element,15E3,5E3,.5,.5,!0);g.S(this,this.G);this.hide()}; FA_=function(r,V,I,d,a){dU.call(this,r,{J:"div",Z:"ytp-skip-ad"},"skip-ad",V,I,d,a);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.S=new JT(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,this.S);this.S.Xz(this.element);this.hide()}; ZV=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-visit-advertiser-link"},"visit-advertiser-link",V,I,d);this.hide()}; XB=function(r,V,I,d,a){Ti.call(this,r,{J:"div",Z:"ytp-ad-player-overlay-layout",B:[{J:"div",Z:"ytp-ad-player-overlay-layout__player-card-container"},{J:"div",Z:"ytp-ad-player-overlay-layout__ad-info-container"},{J:"div",Z:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{J:"div",Z:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",V,I,d);this.X=a;this.n8=this.Fz("ytp-ad-player-overlay-layout__player-card-container");this.G=this.Fz("ytp-ad-player-overlay-layout__ad-info-container"); this.V=this.Fz("ytp-ad-player-overlay-layout__skip-or-preview-container");this.kc=this.Fz("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; lUP=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-ad-grid-card-text",B:[{J:"div",Z:"ytp-ad-grid-card-text__metadata",B:[{J:"div",Z:"ytp-ad-grid-card-text__metadata__headline"},{J:"div",Z:"ytp-ad-grid-card-text__metadata__description",B:[{J:"div",Z:"ytp-ad-grid-card-text__metadata__description__line"},{J:"div",Z:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{J:"div",Z:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",V,I,d);this.headline=new lh(this.api,this.layoutId,this.interactionLoggingClientData, this.I7);g.S(this,this.headline);this.headline.Xz(this.Fz("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new LK(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,!0);g.S(this,this.moreInfoButton);this.moreInfoButton.Xz(this.Fz("ytp-ad-grid-card-text__button"))}; B$=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",V,I,d);this.G=[]}; gy=function(r,V,I,d,a,f,e){dU.call(this,r,f,e,V,I,d,a);this.playerProgressOffsetMs=0;this.X=!1}; LA9=function(r){var V=g.vz("html5-video-player");V&&g.NA(V,"ytp-ad-display-override",r)}; JhP=function(r,V,I,d,a){gy.call(this,r,V,I,d,a,{J:"div",Z:"ytp-display-underlay-text-grid-cards",B:[{J:"div",Z:"ytp-display-underlay-text-grid-cards__content_container",B:[{J:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header",B:[{J:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{J:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{J:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {J:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new B$(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,this.adGridCardCollection);this.adGridCardCollection.Xz(this.Fz("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new LK(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,this.adButton);this.adButton.Xz(this.Fz("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.S=this.Fz("ytp-display-underlay-text-grid-cards__content_container");this.Y=this.Fz("ytp-display-underlay-text-grid-cards__content_container__header")}; SR=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-ad-details-line"},"ad-details-line",V,I,d);this.G=[];this.hide()}; iN=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-image-background",B:[{J:"img",Z:"ytp-image-background-image"}]},"image-background",V,I,d);this.hide()}; ZgY=function(r,V,I,d,a){dU.call(this,r,{J:"svg",Z:"ytp-timed-pie-countdown",D:{viewBox:"0 0 20 20"},B:[{J:"circle",Z:"ytp-timed-pie-countdown__background",D:{r:"10",cx:"10",cy:"10"}},{J:"circle",Z:"ytp-timed-pie-countdown__inner",D:{r:"5",cx:"10",cy:"10"}},{J:"circle",Z:"ytp-timed-pie-countdown__outer",D:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",V,I,d,a);this.S=this.Fz("ytp-timed-pie-countdown__inner");this.X=Math.ceil(2*Math.PI*5);this.hide()}; UR=function(r,V,I,d){Ti.call(this,r,{J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout",D:{tabindex:"0"},B:[{J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content",B:[{J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",B:[{J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{J:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",V,I,d);this.X=null;this.Y=this.Fz("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.S=new Gc;g.S(this,this.S);this.hide()}; XrG=function(r){var V=g.vz("html5-video-player");V&&g.NA(V,"ytp-ad-display-override",r)}; BAp=function(r){if(!r.adAvatar||!g.U(r.adAvatar,QM))return g.BG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!r.headline)return g.BG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!r.adBadge||!g.U(r.adBadge,mX))return g.BG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!r.adButton||!g.U(r.adButton,uN))return g.BG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!r.adInfoRenderer|| !g.U(r.adInfoRenderer,ip))return g.BG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;r=r.durationMilliseconds||0;return typeof r!=="number"||r<=0?(g.BG(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+r)),!1):!0}; pK=function(r,V){V=V===void 0?2:V;g.NK.call(this);this.api=r;this.G=null;this.wF=new Gc(this);g.S(this,this.wF);this.X=VFA;this.wF.K(this.api,"presentingplayerstatechange",this.jX);this.G=this.wF.K(this.api,"progresssync",this.Uk);this.i7=V;this.i7===1&&this.Uk()}; v$=function(r,V,I){qK.call(this,r);this.api=r;this.I7=V;this.X={};r=new g.u({J:"div",Yc:["video-ads","ytp-ad-module"]});g.S(this,r);yi&&g.jN(r.element,"ytp-ads-tiny-mode");this.W=new OJ(r.element);g.S(this,this.W);g.g1(this.api,r.element,4);n3(I)&&(I=new g.u({J:"div",Yc:["ytp-ad-underlay"]}),g.S(this,I),this.S=new OJ(I.element),g.S(this,this.S),g.g1(this.api,I.element,0));g.S(this,y1j())}; gv_=function(r,V){r=g.ro(r.X,V.id,null);r==null&&g.gj(Error("Component not found for element id: "+V.id));return r||null}; Sie=function(r){g.zu.call(this,r);var V=this;this.X=null;this.created=!1;this.S=r.N().U("h5_use_refactored_get_ad_break")?new tLX(this.player):new Q6(this.player);this.Y=function(){if(V.X!=null)return V.X;var d=new JcS({TL:bN(V.G).TL,w$:bN(V.G).w$,T:V.player,N3:bN(V.G).N3,sE:V.G.G.sE,yF:bN(V.G).yF,gh:V.G.G.gh});V.X=d.eP;return V.X}; this.G=new vbh(this.player,this,this.S,this.Y);g.S(this,this.G);var I=r.N();!yA(I)||g.g$(I)||px(I)||(g.S(this,new v$(r,bN(this.G).I7,bN(this.G).N3)),g.S(this,new qxj(r)))}; igG=function(r){r.created!==r.loaded&&zQ("Created and loaded are out of sync")}; mpc=function(r){g.zu.prototype.load.call(r);var V=bN(r.G).N3;try{r.player.getRootNode().classList.add("ad-created")}catch(D){zQ(D instanceof Error?D:String(D))}var I=r.player.getVideoData(1),d=I&&I.videoId||"",a=I&&I.getPlayerResponse()||{},f=(!r.player.N().experiments.uL("debug_ignore_ad_placements")&&a&&a.adPlacements||[]).map(function(D){return D.adPlacementRenderer}),e=((a==null?void 0:a.adSlots)||[]).map(function(D){return g.U(D,pt)}); a=a.playerConfig&&a.playerConfig.daiConfig&&a.playerConfig.daiConfig.enableDai||!1;I&&I.Tz();f=Up9(f,e,V,bN(r.G).Yr);e=I&&I.clientPlaybackNonce||"";I=I&&I.Gr||!1;if(t4(V,!0)&&I){var n;V={};(n=r.player.getVideoData())==null||n.Hs("p_cpb",(V.cc=e,V))}n=1E3*r.player.getDuration(1);QXK(r);r.G.G.Gj.vZ(e,n,I,f.nm,f.oh,f.nm,a,d)}; QXK=function(r){var V,I;if(I=(V=r.player.getVideoData(1))==null||!V.Gr)V=r.player.N(),I=yA(V)&&!g.ti(V)&&V.playerStyle==="desktop-polymer";I&&(r=r.player.getInternalApi(),r.addEventListener("updateKevlarOrC3Companion",eVi),r.addEventListener("updateEngagementPanelAction",YcU),r.addEventListener("changeEngagementPanelVisibility",nAX),window.addEventListener("yt-navigate-start",D0A))}; qI=function(r,V){V===r.UL&&(r.UL=void 0)}; uj$=function(r){var V=bN(r.G).J9,I=V.Y().Tm("SLOT_TYPE_PLAYER_BYTES",1);V=bf(V.C8.get(),1).clientPlaybackNonce;var d=!1;I=g.H(I);for(var a=I.next();!a.done;a=I.next()){a=a.value;var f=a.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a.slotEntryTrigger instanceof Fz?a.slotEntryTrigger.IE:void 0;f&&f===V&&(d&&zQ("More than 1 preroll playerBytes slot detected",a),d=!0)}d||nK(bN(r.G).BW)}; prp=function(r){if(kJ(bN(r.G).N3))return!0;var V="";r=g.H(bN(r.G).yF.hp.keys());for(var I=r.next();!I.done;I=r.next()){I=I.value;if(I.slotType==="SLOT_TYPE_PLAYER_BYTES"&&I.K8==="core")return!0;V+=I.slotType+" "}Math.random()<.01&&zQ("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:V});return!1}; vvo=function(r){r=g.H(bN(r.G).yF.hp.values());for(var V=r.next();!V.done;V=r.next())if(V.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; tIg=function(r,V,I,d,a,f){I=I===void 0?[]:I;d=d===void 0?"":d;a=a===void 0?"":a;var e=bN(r.G).N3,n=r.player.getVideoData(1);n&&n.getPlayerResponse();n&&n.Tz();I=Up9(V,I,e,bN(r.G).Yr);lRX(bN(r.G).h9,d,I.nm,I.oh,V,a,f)}; Up9=function(r,V,I,d){V={nm:[],oh:V};r=g.H(r);for(var a=r.next();!a.done;a=r.next())if((a=a.value)&&a.renderer!=null){var f=a.renderer;if(!I.T.N().U("html5_enable_vod_lasr_with_notify_pacf")){var e=void 0,n=void 0,D=void 0,x=void 0,E=d;g.U((x=f.sandwichedLinearAdRenderer)==null?void 0:x.adVideoStart,Wc)?(e=g.U((D=f.sandwichedLinearAdRenderer)==null?void 0:D.adVideoStart,Wc),e=oDS(e,E),g.ms(f.sandwichedLinearAdRenderer.adVideoStart,Wc,e)):g.U((n=f.linearAdSequenceRenderer)==null?void 0:n.adStart,Wc)&& (D=g.U((e=f.linearAdSequenceRenderer)==null?void 0:e.adStart,Wc),e=oDS(D,E),g.ms(f.linearAdSequenceRenderer.adStart,Wc,e))}V.nm.push(a)}return V}; g.P$=function(r){if(typeof DOMParser!="undefined")return cz(new DOMParser,l3v(r),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.oF=function(r){g.X.call(this);this.callback=r;this.G=new Wm(0,0,.4,0,.2,1,1,1);this.delay=new g.P4(this.next,window,this);g.S(this,this.delay)}; g.qi$=function(r){var V=r.N();return V.CF&&!V.S&&g.FG(V)?r.isEmbedsShortsMode()?(r=r.gL(),Math.min(r.width,r.height)>=315):!r.Qx():!1}; g.kc=function(r){g.u.call(this,{J:"div",Z:"ytp-more-videos-view",D:{tabIndex:"-1"}});var V=this;this.api=r;this.X=!0;this.S=new g.Su(this);this.G=[];this.suggestionData=[];this.columns=this.containerWidth=this.j=this.Y=this.scrollPosition=0;this.title=new g.u({J:"h2",Z:"ytp-related-title",OE:"{{title}}"});this.previous=new g.u({J:"button",Yc:["ytp-button","ytp-previous"],D:{"aria-label":"Show previous suggested videos"},B:[g.WL()]});this.L=new g.oF(function(I){V.suggestions.element.scrollLeft=-I}); this.next=new g.u({J:"button",Yc:["ytp-button","ytp-next"],D:{"aria-label":"Show more suggested videos"},B:[g.$5()]});g.S(this,this.S);this.C=r.N().Y;g.S(this,this.title);this.title.Xz(this.element);this.suggestions=new g.u({J:"div",Z:"ytp-suggestions"});g.S(this,this.suggestions);this.suggestions.Xz(this.element);g.S(this,this.previous);this.previous.Xz(this.element);this.previous.listen("click",this.Ie,this);g.S(this,this.L);PX_(this);g.S(this,this.next);this.next.Xz(this.element);this.next.listen("click", this.dT,this);this.S.K(this.api,"appresize",this.yy);this.S.K(this.api,"fullscreentoggled",this.Xx);this.S.K(this.api,"videodatachange",this.onVideoDataChange);this.yy(this.api.gs().getPlayerSize());this.onVideoDataChange()}; PX_=function(r){for(var V={ai:0};V.ai<16;V={ai:V.ai},++V.ai){var I=new g.u({J:"a",Z:"ytp-suggestion-link",D:{href:"{{link}}",target:r.api.N().V,"aria-label":"{{aria_label}}"},B:[{J:"div",Z:"ytp-suggestion-image"},{J:"div",Z:"ytp-suggestion-overlay",D:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},B:[{J:"div",Z:"ytp-suggestion-title",OE:"{{title}}"},{J:"div",Z:"ytp-suggestion-author",OE:"{{author_and_views}}"},{J:"div",D:{"data-is-live":"{{is_live}}"},Z:"ytp-suggestion-duration", OE:"{{duration}}"}]}]});g.S(r,I);var d=I.Fz("ytp-suggestion-link");g.Be(d,"transitionDelay",V.ai/20+"s");r.S.K(d,"click",function(a){return function(f){var e=a.ai;if(r.X){var n=r.suggestionData[e],D=n.sessionData;r.C&&r.api.U("web_player_log_click_before_generating_ve_conversion_params")?(r.api.logClick(r.G[e].element),e=n.Iv(),n={},g.ZL(r.api,n),e=g.Ly(e,n),g.EH(e,r.api,f)):g.xu(f,r.api,r.C,D||void 0)&&r.api.hO(n.videoId,D,n.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(V)); I.Xz(r.suggestions.element);r.G.push(I);r.api.createServerVe(I.element,I)}}; ovG=function(r){if(r.api.N().U("web_player_log_click_before_generating_ve_conversion_params"))for(var V=Math.floor(-r.scrollPosition/(r.Y+8)),I=Math.min(V+r.columns,r.suggestionData.length)-1;V<=I;V++)r.api.logVisibility(r.G[V].element,!0)}; g.hT=function(r){var V=r.api.tZ()?32:16;V=r.j/2+V;r.next.element.style.bottom=V+"px";r.previous.element.style.bottom=V+"px";V=r.scrollPosition;var I=r.containerWidth-r.suggestionData.length*(r.Y+8);g.NA(r.element,"ytp-scroll-min",V>=0);g.NA(r.element,"ytp-scroll-max",V<=I)}; hOG=function(r){for(var V=r.suggestionData.length,I=0;I>>0)+"_",a=0;return V}); xv("Symbol.iterator",function(r){if(r)return r;r=Symbol("Symbol.iterator");for(var V="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),I=0;I0&&I>0;)if(d[--I]!=V[--a])return!1;return a<=0}}); xv("Array.prototype.find",function(r){return r?r:function(V,I){return EvX(this,V,I).Q3}}); xv("Array.prototype.entries",function(r){return r?r:function(){return Si(this,function(V,I){return[V,I]})}}); xv("Array.prototype.keys",function(r){return r?r:function(){return Si(this,function(V){return V})}}); xv("String.prototype.startsWith",function(r){return r?r:function(V,I){var d=gA(this,V,"startsWith");V+="";var a=d.length,f=V.length;I=Math.max(0,Math.min(I|0,d.length));for(var e=0;e=f}}); xv("Number.isFinite",function(r){return r?r:function(V){return typeof V!=="number"?!1:!isNaN(V)&&V!==Infinity&&V!==-Infinity}}); xv("String.prototype.repeat",function(r){return r?r:function(V){var I=gA(this,null,"repeat");if(V<0||V>1342177279)throw new RangeError("Invalid count value");V|=0;for(var d="";V;)if(V&1&&(d+=I),V>>>=1)I+=I;return d}}); xv("Object.entries",function(r){return r?r:function(V){var I=[],d;for(d in V)si(V,d)&&I.push([d,V[d]]);return I}}); xv("Array.from",function(r){return r?r:function(V,I,d){I=I!=null?I:function(n){return n}; var a=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&V[Symbol.iterator];if(typeof f=="function"){V=f.call(V);for(var e=0;!(f=V.next()).done;)a.push(I.call(d,f.value,e++))}else for(f=V.length,e=0;e>>16&65535)*a+d*(I>>>16&65535)<<16>>>0)|0}}); xv("Math.trunc",function(r){return r?r:function(V){V=Number(V);if(isNaN(V)||V===Infinity||V===-Infinity||V===0)return V;var I=Math.floor(Math.abs(V));return V<0?-I:I}}); xv("Math.clz32",function(r){return r?r:function(V){V=Number(V)>>>0;if(V===0)return 32;var I=0;(V&4294901760)===0&&(V<<=16,I+=16);(V&4278190080)===0&&(V<<=8,I+=8);(V&4026531840)===0&&(V<<=4,I+=4);(V&3221225472)===0&&(V<<=2,I+=2);(V&2147483648)===0&&I++;return I}}); xv("Number.isNaN",function(r){return r?r:function(V){return typeof V==="number"&&isNaN(V)}}); xv("Array.prototype.values",function(r){return r?r:function(){return Si(this,function(V,I){return I})}}); xv("Array.prototype.fill",function(r){return r?r:function(V,I,d){var a=this.length||0;I<0&&(I=Math.max(0,a+I));if(d==null||d>a)d=a;d=Number(d);d<0&&(d=Math.max(0,a+d));for(I=Number(I||0);I0&&I?I.repeat(Math.ceil(V/I.length)).substring(0,V):"")+d}}); xv("Array.prototype.findIndex",function(r){return r?r:function(V,I){return EvX(this,V,I).u5}}); xv("Promise.prototype.finally",function(r){return r?r:function(V){return this.then(function(I){return Promise.resolve(V()).then(function(){return I})},function(I){return Promise.resolve(V()).then(function(){throw I; })})}}); xv("Math.sign",function(r){return r?r:function(V){V=Number(V);return V===0||isNaN(V)?V:V>0?1:-1}}); xv("WeakSet",function(r){function V(I){this.G=new WeakMap;if(I){I=g.H(I);for(var d;!(d=I.next()).done;)this.add(d.value)}} if(function(){if(!r||!Object.seal)return!1;try{var I=Object.seal({}),d=Object.seal({}),a=new r([I]);if(!a.has(I)||a.has(d))return!1;a.delete(I);a.add(d);return!a.has(I)&&a.has(d)}catch(f){return!1}}())return r; V.prototype.add=function(I){this.G.set(I,!0);return this}; V.prototype.has=function(I){return this.G.has(I)}; V.prototype.delete=function(I){return this.G.delete(I)}; return V}); xv("Array.prototype.copyWithin",function(r){function V(I){I=Number(I);return I===Infinity||I===-Infinity?I:I|0} return r?r:function(I,d,a){var f=this.length;I=V(I);d=V(d);a=a===void 0?f:V(a);I=I<0?Math.max(f+I,0):Math.min(I,f);d=d<0?Math.max(f+d,0):Math.min(d,f);a=a<0?Math.max(f+a,0):Math.min(a,f);if(Id;)--a in this?this[--I]=this[a]:delete this[--I];return this}}); xv("Int8Array.prototype.copyWithin",QZ);xv("Uint8Array.prototype.copyWithin",QZ);xv("Uint8ClampedArray.prototype.copyWithin",QZ);xv("Int16Array.prototype.copyWithin",QZ);xv("Uint16Array.prototype.copyWithin",QZ);xv("Int32Array.prototype.copyWithin",QZ);xv("Uint32Array.prototype.copyWithin",QZ);xv("Float32Array.prototype.copyWithin",QZ);xv("Float64Array.prototype.copyWithin",QZ);xv("Array.prototype.at",function(r){return r?r:mA}); xv("Int8Array.prototype.at",uX);xv("Uint8Array.prototype.at",uX);xv("Uint8ClampedArray.prototype.at",uX);xv("Int16Array.prototype.at",uX);xv("Uint16Array.prototype.at",uX);xv("Int32Array.prototype.at",uX);xv("Uint32Array.prototype.at",uX);xv("Float32Array.prototype.at",uX);xv("Float64Array.prototype.at",uX);xv("String.prototype.at",function(r){return r?r:mA}); xv("Array.prototype.findLastIndex",function(r){return r?r:function(V,I){return NAv(this,V,I).u5}}); xv("Int8Array.prototype.findLastIndex",pg);xv("Uint8Array.prototype.findLastIndex",pg);xv("Uint8ClampedArray.prototype.findLastIndex",pg);xv("Int16Array.prototype.findLastIndex",pg);xv("Uint16Array.prototype.findLastIndex",pg);xv("Int32Array.prototype.findLastIndex",pg);xv("Uint32Array.prototype.findLastIndex",pg);xv("Float32Array.prototype.findLastIndex",pg);xv("Float64Array.prototype.findLastIndex",pg);xv("Number.parseInt",function(r){return r||parseInt});var q4,IG,sXi;q4=q4||{};g.vr=this||self;IG="closure_uid_"+(Math.random()*1E9>>>0);sXi=0;g.Dm(xf,Error);xf.prototype.name="CustomError";var lmi;var Ogv,vl,r6;Ogv=Array.prototype.indexOf?function(r,V){return Array.prototype.indexOf.call(r,V,void 0)}:function(r,V){if(typeof r==="string")return typeof V!=="string"||V.length!=1?-1:r.indexOf(V,0); for(var I=0;I=0;I--)if(I in r&&r[I]===V)return I;return-1}; g.B9=Array.prototype.forEach?function(r,V,I){Array.prototype.forEach.call(r,V,I)}:function(r,V,I){for(var d=r.length,a=typeof r==="string"?r.split(""):r,f=0;f=.3:this.jx>=.5};var zF={cK0:0,fNc:1},ygi={NONE:0,Y6c:1,INM:2};var XrX="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");eS.prototype.getValue=function(){return this.X}; g.T(Yr,eS);Yr.prototype.S=function(r){this.X===null&&g.oG(this.Y,r)&&(this.X=r)}; g.T(nD,eS);nD.prototype.S=function(r){this.X===null&&typeof r==="number"&&(this.X=r)}; g.T(D4,eS);D4.prototype.S=function(r){this.X===null&&typeof r==="string"&&(this.X=r)};xr.prototype.disable=function(){this.X=!1}; xr.prototype.enable=function(){this.X=!0}; xr.prototype.isEnabled=function(){return this.X}; xr.prototype.reset=function(){this.G={};this.X=!0;this.S={}};var Im=document,NQ=window;var Y_P=kv(1,!0),tr=kv(610401301,!1);kv(899588437,!1);kv(725719775,!1);var nf$=kv(513659523,!1),jG9=kv(568333945,!1),Uvv=kv(1331761403,!1);kv(651175828,!1);kv(722764542,!1);kv(748402145,!1);var Poj=kv(1981196515,!1);kv(2147483644,!1);kv(2147483645,!1);kv(2147483646,Y_P);kv(2147483647,!0);var y3=!!g.Pr("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var b_=String.prototype.trim?function(r){return r.trim()}:function(r){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(r)[1]},nfX=/&/g,jGr=//g,xmv=/"/g,Efi=/'/g,NPv=/\x00/g,Y_A=/[\x00&<>"']/;var Ar,DmG=g.vr.navigator;Ar=DmG?DmG.userAgentData||null:null;var PXi=globalThis.trustedTypes,go;i_.prototype.toString=function(){return this.G+""};m7.prototype.toString=function(){return this.G}; var hOg=new m7("about:invalid#zClosurez");var fIg=qi("tel"),dvp=qi("sms"),kSZ=[qi("data"),qi("http"),qi("https"),qi("mailto"),qi("ftp"),new pD(function(r){return/^[^:]*([/?#]|$)/.test(r)})],roA=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;rl.prototype.toString=function(){return this.G+""};YE.prototype.toString=function(){return this.G+""};xE.prototype.toString=function(){return this.G};var Ny={};g.xmf=String.prototype.repeat?function(r,V){return r.repeat(V)}:function(r,V){return Array(V+1).join(r)};Rc[" "]=function(){};var g7,Yh,VLO,Ef_,NPf,sGo,tK,yi,co9;g.AK=LD();g.MA=QXA();g.kw=Fy("Edge");g.aU=g.kw||g.MA;g7=Fy("Gecko")&&!(wo(g.RZ(),"WebKit")&&!Fy("Edge"))&&!(Fy("Trident")||Fy("MSIE"))&&!Fy("Edge");g.Pz=wo(g.RZ(),"WebKit")&&!Fy("Edge");Yh=KJ();VLO=TPi();g.ds=C$i();Ef_=Wz();NPf=Fy("iPad");sGo=Fy("iPod");tK=$E();yi=wo(g.RZ(),"KaiOS"); a:{var zYo="",MpG=function(){var r=g.RZ();if(g7)return/rv:([^\);]+)(\)|;)/.exec(r);if(g.kw)return/Edge\/([\d\.]+)/.exec(r);if(g.MA)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(r);if(g.Pz)return/WebKit\/(\S+)/.exec(r);if(g.AK)return/(?:Version)[ \/]?(\S+)/.exec(r)}(); MpG&&(zYo=MpG?MpG[1]:"");if(g.MA){var ra,C$_=g.vr.document;ra=C$_?C$_.documentMode:void 0;if(ra!=null&&ra>parseFloat(zYo)){co9=String(ra);break a}}co9=zYo}var OGX=co9,w9Z={};var rs,Vh;g.oJ=Z4();rs=Wz()||Fy("iPod");Vh=Fy("iPad");g.Gt=ujX();g.Zk=Xy();g.WQ=Bt()&&!$E();var Gsi=!g.MA&&!Bt();g.C=g.Fw.prototype;g.C.clone=function(){return new g.Fw(this.x,this.y)}; g.C.equals=function(r){return r instanceof g.Fw&&lb(this,r)}; g.C.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.C.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.C.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.C.translate=function(r,V){r instanceof g.Fw?(this.x+=r.x,this.y+=r.y):(this.x+=Number(r),typeof V==="number"&&(this.y+=V));return this}; g.C.scale=function(r,V){this.x*=r;this.y*=typeof V==="number"?V:r;return this};g.C=g.LJ.prototype;g.C.clone=function(){return new g.LJ(this.width,this.height)}; g.C.aspectRatio=function(){return this.width/this.height}; g.C.isEmpty=function(){return!Zh(this)}; g.C.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.C.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.C.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.C.scale=function(r,V){this.width*=r;this.height*=typeof V==="number"?V:r;return this};Bz.prototype.toString=function(){return this.G}; var Xw={};new Bz(Xw,"");var KKg=/^[a-z][a-z\d-]*$/i,RYi="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),yog="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),G6v=["action","formaction","href"];var LKi={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.C=S1.prototype;g.C.YN=function(r){return Qv(this.G,r)}; g.C.getElementsByTagName=function(r,V){return(V||this.G).getElementsByTagName(String(r))}; g.C.Fz=function(r){return g.vz(r,this.G)}; g.C.setProperties=qy;g.C.createElement=function(r){return kE(this.G,r)}; g.C.appendChild=g.In;g.C.append=function(r,V){BPA(ib(r),r,arguments,1)}; g.C.canHaveChildren=function(r){if(r.nodeType!=1)return!1;switch(r.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.C.removeNode=g.fy;g.C.getChildren=function(r){return r.children!=void 0?r.children:Array.prototype.filter.call(r.childNodes,function(V){return V.nodeType==1})}; g.C.contains=g.eG;D5.prototype.now=function(){return 0}; D5.prototype.X=function(){return 0}; D5.prototype.S=function(){return 0}; D5.prototype.G=function(){return 0};g.T(ES,D5);ES.prototype.now=function(){return xx()&&NQ.performance.now?NQ.performance.now():D5.prototype.now.call(this)}; ES.prototype.X=function(){return xx()&&NQ.performance.memory?NQ.performance.memory.totalJSHeapSize||0:D5.prototype.X.call(this)}; ES.prototype.S=function(){return xx()&&NQ.performance.memory?NQ.performance.memory.usedJSHeapSize||0:D5.prototype.S.call(this)}; ES.prototype.G=function(){return xx()&&NQ.performance.memory?NQ.performance.memory.jsHeapSizeLimit||0:D5.prototype.G.call(this)};var QGr=zI(function(){var r=!1;try{var V=Object.defineProperty({},"passive",{get:function(){r=!0}}); g.vr.addEventListener("test",null,V)}catch(I){}return r});mmi.prototype.isVisible=function(){return wX(Im)===1};var kFi=bE(function(r){return typeof r==="number"}),orA=bE(function(r){return typeof r==="string"}),hJg=bE(function(r){return typeof r==="boolean"}),Cw=bE(function(r){return r!=null&&typeof r==="object"&&typeof r.then==="function"}),M3=bE(function(r){return!!r&&(typeof r==="object"||typeof r==="function")});var vfg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),VSj=/#|$/,I4A=/[?&]($|#)/;var a4Z={zrz:"allow-forms",fmL:"allow-modals",Ufs:"allow-orientation-lock",L5M:"allow-pointer-lock",Zjz:"allow-popups",K5C:"allow-popups-to-escape-sandbox",j10:"allow-presentation",dfc:"allow-same-origin",Imk:"allow-scripts",NyM:"allow-top-navigation",uf0:"allow-top-navigation-by-user-activation"},nrX=zI(function(){return f4v()});var Erh=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");iE.prototype.fq=function(r,V,I){r=r+"//"+V+I;var d=zJS(this)-I.length;if(d<0)return"";this.G.sort(function(x,E){return x-E}); I=null;V="";for(var a=0;a=D.length){d-=D.length;r+=D;V=this.S;break}I=I==null?f:I}}d="";I!=null&&(d=""+V+"trn="+I);return r+d};Pl.prototype.setInterval=function(r,V){return NQ.setInterval(r,V)}; Pl.prototype.clearInterval=function(r){NQ.clearInterval(r)}; Pl.prototype.setTimeout=function(r,V){return NQ.setTimeout(r,V)}; Pl.prototype.clearTimeout=function(r){NQ.clearTimeout(r)};var TY=void 0,CE,pzj=typeof TextDecoder!=="undefined",RJX,K7p=typeof String.prototype.isWellFormed==="function",$iX=typeof TextEncoder!=="undefined";var F7p={},fr=null,l4Z=g7||g.Pz||typeof g.vr.btoa=="function";var QZj=typeof Uint8Array!=="undefined",Bog=!g.MA&&typeof btoa==="function",grX=/[-_.]/g,ZDO={"-":"+",_:"/",".":"="},Yq={};e_.prototype.isEmpty=function(){return this.G==null}; e_.prototype.sizeBytes=function(){var r=j_(this);return r?r.length:0}; var Uii;var miU=void 0;var Ns=typeof Symbol==="function"&&typeof Symbol()==="symbol",TPp=ED("jas",void 0,!0),gJ=ED(void 0,"1oa"),IO=ED(void 0,Symbol()),HGG=ED(void 0,"0ub"),t1i=ED(void 0,"0actk"),hA=ED("m_m","i9L",!0),bJZ=ED(void 0,"vps");Math.max.apply(Math,g.R(Object.values({NL8:1,IqH:2,d3H:4,UTE:8,f90:16,RYE:32,ul7:64,ejE:128,DLQ:256,xL8:512,Kys:1024,xSC:2048,dL0:4096,D7k:8192,Vm8:16384,vgE:32768})));var vrA={YEH:{value:0,configurable:!0,writable:!0,enumerable:!1}},ptv=Object.defineProperties,sD=Ns?TPp:"YEH",yL,w9c=[];zB(w9c,55);yL=Object.freeze(w9c);var rJ={},Cr={},lhA=Object.freeze({}),wq={};var Wo=typeof g.vr.BigInt==="function"&&typeof g.vr.BigInt(0)==="bigint";var n9=bE(function(r){return Wo?r>=bGG&&r<=OG$:r[0]==="-"?rSj(r,WK_):rSj(r,$mm)}),WK_=Number.MIN_SAFE_INTEGER.toString(),bGG=Wo?BigInt(Number.MIN_SAFE_INTEGER):void 0,$mm=Number.MAX_SAFE_INTEGER.toString(),OG$=Wo?BigInt(Number.MAX_SAFE_INTEGER):void 0;var iJX=typeof Uint8Array.prototype.slice==="function",Kr=0,R3=0,MGA;var Qn=typeof BigInt==="function"?BigInt.asIntN:void 0,cSv=typeof BigInt==="function"?BigInt.asUintN:void 0,vo=Number.isSafeInteger,XO=Number.isFinite,qs=Math.trunc,fhr=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var OJv={};var ez;var xV,WQU;var JSA=$q(0);g.C=gEi.prototype;g.C.init=function(r,V,I,d){var a=d===void 0?{}:d;d=a.Kg===void 0?!1:a.Kg;a=a.a5===void 0?!1:a.a5;this.Kg=d;this.a5=a;r&&(r=ar(r,this.a5),this.X=r.buffer,this.W=r.C1,this.Y=V||0,this.S=I!==void 0?this.Y+I:this.X.length,this.G=this.Y)}; g.C.free=function(){this.clear();N6.length<100&&N6.push(this)}; g.C.clear=function(){this.X=null;this.W=!1;this.G=this.S=this.Y=0;this.Kg=!1}; g.C.reset=function(){this.G=this.Y}; g.C.qG=function(){var r=this.C;r||(r=this.X,r=this.C=new DataView(r.buffer,r.byteOffset,r.byteLength));return r}; var N6=[];s5.prototype.free=function(){this.G.clear();this.X=this.Y=-1;cM.length<100&&cM.push(this)}; s5.prototype.reset=function(){this.G.reset();this.S=this.G.G;this.X=this.Y=-1}; var cM=[];wZ.prototype.toJSON=function(){return D8(this)}; wZ.prototype.eI=function(r){return JSON.stringify(D8(this,r))}; wZ.prototype.clone=function(){var r=this,V=r.kN;r=new r.constructor(YV(V,V[sD]|0,s$,!0,!0));Ms(r.kN);return r}; wZ.prototype.C1=function(){return TB(this)}; wZ.prototype[hA]=rJ;wZ.prototype.toString=function(){return this.kN.toString()};var Pbi,kPA;$o.prototype.length=function(){return this.G.length}; $o.prototype.end=function(){var r=this.G;this.G=[];return r};var lr=F6(),KKG=F6(),RY_=F6(),tp6=F6(),yoG=F6(),AoG=F6(),G6f=F6(),FKG=F6();var YSS=JH(function(r,V,I,d,a){if(r.X!==2)return!1;M6(r,Sz(V,d,I),a);return!0},eig),nxp=JH(function(r,V,I,d,a){if(r.X!==2)return!1; M6(r,Sz(V,d,I),a);return!0},eig),ur=Symbol(),Sa=Symbol(),QP=Symbol(),snX=Symbol(),xQi=Symbol(),ZS,X6;var lmp=ko(function(r,V,I){if(r.X!==1)return!1;r7(V,I,xo(r.G));return!0},VH,G6f),LKp=ko(function(r,V,I){if(r.X!==1)return!1; r=xo(r.G);r7(V,I,r===0?void 0:r);return!0},VH,G6f),Jom=ko(function(r,V,I,d){if(r.X!==1)return!1; Xg(V,I,d,xo(r.G));return!0},VH,G6f),ZG9=ko(function(r,V,I){if(r.X!==0)return!1; r7(V,I,ea(r.G));return!0},II,yoG),X9p=ko(function(r,V,I){if(r.X!==0)return!1; r=ea(r.G);r7(V,I,r===0?void 0:r);return!0},II,yoG),BPK=ko(function(r,V,I,d){if(r.X!==0)return!1; Xg(V,I,d,ea(r.G));return!0},II,yoG),gf9=ko(function(r,V,I){if(r.X!==0)return!1; r7(V,I,Yo(r.G));return!0},d7,tp6),S_9=ko(function(r,V,I){if(r.X!==0)return!1; r=Yo(r.G);r7(V,I,r===0?void 0:r);return!0},d7,tp6),iGc=ko(function(r,V,I,d){if(r.X!==0)return!1; Xg(V,I,d,Yo(r.G));return!0},d7,tp6),Um$=ko(function(r,V,I){if(r.X!==1)return!1; r7(V,I,DS(r.G));return!0},function(r,V,I){a5A(r,I,zfh(V))},AoG),QG9=hH(function(r,V,I){if(r.X!==1&&r.X!==2)return!1; V=Fg(V,V[sD]|0,I);if(r.X==2)for(I=Yo(r.G)>>>0,I=r.G.G+I;r.G.G>>0);return!0},function(r,V,I){V=i0(V); V!=null&&V!=null&&(AH(r,I,0),Rr(r.G,V))},F6()),ofK=ko(function(r,V,I){if(r.X!==0)return!1; r7(V,I,Yo(r.G));return!0},function(r,V,I){V=S_(V); V!=null&&(V=parseInt(V,10),AH(r,I,0),rgi(r.G,V))},F6());byr.prototype.register=function(){Rc(this)};g.T(YG,wZ);YG.prototype.X=Oyr([0,LKp,X9p,-2,S_9]);var AgX={VzM:1,UK:2,nDH:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};FGX.prototype.G$=function(r){if(typeof r==="string"&&r.length!=0){var V=this.o8;if(V.X){r=r.split("&");for(var I=r.length-1;I>=0;I--){var d=r[I].split("="),a=decodeURIComponent(d[0]);d.length>1?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(a=V.G[a])&&a.S(d)}}}};var em=null;var NG=g.vr.performance,k6_=!!(NG&&NG.mark&&NG.measure&&NG.clearMarks),xG=zI(function(){var r;if(r=k6_){var V=V===void 0?window:V;if(em===null){em="";try{r="";try{r=V.top.location.hash}catch(d){r=V.location.hash}if(r){var I=r.match(/\bdeid=([\d,]+)/);em=I?I[1]:""}}catch(d){}}V=em;r=!!V.indexOf&&V.indexOf("1337")>=0}return r}); E6.prototype.disable=function(){this.G=!1;this.events!==this.X.google_js_reporting_queue&&(xG()&&g.B9(this.events,BXg),this.events.length=0)}; E6.prototype.start=function(r,V){if(!this.G)return null;var I=ZyA()||Jgi();r=new Xli(r,V,I);V="goog_"+r.label+"_"+r.uniqueId+"_start";NG&&xG()&&NG.mark(V);return r}; E6.prototype.end=function(r){if(this.G&&typeof r.value==="number"){var V=ZyA()||Jgi();r.duration=V-r.value;V="goog_"+r.label+"_"+r.uniqueId+"_end";NG&&xG()&&NG.mark(V);!this.G||this.events.length>2048||this.events.push(r)}};gxg.prototype.Eb=function(r,V,I,d,a){a=a||this.uX;try{var f=new iE;f.G.push(1);f.X[1]=US("context",r);V.error&&V.meta&&V.id||(V=new MG(Cj(V)));if(V.msg){var e=V.msg.substring(0,512);f.G.push(2);f.X[2]=US("msg",e)}var n=V.meta||{};if(this.n7)try{this.n7(n)}catch(z){}if(d)try{d(n)}catch(z){}d=[n];f.G.push(3);f.X[3]=d;var D=sZX();if(D.X){var x=D.X.url||"";f.G.push(4);f.X[4]=US("top",x)}var E={url:D.G.url||""};if(D.G.url){var N=g.Ky(D.G.url);var c=$x(N[1],null,N[3],N[4])}else c="";x=[E,{url:c}];f.G.push(5); f.X[5]=x;l5i(this.G,a,f,I)}catch(z){try{l5i(this.G,a,{context:"ecmserr",rctx:r,msg:Cj(z),url:D&&D.G.url},I)}catch(M){}}return this.X0}; g.T(MG,LGU);var ce,zC,s6=new E6;ce=new function(){var r="https:";NQ&&NQ.location&&NQ.location.protocol==="http:"&&(r="http:");this.X=r;this.G=.01}; zC=new gxg;NQ&&NQ.document&&(NQ.document.readyState=="complete"?iyp():s6.G&&Hl(NQ,"load",function(){iyp()}));var mQA=Date.now(),$G=-1,O6=-1,ecZ,Kj=-1,We=!1;g.C=RI.prototype;g.C.getHeight=function(){return this.bottom-this.top}; g.C.clone=function(){return new RI(this.top,this.right,this.bottom,this.left)}; g.C.contains=function(r){return this&&r?r instanceof RI?r.left>=this.left&&r.right<=this.right&&r.top>=this.top&&r.bottom<=this.bottom:r.x>=this.left&&r.x<=this.right&&r.y>=this.top&&r.y<=this.bottom:!1}; g.C.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.C.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.C.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.C.translate=function(r,V){r instanceof g.Fw?(this.left+=r.x,this.right+=r.x,this.top+=r.y,this.bottom+=r.y):(this.left+=r,this.right+=r,typeof V==="number"&&(this.top+=V,this.bottom+=V));return this}; g.C.scale=function(r,V){V=typeof V==="number"?V:r;this.left*=r;this.right*=r;this.top*=V;this.bottom*=V;return this};AV.prototype.equals=function(r,V){return!!r&&(!(V===void 0?0:V)||this.volume==r.volume)&&this.S==r.S&&yH(this.G,r.G)&&!0};GC.prototype.YN=function(){return this.L}; GC.prototype.equals=function(r,V){return this.Y.equals(r.Y,V===void 0?!1:V)&&this.L==r.L&&yH(this.S,r.S)&&yH(this.C,r.C)&&this.G==r.G&&this.W==r.W&&this.X==r.X&&this.j==r.j};var hY9={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Vk={T8:"start",U7:"firstquartile",FJ:"midpoint",ol:"thirdquartile",COMPLETE:"complete",ERROR:"error",bK:"metric",PAUSE:"pause",t3:"resume",h3:"skip",f2:"viewable_impression",XJ:"mute",W7:"unmute",Lb:"fullscreen",fb:"exitfullscreen",Re:"bufferstart",hD:"bufferfinish",ZH:"fully_viewable_audible_half_duration_impression",wE:"measurable_impression",wT:"abandon",zx:"engagedview",Kb:"impression",oe:"creativeview",rE:"loaded", HS7:"progress",CLOSE:"close",Iac:"collapse",I9c:"overlay_resize",NBz:"overlay_unmeasurable_impression",ub0:"overlay_unviewable_impression",a9s:"overlay_viewable_immediate_impression",EDH:"overlay_viewable_end_of_session_impression",Cb:"custom_metric_viewable",XR:"audio_audible",Yy:"audio_measurable",SX:"audio_impression"},MXA="start firstquartile midpoint thirdquartile resume loaded".split(" "),Cgg=["start","firstquartile","midpoint","thirdquartile"],noA=["abandon"],bt={UNKNOWN:-1,T8:0,U7:1,FJ:2, ol:3,COMPLETE:4,bK:5,PAUSE:6,t3:7,h3:8,f2:9,XJ:10,W7:11,Lb:12,fb:13,ZH:14,wE:15,wT:16,zx:17,Kb:18,oe:19,rE:20,Cb:21,Re:22,hD:23,SX:27,Yy:28,XR:29};var plp={Ja0:"addEventListener",uB0:"getMaxSize",E_C:"getScreenSize",aNs:"getState",cRQ:"getVersion",FFk:"removeEventListener",uq8:"isViewable"};g.C=g.JV.prototype;g.C.clone=function(){return new g.JV(this.left,this.top,this.width,this.height)}; g.C.contains=function(r){return r instanceof g.Fw?r.x>=this.left&&r.x<=this.left+this.width&&r.y>=this.top&&r.y<=this.top+this.height:this.left<=r.left&&this.left+this.width>=r.left+r.width&&this.top<=r.top&&this.top+this.height>=r.top+r.height}; g.C.getSize=function(){return new g.LJ(this.width,this.height)}; g.C.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.C.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.C.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.C.translate=function(r,V){r instanceof g.Fw?(this.left+=r.x,this.top+=r.y):(this.left+=r,typeof V==="number"&&(this.top+=V));return this}; g.C.scale=function(r,V){V=typeof V==="number"?V:r;this.left*=r;this.width*=r;this.top*=V;this.height*=V;return this};var oxj={};eFi.prototype.update=function(r){r&&r.document&&(this.L=Lj(!1,r,this.isMobileDevice),this.G=Lj(!0,r,this.isMobileDevice),nqO(this,r),YDr(this,r))};am.prototype.cancel=function(){on().clearTimeout(this.G);this.G=null}; am.prototype.schedule=function(){var r=this,V=on(),I=jX().G.G;this.G=V.setTimeout(nj(I,He(143,function(){r.X++;r.S.sample()})),utv())};g.C=f$.prototype;g.C.Zi=function(){return!1}; g.C.initialize=function(){return this.isInitialized=!0}; g.C.J8=function(){return this.G.n8}; g.C.I9=function(){return this.G.QH}; g.C.kQ=function(r,V){if(!this.QH||(V===void 0?0:V))this.QH=!0,this.n8=r,this.j=0,this.G!=this||Ye(this)}; g.C.getName=function(){return this.G.TQ}; g.C.rl=function(){return this.G.wS()}; g.C.wS=function(){return{}}; g.C.n9=function(){return this.G.j}; g.C.bN=function(){var r=V7();r.G=Lj(!0,this.S,r.isMobileDevice)}; g.C.mY=function(){YDr(V7(),this.S)}; g.C.C0=function(){return this.Y.G}; g.C.sample=function(){}; g.C.isActive=function(){return this.G.C}; g.C.Lr=function(r){var V=this.G;this.G=r.n9()>=this.j?r:this;V!==this.G?(this.C=this.G.C,Ye(this)):this.C!==this.G.C&&(this.C=this.G.C,Ye(this))}; g.C.pU=function(r){if(r.X===this.G){var V=!this.Y.equals(r,this.V);this.Y=r;V&&xsj(this)}}; g.C.nR=function(){return this.V}; g.C.dispose=function(){this.GQ=!0}; g.C.h0=function(){return this.GQ};g.C=n$.prototype;g.C.observe=function(){return!0}; g.C.unobserve=function(){}; g.C.Ev=function(r){this.W=r}; g.C.dispose=function(){if(!this.h0()){var r=this.X;g.H9(r.W,this);r.V&&this.nR()&&DsZ(r);this.unobserve();this.bL=!0}}; g.C.h0=function(){return this.bL}; g.C.rl=function(){return this.X.rl()}; g.C.n9=function(){return this.X.n9()}; g.C.J8=function(){return this.X.J8()}; g.C.I9=function(){return this.X.I9()}; g.C.Lr=function(){}; g.C.pU=function(){this.NZ()}; g.C.nR=function(){return this.GQ};g.C=jM.prototype;g.C.n9=function(){return this.G.n9()}; g.C.J8=function(){return this.G.J8()}; g.C.I9=function(){return this.G.I9()}; g.C.create=function(r,V,I){var d=null;this.G&&(d=this.OG(r,V,I),eM(this.G,d));return d}; g.C.FY=function(){return this.KN()}; g.C.KN=function(){return!1}; g.C.init=function(r){return this.G.initialize()?(eM(this.G,this),this.Y=r,!0):!1}; g.C.Lr=function(r){r.n9()==0&&this.Y(r.J8(),this)}; g.C.pU=function(){}; g.C.nR=function(){return!1}; g.C.dispose=function(){this.W=!0}; g.C.h0=function(){return this.W}; g.C.rl=function(){return{}};D_.prototype.add=function(r,V,I){++this.S;r=new NqX(r,V,I);this.G.push(new NqX(r.X,r.G,r.S+this.S/4096));this.X=!0;return this};C0X.prototype.toString=function(){var r="//pagead2.googlesyndication.com//pagead/gen_204",V=Eu(this.G);V.length>0&&(r+="?"+V);return r};g.X.prototype.d5=!1;g.X.prototype.h0=function(){return this.d5}; g.X.prototype.dispose=function(){this.d5||(this.d5=!0,this.eC())}; g.X.prototype[Symbol.dispose]=function(){this.dispose()}; g.X.prototype.addOnDisposeCallback=function(r,V){this.d5?V!==void 0?r.call(V):r():(this.mD||(this.mD=[]),V&&(r=r.bind(V)),this.mD.push(r))}; g.X.prototype.eC=function(){if(this.mD)for(;this.mD.length;)this.mD.shift()()};zq.prototype.update=function(r,V,I){r&&(this.G+=V,this.X+=V,this.Y+=V,this.S=Math.max(this.S,this.Y));if(I===void 0?!r:I)this.Y=0};var OrX=[1,.75,.5,.3,0];MS.prototype.update=function(r,V,I,d,a,f){f=f===void 0?!0:f;V=a?Math.min(r,V):V;for(a=0;a0&&V>=e;e=!(r>0&&r>=e)||I;this.G[a].update(f&&n,d,!f||e)}};Ou.prototype.update=function(r,V,I,d){this.L=this.L!=-1?Math.min(this.L,V.jx):V.jx;this.kc=Math.max(this.kc,V.jx);this.bL=this.bL!=-1?Math.min(this.bL,V.rL):V.rL;this.n8=Math.max(this.n8,V.rL);this.DM.update(V.rL,I.rL,V.G,r,d);this.p8+=r;V.jx===0&&(this.TQ+=r);this.X.update(V.jx,I.jx,V.G,r,d);I=d||I.Ww!=V.Ww?I.isVisible()&&V.isVisible():I.isVisible();V=!V.isVisible()||V.G;this.L8.update(I,r,V)}; Ou.prototype.f9=function(){return this.L8.S>=this.Mk};if(Im&&Im.URL){var rr9=Im.URL,VSe;if(VSe=!!rr9){var I4K;a:{if(rr9){var dip=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var YH=dip.exec(decodeURIComponent(rr9));if(YH){I4K=YH[1]&&YH[1].length>1?YH[1].substring(1):"true";break a}}catch(r){}}I4K=""}VSe=I4K.length>0}zC.X0=!VSe};var a4c=new RI(0,0,0,0);var GBS=new RI(0,0,0,0);g.T(y7,g.X);g.C=y7.prototype; g.C.eC=function(){if(this.oO.G){if(this.Bo.Dy){var r=this.oO.G;r.removeEventListener&&r.removeEventListener("mouseover",this.Bo.Dy,TI());this.Bo.Dy=null}this.Bo.xt&&(r=this.oO.G,r.removeEventListener&&r.removeEventListener("mouseout",this.Bo.xt,TI()),this.Bo.xt=null)}this.mW&&this.mW.dispose();this.NG&&this.NG.dispose();delete this.S_;delete this.aK;delete this.Nj;delete this.oO.dl;delete this.oO.G;delete this.Bo;delete this.mW;delete this.NG;delete this.o8;g.X.prototype.eC.call(this)}; g.C.by=function(){return this.NG?this.NG.G:this.position}; g.C.G$=function(r){jX().G$(r)}; g.C.nR=function(){return!1}; g.C.Hn=function(){return new Ou}; g.C.KM=function(){return this.S_}; g.C.G_=function(r){return l8g(this,r,1E4)}; g.C.UE=function(r,V,I,d,a,f,e){this.sP||(this.DA&&(r=this.C7(r,I,a,e),d=d&&this.Y9.jx>=(this.Ww()?.3:.5),this.xE(f,r,d),this.MR=V,r.jx>0&&-1===this.mC&&(this.mC=V),this.SH==-1&&this.f9()&&(this.SH=V),this.IK==-2&&(this.IK=K$(this.by())?r.jx:-1),this.Y9=r),this.aK(this))}; g.C.xE=function(r,V,I){this.KM().update(r,V,this.Y9,I)}; g.C.S5=function(){return new Sp}; g.C.C7=function(r,V,I,d){I=this.S5();I.G=V;V=on().X;V=wX(Im)===0?-1:V.isVisible()?0:1;I.X=V;I.jx=this.xB(r);I.Ww=this.Ww();I.rL=d;return I}; g.C.xB=function(r){return this.opacity===0&&sz(this.o8,"opac")===1?0:r}; g.C.Ww=function(){return!1}; g.C.Ts=function(){return this.ocC||this.z0k}; g.C.lr=function(){bg()}; g.C.zS=function(){bg()}; g.C.fC=function(){return 0}; g.C.f9=function(){return this.S_.f9()}; g.C.f0=function(){var r=this.DA;r=(this.hasCompleted||this.h0())&&!r;var V=jX().X!==2||this.jQQ;return this.sP||V&&r?2:this.f9()?4:3}; g.C.uw=function(){return 0};g.Gq.prototype.next=function(){return g.nz}; g.nz={done:!0,value:void 0};g.Gq.prototype.oH=function(){return this};g.T(gVj,Sp);var jm=i9X([void 0,1,2,3,4,8,16]),DI=i9X([void 0,4,8,16]),f4f={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:JC("p0",DI),p1:JC("p1",DI),p2:JC("p2",DI),p3:JC("p3",DI),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:L$("mtos1",[0,2,4],!1,DI),mtos2:L$("mtos2",[0,2,4],!1,DI),mtos3:L$("mtos3",[0,2,4],!1,DI),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:JC("a0",DI),a1:JC("a1",DI),a2:JC("a2",DI),a3:JC("a3",DI),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:JC("c0",DI),c1:JC("c1",DI),c2:JC("c2",DI),c3:JC("c3",DI),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:JC("qmtos",jm),qnc:JC("qnc",jm),qmv:JC("qmv",jm),qnv:JC("qnv",jm), 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:JC("ss0",DI),ss1:JC("ss1",DI),ss2:JC("ss2",DI),ss3:JC("ss3",DI),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"},eJe=Object.assign({},f4f,{avid:sS("audio"),avas:"avas",vs:"vs"}),Yzm={atos:"atos",avt:L$("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(r,V){return function(I){return I[r]===void 0&&V!==void 0?V:I[r]}}("ss",0), t:"t"};g6.prototype.getValue=function(){return this.X}; g6.prototype.update=function(r,V){r>=32||(this.G&1<=.5;hV(V.volume)&&(this.Y=this.Y!=-1?Math.min(this.Y,V.volume):V.volume,this.C=Math.max(this.C,V.volume));f&&(this.GQ+=r,this.V+=a?r:0);this.G.update(V.jx,I.jx,V.G,r,d,a);this.S.update(!0,r);this.W.update(a,r);this.QH.update(I.fullscreen,r);this.ya.update(a&&!f,r);r=Math.floor(V.mediaTime/1E3);this.R7.update(r,V.isVisible());this.a7.update(r,V.jx>=1);this.EE.update(r, lv(V))}};vVv.prototype.X=function(r){this.S||(this.G(r)?(r=fEA(this.V,this.Y,r),this.W|=r,r=r==0):r=!1,this.S=r)};g.T(Uu,vVv);Uu.prototype.G=function(){return!0}; Uu.prototype.C=function(){return!1}; Uu.prototype.getId=function(){var r=this,V=kf(Vk,function(I){return I==r.Y}); return bt[V].toString()}; Uu.prototype.toString=function(){var r="";this.C()&&(r+="c");this.S&&(r+="s");this.W>0&&(r+=":"+this.W);return this.getId()+r};g.T(ml,Uu);ml.prototype.X=function(r,V){V=V===void 0?null:V;V!=null&&this.L.push(V);Uu.prototype.X.call(this,r)};g.T(uv,q$v);uv.prototype.X=function(){return null}; uv.prototype.S=function(){return[]};g.T(p$,n$);g.C=p$.prototype;g.C.f7=function(){if(this.element){var r=this.element,V=this.X.G.S;try{try{var I=dsZ(r.getBoundingClientRect())}catch(x){I=new RI(0,0,0,0)}var d=I.right-I.left,a=I.bottom-I.top,f=rAS(r,V),e=f.x,n=f.y;var D=new RI(Math.round(n),Math.round(e+d),Math.round(n+a),Math.round(e))}catch(x){D=a4c.clone()}this.S=D;this.G=Eqj(this,this.S)}}; g.C.x6=function(){this.C=this.X.Y.G}; g.C.Rd=function(r){var V=sz(this.o8,"od")==1;return AAA(r,this.C,this.element,V)}; g.C.De=function(){this.timestamp=bg()}; g.C.NZ=function(){this.De();this.f7();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var r=this.element;var V=new g.LJ(r.videoWidth,r.videoHeight);r=this.G;var I=tV(r),d=r.getHeight(),a=V.width;V=V.height;a<=0||V<=0||I<=0||d<=0||(a/=V,V=I/d,r=r.clone(),a>V?(I/=a,d=(d-I)/2,d>0&&(d=r.top+d,r.top=Math.round(d),r.bottom=Math.round(d+I))):(d*=a,I=Math.round((I-d)/2),I>0&&(I=r.left+I,r.left=Math.round(I),r.right=Math.round(I+d))));this.G=r}this.x6(); r=this.G;I=this.C;r=r.left<=I.right&&I.left<=r.right&&r.top<=I.bottom&&I.top<=r.bottom?new RI(Math.max(r.top,I.top),Math.min(r.right,I.right),Math.min(r.bottom,I.bottom),Math.max(r.left,I.left)):new RI(0,0,0,0);I=r.top>=r.bottom||r.left>=r.right?new RI(0,0,0,0):r;r=this.X.Y;V=a=d=0;if((this.G.bottom-this.G.top)*(this.G.right-this.G.left)>0)if(this.Rd(I))I=new RI(0,0,0,0);else{d=V7().Y;V=new RI(0,d.height,d.width,0);var f;d=Rm(I,(f=this.W)!=null?f:this.G);a=Rm(I,V7().G);V=Rm(I,V)}f=I.top>=I.bottom|| I.left>=I.right?new RI(0,0,0,0):I.translate(-this.G.left,-this.G.top);d6()||(a=d=0);this.V=new GC(r,this.element,this.G,f,d,a,this.timestamp,V)}; g.C.getName=function(){return this.X.getName()};var nrG=new RI(0,0,0,0);g.T(vn,p$);g.C=vn.prototype;g.C.observe=function(){this.Y();return!0}; g.C.pU=function(){p$.prototype.NZ.call(this)}; g.C.De=function(){}; g.C.f7=function(){}; g.C.NZ=function(){this.Y();p$.prototype.NZ.call(this)}; g.C.Lr=function(r){r=r.isActive();r!==this.j&&(r?this.Y():(V7().G=new RI(0,0,0,0),this.G=new RI(0,0,0,0),this.C=new RI(0,0,0,0),this.timestamp=-1));this.j=r};var xH={},fSU=(xH.firstquartile=0,xH.midpoint=1,xH.thirdquartile=2,xH.complete=3,xH);g.T(Pn,y7);g.C=Pn.prototype;g.C.nR=function(){return!0}; g.C.JV=function(){return this.AR==2}; g.C.G_=function(r){return l8g(this,r,Math.max(1E4,this.S/3))}; g.C.UE=function(r,V,I,d,a,f,e){var n=this,D=this.L(this)||{};g.fD(D,a);this.S=D.duration||this.S;this.V=D.isVpaid||this.V;this.TQ=D.isYouTube||this.TQ;on();this.DM=!1;a=oVv(this,V);PTX(this)===1&&(f=a);y7.prototype.UE.call(this,r,V,I,d,D,f,e);this.Z3&&this.Z3.S&&g.B9(this.C,function(x){x.X(n)})}; g.C.xE=function(r,V,I){y7.prototype.xE.call(this,r,V,I);hC(this).update(r,V,this.Y9,I);this.Mk=lv(this.Y9)&&lv(V);this.n8==-1&&this.a7&&(this.n8=this.KM().S.G);this.AT.S=0;r=this.f9();V.isVisible()&&Bn(this.AT,"vs");r&&Bn(this.AT,"vw");hV(V.volume)&&Bn(this.AT,"am");lv(V)?Bn(this.AT,"a"):Bn(this.AT,"mut");this.BD&&Bn(this.AT,"f");V.X!=-1&&(Bn(this.AT,"bm"),V.X==1&&(Bn(this.AT,"b"),lv(V)&&Bn(this.AT,"umutb")));lv(V)&&V.isVisible()&&Bn(this.AT,"avs");this.Mk&&r&&Bn(this.AT,"avw");V.jx>0&&Bn(this.AT, "pv");rN(this,this.KM().S.G,!0)&&Bn(this.AT,"gdr");w6(this.KM().X,1)>=2E3&&Bn(this.AT,"pmx");this.DM&&Bn(this.AT,"tvoff")}; g.C.Hn=function(){return new SM}; g.C.KM=function(){return this.S_}; g.C.S5=function(){return new gVj}; g.C.C7=function(r,V,I,d){r=y7.prototype.C7.call(this,r,V,I,d===void 0?-1:d);r.fullscreen=this.BD;r.paused=this.JV();r.volume=I.volume;hV(r.volume)||(this.Qa++,V=this.Y9,hV(V.volume)&&(r.volume=V.volume));I=I.currentTime;r.mediaTime=I!==void 0&&I>=0?I:-1;return r}; g.C.xB=function(r){return V7(),this.BD?1:y7.prototype.xB.call(this,r)}; g.C.fC=function(){return 1}; g.C.getDuration=function(){return this.S}; g.C.f0=function(){return this.sP?2:hlh(this)?5:this.f9()?4:3}; g.C.uw=function(){return this.ya?this.KM().W.S>=2E3?4:3:2}; g.C.Ev=function(r){this.NG&&this.NG.Ev(r)};var jZc=g.Yf();zcO.prototype.reset=function(){this.G=[];this.X=[]}; var ew=qQ(zcO);g.T(Dn,jM);g.C=Dn.prototype;g.C.getName=function(){return(this.X?this.X:this.G).getName()}; g.C.rl=function(){return(this.X?this.X:this.G).rl()}; g.C.n9=function(){return(this.X?this.X:this.G).n9()}; g.C.init=function(r){var V=!1;(0,g.B9)(this.S,function(I){I.initialize()&&(V=!0)}); V&&(this.Y=r,eM(this.G,this));return V}; g.C.dispose=function(){(0,g.B9)(this.S,function(r){r.dispose()}); jM.prototype.dispose.call(this)}; g.C.FY=function(){return r6(this.S,function(r){return r.Zi()})}; g.C.KN=function(){return r6(this.S,function(r){return r.Zi()})}; g.C.OG=function(r,V,I){return new p$(r,this.G,V,I)}; g.C.pU=function(r){this.X=r.X};var $6j={threshold:[0,.3,.5,.75,1]};g.T(xM,p$);g.C=xM.prototype;g.C.observe=function(){var r=this;this.kc||(this.kc=bg());if(Qnj(298,function(){return KUX(r)}))return!0; this.X.kQ("msf");return!1}; g.C.unobserve=function(){if(this.Y&&this.element)try{this.Y.unobserve(this.element),this.j?(this.j.unobserve(this.element),this.j=null):this.L&&(this.L.disconnect(),this.L=null)}catch(r){}}; g.C.NZ=function(){var r=Ee(this);r.length>0&&Nn(this,r);p$.prototype.NZ.call(this)}; g.C.f7=function(){}; g.C.Rd=function(){return!1}; g.C.x6=function(){}; g.C.rl=function(){var r={};return Object.assign(this.X.rl(),(r.niot_obs=this.kc,r.niot_cbk=this.QH,r))}; g.C.getName=function(){return"nio"};g.T(se,jM);se.prototype.getName=function(){return"nio"}; se.prototype.KN=function(){return!V7().X&&this.G.G.S.IntersectionObserver!=null}; se.prototype.OG=function(r,V,I){return new xM(r,this.G,V,I)};g.T(ch,f$);ch.prototype.C0=function(){return V7().G}; ch.prototype.Zi=function(){var r=taX();this.j!==r&&(this.G!=this&&r>this.G.j&&(this.G=this,Ye(this)),this.j=r);return r==2};z0.prototype.sample=function(){T0(this,YM(),!1)}; z0.prototype.Y=function(){var r=d6(),V=bg();r?(We||($G=V,g.B9(ew.G,function(I){var d=I.KM();d.Ws=iv(d,V,I.AR!=1)})),We=!0):(this.L=lSh(this,V),We=!1,ecZ=V,g.B9(ew.G,function(I){I.DA&&(I.KM().j=V)})); T0(this,YM(),!r)}; var Mn=qQ(z0);var JHA=null,p_="",it=!1;var BZj=XMh().nC,wN=XMh().Yd;var iEX={ULc:"visible",wZ7:"audible",PTL:"time",yV8:"timetype"},U6X={visible:function(r){return/^(100|[0-9]{1,2})$/.test(r)}, audible:function(r){return r=="0"||r=="1"}, timetype:function(r){return r=="mtos"||r=="tos"}, time:function(r){return/^(100|[0-9]{1,2})%$/.test(r)||/^([0-9])+ms$/.test(r)}}; S5v.prototype.setTime=function(r,V,I){V=="ms"?(this.S=r,this.Y=-1):(this.S=-1,this.Y=r);this.W=I===void 0?"tos":I;return this};g.T($M,Uu);$M.prototype.getId=function(){return this.L}; $M.prototype.C=function(){return!0}; $M.prototype.G=function(r){var V=r.KM(),I=r.getDuration();return r6(this.j,function(d){if(d.G!=void 0)var a=m6i(d,V);else b:{switch(d.W){case "mtos":a=d.X?V.W.S:V.S.G;break b;case "tos":a=d.X?V.W.G:V.S.G;break b}a=0}a==0?d=!1:(d=d.S!=-1?d.S:I!==void 0&&I>0?d.Y*I:-1,d=d!=-1&&a>=d);return d})};g.T(K_,QOX);K_.prototype.G=function(r){var V=new UeZ;V.G=Xn(r,f4f);V.X=Xn(r,Yzm);return V};g.T(Rt,Uu);Rt.prototype.G=function(r){return hlh(r)};g.T(tE,q$v);g.T(yk,Uu);yk.prototype.G=function(r){return r.KM().f9()};g.T(AE,ml);AE.prototype.G=function(r){var V=g.CG(this.L,sz(jX().o8,"ovms"));return!r.sP&&(r.AR!=0||V)};g.T(G0,tE);G0.prototype.X=function(){return new AE(this.G)}; G0.prototype.S=function(){return[new yk("viewable_impression",this.G),new Rt(this.G)]};g.T(FN,vn);FN.prototype.Y=function(){var r=g.Pr("ima.admob.getViewability"),V=sz(this.o8,"queryid");typeof r==="function"&&V&&r(V)}; FN.prototype.getName=function(){return"gsv"};g.T(lt,jM);lt.prototype.getName=function(){return"gsv"}; lt.prototype.KN=function(){var r=V7();jX();return r.X&&!1}; lt.prototype.OG=function(r,V,I){return new FN(this.G,V,I)};g.T(L_,vn);L_.prototype.Y=function(){var r=this,V=g.Pr("ima.bridge.getNativeViewability"),I=sz(this.o8,"queryid");typeof V==="function"&&I&&V(I,function(d){g.ho(d)&&r.L++;var a=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;r.G=agv(d.opt_nativeViewBounds||{});var e=r.X.Y;e.G=f?nrG.clone():agv(a);r.timestamp=d.opt_nativeTime||-1;V7().G=e.G;d=d.opt_nativeVolume;d!==void 0&&(e.volume=d)})}; L_.prototype.getName=function(){return"nis"};g.T(JE,jM);JE.prototype.getName=function(){return"nis"}; JE.prototype.KN=function(){var r=V7();jX();return r.X&&!1}; JE.prototype.OG=function(r,V,I){return new L_(this.G,V,I)};g.T(Zn,f$);g.C=Zn.prototype;g.C.Zi=function(){return this.X.sO!=null}; g.C.wS=function(){var r={};this.R7&&(r.mraid=this.R7);this.bL&&(r.mlc=1);r.mtop=this.X.HwQ;this.L&&(r.mse=this.L);this.p8&&(r.msc=1);r.mcp=this.X.compatibility;return r}; g.C.Sc=function(r){var V=g.ZU.apply(1,arguments);try{return this.X.sO[r].apply(this.X.sO,V)}catch(I){w7(538,I,.01,function(d){d.method=r})}}; g.C.initialize=function(){var r=this;if(this.isInitialized)return!this.I9();this.isInitialized=!0;if(this.X.compatibility===2)return this.L="ng",this.kQ("w"),!1;if(this.X.compatibility===1)return this.L="mm",this.kQ("w"),!1;V7().j=!0;this.S.document.readyState&&this.S.document.readyState=="complete"?q5U(this):$e(this.S,"load",function(){on().setTimeout(He(292,function(){return q5U(r)}),100)},292); return!0}; g.C.bN=function(){var r=V7(),V=rVi(this,"getMaxSize");r.G=new RI(0,V.width,V.height,0)}; g.C.mY=function(){V7().Y=rVi(this,"getScreenSize")}; g.C.dispose=function(){ooX(this);f$.prototype.dispose.call(this)};var Rii=new function(r,V){this.key=r;this.defaultValue=V===void 0?!1:V;this.valueType="boolean"}("45378663");g.C=Bh.prototype;g.C.qh=function(r){AC(r,!1);HEZ(r)}; g.C.n4=function(){}; g.C.Tu=function(r,V,I,d){var a=this;r=new Pn(NQ,r,I?V:-1,7,this.mU(),this.Jw());r.nM=d;BAi(r.o8);Ni(r.o8,"queryid",r.nM);r.G$("");Z9A(r,function(){return a.dS.apply(a,g.R(g.ZU.apply(0,arguments)))},function(){return a.VP.apply(a,g.R(g.ZU.apply(0,arguments)))}); (d=qQ(n_).G)&&FvX(r,d);this.S&&(r.Ev(this.S),this.S=null);r.oO.dl&&qQ(yHA);return r}; g.C.Lr=function(r){switch(r.n9()){case 0:if(r=qQ(n_).G)r=r.G,g.H9(r.W,this),r.V&&this.nR()&&DsZ(r);Sw();break;case 2:C_()}}; g.C.pU=function(){}; g.C.nR=function(){return!1}; g.C.VP=function(r,V){r.sP=!0;switch(r.fC()){case 1:e0X(r,V);break;case 2:this.h6(r)}}; g.C.r0c=function(r){var V=r.L(r);V&&(V=V.volume,r.ya=hV(V)&&V>0);ISv(r,0);return It(r,"start",d6())}; g.C.MF=function(r,V,I){T0(Mn,[r],!d6());return this.Ui(r,V,I)}; g.C.Ui=function(r,V,I){return It(r,I,d6())}; g.C.H8s=function(r){return ot(r,"firstquartile",1)}; g.C.kQE=function(r){r.a7=!0;return ot(r,"midpoint",2)}; g.C.ws0=function(r){return ot(r,"thirdquartile",3)}; g.C.Pq=function(r){var V=ot(r,"complete",4);om(r);return V}; g.C.y0z=function(r){r.AR=3;return It(r,"error",d6())}; g.C.nV=function(r,V,I){V=d6();if(r.JV()&&!V){var d=r.KM(),a=bg();d.j=a}T0(Mn,[r],!V);r.JV()&&(r.AR=1);return It(r,I,V)}; g.C.e07=function(r,V){V=this.MF(r,V||{},"skip");om(r);return V}; g.C.Q7c=function(r,V){AC(r,!0);return this.MF(r,V||{},"fullscreen")}; g.C.lMC=function(r,V){AC(r,!1);return this.MF(r,V||{},"exitfullscreen")}; g.C.H8=function(r,V,I){V=r.KM();var d=bg();V.Ws=iv(V,d,r.AR!=1);T0(Mn,[r],!d6());r.AR==1&&(r.AR=2);return It(r,I,d6())}; g.C.O80=function(r){T0(Mn,[r],!d6());return r.X()}; g.C.Bh=function(r){T0(Mn,[r],!d6());this.eQ(r);om(r);return r.X()}; g.C.dS=function(){}; g.C.h6=function(){}; g.C.eQ=function(){}; g.C.G4=function(){}; g.C.G3=function(){}; g.C.Jw=function(){this.G||(this.G=this.G3());return this.G==null?new uv:new G0(this.G)}; g.C.mU=function(){return new K_};g.T(kM,Uu);kM.prototype.G=function(r){return r.uw()==4};g.T(hE,ml);hE.prototype.G=function(r){r=r.uw();return r==3||r==4};g.T(rw,tE);rw.prototype.X=function(){return new hE(this.G)}; rw.prototype.S=function(){return[new kM(this.G)]};g.T(VC,QOX);VC.prototype.G=function(r){r&&(r.e===28&&(r=Object.assign({},r,{avas:3})),r.vs===4||r.vs===5)&&(r=Object.assign({},r,{vs:3}));var V=new UeZ;V.G=Xn(r,eJe);V.X=Xn(r,Yzm);return V};DGA.prototype.X=function(){return g.Pr(this.G)};g.T(Iu,Bh);g.C=Iu.prototype;g.C.n4=function(r,V){var I=this,d=qQ(n_);if(jw(d))switch(d.G.getName()){case "nis":var a=sIO(this,r,V);break;case "gsv":a=N7A(this,r,V);break;case "exc":a=cVA(this,r)}a||(V.opt_overlayAdElement?a=void 0:V.opt_adElement&&(a=nGA(this,r,V.opt_adElement,V.opt_osdId)));a&&a.fC()==1&&(a.L==g.cl&&(a.L=function(f){return I.G4(f)}),EGX(this,a,V)); return a}; g.C.G4=function(r){r.X=0;r.GQ=0;if(r.Y=="h"||r.Y=="n"){jX();r.EE&&(jX(),qn(this)!="h"&&qn(this));var V=g.Pr("ima.common.getVideoMetadata");if(typeof V==="function")try{var I=V(r.nM)}catch(a){r.X|=4}else r.X|=2}else if(r.Y=="b")if(V=g.Pr("ytads.bulleit.getVideoMetadata"),typeof V==="function")try{I=V(r.nM)}catch(a){r.X|=4}else r.X|=2;else if(r.Y=="ml")if(V=g.Pr("ima.common.getVideoMetadata"),typeof V==="function")try{I=V(r.nM)}catch(a){r.X|=4}else r.X|=2;else r.X|=1;r.X||(I===void 0?r.X|=8:I===null? r.X|=16:g.ho(I)?r.X|=32:I.errorCode!=null&&(r.GQ=I.errorCode,r.X|=64));I==null&&(I={});V=I;r.j=0;for(var d in hY9)V[d]==null&&(r.j|=hY9[d]);jIZ(V,"currentTime");jIZ(V,"duration");hV(I.volume)&&hV()&&(I.volume*=NaN);return I}; g.C.G3=function(){jX();qn(this)!="h"&&qn(this);var r=z0p(this);return r!=null?new DGA(r):null}; g.C.h6=function(r){!r.G&&r.sP&&Ph(this,r,"overlay_unmeasurable_impression")&&(r.G=!0)}; g.C.eQ=function(r){r.vY&&(r.f9()?Ph(this,r,"overlay_viewable_end_of_session_impression"):Ph(this,r,"overlay_unviewable_impression"),r.vY=!1)}; g.C.dS=function(){}; g.C.Tu=function(r,V,I,d){if(tGg()){var a=sz(jX().o8,"mm"),f={};(a=(f[DE.Gx]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[DE.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[a])&&Hjh(this,a);this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&w7(1044,Error())}r=Bh.prototype.Tu.call(this,r,V,I,d);this.W&&(V=this.C,r.W==null&&(r.W=new XvO),V.G[r.nM]=r.W,r.W.W=jZc);return r}; g.C.qh=function(r){r&&r.fC()==1&&this.W&&delete this.C.G[r.nM];return Bh.prototype.qh.call(this,r)}; g.C.Jw=function(){this.G||(this.G=this.G3());return this.G==null?new uv:this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new rw(this.G):new G0(this.G)}; g.C.mU=function(){return this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new VC:new K_}; g.C.Ev=function(r,V,I,d,a){V=new RI(I,V+d,I+a,V);(r=f_(ew,r))?r.Ev(V):this.S=V}; var Di$=TC(193,bjA,void 0,Y6v);g.qp("Goog_AdSense_Lidar_sendVastEvent",Di$);var xiY=He(194,function(r,V){V=V===void 0?{}:V;r=T7S(qQ(Iu),r,V);return wei(r)}); g.qp("Goog_AdSense_Lidar_getViewability",xiY);var Ero=TC(195,function(){return bDX()}); g.qp("Goog_AdSense_Lidar_getUrlSignalsArray",Ero);var NoG=He(196,function(){return JSON.stringify(bDX())}); g.qp("Goog_AdSense_Lidar_getUrlSignalsList",NoG);var $GU=Np(["//ep2.adtrafficquality.google/sodar/",""]),KZi=Np(["//tpc.googlesyndication.com/sodar/",""]);g.T(eD,Error);g.T(jD,g.X);jD.prototype.v0=function(){return this.wpc.f()}; jD.prototype.eT=function(r){this.wpc.c(r)}; jD.prototype.aU=function(r){return this.wpc.m(AVS(r))}; jD.prototype.Ur=function(r){return this.wpc.mws(AVS(r))}; g.T(YI,g.X);YI.prototype.snapshot=function(r){return this.x5.s(Object.assign({},r.NS&&{c:r.NS},r.GV&&{s:r.GV},r.n$!==void 0&&{p:r.n$}))}; YI.prototype.S3=function(r){this.x5.e(r)}; YI.prototype.Jy=function(){return this.x5.l()};var Zjj;g.T(xI,g.X);xI.prototype.share=function(){if(this.h0())throw Error("E:AD");this.Y++;return this}; xI.prototype.dispose=function(){--this.Y||g.X.prototype.dispose.call(this)}; Zjj=Symbol.dispose;XeZ.prototype.bP=function(r,V){this.G.bP("/client_streamz/bg/frs",r,V)}; B7S.prototype.bP=function(r,V,I,d,a,f){this.G.bP("/client_streamz/bg/wrl",r,V,I,d,a,f)}; gGA.prototype.vK=function(r,V){this.G.t2("/client_streamz/bg/ec",r,V)}; S6i.prototype.bP=function(r,V,I){this.G.bP("/client_streamz/bg/el",r,V,I)}; ijX.prototype.vK=function(r,V){this.G.t2("/client_streamz/bg/cec",r,V)}; UGX.prototype.vK=function(r,V){this.G.t2("/client_streamz/bg/po/csc",r,V)}; QIA.prototype.vK=function(r,V){this.G.t2("/client_streamz/bg/po/ctav",r,V)}; mGr.prototype.vK=function(r,V){this.G.t2("/client_streamz/bg/po/cwsc",r,V)};g.T(uYX,wZ);g.T(sa,wZ);var To=[1,2,3];var sZ$=[0,To,vfG,iGc,ueG];var cre=[0,Ip,[0,lmp,ZG9]];g.T(cY,wZ);var CQ=[1,2,3];var zJ6=[0,CQ,BPK,Jom,ap,cre];g.T(zo,wZ);var MSY=[0,Ip,sZ$,zJ6];var C_m=[0,[1,2,3],ap,[0,V8,-1,mmp],ap,[0,V8,-1,gf9,mmp],ap,[0,V8]];g.T(Ml,wZ);Ml.prototype.F6=function(){var r=te(this,3,o3,3,!0);Ho(r);return r[void 0]};Ml.prototype.X=Oyr([0,V8,C_m,p9$,Ip,MSY,Um$,QG9]);g.T(vGi,wZ);g.C=HY.prototype;g.C.isEnabled=function(){if(!g.vr.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{CO:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.C.set=function(r,V,I){var d=!1;if(typeof I==="object"){var a=I.CIs;d=I.secure||!1;var f=I.domain||void 0;var e=I.path||void 0;var n=I.CO}if(/[;=\s]/.test(r))throw Error('Invalid cookie name "'+r+'"');if(/[;\r\n]/.test(V))throw Error('Invalid cookie value "'+V+'"');n===void 0&&(n=-1);I=f?";domain="+f:"";e=e?";path="+e:"";d=d?";secure":"";n=n<0?"":n==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+n*1E3)).toUTCString();this.G.cookie=r+"="+V+I+e+n+d+(a!=null?";samesite="+ a:"")}; g.C.get=function(r,V){for(var I=r+"=",d=(this.G.cookie||"").split(";"),a=0,f;a=0;V--)this.remove(r[V])}; var BR=new HY(typeof document=="undefined"?null:document);bk.prototype.compress=function(r){var V,I,d,a;return g.L(function(f){switch(f.X){case 1:return V=new CompressionStream("gzip"),I=(new Response(V.readable)).arrayBuffer(),d=V.writable.getWriter(),g.G(f,d.write((new TextEncoder).encode(r)),2);case 2:return g.G(f,d.close(),3);case 3:return a=Uint8Array,g.G(f,I,4);case 4:return f.return(new a(f.G))}})}; bk.prototype.isSupported=function(r){return r<1024?!1:typeof CompressionStream!=="undefined"};g.T(Oa,wZ);WY.prototype.setInterval=function(r){this.intervalMs=r;this.aL&&this.enabled?(this.stop(),this.start()):this.aL&&this.stop()}; WY.prototype.start=function(){var r=this;this.enabled=!0;this.aL||(this.aL=setTimeout(function(){r.tick()},this.intervalMs),this.X=this.G())}; WY.prototype.stop=function(){this.enabled=!1;this.aL&&(clearTimeout(this.aL),this.aL=void 0)}; WY.prototype.tick=function(){var r=this;if(this.enabled){var V=Math.max(this.G()-this.X,0);V0?I:void 0));I=bT(I,4,gq(a>0?a:void 0));I=bT(I,5,gq(f>0?f:void 0));a=I.kN;f=a[sD]|0;I=TB(I,f)?I:new I.constructor(YV(a,f,s$,!0,!0));mv(e,Ru,10,I)}e=this.G.clone();I=Date.now().toString();e=bT(e,4,pr(I));r=uT(e,Jm,3,r.slice());d&&(e=new $I,d=bT(e,13,gq(d)),e=new KQ,d=mv(e,$I, 2,d),e=new LQ,d=mv(e,KQ,1,d),d=Ir(d,2,9),mv(r,LQ,18,d));V&&he(r,14,V);return r};var GqO=function(){if(!g.vr.addEventListener||!Object.defineProperty)return!1;var r=!1,V=Object.defineProperty({},"passive",{get:function(){r=!0}}); try{var I=function(){}; g.vr.addEventListener("test",I,V);g.vr.removeEventListener("test",I,V)}catch(d){}return r}();var Rug=cCA("AnimationEnd"),z4=cCA("TransitionEnd");g.gw.prototype.X=0;g.gw.prototype.reset=function(){this.G=this.S=this.Y;this.X=0}; g.gw.prototype.getValue=function(){return this.S};g.T(aI,wZ);var Too=eX(aI);g.T(wlO,wZ);var Eb=new byr;g.T(QC,g.X);g.C=QC.prototype;g.C.eC=function(){Ua(this);this.X.stop();this.R7.stop();g.X.prototype.eC.call(this)}; g.C.dispatch=function(r){if(r instanceof Jm)this.log(r);else try{var V=new Jm,I=r.eI();var d=rZ(V,8,I);this.log(d)}catch(a){m0(this,4,1)}}; g.C.log=function(r){m0(this,2,1);if(this.p8){r=r.clone();var V=this.L8++;r=he(r,21,V);this.componentId&&rZ(r,26,this.componentId);V=r;var I=Hv(V,1);var d=d===void 0?!1:d;var a=typeof I;d=I==null?I:a==="bigint"?String(Qn(64,I)):Bo(I)?a==="string"?UD(I):d?mr(I):u0(I):void 0;d==null&&(d=Date.now(),d=Number.isFinite(d)?d.toString():"0",bT(V,1,pr(d)));d=Hv(V,15);d!=null&&(typeof d==="bigint"?n9(d)?d=Number(d):(d=Qn(64,d),d=n9(d)?Number(d):String(d)):d=Bo(d)?typeof d==="number"?u0(d):UD(d):void 0);d!=null|| he(V,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(d=this.experimentIds.clone(),mv(V,Oa,16,d));m0(this,1,1);V=this.G.length-1E3+1;V>0&&(this.G.splice(0,V),this.Y+=V,m0(this,3,V));this.G.push(r);this.BS||this.X.enabled||this.X.start()}}; g.C.flush=function(r,V){var I=this;if(this.G.length===0)r&&r();else if(this.n8&&this.QH)this.S.X=3,H$j(this);else{var d=Date.now();if(this.Ws>d&&this.GQ0&&(I.GQ=Date.now(),I.Ws=I.GQ+c);var w;c=nG(IO);Ns&&c&&((w=z.kN[c])==null?void 0:w[175237375])!=null&&uyp(HGG,3);w=Eb.G?Eb.X(z,Eb.G,175237375,Eb.S):Eb.X(z,175237375,null,Eb.S);if(w=w===null?void 0:w)w=qe(w,1,-1),w!==-1&&(I.W=new g.gw(w<1?1:w,3E5,.1),I.X.setInterval(I.W.getValue()))}}r&& r();I.C=0},E=function(c,z){var M=QL(f,Jm,3); var w=Number(ZJp(f,14));g.SD(I.W);I.X.setInterval(I.W.getValue());c===401&&e&&(I.TQ=e);w&&(I.Y+=w);z===void 0&&(z=I.isRetryable(c));z&&(I.G=M.concat(I.G),I.BS||I.X.enabled||I.X.start());m0(I,7,1);V&&V("net-send-failed",c);++I.C},N=function(){I.network&&I.network.send(D,x,E)}; n?n.then(function(c){m0(I,5,a);D.requestHeaders["Content-Encoding"]="gzip";D.requestHeaders["Content-Type"]="application/binary";D.body=c;D.H2=2;N()},function(){m0(I,6,a); N()}):N()}}}}; g.C.isRetryable=function(r){return 500<=r&&r<600||r===401||r===0};uk.prototype.send=function(r,V,I){var d=this,a,f,e,n,D,x,E,N,c,z;return g.L(function(M){switch(M.X){case 1:return f=(a=d.Zo?new AbortController:void 0)?setTimeout(function(){a.abort()},r.timeoutMillis):void 0,g.wA(M,2,3),e=Object.assign({},{method:r.requestType, headers:Object.assign({},r.requestHeaders)},r.body&&{body:r.body},r.withCredentials&&{credentials:"include"},{signal:r.timeoutMillis&&a?a.signal:null}),g.G(M,fetch(r.url,e),5);case 5:n=M.G;if(n.status!==200){(D=I)==null||D(n.status);M.qk(3);break}if((x=V)==null){M.qk(7);break}return g.G(M,n.text(),8);case 8:x(M.G);case 7:case 3:g.Ah(M);clearTimeout(f);g.Fj(M,0);break;case 2:E=g.th(M);switch((N=E)==null?void 0:N.name){case "AbortError":(c=I)==null||c(408);break;default:(z=I)==null||z(400)}M.qk(3)}})}; uk.prototype.qO=function(){return 4};g.T(pQ,g.X);pQ.prototype.zM=function(){this.W=!0;return this}; pQ.prototype.build=function(){this.network||(this.network=new uk);var r=new QC({logSource:this.logSource,mm:this.mm?this.mm:f_X,sessionIndex:this.sessionIndex,Pk7:this.AC,Wb:this.Y,BS:!1,zM:this.W,M0:this.M0,network:this.network});g.S(this,r);if(this.X){var V=this.X,I=BY(r.S);rZ(I,7,V)}r.L=new bk;this.componentId&&(r.componentId=this.componentId);this.sY&&(r.sY=this.sY);this.pageId&&(r.pageId=this.pageId);this.G&&((I=this.G)?(r.experimentIds||(r.experimentIds=new Oa),V=r.experimentIds,I=I.eI(),rZ(V, 4,I)):r.experimentIds&&bT(r.experimentIds,4));this.S&&(r.n8=r.QH);smX(r.S);this.network.gb&&this.network.gb(this.logSource);this.network.inE&&this.network.inE(r);return r};g.T(vY,g.X);vY.prototype.flush=function(r){r=r||[];if(r.length){for(var V=new vGi,I=[],d=0;d-1?(V=r[e],I||(V.Vc=!1)):(V=new tMj(V,this.src,f,!!d,a),V.Vc=I,r.push(V));return V}; g.C.remove=function(r,V,I,d){r=r.toString();if(!(r in this.listeners))return!1;var a=this.listeners[r];V=a0(a,V,I,d);return V>-1?(Vg(a[V]),g.T6(a,V),a.length==0&&(delete this.listeners[r],this.G--),!0):!1}; g.C.removeAll=function(r){r=r&&r.toString();var V=0,I;for(I in this.listeners)if(!r||I==r){for(var d=this.listeners[I],a=0;a-1?r[a]:null}; g.C.hasListener=function(r,V){var I=r!==void 0,d=I?r.toString():"",a=V!==void 0;return g.mK(this.listeners,function(f){for(var e=0;e>>0);g.Dm(g.cu,g.X);g.cu.prototype[Klh]=!0;g.C=g.cu.prototype;g.C.addEventListener=function(r,V,I,d){g.es(this,r,V,I,d)}; g.C.removeEventListener=function(r,V,I,d){JCj(this,r,V,I,d)}; g.C.dispatchEvent=function(r){var V=this.PQ;if(V){var I=[];for(var d=1;V;V=V.PQ)I.push(V),++d}V=this.dE;d=r.type||r;if(typeof r==="string")r=new g.kI(r,V);else if(r instanceof g.kI)r.target=r.target||V;else{var a=r;r=new g.kI(d,V);g.fD(r,a)}a=!0;var f;if(I)for(f=I.length-1;!r.X&&f>=0;f--){var e=r.currentTarget=I[f];a=zO(e,d,!0,r)&&a}r.X||(e=r.currentTarget=V,a=zO(e,d,!0,r)&&a,r.X||(a=zO(e,d,!1,r)&&a));if(I)for(f=0;!r.X&&f0){this.X--;var r=this.G;this.G=r.next;r.next=null}else r=this.S();return r};var TO;wS.prototype.add=function(r,V){var I=i$A.get();I.set(r,V);this.X?this.X.next=I:this.G=I;this.X=I}; wS.prototype.remove=function(){var r=null;this.G&&(r=this.G,this.G=this.G.next,this.G||(this.X=null),r.next=null);return r}; var i$A=new M4(function(){return new bo},function(r){return r.reset()}); bo.prototype.set=function(r,V){this.G=r;this.scope=V;this.next=null}; bo.prototype.reset=function(){this.next=this.scope=this.G=null};var On,Wu=!1,gej=new wS;USj.prototype.reset=function(){this.context=this.X=this.S=this.G=null;this.Y=!1}; var QmO=new M4(function(){return new USj},function(r){r.reset()}); g.R0.prototype.then=function(r,V,I){return hsi(this,CR(typeof r==="function"?r:null),CR(typeof V==="function"?V:null),I)}; g.R0.prototype.$goog_Thenable=!0;g.C=g.R0.prototype;g.C.finally=function(r){var V=this;r=CR(r);return new Promise(function(I,d){vep(V,function(a){r();I(a)},function(a){r(); d(a)})})}; g.C.Q7=function(r,V){return hsi(this,null,CR(r),V)}; g.C.catch=g.R0.prototype.Q7;g.C.cancel=function(r){if(this.G==0){var V=new Xs(r);g.$i(function(){quZ(this,V)},this)}}; g.C.at8=function(r){this.G=0;KR(this,2,r)}; g.C.cZM=function(r){this.G=0;KR(this,3,r)}; g.C.o6=function(){for(var r;r=PvO(this);)oeg(this,r,this.G,this.L);this.C=!1}; var dnA=rq;g.Dm(Xs,xf);Xs.prototype.name="cancel";g.Dm(g.Bu,g.cu);g.C=g.Bu.prototype;g.C.enabled=!1;g.C.MJ=null;g.C.setInterval=function(r){this.wU=r;this.MJ&&this.enabled?(this.stop(),this.start()):this.MJ&&this.stop()}; g.C.Wvs=function(){if(this.enabled){var r=g.Yf()-this.d7;r>0&&r0&&(this.getStatus(),this.C=setTimeout(this.Qt.bind(this), this.QH)),this.getStatus(),this.V=!0,this.G.send(r),this.V=!1}catch(e){this.getStatus(),CtZ(this,e)}}; g.C.Qt=function(){typeof q4!="undefined"&&this.G&&(this.Y="Timed out after "+this.QH+"ms, aborting",this.X=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.C.abort=function(r){this.G&&this.S&&(this.getStatus(),this.S=!1,this.W=!0,this.G.abort(),this.W=!1,this.X=r||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),vu(this))}; g.C.eC=function(){this.G&&(this.S&&(this.S=!1,this.W=!0,this.G.abort(),this.W=!1),vu(this,!0));g.pR.m9.eC.call(this)}; g.C.eq=function(){this.h0()||(this.bL||this.V||this.W?TNX(this):this.R1s())}; g.C.R1s=function(){TNX(this)}; g.C.isActive=function(){return!!this.G}; g.C.isComplete=function(){return g.Pu(this)==4}; g.C.getStatus=function(){try{return g.Pu(this)>2?this.G.status:-1}catch(r){return-1}}; g.C.getResponseHeader=function(r){if(this.G&&this.isComplete())return r=this.G.getResponseHeader(r),r===null?void 0:r}; g.C.getLastError=function(){return typeof this.Y==="string"?this.Y:String(this.Y)};Vm.prototype.send=function(r,V,I){V=V===void 0?function(){}:V; I=I===void 0?function(){}:I; zNS(r.url,function(d){d=d.target;o0(d)?V(g.ki(d)):I(d.getStatus())},r.requestType,r.body,r.requestHeaders,r.timeoutMillis,r.withCredentials)}; Vm.prototype.qO=function(){return 1};dY.prototype.done=function(){this.logger.iE(this.event,Ih()-this.startTime)}; g.T(ah,xI);g.T(ec,ah);g.C=ec.prototype;g.C.pO=function(){}; g.C.xd=function(){}; g.C.iE=function(){}; g.C.ML=function(){}; g.C.Pb=function(){}; g.C.Je=function(r,V,I,d){return d}; g.C.rX=function(){}; g.C.Q2=function(){}; g.C.e_=function(){}; g.C.VK=function(){}; g.T(Y0,ah);g.C=Y0.prototype;g.C.update=function(r){this.logger.dispose();this.logger=r}; g.C.xd=function(r){this.logger.xd(r)}; g.C.iE=function(r,V){this.logger.iE(r,V)}; g.C.ML=function(r){this.logger.ML(r)}; g.C.Pb=function(){this.logger.Pb()}; g.C.Je=function(r,V,I,d){return this.logger.Je(r,V,I,d)}; g.C.rX=function(r){this.logger.rX(r)}; g.C.Q2=function(r){this.logger.Q2(r)}; g.C.e_=function(r){this.logger.e_(r)}; g.C.VK=function(r){this.logger.VK(r)}; g.C.pO=function(r){this.logger.pO(r)}; g.T(nb,g.X);g.T(jc,ah);g.C=jc.prototype;g.C.pO=function(r){this.metrics.Ows.bP(r,this.mH)}; g.C.xd=function(r){this.metrics.eventCount.vK(r,this.mH)}; g.C.iE=function(r,V){this.metrics.Tk.bP(V,r,this.mH)}; g.C.ML=function(r){this.metrics.errorCount.vK(r,this.mH)}; g.C.Je=function(r,V,I,d){function a(n){if(!f.h0()){var D=Ih()-e;f.metrics.bjs.bP(D,r,I,n,V,f.mH)}} var f=this,e=Ih();d.then(function(){return void a(0)},function(n){return void a(n instanceof Un?n.code:-1)}); return d}; g.C.rX=function(r){this.metrics.F50.vK(r,this.mH)}; g.C.Q2=function(r){this.metrics.OT.vK(r,this.mH)}; g.C.e_=function(r){this.metrics.mfM.vK(r,this.mH)}; g.T(D3,jc);D3.prototype.VK=function(r){var V=this;this.G.dispose();this.X&&this.service.dispose();this.service=this.options.I3("49",this.options.Of.concat(r));this.G=new nb(function(){return void V.service.r4()},this.options.kL); this.metrics=b_X(this.service);this.S=r}; D3.prototype.Pb=function(){WNi(this.G)};g.T(x0,wZ);g.T(Ed,wZ);g.T(NF,wZ);var JES=eX(NF),KNg=function(r){return bE(function(V){return V instanceof r&&!TB(V)})}(NF); NF.messageId="bfkj";g.T(Dz,wZ);g.T(sd,wZ);var RNS=eX(sd);g.T(z3,g.X);z3.prototype.snapshot=function(r){if(this.h0())throw Error("Already disposed");this.logger.xd("n");var V=this.logger.share();return this.S.then(function(I){var d=I.x3;return new Promise(function(a){var f=new dY(V,"n");d(function(e){f.done();V.pO(e.length);V.Pb();V.dispose();a(e)},[r.NS, r.GV,r.l1,r.n$])})})}; z3.prototype.YE=function(r){var V=this;if(this.h0())throw Error("Already disposed");this.logger.xd("n");var I=fb(this.logger,function(){return V.Y([r.NS,r.GV,r.l1,r.n$])},"n"); this.logger.pO(I.length);this.logger.Pb();return I}; z3.prototype.S3=function(r){this.S.then(function(V){var I;(I=V.obL)==null||I(r)})}; z3.prototype.Jy=function(){return this.logger.share()};g.T(T3,wZ);g.T(HA,wZ);wY.prototype.Ep=function(r){return gMX(this,r,new ec,0)};g.T(ba,g.X);ba.prototype.snapshot=function(r){var V=this;return g.L(function(I){switch(I.X){case 1:if(V.h0())throw Error("Already disposed");if(V.X||V.L){I.qk(2);break}return g.G(I,V.W.promise,2);case 2:if(!V.X){I.qk(4);break}return g.G(I,V.X.snapshot(r),5);case 5:return I.return(I.G);case 4:throw V.L;}})}; ba.prototype.S3=function(r){var V,I;(V=this.X)==null||(I=V.S3)==null||I.call(V,r)}; ba.prototype.handleError=function(r){if(!this.h0()){this.L=r;this.W.resolve();var V,I;(I=(V=this.options).eps)==null||I.call(V,r)}}; ba.prototype.Jy=function(){return this.logger.share()}; var Unj={Hns:432E5,bR:3E5,nt:10,zF:1E4,LX:3E4,Ec0:3E4,DpQ:6E4,hF:1E3,tF:6E4,R6:6E5,sN:.25,JF:2,maxAttempts:10};var bDG,k0Z=(bDG=Math.imul)!=null?bDG:function(r,V){return r*V|0},Kb=[196, 200,224,18];Rh.prototype.eI=function(){return String(this.G)+","+this.X.join()}; Rh.prototype.aQ=function(r,V){var I=void 0;if(this.X[this.G]!==r){var d=this.X.indexOf(r);d!==-1?(this.X.splice(d,1),d0;)V[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(r%62),r=Math.floor(r/62);return V.join("")}};var xlO;g.T(ym,g.X);ym.prototype.Ur=function(r,V){var I=this.aU(r);V==null||V(I);return fb(this.logger,function(){return g.I3(I,2)},this.X)}; xlO=Symbol.dispose;g.T(F1,ym);F1.prototype.aU=function(r,V){var I=this;this.logger.xd(this.G);++this.W>=this.C&&this.S.resolve();var d=r();r=fb(this.logger,function(){return I.Y(d)},"C"); if(r===void 0)throw new eD(17,"YNJ:Undefined");if(!(r instanceof Uint8Array))throw new eD(18,"ODM:Invalid");V==null||V(r);return r}; g.T(la,ym);la.prototype.aU=function(){return this.Y}; g.T(Lb,ym);Lb.prototype.aU=function(){var r=this;return fb(this.logger,function(){return a3(r.Y)},"d")}; Lb.prototype.Ur=function(){return this.Y}; g.T(J5,ym);J5.prototype.aU=function(){if(this.Y)return this.Y;this.Y=EIi(this,function(r){return"_"+Dli(r)}); return EIi(this,function(r){return r})}; g.T(X1,ym);X1.prototype.aU=function(){var r=Math.floor(Date.now()/1E3),V=[Math.random()*255,Math.random()*255],I=V.concat([this.Y&255,this.clientState],[r>>24&255,r>>16&255,r>>8&255,r&255]);r=new Uint8Array(2+I.length);r[0]=34;r[1]=I.length;r.set(I,2);I=r.subarray(2);for(var d=V=V.length;d150))try{this.cache=new fzX(r,this.logger)}catch(V){this.reportError(new eD(22,"GBJ:init",V))}}; g.C.reportError=function(r){this.logger.ML(r.code);this.onError(r);return r}; var cmS=function(r){return bE(function(V){if(!M3(V))return!1;for(var I=g.H(Object.entries(r)),d=I.next();!d.done;d=I.next()){var a=g.H(d.value);d=a.next().value;a=a.next().value;if(!(d in V)){if(a.jZH===!0)continue;return!1}if(!a(V[d]))return!1}return!0})}({x5:function(r){return bE(function(V){return V instanceof r})}(ba)},"");var PaX=(new Date).getTime();g.T(Ud,wZ);var OD$=eX(Ud);W0U.prototype.getMetadata=function(){return this.metadata};Qm.prototype.getMetadata=function(){return this.metadata}; Qm.prototype.getStatus=function(){return this.status};mS.prototype.L=function(r,V){V=V===void 0?{}:V;return new W0U(r,this,V)}; mS.prototype.getName=function(){return this.name};var W7p=new mS("/google.internal.waa.v1.Waa/Create",T3,Ud,function(r){return r.eI()},OD$);g.T(ua,wZ);var BNS=new mS("/google.internal.waa.v1.Waa/GenerateIT",HA,ua,function(r){return r.eI()},eX(ua));var r_Z=new Set(["SAPISIDHASH","APISIDHASH"]);g.T(pb,wZ);pb.prototype.getValue=function(){var r=Hv(this,2);if(Array.isArray(r)||r instanceof wZ)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Ae(this,2)};g.T(vA,wZ);vA.prototype.getMessage=function(){return oO(this,2)}; var Amg=eX(vA);qF.prototype.Nv=function(r,V){r=="data"?this.S.push(V):r=="metadata"?this.W.push(V):r=="status"?this.C.push(V):r=="end"?this.Y.push(V):r=="error"&&this.X.push(V);return this}; qF.prototype.removeListener=function(r,V){r=="data"?rW(this.S,V):r=="metadata"?rW(this.W,V):r=="status"?rW(this.C,V):r=="end"?rW(this.Y,V):r=="error"&&rW(this.X,V);return this}; qF.prototype.cancel=function(){this.G.abort()}; qF.prototype.cancel=qF.prototype.cancel;qF.prototype.removeListener=qF.prototype.removeListener;qF.prototype.on=qF.prototype.Nv;g.T(K0A,Error);g.Dm(g.Va,stX);g.Va.prototype.G=function(){var r=new IN(this.Y,this.S);this.X&&r.setCredentialsMode(this.X);return r}; g.Va.prototype.setCredentialsMode=function(r){this.X=r}; g.Dm(IN,g.cu);g.C=IN.prototype;g.C.open=function(r,V){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.QH=r;this.V=V;this.readyState=1;dW(this)}; g.C.send=function(r){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.G=!0;var V={headers:this.j,method:this.QH,credentials:this.W,cache:void 0};r&&(V.body=r);(this.kc||g.vr).fetch(new Request(this.V,V)).then(this.xi.bind(this),this.Wn.bind(this))}; g.C.abort=function(){this.response=this.responseText="";this.j=new Headers;this.status=0;this.S&&this.S.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.G&&this.readyState!=4&&(this.G=!1,aN(this));this.readyState=0}; g.C.xi=function(r){if(this.G&&(this.Y=r,this.X||(this.status=this.Y.status,this.statusText=this.Y.statusText,this.X=r.headers,this.readyState=2,dW(this)),this.G&&(this.readyState=3,dW(this),this.G)))if(this.responseType==="arraybuffer")r.arrayBuffer().then(this.iA.bind(this),this.Wn.bind(this));else if(typeof g.vr.ReadableStream!=="undefined"&&"body"in r){this.S=r.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.L=new TextDecoder;GoO(this)}else r.text().then(this.g8.bind(this),this.Wn.bind(this))}; g.C.Ic=function(r){if(this.G){if(this.C&&r.value)this.response.push(r.value);else if(!this.C){var V=r.value?r.value:new Uint8Array(0);if(V=this.L.decode(V,{stream:!r.done}))this.response=this.responseText+=V}r.done?aN(this):dW(this);this.readyState==3&&GoO(this)}}; g.C.g8=function(r){this.G&&(this.response=this.responseText=r,aN(this))}; g.C.iA=function(r){this.G&&(this.response=r,aN(this))}; g.C.Wn=function(){this.G&&aN(this)}; g.C.setRequestHeader=function(r,V){this.j.append(r,V)}; g.C.getResponseHeader=function(r){return this.X?this.X.get(r.toLowerCase())||"":""}; g.C.getAllResponseHeaders=function(){if(!this.X)return"";for(var r=[],V=this.X.entries(),I=V.next();!I.done;)I=I.value,r.push(I[0]+": "+I[1]),I=V.next();return r.join("\r\n")}; g.C.setCredentialsMode=function(r){this.W=r}; Object.defineProperty(IN.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(r){this.setCredentialsMode(r?"include":"same-origin")}});g.fm.prototype.toString=function(){var r=[],V=this.W;V&&r.push(Nc(V,$i$,!0),":");var I=this.G;if(I||V=="file")r.push("//"),(V=this.j)&&r.push(Nc(V,$i$,!0),"@"),r.push(JmX(g.zP(I))),I=this.S,I!=null&&r.push(":",String(I));if(I=this.X)this.G&&I.charAt(0)!="/"&&r.push("/"),r.push(Nc(I,I.charAt(0)=="/"?K7m:RJG,!0));(I=this.Y.toString())&&r.push("?",I);(I=this.C)&&r.push("#",Nc(I,tSf));return r.join("")}; g.fm.prototype.resolve=function(r){var V=this.clone(),I=!!r.W;I?g.ek(V,r.W):I=!!r.j;I?V.j=r.j:I=!!r.G;I?g.Yy(V,r.G):I=r.S!=null;var d=r.X;if(I)g.nm(V,r.S);else if(I=!!r.X){if(d.charAt(0)!="/")if(this.G&&!this.X)d="/"+d;else{var a=V.X.lastIndexOf("/");a!=-1&&(d=V.X.slice(0,a+1)+d)}a=d;if(a==".."||a==".")d="";else if(g.Ht(a,"./")||g.Ht(a,"/.")){d=Mi(a,"/");a=a.split("/");for(var f=[],e=0;e1||f.length==1&&f[0]!="")&&f.pop(), d&&e==a.length&&f.push("")):(f.push(n),d=!0)}d=f.join("/")}else d=a}I?V.X=d:I=r.Y.toString()!=="";I?jk(V,r.Y.clone()):I=!!r.C;I&&(V.C=r.C);return V}; g.fm.prototype.clone=function(){return new g.fm(this)}; var $i$=/[#\/\?@]/g,RJG=/[#\?:]/g,K7m=/[#\?]/g,lzS=/[#\?@]/g,tSf=/#/g;g.C=EK.prototype;g.C.add=function(r,V){z9(this);this.S=null;r=Mc(this,r);var I=this.G.get(r);I||this.G.set(r,I=[]);I.push(V);this.X=this.X+1;return this}; g.C.remove=function(r){z9(this);r=Mc(this,r);return this.G.has(r)?(this.S=null,this.X=this.X-this.G.get(r).length,this.G.delete(r)):!1}; g.C.clear=function(){this.G=this.S=null;this.X=0}; g.C.isEmpty=function(){z9(this);return this.X==0}; g.C.forEach=function(r,V){z9(this);this.G.forEach(function(I,d){I.forEach(function(a){r.call(V,a,d,this)},this)},this)}; g.C.yu=function(){z9(this);for(var r=Array.from(this.G.values()),V=Array.from(this.G.keys()),I=[],d=0;d0?String(r[0]):V}; g.C.toString=function(){if(this.S)return this.S;if(!this.G)return"";for(var r=[],V=Array.from(this.G.keys()),I=0;I>>3;f.S!=1&&f.S!=2&&f.S!=15&&wW(f,e,n,"unexpected tag");f.G=1;f.X=0;f.Y=0} function I(D){f.Y++;f.Y==5&&D&240&&wW(f,e,n,"message length too long");f.X|=(D&127)<<(f.Y-1)*7;D&128||(f.G=2,f.j=0,typeof Uint8Array!=="undefined"?f.W=new Uint8Array(f.X):f.W=Array(f.X),f.X==0&&a())} function d(D){f.W[f.j++]=D;f.j==f.X&&a()} function a(){if(f.S<15){var D={};D[f.S]=f.W;f.L.push(D)}f.G=0} for(var f=this,e=r instanceof Array?r:new Uint8Array(r),n=0;n0?r:null};bP.prototype.isInputValid=function(){return this.G===null}; bP.prototype.GY=function(){return this.G}; bP.prototype.zn=function(){return!1}; bP.prototype.parse=function(r){this.G!==null&&UlX(this,r,"stream already broken");var V=null;try{var I=this.S;I.S||iQv(I,r,"stream already broken");I.G+=r;var d=Math.floor(I.G.length/4);if(d==0)var a=null;else{try{var f=Jri(I.G.slice(0,d*4))}catch(e){iQv(I,I.G,e.message)}I.X+=d*4;I.G=I.G.slice(d*4);a=f}V=a===null?null:this.Y.parse(a)}catch(e){UlX(this,r,e.message)}this.X+=r.length;return V};var Ar6={INIT:0,rp:1,HI:2,TG:3,Qn:4,HU:5,STRING:6,yO:7,iN:8,wN:9,bQ:10,m2:11,mz:12,FT:13,Gq:14,XT:15,VL:16,Pj:17,yw:18,n2:19,l4:20};g.C=W4.prototype;g.C.isInputValid=function(){return this.W!=3}; g.C.GY=function(){return this.V}; g.C.done=function(){return this.W===2}; g.C.zn=function(){return!1}; g.C.parse=function(r){function V(){for(;c0;)if(M=r[c++], f.j===4?f.j=0:f.j++,!M)break a;if(M==='"'&&!f.L){f.G=d();break}if(M==="\\"&&!f.L&&(f.L=!0,M=r[c++],!M))break;if(f.L)if(f.L=!1,M==="u"&&(f.j=1),M=r[c++])continue;else break;n.lastIndex=c;M=n.exec(r);if(!M){c=r.length+1;break}c=M.index+1;M=r[M.index];if(!M)break}f.S+=c-w;continue;case D.wN:if(!M)continue;M==="r"?f.G=D.bQ:$y(f,r,c);continue;case D.bQ:if(!M)continue;M==="u"?f.G=D.m2:$y(f,r,c);continue;case D.m2:if(!M)continue;M==="e"?f.G=d():$y(f,r,c);continue;case D.mz:if(!M)continue;M==="a"?f.G=D.FT: $y(f,r,c);continue;case D.FT:if(!M)continue;M==="l"?f.G=D.Gq:$y(f,r,c);continue;case D.Gq:if(!M)continue;M==="s"?f.G=D.XT:$y(f,r,c);continue;case D.XT:if(!M)continue;M==="e"?f.G=d():$y(f,r,c);continue;case D.VL:if(!M)continue;M==="u"?f.G=D.Pj:$y(f,r,c);continue;case D.Pj:if(!M)continue;M==="l"?f.G=D.yw:$y(f,r,c);continue;case D.yw:if(!M)continue;M==="l"?f.G=d():$y(f,r,c);continue;case D.n2:M==="."?f.G=D.l4:$y(f,r,c);continue;case D.l4:if("0123456789.eE+-".indexOf(M)!==-1)continue;else c--,f.S--,f.G= d();continue;default:$y(f,r,c)}}} function d(){var M=e.pop();return M!=null?M:D.rp} function a(M){if(!(f.X>1)){M||(M=N===-1?f.Y+r.substring(E,c):r.substring(N,c));if(f.QH)f.C.push(M);else{var w=f.C,b=w.push;M=JSON.parse(M);b.call(w,M)}N=c}} for(var f=this,e=f.kc,n=f.bL,D=Ar6,x=r.length,E=0,N=-1,c=0;c0?(z=f.C,f.C=[],z):null}return null};Km.prototype.isInputValid=function(){return this.W===null}; Km.prototype.GY=function(){return this.W}; Km.prototype.zn=function(){return!1}; Km.prototype.parse=function(r){function V(D){f.X=6;f.W="The stream is broken @"+f.G+"/"+e+". Error: "+D+". With input:\n";throw Error(f.W);} function I(){f.S=new W4({Tnk:!0,xv:!0})} function d(D){if(D)for(var x=0;x1)&&V("extra status: "+D);f.C=!0;var x={};x[2]=D[0];f.Y.push(x)}} for(var f=this,e=0;e0?(r=f.Y,f.Y=[],r):null};RN.prototype.Lx=function(){return this.G}; RN.prototype.getStatus=function(){return this.W}; RN.prototype.QH=function(r){r=r.target;try{if(r==this.G)a:{var V=g.Pu(this.G),I=this.G.X,d=this.G.getStatus(),a=g.ki(this.G);r=[];if(g.h_(this.G)instanceof Array){var f=g.h_(this.G);f.length>0&&f[0]instanceof Uint8Array&&(this.V=!0,r=f)}if(!(V<3||V==3&&!a&&r.length==0))if(d=d==200||d==206,V==4&&(I==8?tz(this,7):I==7?tz(this,8):d||tz(this,3)),this.X||(this.X=QuZ(this.G),this.X==null&&tz(this,5)),this.W>2)ya(this);else{if(r.length>this.S){var e=r.length;I=[];try{if(this.X.zn())for(var n=0;nthis.S){n=a.slice(this.S);this.S=a.length;try{var x=this.X.parse(n);x!=null&&this.Y&&this.Y(x)}catch(E){tz(this,5);ya(this);break a}}V==4?(a.length!= 0||this.V?tz(this,2):tz(this,4),ya(this)):tz(this,1)}}}catch(E){tz(this,6),ya(this)}};g.C=mlp.prototype;g.C.Nv=function(r,V){var I=this.X[r];I||(I=[],this.X[r]=I);I.push(V);return this}; g.C.addListener=function(r,V){this.Nv(r,V);return this}; g.C.removeListener=function(r,V){var I=this.X[r];I&&g.H9(I,V);(r=this.G[r])&&g.H9(r,V);return this}; g.C.once=function(r,V){var I=this.G[r];I||(I=[],this.G[r]=I);I.push(V);return this}; g.C.x2E=function(r){var V=this.X.data;V&&upv(r,V);(V=this.G.data)&&upv(r,V);this.G.data=[]}; g.C.QBs=function(){switch(this.S.getStatus()){case 1:lP(this,"readable");break;case 5:case 6:case 4:case 7:case 3:lP(this,"error");break;case 8:lP(this,"close");break;case 2:lP(this,"end")}};pYr.prototype.serverStreaming=function(r,V,I,d){var a=this,f=r.substring(0,r.length-d.name.length);return vIS(function(e){var n=e.Sw,D=e.getMetadata(),x=oIX(a,!1);D=koA(a,D,x,f+n.getName());var E=hEA(x,n.X,!0);e=n.G(e.FP);x.send(D,"POST",e);return E},this.Y).call(this,d.L(V,I))};VsX.prototype.create=function(r,V){return XhA(this.G,this.X+"/$rpc/google.internal.waa.v1.Waa/Create",r,V||{},W7p)};var IiS="://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(" "),d4j=/\bocr\b/;var fiX=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Coh=Object.assign({},{attributes:{},handleError:function(r){throw r;}},{cLk:!0, Mg0:!0,Bnc:nf$,iCs:jG9,dk:!1,ods:!1,vdQ:!0,arL:!1});var Z2=null,B4=!1,zqi=1,s0A=Symbol("SIGNAL"),Nv={version:0,u6M:0,Hb:!1,o1:void 0,Xn:void 0,b_:void 0,Uz:0,vO:void 0,cw:void 0,Xi:!1,ql:!1,kind:"unknown",xY:function(){return!1}, D7:function(){}, nP:function(){}, IrQ:function(){}};var sb=Symbol("UNSET"),cj=Symbol("COMPUTING"),zR=Symbol("ERRORED");Object.assign({},Nv,{value:sb,Hb:!0,error:null,Hl:Jz,kind:"computed",xY:function(r){return r.value===sb||r.value===cj}, D7:function(r){if(r.value===cj)throw Error("Detected cycle in computations.");var V=r.value;r.value=cj;var I=nig(r),d=!1;try{var a=r.TF();XK(null);d=V!==sb&&V!==zR&&a!==zR&&r.Hl(V,a)}catch(f){a=zR,r.error=f}finally{j0X(r,I)}d?r.value=V:(r.value=a,r.version++)}});var NSO=Object.assign({},Nv,{Hl:Jz,value:void 0,kind:"signal"});Object.assign({},Nv,{value:sb,Hb:!0,error:null,Hl:Jz,kind:"linkedSignal",xY:function(r){return r.value===sb||r.value===cj}, D7:function(r){if(r.value===cj)throw Error("Detected cycle in computations.");var V=r.value;r.value=cj;var I=nig(r);try{var d=r.source();var a=r.TF(d,V===sb||V===zR?void 0:{source:r.rZz,value:V});r.rZz=d}catch(f){a=zR,r.error=f}finally{j0X(r,I)}V!==sb&&a!==zR&&r.Hl(V,a)?r.value=V:(r.value=a,r.version++)}});Object.assign({},Nv,{ql:!0,Xi:!1,nP:function(r){r.schedule!==null&&r.schedule(r.SLH)}, sZL:!1,URs:function(){}});var TSi=Symbol("updater");g.T(UK,g.cu);UK.prototype.dispose=function(){window.removeEventListener("offline",this.S);window.removeEventListener("online",this.S);this.tV.hR(this.W);delete UK.instance}; UK.prototype.hZ=function(){return this.G}; UK.prototype.Td=function(){var r=this;this.W=this.tV.Dm(function(){var V;return g.L(function(I){if(I.X==1)return r.G?((V=window.navigator)==null?0:V.onLine)?I.qk(3):g.G(I,iP(r),3):g.G(I,iP(r),3);r.Td();g.Hr(I)})},3E4)};me.prototype.set=function(r,V){V=V===void 0?!0:V;0<=r&&r<52&&Number.isInteger(r)&&this.data[r]!==V&&(this.data[r]=V,this.G=-1)}; me.prototype.get=function(r){return!!this.data[r]};var pm;g.Dm(g.P4,g.X);g.C=g.P4.prototype;g.C.start=function(){this.stop();this.Y=!1;var r=ORi(this),V=Wxj(this);r&&!V&&this.X.mozRequestAnimationFrame?(this.G=g.es(this.X,"MozBeforePaint",this.S),this.X.mozRequestAnimationFrame(null),this.Y=!0):this.G=r&&V?r.call(this.X,this.S):this.X.setTimeout(UmX(this.S),20)}; g.C.stop=function(){if(this.isActive()){var r=ORi(this),V=Wxj(this);r&&!V&&this.X.mozRequestAnimationFrame?Di(this.G):r&&V?V.call(this.X,this.G):this.X.clearTimeout(this.G)}this.G=null}; g.C.isActive=function(){return this.G!=null}; g.C.kP=function(){this.Y&&this.G&&Di(this.G);this.G=null;this.C.call(this.W,g.Yf())}; g.C.eC=function(){this.stop();g.P4.m9.eC.call(this)};g.Dm(g.hz,g.X);g.C=g.hz.prototype;g.C.jB=0;g.C.eC=function(){g.hz.m9.eC.call(this);this.stop();delete this.G;delete this.X}; g.C.start=function(r){this.stop();this.jB=g.gS(this.S,r!==void 0?r:this.wU)}; g.C.stop=function(){this.isActive()&&g.vr.clearTimeout(this.jB);this.jB=0}; g.C.isActive=function(){return this.jB!=0}; g.C.qw=function(){this.jB=0;this.G&&this.G.call(this.X)};g.T(g.d3,g.X);g.C=g.d3.prototype;g.C.e2=function(r){this.S=arguments;this.MJ||this.X?this.G=!0:as(this)}; g.C.stop=function(){this.MJ&&(g.vr.clearTimeout(this.MJ),this.MJ=null,this.G=!1,this.S=null)}; g.C.pause=function(){this.X++}; g.C.resume=function(){this.X--;this.X||!this.G||this.MJ||(this.G=!1,as(this))}; g.C.eC=function(){g.X.prototype.eC.call(this);this.stop()};g.fL.prototype[Symbol.iterator]=function(){return this}; g.fL.prototype.next=function(){var r=this.G.next();return{value:r.done?void 0:this.X.call(void 0,r.value),done:r.done}};g.Dm(g.s8,g.cu);g.C=g.s8.prototype;g.C.isPlaying=function(){return this.G==1}; g.C.isPaused=function(){return this.G==-1}; g.C.Ez=function(){this.EX("begin")}; g.C.uj=function(){this.EX("end")}; g.C.onFinish=function(){this.EX("finish")}; g.C.onStop=function(){this.EX("stop")}; g.C.EX=function(r){this.dispatchEvent(r)};var GFG=zI(function(){var r=g.rX("DIV"),V=g.Pz?"-webkit":g7?"-moz":null,I="transition:opacity 1s linear;";V&&(I+=V+"-transition:opacity 1s linear;");V=Aog({style:I});if(r.nodeType===1&&/^(script|style)$/i.test(r.tagName))throw Error("");r.innerHTML=dl(V);return g.SX(r.firstChild,"transition")!=""});g.Dm(cm,g.s8);g.C=cm.prototype;g.C.play=function(){if(this.isPlaying())return!1;this.Ez();this.EX("play");this.startTime=g.Yf();this.G=1;if(GFG())return g.Be(this.X,this.C),this.S=g.gS(this.KEz,void 0,this),!0;this.jy(!1);return!1}; g.C.KEz=function(){g.Pe(this.X);Rqv(this.X,this.L);g.Be(this.X,this.Y);this.S=g.gS((0,g.aG)(this.jy,this,!1),this.W*1E3)}; g.C.stop=function(){this.isPlaying()&&this.jy(!0)}; g.C.jy=function(r){g.Be(this.X,"transition","");g.vr.clearTimeout(this.S);g.Be(this.X,this.Y);this.endTime=g.Yf();this.G=0;if(r)this.onStop();else this.onFinish();this.uj()}; g.C.eC=function(){this.stop();cm.m9.eC.call(this)}; g.C.pause=function(){};var y_A={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};ze("Element","attributes")||ze("Node","attributes");ze("Element","innerHTML")||ze("HTMLElement","innerHTML");ze("Node","nodeName");ze("Node","nodeType");ze("Node","parentNode");ze("Node","childNodes");ze("HTMLElement","style")||ze("Element","style");ze("HTMLStyleElement","sheet");var J_v=GOS("getPropertyValue"),ZRX=GOS("setProperty");ze("Element","namespaceURI")||ze("Node","namespaceURI");var Lxp={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var SnZ,kSc,gig,BSU,iRr;SnZ=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]");kSc=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.F7m=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.CL=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]");gig=/^http:\/\/.*/;g.l4c=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");BSU=/\s+/;iRr=/[\d\u06f0-\u06f9]/;Hm.prototype.oH=function(){return new w3(this.X())}; Hm.prototype[Symbol.iterator]=function(){return new bF(this.X())}; Hm.prototype.G=function(){return new bF(this.X())}; g.T(w3,g.Gq);w3.prototype.next=function(){return this.X.next()}; w3.prototype[Symbol.iterator]=function(){return new bF(this.X)}; w3.prototype.G=function(){return new bF(this.X)}; g.T(bF,Hm);bF.prototype.next=function(){return this.S.next()};Wm.prototype.clone=function(){return new Wm(this.G,this.L,this.S,this.W,this.Y,this.C,this.X,this.j)}; Wm.prototype.equals=function(r){return this.G==r.G&&this.L==r.L&&this.S==r.S&&this.W==r.W&&this.Y==r.Y&&this.C==r.C&&this.X==r.X&&this.j==r.j};KL.prototype.clone=function(){return new KL(this.start,this.end)}; KL.prototype.getLength=function(){return this.end-this.start};(function(){if(VLO){var r=/Windows NT ([0-9.]+)/;return(r=r.exec(g.RZ()))?r[1]:"0"}return Yh?(r=/1[0|1][_.][0-9_.]+/,(r=r.exec(g.RZ()))?r[0].replace(/_/g,"."):"10"):g.ds?(r=/Android\s+([^\);]+)(\)|;)/,(r=r.exec(g.RZ()))?r[1]:""):Ef_||NPf||sGo?(r=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(r=r.exec(g.RZ()))?r[1].replace(/_/g,"."):""):""})();var Q0A=function(){if(g.oJ)return Rs(/Firefox\/([0-9.]+)/);if(g.MA||g.kw||g.AK)return OGX;if(g.Zk){if($E()||KJ()){var r=Rs(/CriOS\/([0-9.]+)/);if(r)return r}return Rs(/Chrome\/([0-9.]+)/)}if(g.WQ&&!$E())return Rs(/Version\/([0-9.]+)/);if(rs||Vh){if(r=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.RZ()))return r[1]+"."+r[2]}else if(g.Gt)return(r=Rs(/Android\s+([0-9.]+)/))?r:Rs(/Version\/([0-9.]+)/);return""}();g.Dm(g.yj,g.X);g.C=g.yj.prototype;g.C.subscribe=function(r,V,I){var d=this.X[r];d||(d=this.X[r]=[]);var a=this.C;this.G[a]=r;this.G[a+1]=V;this.G[a+2]=I;this.C=a+3;d.push(a);return a}; g.C.unsubscribe=function(r,V,I){if(r=this.X[r]){var d=this.G;if(r=r.find(function(a){return d[a+1]==V&&d[a+2]==I}))return this.Dt(r)}return!1}; g.C.Dt=function(r){var V=this.G[r];if(V){var I=this.X[V];this.Y!=0?(this.S.push(r),this.G[r+1]=function(){}):(I&&g.H9(I,r),delete this.G[r],delete this.G[r+1],delete this.G[r+2])}return!!V}; g.C.publish=function(r,V){var I=this.X[r];if(I){var d=Array(arguments.length-1),a=arguments.length,f;for(f=1;f0&&this.Y==0)for(;I=this.S.pop();)this.Dt(I)}}return f!=0}return!1}; g.C.clear=function(r){if(r){var V=this.X[r];V&&(V.forEach(this.Dt,this),delete this.X[r])}else this.G.length=0,this.X={}}; g.C.eC=function(){g.yj.m9.eC.call(this);this.clear();this.S.length=0};g.AO.prototype.set=function(r,V){V===void 0?this.G.remove(r):this.G.set(r,g.Qg(V))}; g.AO.prototype.get=function(r){try{var V=this.G.get(r)}catch(I){return}if(V!==null)try{return JSON.parse(V)}catch(I){throw"Storage: Invalid value was encountered";}}; g.AO.prototype.remove=function(r){this.G.remove(r)};g.Dm(Ge,g.AO);Ge.prototype.set=function(r,V){Ge.m9.set.call(this,r,puZ(V))}; Ge.prototype.X=function(r){r=Ge.m9.get.call(this,r);if(r===void 0||r instanceof Object)return r;throw"Storage: Invalid value was encountered";}; Ge.prototype.get=function(r){if(r=this.X(r)){if(r=r.data,r===void 0)throw"Storage: Invalid value was encountered";}else r=void 0;return r};g.Dm(Fk,Ge);Fk.prototype.set=function(r,V,I){if(V=puZ(V)){if(I){if(I=I.length)return g.nz;var a=I.key(V++);if(r)return g.Fn(a);a=I.getItem(a);if(typeof a!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Fn(a)}; return d}; g.C.clear=function(){ZX(this);this.G.clear()}; g.C.key=function(r){ZX(this);return this.G.key(r)};g.Dm(Xk,JO);g.Dm(oiX,JO);g.Dm(Bm,LL);Bm.prototype.set=function(r,V){this.X.set(this.G+r,V)}; Bm.prototype.get=function(r){return this.X.get(this.G+r)}; Bm.prototype.remove=function(r){this.X.remove(this.G+r)}; Bm.prototype.oH=function(r){var V=this.X[Symbol.iterator](),I=this,d=new g.Gq;d.next=function(){var a=V.next();if(a.done)return a;for(a=a.value;a.slice(0,I.G.length)!=I.G;){a=V.next();if(a.done)return a;a=a.value}return g.Fn(r?a.slice(I.G.length):I.X.get(a))}; return d};SN.prototype.getValue=function(){return this.X}; SN.prototype.clone=function(){return new SN(this.G,this.X)};g.C=iF.prototype;g.C.aQ=function(r,V){var I=this.G;I.push(new SN(r,V));r=I.length-1;V=this.G;for(I=V[r];r>0;){var d=r-1>>1;if(V[d].G>I.G)V[r]=V[d],r=d;else break}V[r]=I}; g.C.remove=function(){var r=this.G,V=r.length,I=r[0];if(!(V<=0)){if(V==1)r.length=0;else{r[0]=r.pop();r=0;V=this.G;for(var d=V.length,a=V[r];r>1;){var f=r*2+1,e=r*2+2;f=ea.G)break;V[r]=V[f];r=f}V[r]=a}return I.getValue()}}; g.C.aH=function(){for(var r=this.G,V=[],I=r.length,d=0;d>>16&65535|0;for(var f;I!==0;){f=I>2E3?2E3:I;I-=f;do a=a+V[d++]|0,r=r+a|0;while(--f);a%=65521;r%=65521}return a|r<<16|0};for(var C2={},Mv,BoG=[],Cz=0;Cz<256;Cz++){Mv=Cz;for(var grG=0;grG<8;grG++)Mv=Mv&1?3988292384^Mv>>>1:Mv>>>1;BoG[Cz]=Mv}C2=function(r,V,I,d){I=d+I;for(r^=-1;d>>8^BoG[(r^V[d])&255];return r^-1};var Yt={};Yt={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 r8=[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],d8=[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],bbr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],xFX=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],xt=Array(576);uF(xt);var Ev=Array(60);uF(Ev);var Iq=Array(512);uF(Iq);var hO=Array(256);uF(hO);var V9=Array(29);uF(V9);var aq=Array(30);uF(aq);var TYh,HbA,wAp,Cai=!1;var Ov;Ov=[new b9(0,0,0,0,function(r,V){var I=65535;for(I>r.HG-5&&(I=r.HG-5);;){if(r.Va<=1){T$(r);if(r.Va===0&&V===0)return 1;if(r.Va===0)break}r.JI+=r.Va;r.Va=0;var d=r.dL+I;if(r.JI===0||r.JI>=d)if(r.Va=r.JI-d,r.JI=d,NX(r,!1),r.Ee.Vs===0)return 1;if(r.JI-r.dL>=r.hK-262&&(NX(r,!1),r.Ee.Vs===0))return 1}r.aQ=0;if(V===4)return NX(r,!0),r.Ee.Vs===0?3:4;r.JI>r.dL&&NX(r,!1);return 1}), new b9(4,4,8,4,Hy),new b9(4,5,16,8,Hy),new b9(4,6,32,32,Hy),new b9(4,4,16,16,w8),new b9(8,16,32,32,w8),new b9(8,16,128,128,w8),new b9(8,32,128,256,w8),new b9(32,128,258,1024,w8),new b9(32,258,258,4096,w8)];var McX={};McX=function(){this.input=null;this.DB=this.z0=this.OY=0;this.output=null;this.jG=this.Vs=this.Um=0;this.msg="";this.state=null;this.Jv=2;this.RL=0};var ObU=Object.prototype.toString; Wy.prototype.push=function(r,V){var I=this.Ee,d=this.options.chunkSize;if(this.ended)return!1;var a=V===~~V?V:V===!0?4:0;typeof r==="string"?I.input=r5X(r):ObU.call(r)==="[object ArrayBuffer]"?I.input=new Uint8Array(r):I.input=r;I.OY=0;I.z0=I.input.length;do{I.Vs===0&&(I.output=new mT.FO(d),I.Um=0,I.Vs=d);r=zPi(I,a);if(r!==1&&r!==0)return this.uj(r),this.ended=!0,!1;if(I.Vs===0||I.z0===0&&(a===4||a===2))if(this.options.to==="string"){var f=mT.F0(I.output,I.Um);V=f;f=f.length;if(f<65537&&(V.subarray&& Xtp||!V.subarray))V=String.fromCharCode.apply(null,mT.F0(V,f));else{for(var e="",n=0;n0||I.Vs===0)&&r!==1);if(a===4)return(I=this.Ee)&&I.state?(d=I.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?r=n2(I,-2):(I.state=null,r=d===113?n2(I,-3):0)):r=-2,this.uj(r),this.ended=!0,r===0;a===2&&(this.uj(0),I.Vs=0);return!0}; Wy.prototype.uj=function(r){r===0&&(this.result=this.options.to==="string"?this.chunks.join(""):mT.Aw(this.chunks));this.chunks=[];this.err=r;this.msg=this.Ee.msg};var K2="@@redux/INIT"+$t(),y5g="@@redux/REPLACE"+$t();var A5X=typeof Symbol==="function"&&Symbol.observable||"@@observable";var SzY=[0,q_f,-3,fz];g.T(y9,wZ);y9.prototype.getType=function(){return kV(this,11)};var w5A=function(){var r=[0,ofK,P$G,V8,q_f,V8,-1,fz,q_f,fz,-1,ofK,fz,P$G,Ip,SzY,V8,-1,fz];return function(V,I){var d={a5:!0};I&&Object.assign(d,I);V=myO(V,void 0,void 0,d);try{var a=new y9,f=a.kN;U5(r)(f,V);var e=a}finally{V.free()}return e}}();var LSU=-168670145;var m9X=new g.AL("adInfoDialogEndpoint");var MUp=new g.AL("adPingingEndpoint");var g8i=new g.AL("crossDeviceProgressCommand");var nt=new g.AL("actionCompanionAdRenderer");var EU=new g.AL("adActionInterstitialRenderer");var iDK=new g.AL("adDurationRemainingRenderer");var ip=new g.AL("adHoverTextButtonRenderer");var U9A=new g.AL("adInfoDialogRenderer");var Wc=new g.AL("adMessageRenderer");var Uo=new g.AL("adPreviewRenderer");var DF=new g.AL("adsEngagementPanelRenderer");var ETZ=new g.AL("dismissablePanelTextPortraitImageRenderer");var Dwi=new g.AL("adsEngagementPanelSectionListViewModel");var Ui_=new g.AL("flyoutCtaRenderer");var jy=new g.AL("imageCompanionAdRenderer");var Dk=new g.AL("instreamAdPlayerOverlayRenderer");var Mim=new g.AL("instreamSurveyAdBackgroundImageRenderer");var Sy=new g.AL("instreamSurveyAdPlayerOverlayRenderer");var wI=new g.AL("instreamSurveyAdRenderer"),gI=new g.AL("instreamSurveyAdSingleSelectQuestionRenderer"),B_=new g.AL("instreamSurveyAdMultiSelectQuestionRenderer"),TR=new g.AL("instreamSurveyAdAnswerRenderer"),QZe=new g.AL("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var TA=new g.AL("instreamVideoAdRenderer");var mim=new g.AL("textOverlayAdContentRenderer"),uym=new g.AL("enhancedTextOverlayAdContentRenderer"),ptf=new g.AL("imageOverlayAdContentRenderer");var xd=new g.AL("playerOverlayLayoutRenderer");var NP=new g.AL("videoInterstitialButtonedCenteredLayoutRenderer");var MIX=new g.AL("aboveFeedAdLayoutRenderer");var Cei=new g.AL("belowPlayerAdLayoutRenderer");var zRv=new g.AL("inPlayerAdLayoutRenderer");var W_=new g.AL("playerBytesAdLayoutRenderer");var XQ=new g.AL("playerBytesSequenceItemAdLayoutRenderer");var ZF=new g.AL("playerUnderlayAdLayoutRenderer");var H_=new g.AL("adIntroRenderer");var ME=new g.AL("playerBytesSequentialLayoutRenderer");var kUh=new g.AL("slidingTextPlayerOverlayRenderer");var bp=new g.AL("surveyTextInterstitialRenderer");var $s=new g.AL("videoAdTrackingRenderer");var vrK=new g.AL("simpleAdBadgeRenderer");var Nj=new g.AL("skipAdRenderer"),qze=new g.AL("skipButtonRenderer");var pt=new g.AL("adSlotRenderer");var Lt=new g.AL("squeezebackPlayerSidePanelRenderer");var P_o=new g.AL("timedPieCountdownRenderer");var QM=new g.AL("adAvatarViewModel");var mX=new g.AL("adBadgeViewModel");var uN=new g.AL("adButtonViewModel");var orP=new g.AL("adDetailsLineViewModel");var kF_=new g.AL("adDisclosureBannerViewModel");var hJG=new g.AL("adPodIndexViewModel");var rSe=new g.AL("imageBackgroundViewModel");var V1p=new g.AL("adGridCardCollectionViewModel");var IhK=new g.AL("adGridCardTextViewModel");var dym=new g.AL("adPreviewViewModel");var ahf=new g.AL("playerAdAvatarLockupCardButtonedViewModel");var fh9=new g.AL("skipAdButtonViewModel");var efo=new g.AL("skipAdViewModel");var YmG=new g.AL("timedPieCountdownViewModel");var nE_=new g.AL("visitAdvertiserLinkViewModel");var xs=new g.AL("bannerImageLayoutViewModel");var Eo=new g.AL("topBannerImageTextIconButtonedLayoutViewModel");var NE=new g.AL("adsEngagementPanelLayoutViewModel");var JQ=new g.AL("displayUnderlayTextGridCardsLayoutViewModel");g.yW=new g.AL("browseEndpoint");var jco=new g.AL("confirmDialogEndpoint");var Zei=new g.AL("commandContext");var EmX=new g.AL("rawColdConfigGroup");var x1i=new g.AL("rawHotConfigGroup");g.wU=new g.AL("commandExecutorCommand");g.T(Zbj,wZ);var eWi={RjC:0,jmz:1,AVQ:32,P7E:61,rLE:67,QuH:103,HCc:86,Brz:42,id8:60,I$E:62,V6s:73,x$s:76,krs:88,OC0:90,w9H:99,voH:98,e6k:100,D$s:102,bCk:41,mRs:69,FeL:70,GrM:71,sHz:2,TBL:27,ANDROID:3,ca8:54,v9c:14,yK7:91,MA0:55,By0:24,Aac:20,ij7:18,xfM:21,DfM:104,HM8:30,OMH:29,elH:28,f$s:101,rKs:34,laM:36,g90:38,IOS:5,JWk:15,fqE:92,t$Q:40,RE0:25,skE:17,TLE:19,ogc:64,CVs:66,Wcs:26,Lc8:22,ZeE:33,Kcz:68,jkz:35,zEQ:53,U38:37,hEM:39,bdH:7,m$M:57,FDQ:43,X1k:59,GL8:93,k0H:74,qOk:75,nos:85,SOc:65,p1k:80,JVE:8,rVE:10, hj8:58,t67:63,YOL:72,Qv0:23,nd0:11,Siz:13,KHM:12,w1M:16,M6C:56,yLM:31,tz8:77,v_M:84,goz:87,Bqs:89,Mm7:94,r2L:95};g.T(G$,wZ);G$.prototype.xH=function(){return oO(this,3)}; G$.prototype.QP=function(){return oO(this,5)}; G$.prototype.OL=function(r){return rZ(this,5,r)};g.T(FF,wZ);g.T(XAO,wZ);g.T(l9,wZ);g.C=l9.prototype;g.C.getDeviceId=function(){return oO(this,6)}; g.C.Sv=function(r){var V=te(this,9,S_,3,!0);Ho(V,r);return V[r]}; g.C.getPlayerType=function(){return kV(this,36)}; g.C.setHomeGroupInfo=function(r){return mv(this,XAO,81,r)}; g.C.clearLocationPlayabilityToken=function(){return bT(this,89)};g.T(L2,wZ);L2.prototype.getValue=function(){return oO(this,Bv(this,jxA,2))}; var jxA=[2,3,4,5,6];g.T(JL,wZ);JL.prototype.setTrackingParams=function(r){return bT(this,1,qzj(r,!1))};g.T(Zc,wZ);g.T(XF,wZ);XF.prototype.Sv=function(r){var V=te(this,5,i0,3,!0);Ho(V,r);return V[r]};g.T(By,wZ);By.prototype.getToken=function(){return vv(this,2)}; By.prototype.setToken=function(r){return rZ(this,2,r)};g.T(g8,wZ);g8.prototype.setSafetyMode=function(r){return Ir(this,5,r)};g.T(SP,wZ);SP.prototype.ix=function(r){return mv(this,l9,1,r)};var mE=new g.AL("thumbnailLandscapePortraitRenderer");g.Dyo=new g.AL("changeEngagementPanelVisibilityAction");var cBp=new g.AL("continuationCommand");g.xyG=new g.AL("openPopupAction");g.Hj=new g.AL("webCommandMetadata");var JQU=new g.AL("metadataBadgeRenderer");var s1A=new g.AL("signalServiceEndpoint");var ic=new g.AL("innertubeCommand");var IZS=new g.AL("loggingDirectives");var bmj={YdE:"EMBEDDED_PLAYER_MODE_UNKNOWN",qd7:"EMBEDDED_PLAYER_MODE_DEFAULT",Sds:"EMBEDDED_PLAYER_MODE_PFP",n_H:"EMBEDDED_PLAYER_MODE_PFL"};var nlU=new g.AL("channelThumbnailEndpoint");var Yjr=new g.AL("embeddedPlayerErrorMessageRenderer");var dHZ=new g.AL("embeddedPlayerOverlayVideoDetailsRenderer"),jwZ=new g.AL("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),DHg=new g.AL("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var FEr=new g.AL("embedsInfoPanelRenderer");var EE9=new g.AL("feedbackEndpoint");var Nle=new g.AL("callToActionButtonViewModel");var scc=new g.AL("interactionLoggingCommandMetadata");var C9X={cVs:"WEB_DISPLAY_MODE_UNKNOWN",Nrz:"WEB_DISPLAY_MODE_BROWSER",Eok:"WEB_DISPLAY_MODE_MINIMAL_UI",a$k:"WEB_DISPLAY_MODE_STANDALONE",uEE:"WEB_DISPLAY_MODE_FULLSCREEN"};g.T(i9,wZ);i9.prototype.getPlayerType=function(){return kV(this,7)}; i9.prototype.Ty=function(){return oO(this,19)}; i9.prototype.setVideoId=function(r){return rZ(this,19,r)};g.T(Uv,wZ);g.T(Q9,wZ);g.T(mk,wZ); var cSf=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var zfo=new g.AL("loggingContext");g.T(u9,wZ);g.T(qX,wZ);qX.prototype.Ty=function(){return vv(this,Bv(this,cG,1))}; qX.prototype.setVideoId=function(r){return Z8(this,1,cG,Po(r))}; qX.prototype.getPlaylistId=function(){return vv(this,Bv(this,cG,2))}; var cG=[1,2];g.T(BYp,wZ);var fk=new g.AL("changeKeyedMarkersVisibilityCommand");var M16=new g.AL("changeMarkersVisibilityCommand");var X_A=new g.AL("loadMarkersCommand");var CbG=new g.AL("suggestedActionDataViewModel");var iep=new g.AL("timelyActionViewModel");var SBv=new g.AL("timelyActionsOverlayViewModel");var qbX=new g.AL("productListItemRenderer");var Tlo=new g.AL("shoppingOverlayRenderer");var a1i=new g.AL("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var HJ9=new g.AL("adFeedbackEndpoint");var wzP=new g.AL("menuEndpoint");var aIr=new g.AL("phoneDialerEndpoint");var IIS=new g.AL("sendSmsEndpoint");var I1h=new g.AL("copyTextEndpoint");var bJc=new g.AL("shareEndpoint"),OJf=new g.AL("shareEntityEndpoint"),WQm=new g.AL("shareEntityServiceEndpoint"),$yK=new g.AL("webPlayerShareEntityServiceEndpoint");g.im=new g.AL("urlEndpoint");g.dt=new g.AL("watchEndpoint");var KQf=new g.AL("watchPlaylistEndpoint");g.RfG=new g.AL("offlineOrchestrationActionCommand");var tZO=new g.AL("compositeVideoOverlayRenderer");var t1p=new g.AL("miniplayerRenderer");var rJS=new g.AL("paidContentOverlayRenderer");var ySe=new g.AL("playerMutedAutoplayOverlayRenderer"),AS$=new g.AL("playerMutedAutoplayEndScreenRenderer");var v7i=new g.AL("unserializedPlayerResponse"),GPY=new g.AL("unserializedPlayerResponse");var FQ6=new g.AL("playlistEditEndpoint");var wa;g.Q4=new g.AL("buttonRenderer");wa=new g.AL("toggleButtonRenderer");var jyS=new g.AL("counterfactualRenderer");var lhP=new g.AL("resolveUrlCommandMetadata");var LQf=new g.AL("modifyChannelNotificationPreferenceEndpoint");var zng=new g.AL("pingingEndpoint");var JSP=new g.AL("unsubscribeEndpoint");g.AR=new g.AL("subscribeButtonRenderer");var ZJm=new g.AL("subscribeEndpoint");var RdS=new g.AL("buttonViewModel");var xwv=new g.AL("qrCodeRenderer");var n7A={PVE:"LIVING_ROOM_APP_MODE_UNSPECIFIED",x3Q:"LIVING_ROOM_APP_MODE_MAIN",ggM:"LIVING_ROOM_APP_MODE_KIDS",D3M:"LIVING_ROOM_APP_MODE_MUSIC",V$H:"LIVING_ROOM_APP_MODE_UNPLUGGED",iek:"LIVING_ROOM_APP_MODE_GAMING"};var yQU=new g.AL("autoplaySwitchButtonRenderer");var AI,J9S,Vyi,p0S;AI=new g.AL("decoratedPlayerBarRenderer");J9S=new g.AL("chapteredPlayerBarRenderer");Vyi=new g.AL("multiMarkersPlayerBarRenderer");p0S=new g.AL("chapterRenderer");g.gFU=new g.AL("markerRenderer");var k7A=new g.AL("decoratedPlayheadRenderer");var lFZ=new g.AL("desktopOverlayConfigRenderer");var NHX=new g.AL("engagementPanelSectionListRenderer");var GAA=new g.AL("gatedActionsOverlayViewModel");var QRO=new g.AL("heatMarkerRenderer");var UtO=new g.AL("heatmapRenderer");var Ztr=new g.AL("watchToWatchTransitionRenderer");var f1A=new g.AL("playlistPanelRenderer");var Xze=new g.AL("productUpsellSuggestedActionViewModel");var Blm=new g.AL("suggestedActionTimeRangeTrigger"),gE_=new g.AL("suggestedActionsRenderer"),SmY=new g.AL("suggestedActionRenderer");var mtX=new g.AL("timedMarkerDecorationRenderer");var W6g=new g.AL("cipher");var qwg=new g.AL("playerVars");var iJG=new g.AL("playerVars");var bB=g.vr.window,Uy6,Qc6,Py=(bB==null?void 0:(Uy6=bB.yt)==null?void 0:Uy6.config_)||(bB==null?void 0:(Qc6=bB.ytcfg)==null?void 0:Qc6.data_)||{};g.qp("yt.config_",Py);var rB=[];var qdX=/^[\w.]*$/,mFA={q:!0,search_query:!0},Qhi=String(a6);var sh=new function(){var r=window.document;this.G=window;this.X=r}; g.qp("yt.ads_.signals_.getAdSignalsString",function(r){return f5(zd(r))});g.Yf();var o0h="XMLHttpRequest"in g.vr?function(){return new XMLHttpRequest}:null;var myY="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.R(myY);var Vki={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"},Eyv="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.R(myY)),nyi=!1,f2Z=ta;g.T(Gd,xf);L5.prototype.then=function(r,V,I){return this.G?this.G.then(r,V,I):this.X===1&&r?(r=r.call(I,this.S))&&typeof r.then==="function"?r:ZJ(r):this.X===2&&V?(r=V.call(I,this.S))&&typeof r.then==="function"?r:Ja(r):this}; L5.prototype.getValue=function(){return this.S}; L5.prototype.t5=function(){return this.X==2}; L5.prototype.$goog_Thenable=!0;var X7=!1;var oY=rs||Vh;var HmA=/^([0-9\.]+):([0-9\.]+)$/;g.T(zc,xf);zc.prototype.name="BiscottiError";g.T(cJ,xf);cJ.prototype.name="BiscottiMissingError";var WeU={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},M1=null;var dmj=Np(["data-"]),l2Z={};var uwY=0,Co=g.Pz?"webkit":g7?"moz":g.MA?"ms":g.AK?"o":"",pze=g.Pr("ytDomDomGetNextId")||function(){return++uwY}; g.qp("ytDomDomGetNextId",pze);var X4r={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};WJ.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; WJ.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; WJ.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $m=g.vr.ytEventsEventsListeners||{};g.qp("ytEventsEventsListeners",$m);var SKX=g.vr.ytEventsEventsCounter||{count:0};g.qp("ytEventsEventsCounter",SKX);var mcA=zI(function(){var r=!1;try{var V=Object.defineProperty({},"passive",{get:function(){r=!0}}); window.addEventListener("test",null,V)}catch(I){}return r}),imA=zI(function(){var r=!1; try{var V=Object.defineProperty({},"capture",{get:function(){r=!0}}); window.addEventListener("test",null,V)}catch(I){}return r});var Ob;Ob=window;g.m=Ob.ytcsi&&Ob.ytcsi.now?Ob.ytcsi.now:Ob.performance&&Ob.performance.timing&&Ob.performance.now&&Ob.performance.timing.navigationStart?function(){return Ob.performance.timing.navigationStart+Ob.performance.now()}:function(){return(new Date).getTime()};g.Dm(AZ,g.X);AZ.prototype.V=function(r){r.G===void 0&&BWZ(r);var V=r.G;r.X===void 0&&BWZ(r);this.G=new g.Fw(V,r.X)}; AZ.prototype.by=function(){return this.G||new g.Fw}; AZ.prototype.QH=function(){if(this.G){var r=(0,g.m)();if(this.Y!=0){var V=this.C,I=this.G,d=V.x-I.x;V=V.y-I.y;d=Math.sqrt(d*d+V*V)/(r-this.Y);this.X[this.S]=Math.abs((d-this.W)/this.W)>.5?1:0;for(I=V=0;I<4;I++)V+=this.X[I]||0;V>=3&&this.L();this.W=d}this.Y=r;this.C=this.G;this.S=(this.S+1)%4}}; AZ.prototype.eC=function(){g.bd(this.j);g.Rx(this.kc)};g.T(Gc,g.X);Gc.prototype.K=function(r,V,I,d,a){I=g.J(g.I6((0,g.aG)(I,d||this.X_)));I={target:r,name:V,callback:I};var f;a&&mcA()&&(f={passive:!0});r.addEventListener(V,I.callback,f);this.j.push(I);return I}; Gc.prototype.pF=function(r){for(var V=0;V=B.LS)||b.G.version>=P||b.G.objectStoreNames.contains(l)||K.push(l)}D=K;if(D.length===0){w.qk(5);break}x=Object.keys(I.options.IZ); E=n.objectStoreNames();if(I.WI.options.version+1)throw c.close(),I.S=!1,FTg(I,z);return w.return(c);case 8:throw V(), N instanceof Error&&!g.WR("ytidb_async_stack_killswitch")&&(N.stack=N.stack+"\n"+e.substring(e.indexOf("\n")+1)),$w(N,I.name,"",(M=I.options.version)!=null?M:-1);}})} function V(){I.G===d&&(I.G=void 0)} var I=this;if(!this.S)throw FTg(this);if(this.G)return this.G;var d,a={blocking:function(f){f.close()}, closed:V,TY0:V,upgrade:this.options.upgrade};return this.G=d=r()};var q9=new pH("YtIdbMeta",{IZ:{databases:{LS:1}},upgrade:function(r,V){V(1)&&g.lO(r,"databases",{keyPath:"actualName"})}});var rQ,h1=new function(){}(new function(){});new g.cA;g.T(dQ,pH);dQ.prototype.X=function(r,V,I){I=I===void 0?{}:I;return(this.options.shared?iLX:S8p)(r,V,Object.assign({},I))}; dQ.prototype.delete=function(r){r=r===void 0?{}:r;return(this.options.shared?ukj:UAj)(this.name,r)};var I5f={},vSg=g.a1("ytGcfConfig",{IZ:(I5f.coldConfigStore={LS:1},I5f.hotConfigStore={LS:1},I5f),shared:!1,upgrade:function(r,V){V(1)&&(g.gC(g.lO(r,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.gC(g.lO(r,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.T(eF,g.X);eF.prototype.eC=function(){for(var r=g.H(this.X),V=r.next();!V.done;V=r.next()){var I=this.G;V=I.indexOf(V.value);V>=0&&I.splice(V,1)}this.X.length=0;g.X.prototype.eC.call(this)};Ec.prototype.OL=function(r){this.hotHashData=r;g.qp("yt.gcf.config.hotHashData",this.hotHashData||null)};var dQ9=typeof TextEncoder!=="undefined"?new TextEncoder:null,Z2i=dQ9?function(r){return dQ9.encode(r)}:function(r){r=g.Vn(r); for(var V=new Uint8Array(r.length),I=0;I=V?!1:!0}; g.C.yK=function(){var r=this;if(!gQ(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.MY.XK("QUEUED",this.PK).then(function(V){V&&!r.xj(V,r.yW)?r.tV.Dm(function(){return g.L(function(I){if(I.X==1)return V.id===void 0?I.qk(2):g.G(I,r.MY.z$(V.id,r.PK),2);r.yK();g.Hr(I)})}):r.sI.hZ()&&r.ud()})};var Uc;var cZA={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,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var f5$={},VJp=g.a1("ServiceWorkerLogsDatabase",{IZ:(f5$.SWHealthLog={LS:1},f5$),shared:!0,upgrade:function(r,V){V(1)&&g.gC(g.lO(r,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var uw={},Yhp=0;var pA;q0.prototype.requestComplete=function(r,V){V&&(this.X=!0);r=this.removeParams(r);this.G.get(r)||this.G.set(r,V)}; q0.prototype.isEndpointCFR=function(r){r=this.removeParams(r);return(r=this.G.get(r))?!1:r===!1&&this.X?!0:null}; q0.prototype.removeParams=function(r){return r.split("?")[0]}; q0.prototype.removeParams=q0.prototype.removeParams;q0.prototype.isEndpointCFR=q0.prototype.isEndpointCFR;q0.prototype.requestComplete=q0.prototype.requestComplete;q0.getInstance=PH;g.T(o1,g.cu);g.C=o1.prototype;g.C.hZ=function(){return this.G.hZ()}; g.C.HX=function(r){this.G.G=r}; g.C.Wq=function(){var r=window.navigator.onLine;return r===void 0?!0:r}; g.C.mB=function(){this.X=!0}; g.C.listen=function(r,V){return this.G.listen(r,V)}; g.C.eL=function(r){r=iP(this.G,r);r.then(function(V){g.WR("use_cfr_monitor")&&PH().requestComplete("generate_204",V)}); return r}; o1.prototype.sendNetworkCheckRequest=o1.prototype.eL;o1.prototype.listen=o1.prototype.listen;o1.prototype.enableErrorFlushing=o1.prototype.mB;o1.prototype.getWindowStatus=o1.prototype.Wq;o1.prototype.networkStatusHint=o1.prototype.HX;o1.prototype.isNetworkAvailable=o1.prototype.hZ;o1.getInstance=DLS;g.T(g.kA,g.cu);g.kA.prototype.hZ=function(){var r=g.Pr("yt.networkStatusManager.instance.isNetworkAvailable");return r?r.bind(this.X)():!0}; g.kA.prototype.HX=function(r){var V=g.Pr("yt.networkStatusManager.instance.networkStatusHint").bind(this.X);V&&V(r)}; g.kA.prototype.eL=function(r){var V=this,I;return g.L(function(d){I=g.Pr("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(V.X);return g.WR("skip_network_check_if_cfr")&&PH().isEndpointCFR("generate_204")?d.return(new Promise(function(a){var f;V.HX(((f=window.navigator)==null?void 0:f.onLine)||!0);a(V.hZ())})):I?d.return(I(r)):d.return(!0)})};var hB;g.T(rT,SF);rT.prototype.writeThenSend=function(r,V){V||(V={});V=IM(r,V);g.hZ()||(this.G=!1);SF.prototype.writeThenSend.call(this,r,V)}; rT.prototype.sendThenWrite=function(r,V,I){V||(V={});V=IM(r,V);g.hZ()||(this.G=!1);SF.prototype.sendThenWrite.call(this,r,V,I)}; rT.prototype.sendAndWrite=function(r,V){V||(V={});V=IM(r,V);g.hZ()||(this.G=!1);SF.prototype.sendAndWrite.call(this,r,V)}; rT.prototype.awaitInitialization=function(){return this.S.promise};var cag=g.vr.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.qp("ytNetworklessLoggingInitializationOptions",cag);g.dT.prototype.isReady=function(){!this.config_&&xXX()&&(this.config_=g.sc());return!!this.config_};var eiG,el,nV;eiG=g.vr.ytPubsubPubsubInstance||new g.yj;el=g.vr.ytPubsubPubsubSubscribedKeys||{};nV=g.vr.ytPubsubPubsubTopicToKeys||{};g.Yn=g.vr.ytPubsubPubsubIsSynchronous||{};g.yj.prototype.subscribe=g.yj.prototype.subscribe;g.yj.prototype.unsubscribeByKey=g.yj.prototype.Dt;g.yj.prototype.publish=g.yj.prototype.publish;g.yj.prototype.clear=g.yj.prototype.clear;g.qp("ytPubsubPubsubInstance",eiG);g.qp("ytPubsubPubsubTopicToKeys",nV);g.qp("ytPubsubPubsubIsSynchronous",g.Yn); g.qp("ytPubsubPubsubSubscribedKeys",el);var wRO={};g.T(bi,g.X);bi.prototype.append=function(r){if(!this.X)throw Error("This does not support the append operation");r=r.YN();this.YN().appendChild(r)}; g.T(OJ,bi);OJ.prototype.YN=function(){return this.G};g.T(WZ,g.X);WZ.prototype.onTouchStart=function(r){this.L=!0;this.X=r.touches.length;this.G.isActive()&&(this.G.stop(),this.W=!0);r=r.touches;this.C=Wgv(this,r)||r.length!=1;var V=r.item(0);this.C||!V?this.V=this.j=Infinity:(this.j=V.clientX,this.V=V.clientY);for(V=this.S.length=0;V=0)}if(V||r&&Math.pow(r.clientX-this.j,2)+Math.pow(r.clientY-this.V,2)>25)this.Y=!0}; WZ.prototype.onTouchEnd=function(r){var V=r.changedTouches;V&&this.L&&this.X==1&&!this.Y&&!this.W&&!this.C&&Wgv(this,V)&&(this.QH=r,this.G.start());this.X=r.touches.length;this.X===0&&(this.Y=this.L=!1,this.S.length=0);this.W=!1};var $n=Date.now().toString();var Av={};var Zj=Symbol("injectionDeps");Fb.prototype.toString=function(){return"InjectionToken("+this.name+")"}; R8X.prototype.resolve=function(r){return r instanceof li?Xb(this,r.key,[],!0):Xb(this,r,[])};var BZ;var Sl=window;var mf=g.WR("web_enable_lifecycle_monitoring")&&ii()!==0,Lgi=g.WR("web_enable_lifecycle_monitoring");Gdr.prototype.cancel=function(){for(var r=g.H(this.G),V=r.next();!V.done;V=r.next())V=V.value,V.jobId===void 0||V.Ug||this.scheduler.hR(V.jobId),V.Ug=!0;this.X.resolve()};g.C=ui.prototype;g.C.install=function(r){this.plugins.push(r);return this}; g.C.uninstall=function(){var r=this;g.ZU.apply(0,arguments).forEach(function(V){V=r.plugins.indexOf(V);V>-1&&r.plugins.splice(V,1)})}; g.C.transition=function(r,V){var I=this;mf&&yaZ(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(e){return e===I.state&&f.to===r}):f.from===I.state&&f.to===r}); if(d){this.X&&(FgS(this.X),this.X=void 0);Jah(this,r,V);this.state=r;mf&&UJ(this.state);d=d.action.bind(this);var a=this.plugins.filter(function(f){return f[r]}).map(function(f){return f[r]}); d(lJv(this,a),V)}else throw Error("no transition specified from "+this.state+" to "+r);}; g.C.hCL=function(r){var V=g.ZU.apply(1,arguments);g.aY();for(var I=g.H(r),d=I.next(),a={};!d.done;a={nO:void 0},d=I.next())a.nO=d.value,aXX(function(f){return function(){vZ(f.nO.name);PZ(function(){return f.nO.callback.apply(f.nO,g.R(V))}); qu(f.nO.name)}}(a))}; g.C.tr7=function(r){var V=g.ZU.apply(1,arguments),I,d,a,f;return g.L(function(e){e.X==1&&(g.aY(),I=g.H(r),d=I.next(),a={});if(e.X!=3){if(d.done)return e.qk(0);a.KU=d.value;a.NC=void 0;f=function(n){return function(){vZ(n.KU.name);var D=PZ(function(){return n.KU.callback.apply(n.KU,g.R(V))}); Cw(D)?n.NC=g.WR("web_lifecycle_error_handling_killswitch")?D.then(function(){qu(n.KU.name)}):D.then(function(){qu(n.KU.name)},function(x){Aav(x); qu(n.KU.name)}):qu(n.KU.name)}}(a); aXX(f);return a.NC?g.G(e,a.NC,3):e.qk(3)}a={KU:void 0,NC:void 0};d=I.next();return e.qk(2)})}; g.C.jQ=function(r){var V=g.ZU.apply(1,arguments),I=this,d=r.map(function(a){return{CD:function(){vZ(a.name);PZ(function(){return a.callback.apply(a,g.R(V))}); qu(a.name)}, priority:pV(I,a)}}); d.length&&(this.X=new Gdr(d))}; g.Yv.Object.defineProperties(ui.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var kn;g.T(oM,ui);oM.prototype.W=function(r,V){var I=this;this.G=g.IY(0,function(){I.currentState==="application_navigating"&&I.transition("none")},5E3); r(V==null?void 0:V.event)}; oM.prototype.C=function(r,V){this.G&&(g.Qa.hR(this.G),this.G=null);r(V==null?void 0:V.event)};var Oy=[];g.qp("yt.logging.transport.getScrapedGelPayloads",function(){return Oy});hv.prototype.storePayload=function(r,V){r=rj(r);this.store[r]?this.store[r].push(V):(this.X={},this.store[r]=[V]);this.G++;g.WR("more_accurate_gel_parser")&&(V=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(V));return r}; hv.prototype.smartExtractMatchingEntries=function(r){if(!r.keys.length)return[];for(var V=I9(this,r.keys.splice(0,1)[0]),I=[],d=0;d=0){d=!1;break a}}d=!0}d&&(V=Qo(V))&&this.EV(V)}}; g.C.V8=function(r){return r}; g.C.onTouchStart=function(r){this.bL.onTouchStart(r)}; g.C.onTouchMove=function(r){this.bL.onTouchMove(r)}; g.C.onTouchEnd=function(r){if(this.bL)this.bL.onTouchEnd(r)}; g.C.EV=function(r){this.layoutId?this.I7.executeCommand(r,this.layoutId):(r=new g.ox("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.BG(r))}; g.C.createServerVe=function(r,V){this.api.createServerVe(r,this);this.api.setTrackingParams(r,V)}; g.C.logVisibility=function(r,V){this.api.hasVe(r)&&this.api.logVisibility(r,V,this.interactionLoggingClientData)}; g.C.eC=function(){this.clear(null);this.pF(this.DM);for(var r=g.H(this.GQ),V=r.next();!V.done;V=r.next())this.pF(V.value);g.CB.prototype.eC.call(this)};g.T(XU,Ti); XU.prototype.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);this.G=V;if(V.text==null&&V.icon==null)g.gj(Error("ButtonRenderer did not have text or an icon set."));else{switch(V.style||null){case "STYLE_UNKNOWN":r="ytp-ad-button-link";break;default:r=null}r!=null&&g.jN(this.element,r);V.text!=null&&(r=g.wF(V.text),g.CD(r)||(this.element.setAttribute("aria-label",r),this.S=new g.CB({J:"span",Z:"ytp-ad-button-text",OE:r}),g.S(this,this.S),this.S.Xz(this.element)));V.accessibilityData&&V.accessibilityData.accessibilityData&& V.accessibilityData.accessibilityData.label&&!g.CD(V.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",V.accessibilityData.accessibilityData.label);V.icon!=null&&(V=Zu(V.icon,this.Y),V!=null&&(this.X=new g.CB({J:"span",Z:"ytp-ad-button-icon",B:[V]}),g.S(this,this.X)),this.C?an(this.element,this.X.element,0):this.X.Xz(this.element))}}; XU.prototype.clear=function(){this.hide()}; XU.prototype.onClick=function(r){Ti.prototype.onClick.call(this,r);r=g.H(tTi(this));for(var V=r.next();!V.done;V=r.next())V=V.value,this.layoutId?this.I7.executeCommand(V,this.layoutId):g.BG(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.T(BL,g.X);BL.prototype.eC=function(){this.X&&g.Rx(this.X);this.G.clear();gF=null;g.X.prototype.eC.call(this)}; BL.prototype.register=function(r,V){V&&this.G.set(r,V)}; var gF=null;g.T(UN,Ti); UN.prototype.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);r=V.hoverText||null;V=V.button&&g.U(V.button,g.Q4)||null;V==null?g.BG(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new XU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,void 0,void 0,void 0,void 0,this.S),g.S(this,this.button),this.button.init(x5("button"),V,this.macros),r&&this.button.element.setAttribute("aria-label",g.wF(r)),this.button.Xz(this.element),this.V&&!g.nL(this.button.element, "ytp-ad-clickable")&&g.jN(this.button.element,"ytp-ad-clickable"),this.S&&g.jN(this.button.element,"ytp-ad-hover-text-button--clean-player"),r&&(this.X=new g.CB({J:"div",Z:"ytp-ad-hover-text-container"}),this.C&&(V=new g.CB({J:"div",Z:"ytp-ad-hover-text-callout"}),V.Xz(this.X.element),g.S(this,V)),g.S(this,this.X),this.X.Xz(this.element),V=SA(r),an(this.X.element,V,0)),this.show())}; UN.prototype.hide=function(){this.button&&this.button.hide();this.X&&this.X.hide();Ti.prototype.hide.call(this)}; UN.prototype.show=function(){this.button&&this.button.show();Ti.prototype.show.call(this)};g.T(m3,Ti); m3.prototype.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);I=(r=V.thumbnail)&&Qe(r)||"";g.CD(I)?Math.random()<.01&&g.gj(Error("Found AdImage without valid image URL")):(this.G?g.Be(this.element,"backgroundImage","url("+I+")"):qy(this.element,{src:I}),qy(this.element,{alt:r&&r.accessibility&&r.accessibility.label||""}),V&&V.adRendererCommands&&V.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; m3.prototype.clear=function(){this.hide()};g.T(um,Ti);g.C=um.prototype;g.C.hide=function(){Ti.prototype.hide.call(this);this.S&&this.S.focus()}; g.C.show=function(){this.S=document.activeElement;Ti.prototype.show.call(this);this.Y.focus()}; g.C.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);this.X=V;V.dialogMessages||V.title!=null?V.confirmLabel==null?g.BG(Error("ConfirmDialogRenderer.confirmLabel was not set.")):V.cancelLabel==null?g.BG(Error("ConfirmDialogRenderer.cancelLabel was not set.")):F4S(this,V):g.BG(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.C.clear=function(){g.lQ(this.G);this.hide()}; g.C.w1=function(){this.hide()}; g.C.Iw=function(){var r=this.X.cancelEndpoint;r&&(this.layoutId?this.I7.executeCommand(r,this.layoutId):g.BG(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.C.mO=function(){var r=this.X.confirmNavigationEndpoint||this.X.confirmEndpoint;r&&(this.layoutId?this.I7.executeCommand(r,this.layoutId):g.BG(Error("Missing layoutId for confirm dialog.")));this.hide()};g.T(pB,Ti);g.C=pB.prototype; g.C.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);this.S=V;if(V.defaultText==null&&V.defaultIcon==null)g.BG(Error("ToggleButtonRenderer must have either text or icon set."));else if(V.defaultIcon==null&&V.toggledIcon!=null)g.BG(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(V.style){switch(V.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":r="ytp-ad-toggle-button-default-style";break;default:r=null}r!=null&&g.jN(this.Y,r)}r={};V.defaultText? (I=g.wF(V.defaultText),g.CD(I)||(r.buttonText=I,this.api.N().experiments.uL("a11y_h5_associate_survey_question")||this.G.setAttribute("aria-label",I),this.api.N().experiments.uL("fix_h5_toggle_button_a11y")&&this.X.setAttribute("aria-label",I))):g.oI(this.n8,!1);V.defaultTooltip&&(r.tooltipText=V.defaultTooltip,this.G.hasAttribute("aria-label")||this.X.setAttribute("aria-label",V.defaultTooltip));V.defaultIcon?(I=Zu(V.defaultIcon),this.updateValue("untoggledIconTemplateSpec",I),V.toggledIcon?(this.kc= !0,I=Zu(V.toggledIcon),this.updateValue("toggledIconTemplateSpec",I)):(g.oI(this.V,!0),g.oI(this.C,!1)),g.oI(this.G,!1)):g.oI(this.X,!1);g.ho(r)||this.update(r);V.isToggled&&(g.jN(this.Y,"ytp-ad-toggle-button-toggled"),this.toggleButton(V.isToggled));vL(this);this.K(this.element,"change",this.nh);this.show()}}; g.C.onClick=function(r){this.GQ.length>0&&(this.toggleButton(!this.isToggled()),this.nh());Ti.prototype.onClick.call(this,r)}; g.C.nh=function(){g.NA(this.Y,"ytp-ad-toggle-button-toggled",this.isToggled());for(var r=g.H(lOO(this,this.isToggled())),V=r.next();!V.done;V=r.next())V=V.value,this.layoutId?this.I7.executeCommand(V,this.layoutId):g.BG(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);vL(this)}; g.C.clear=function(){this.hide()}; g.C.toggleButton=function(r){g.NA(this.Y,"ytp-ad-toggle-button-toggled",r);this.G.checked=r;vL(this)}; g.C.isToggled=function(){return this.G.checked};g.T(qK,Gc);qK.prototype.C=function(r){if(Array.isArray(r)){r=g.H(r);for(var V=r.next();!V.done;V=r.next())V=V.value,V instanceof L4r&&this.Y(V)}};g.T(PL,Ti);g.C=PL.prototype;g.C.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);V.reasons?V.confirmLabel==null?g.BG(Error("AdFeedbackRenderer.confirmLabel was not set.")):(V.cancelLabel==null&&g.gj(Error("AdFeedbackRenderer.cancelLabel was not set.")),V.title==null&&g.gj(Error("AdFeedbackRenderer.title was not set.")),BCU(this,V)):g.BG(Error("AdFeedbackRenderer.reasons were not set."))}; g.C.clear=function(){tZ(this.C);tZ(this.V);this.Y.length=0;this.hide()}; g.C.hide=function(){this.G&&this.G.hide();this.X&&this.X.hide();Ti.prototype.hide.call(this);this.S&&this.S.focus()}; g.C.show=function(){this.G&&this.G.show();this.X&&this.X.show();this.S=document.activeElement;Ti.prototype.show.call(this);this.C.focus()}; g.C.Nb=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.C.XKc=function(){this.hide()}; oD.prototype.YN=function(){return this.G.element}; oD.prototype.getCommand=function(){return this.X}; oD.prototype.isChecked=function(){return this.S.checked};g.T(k5,um);k5.prototype.w1=function(r){um.prototype.w1.call(this,r);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; k5.prototype.Iw=function(r){um.prototype.Iw.call(this,r);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; k5.prototype.mO=function(r){um.prototype.mO.call(this,r);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.T(h2,Ti);g.C=h2.prototype; g.C.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);this.C=V;if(V.dialogMessage==null&&V.title==null)g.BG(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{V.confirmLabel==null&&g.gj(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(r=V.closeOverlayRenderer&&g.U(V.closeOverlayRenderer,g.Q4)||null)this.G=new XU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.S(this,this.G),this.G.init(x5("button"),r,this.macros),this.G.Xz(this.element);V.title&&(r=g.wF(V.title),this.updateValue("title",r));if(V.adReasons)for(r=V.adReasons,I=0;I=this.p8?(this.kc.hide(),this.Ws=!0,this.publish("i")):this.S&&this.S.isTemplated()&&(r=Math.max(0,Math.ceil((this.p8-r)/1E3)),r!=this.a7&&(Io(this.S,{TIME_REMAINING:String(r)}),this.a7=r)))}};g.T(jO,dU);g.C=jO.prototype; g.C.init=function(r,V,I){dU.prototype.init.call(this,r,V,I);if(V.image&&V.image.thumbnail)if(V.headline)if(V.description)if((r=V.actionButton&&g.U(V.actionButton,g.Q4))&&r.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null)if(V.image&&V.image.thumbnail){var a=V.image.thumbnail.thumbnails;a!=null&&a.length>0&&g.CD(g.Hz(a[0].url))&&(a[0].url=d.profilePicture)}else g.gj(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(x5("ad-image"),V.image,I);this.C.init(x5("ad-text"), V.headline,I);this.Y.init(x5("ad-text"),V.description,I);this.X.init(x5("button"),r,I);I=qc(this.X.element);v4(this.X.element,I+" This link opens in new tab");this.kc=r.navigationEndpoint;this.api.HW()||this.show();this.api.N().U("enable_larger_flyout_cta_on_desktop")&&(this.Fz("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Fz("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Fz("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Fz("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Fz("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Fz("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Fz("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.YF.bind(this));this.n8=V.startMs||0;ao(this)}else g.BG(Error("FlyoutCtaRenderer has no valid action button."));else g.BG(Error("FlyoutCtaRenderer has no description AdText."));else g.BG(Error("FlyoutCtaRenderer has no headline AdText."));else g.gj(Error("FlyoutCtaRenderer has no image."))}; g.C.onClick=function(r){dU.prototype.onClick.call(this,r);this.api.pauseVideo();!g.eG(this.X.element,r.target)&&this.kc&&(this.layoutId?this.I7.executeCommand(this.kc,this.layoutId):g.BG(Error("Missing layoutId for flyout cta.")))}; g.C.wB=function(){if(this.G){var r=this.G.getProgressState();(r&&r.current||this.p8)&&1E3*r.current>=this.n8&&(fW(this),g.xS(this.element,"ytp-flyout-cta-inactive"),this.X.element.removeAttribute("tabIndex"))}}; g.C.OX=function(){this.clear()}; g.C.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.YF.bind(this))}; g.C.show=function(){this.X&&this.X.show();dU.prototype.show.call(this)}; g.C.hide=function(){this.X&&this.X.hide();dU.prototype.hide.call(this)}; g.C.YF=function(r){r=="hidden"?this.show():this.hide()};g.T(Df,Ti);g.C=Df.prototype; g.C.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);this.G=V;if(this.G.rectangle)for(r=this.G.likeButton&&g.U(this.G.likeButton,wa),V=this.G.dislikeButton&&g.U(this.G.dislikeButton,wa),this.S.init(x5("toggle-button"),r,I),this.X.init(x5("toggle-button"),V,I),this.K(this.element,"change",this.ph),this.Y.show(100),this.show(),I=g.H(this.G&&this.G.impressionCommands||[]),r=I.next();!r.done;r=I.next())r=r.value,this.layoutId?this.I7.executeCommand(r,this.layoutId):g.BG(Error("Missing layoutId for instream user sentiment."))}; g.C.clear=function(){this.hide()}; g.C.hide=function(){this.S.hide();this.X.hide();Ti.prototype.hide.call(this)}; g.C.show=function(){this.S.show();this.X.show();Ti.prototype.show.call(this)}; g.C.ph=function(){Kxi(this.element,"ytp-ad-instream-user-sentiment-selected");this.G.postMessageAction&&this.api.Bs("onYtShowToast",this.G.postMessageAction);this.Y.hide()}; g.C.onClick=function(r){this.GQ.length>0&&this.ph();Ti.prototype.onClick.call(this,r)};g.T(x8,g.X);g.C=x8.prototype;g.C.eC=function(){this.reset();g.X.prototype.eC.call(this)}; g.C.reset=function(){g.lQ(this.Y);this.C=!1;this.G&&this.G.stop();this.W.stop();this.S&&(this.S=!1,this.L.play())}; g.C.start=function(){this.reset();this.Y.K(this.X,"mouseover",this.Rs,this);this.Y.K(this.X,"mouseout",this.Jr,this);this.QH&&(this.Y.K(this.X,"focusin",this.Rs,this),this.Y.K(this.X,"focusout",this.Jr,this));this.G?this.G.start():(this.C=this.S=!0,g.Be(this.X,{opacity:this.V}))}; g.C.Rs=function(){this.S&&(this.S=!1,this.L.play());this.W.stop();this.G&&this.G.stop()}; g.C.Jr=function(){this.C?this.W.start():this.G&&this.G.start()}; g.C.Ih=function(){this.S||(this.S=!0,this.j.play(),this.C=!0)};var owZ=[new E9("b.f_",!1,0),new E9("j.s_",!1,2),new E9("r.s_",!1,4),new E9("e.h_",!1,6),new E9("i.s_",!0,8),new E9("s.t_",!1,10),new E9("p.h_",!1,12),new E9("s.i_",!1,14),new E9("f.i_",!1,16),new E9("a.b_",!1,18),new E9("a.o_",!1),new E9("g.o_",!1,22),new E9("p.i_",!1,24),new E9("p.m_",!1),new E9("n.k_",!0,20),new E9("i.f_",!1),new E9("a.s_",!0),new E9("m.c_",!1),new E9("n.h_",!1,26),new E9("o.p_",!1)].reduce(function(r,V){r[V.X]=V;return r},{});g.T(HC,dU);g.C=HC.prototype; g.C.init=function(r,V,I){dU.prototype.init.call(this,r,V,I);this.kc=V;(this.n8=h6X(this))&&g.gj(Error("hasAdControlInClickCommands_ is true."));if(!V||g.ho(V))g.BG(Error("SkipButtonRenderer was not specified or empty."));else if(!V.message||g.ho(V.message))g.BG(Error("SkipButtonRenderer.message was not specified or empty."));else{r=this.C?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};V=Zu(r);V==null?g.BG(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+r.iconType+".")): (this.S=new g.CB({J:"button",Yc:[this.C?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],B:[{J:"span",Z:this.C?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",B:[V]}]}),g.S(this,this.S),this.S.Xz(this.Y.element),this.X=new VY(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,"ytp-ad-skip-button-text"),this.C&&this.X.element.classList.add("ytp-ad-skip-button-text-centered"),this.X.init(x5("ad-text"),this.kc.message,I),g.S(this,this.X),an(this.S.element,this.X.element, 0));var d=d===void 0?null:d;I=this.api.N();!(this.GQ.length>0)&&I.X&&(yi?0:"ontouchstart"in document.documentElement&&(p9X()||Wl()))&&(this.pF(this.DM),d&&this.pF(d),this.GQ=[this.K(this.element,"touchstart",this.onTouchStart,this),this.K(this.element,"touchmove",this.onTouchMove,this),this.K(this.element,"touchend",this.onTouchEnd,this)])}}; g.C.clear=function(){this.p8.reset();this.hide()}; g.C.hide=function(){this.Y.hide();this.X&&this.X.hide();fW(this);dU.prototype.hide.call(this)}; g.C.onClick=function(r){if(this.S!=null){if(r){var V=r||window.event;V.returnValue=!1;V.preventDefault&&V.preventDefault()}var I;if(qsi(r,{contentCpn:((I=this.api.getVideoData(1))==null?void 0:I.clientPlaybackNonce)||""})===0)this.api.Bs("onAbnormalityDetected");else if(dU.prototype.onClick.call(this,r),this.publish("j"),this.api.Bs("onAdSkip"),this.Ws||!this.n8)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.C.V8=function(r){if(!this.Ws)return this.n8&&zQ("SkipButton click commands not pruned while ALC exist"),r;var V,I=(V=g.U(r,g.wU))==null?void 0:V.commands;if(!I)return r;r=[];for(V=0;V=this.C&&rBA(this,!0)};g.T(O9,XU);O9.prototype.init=function(r,V,I){XU.prototype.init.call(this,r,V,I);r=!1;V.text!=null&&(r=g.wF(V.text),r=!g.CD(r));r?V.navigationEndpoint==null?g.gj(Error("No visit advertiser clickthrough provided in renderer,")):V.style!=="STYLE_UNKNOWN"?g.gj(Error("Button style was not a link-style type in renderer,")):this.show():g.gj(Error("No visit advertiser text was present in the renderer."))};g.T(WC,Ti); WC.prototype.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);r=V.text;g.CD(HL(r))?g.gj(Error("SimpleAdBadgeRenderer has invalid or empty text")):(r&&r.text&&(V=r.text,this.S&&!this.X&&(V=this.api.N(),V=r.text+" "+(V&&V.X?"\u2022":"\u00b7")),V={text:V,isTemplated:r.isTemplated},r.style&&(V.style=r.style),r.targetId&&(V.targetId=r.targetId),r=new VY(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),r.init(x5("simple-ad-badge"),V,I),r.Xz(this.element),g.S(this,r)),this.show())}; WC.prototype.clear=function(){this.hide()};g.T($8,EN);g.T(KW,g.NK);g.C=KW.prototype;g.C.ag=function(){return this.durationMs}; g.C.stop=function(){this.G&&this.wF.pF(this.G)}; g.C.Uk=function(r){this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:r.current};this.publish("h")}; g.C.getProgressState=function(){return this.X}; g.C.O1=function(r){g.TQ(r,2)&&this.publish("g")};g.T(Ro,g.NK);g.C=Ro.prototype;g.C.ag=function(){return this.durationMs}; g.C.start=function(){this.G||(this.G=!0,this.aL.start())}; g.C.stop=function(){this.G&&(this.G=!1,this.aL.stop())}; g.C.Uk=function(){this.pM+=100;var r=!1;this.pM>this.durationMs&&(this.pM=this.durationMs,this.aL.stop(),r=!0);this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.pM/1E3};this.publish("h");r&&this.publish("g")}; g.C.getProgressState=function(){return this.X};g.T(At,dU);g.C=At.prototype;g.C.init=function(r,V,I){dU.prototype.init.call(this,r,V,I);var d;if(V==null?0:(d=V.templatedCountdown)==null?0:d.templatedAdText){r=V.templatedCountdown.templatedAdText;if(!r.isTemplated){g.gj(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.X=new VY(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);this.X.init(x5("ad-text"),r,{});this.X.Xz(this.element);g.S(this,this.X)}this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){fW(this);dU.prototype.hide.call(this)}; g.C.OX=function(){this.hide()}; g.C.wB=function(){if(this.G!=null){var r=this.G.getProgressState();if(r!=null&&r.current!=null&&this.X){var V=this.G instanceof KW?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:r.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.G instanceof Ro?r.seekableEnd:this.api.getDuration(2,!1);r=r.current;var I,d,a=((I=this.api.getVideoData())==null?0:(d=I.uJ)==null?0:d.call(I))?Math.max(V-r,0):V-r;Io(this.X,{FORMATTED_AD_DURATION_REMAINING:String(g.tt(a)), TIME_REMAINING:String(Math.ceil(a))})}}}; g.C.show=function(){ao(this);dU.prototype.show.call(this)};g.T(GQ,VY);GQ.prototype.onClick=function(r){VY.prototype.onClick.call(this,r);this.api.onAdUxClicked(this.componentType)};g.T(lh,Ti);lh.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});if(r=V.content){g.Yx(this.element,r);var I,d;V=((I=V.interaction)==null?void 0:(d=I.accessibility)==null?void 0:d.label)||r;this.element.setAttribute("aria-label",V)}else g.BG(Error("AdSimpleAttributedString does not have text content"))}; lh.prototype.clear=function(){this.hide()}; lh.prototype.onClick=function(r){Ti.prototype.onClick.call(this,r)};g.T(LW,Ti); LW.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});(r=V.label)&&r.content&&!g.CD(r.content)?(this.adBadgeText.init(x5("ad-simple-attributed-string"),new FI(r)),(V=V.adPodIndex)&&V.content&&!g.CD(V.content)&&(this.G=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),this.G.Xz(this.element),g.S(this,this.G),this.G.element.classList.add("ytp-ad-badge__pod-index"),this.G.init(x5("ad-simple-attributed-string"),new FI(V))),this.element.classList.add(this.X?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.BG(Error("No label is returned in AdBadgeViewModel."))}; LW.prototype.show=function(){this.adBadgeText.show();var r;(r=this.G)==null||r.show();Ti.prototype.show.call(this)}; LW.prototype.hide=function(){this.adBadgeText.hide();var r;(r=this.G)==null||r.hide();Ti.prototype.hide.call(this)};g.T(Jt,Ti);Jt.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});(r=V.adPodIndex)&&r.content&&!g.CD(r.content)&&(this.G=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),this.G.Xz(this.element),g.S(this,this.G),this.G.init(x5("ad-simple-attributed-string"),new FI(r)),V.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; Jt.prototype.show=function(){var r;(r=this.G)==null||r.show();Ti.prototype.show.call(this)}; Jt.prototype.hide=function(){var r;(r=this.G)==null||r.hide();Ti.prototype.hide.call(this)};g.T(Zf,Ti); Zf.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});if(V!=null&&V.text){var I;if(((I=V.text)==null?0:I.content)&&!g.CD(V.text.content)){this.G=new g.CB({J:"div",Z:"ytp-ad-disclosure-banner__text",OE:V.text.content});g.S(this,this.G);this.G.Xz(this.element);var d,a;r=((d=V.interaction)==null?void 0:(a=d.accessibility)==null?void 0:a.label)||V.text.content;this.element.setAttribute("aria-label",r);var f;if((f=V.interaction)==null?0:f.onTap)this.X=new g.CB({J:"div",Z:"ytp-ad-disclosure-banner__chevron",B:[g.$5()]}), g.S(this,this.X),this.X.Xz(this.element);this.show()}}else g.BG(Error("No banner text found in AdDisclosureBanner."))}; Zf.prototype.clear=function(){this.hide()};XI.prototype.getLength=function(){return this.G-this.X};g.T(gU,g.CB);gU.prototype.Uk=function(){var r=this.X.getProgressState(),V=r.seekableEnd;this.api.getPresentingPlayerType()===2&&(V=this.S?this.S/1E3:r.seekableEnd);r=BC(new XI(r.seekableStart,V),r.current,0);this.progressBar.style.width=r*100+"%"}; gU.prototype.onStateChange=function(){g.g$(this.api.N())||(this.api.getPresentingPlayerType()===2?this.G===-1&&(this.show(),this.G=this.X.subscribe("h",this.Uk,this),this.Uk()):this.G!==-1&&(this.hide(),this.X.Dt(this.G),this.G=-1))};g.T(SO,Ti); SO.prototype.init=function(r,V,I,d){Ti.prototype.init.call(this,r,V,I);if(V.skipOrPreviewRenderer){if(r=g.U(V.skipOrPreviewRenderer,Nj))I=new bh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.X,this.V),I.Xz(this.TQ),I.init(x5("skip-button"),r,this.macros),g.S(this,I);if(r=g.U(V.skipOrPreviewRenderer,Nj))var a=r.skipOffsetMilliseconds}V.brandInteractionRenderer&&(r=V.brandInteractionRenderer.brandInteractionRenderer,I=new Df(this.api,this.layoutId,this.interactionLoggingClientData,this.I7), I.Xz(this.n8),I.init(x5("instream-user-sentiment"),r,this.macros),g.S(this,I));if(r=g.U(V,Ui_))if(r=g.U(r,Ui_))I=new jO(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.X,!!V.showWithoutLinkedMediaLayout),g.S(this,I),I.Xz(this.C),I.init(x5("flyout-cta"),r,this.macros);d=d&&d.videoAdDurationSeconds;V.adBadgeRenderer&&(I=V.adBadgeRenderer,r=g.U(I,mX),r!=null?(I=new LW(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,!1),g.S(this,I),I.Xz(this.G),I.init(x5("ad-badge"), r,this.macros),this.S=I.element):(r=I.simpleAdBadgeRenderer,r==null&&(r={text:{text:"Ad",isTemplated:!1}}),I=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,!0),g.S(this,I),I.Xz(this.G),I.init(x5("simple-ad-badge"),r,this.macros)));V.adPodIndex&&(r=g.U(V.adPodIndex,hJG),r!=null&&(I=new Jt(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,I),I.Xz(this.G),I.init(x5("ad-pod-index"),r)));V.adDurationRemaining&&!V.showWithoutLinkedMediaLayout&&(r=V.adDurationRemaining.adDurationRemainingRenderer, r==null&&(r={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new At(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.X,d,!1),g.S(this,d),d.Xz(this.G),d.init(x5("ad-duration-remaining"),r,this.macros));V.adInfoRenderer&&(d=g.U(V.adInfoRenderer,ip))&&(r=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.element,void 0,!1),g.S(this,r),this.S!==null?this.G.insertBefore(r.element,this.S.nextSibling):r.Xz(this.G), r.init(x5("ad-info-hover-text-button"),d,this.macros));V.visitAdvertiserRenderer&&(d=g.U(V.visitAdvertiserRenderer,g.Q4))&&(r=this.api.N(),r=g.FG(r)&&r.U("embeds_embc3ds_atb")&&r.U("embeds_embc3ds_atb_no_visinfo"),I=d0S(this)&&this.Y&&!r?this.Y:this.G)&&(r=new O9(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,r),r.Xz(I),r.init(x5("visit-advertiser"),d,this.macros),uP(r.element),d=qc(r.element),v4(r.element,d+" This link opens in new tab"));d=this.api.N();!d||g.XG(d)||d.U("embeds_emc3ds_no_opb")&& g.FG(d)||d.controlsType!="3"&&!d.disableOrganicUi||(a=new gU(this.api,this.X,a,!1),a.Xz(this.p8),g.S(this,a));V.adDisclosureBannerRenderer&&(V=g.U(V.adDisclosureBannerRenderer,kF_))&&(a=new Zf(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),a.Xz(this.kc),a.init(x5("ad-disclosure-banner"),V),g.S(this,a));this.api.N().U("enable_updated_html5_player_focus_style")&&g.jN(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; SO.prototype.clear=function(){this.hide()};mR.prototype.set=function(r,V,I){I=I!==void 0?Date.now()+I:void 0;this.G.set(r,V,I)}; mR.prototype.get=function(r){return this.G.get(r)}; mR.prototype.remove=function(r){this.G.remove(r)};var q5=null,PC=null,oo=null,j1h=null;g.qp("yt.www.ads.eventcache.getLastCompanionData",function(){return q5}); g.qp("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.qp("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return PC}); g.qp("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return oo}); g.qp("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return j1h});var x0X=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);k8.prototype.handleResponse=function(r,V){if(!V)throw Error("request needs to be passed into ConsistencyService");var I,d;V=((I=V.Iu.context)==null?void 0:(d=I.request)==null?void 0:d.consistencyTokenJars)||[];var a;(r=(a=r.responseContext)==null?void 0:a.consistencyTokenJar)&&this.replace(V,r)}; k8.prototype.replace=function(r,V){r=g.H(r);for(var I=r.next();!I.done;I=r.next())delete this.G[I.value.encryptedTokenJarContents];NQh(this,V)};var Exo=window.location.hostname.split(".").slice(-2).join("."),y8;r4.getInstance=function(){y8=g.Pr("yt.clientLocationService.instance");y8||(y8=new r4,g.qp("yt.clientLocationService.instance",y8));return y8}; g.C=r4.prototype; g.C.setLocationOnInnerTubeContext=function(r){r.client||(r.client={});if(this.G)r.client.locationInfo||(r.client.locationInfo={}),r.client.locationInfo.latitudeE7=Math.floor(this.G.coords.latitude*1E7),r.client.locationInfo.longitudeE7=Math.floor(this.G.coords.longitude*1E7),r.client.locationInfo.horizontalAccuracyMeters=Math.round(this.G.coords.accuracy),r.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.S||this.locationPlayabilityToken)r.client.locationPlayabilityToken=this.S|| this.locationPlayabilityToken}; g.C.handleResponse=function(r){var V;r=(V=r.responseContext)==null?void 0:V.locationPlayabilityToken;r!==void 0&&(this.locationPlayabilityToken=r,this.G=void 0,g.kt("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=ht(this))&&this.localStorage.set("yt-location-playability-token",r,15552E3):g.gB("YT_CL",JSON.stringify({loctok:r}),15552E3,Exo,!0))}; g.C.clearLocationPlayabilityToken=function(r){r==="TVHTML5"?(this.localStorage=ht(this))&&this.localStorage.remove("yt-location-playability-token"):g.id("YT_CL");this.S=void 0;this.X!==-1&&(clearTimeout(this.X),this.X=-1)}; g.C.getCurrentPositionFromGeolocation=function(){var r=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var V=!1,I=1E4;g.kt("INNERTUBE_CLIENT_NAME")==="MWEB"&&(V=!0,I=15E3);return new Promise(function(d,a){navigator.geolocation.getCurrentPosition(function(f){r.G=f;d(f)},function(f){a(f)},{enableHighAccuracy:V, maximumAge:0,timeout:I})})}; g.C.createUnpluggedLocationInfo=function(r){var V={};r=r.coords;if(r==null?0:r.latitude)V.latitudeE7=Math.floor(r.latitude*1E7);if(r==null?0:r.longitude)V.longitudeE7=Math.floor(r.longitude*1E7);if(r==null?0:r.accuracy)V.locationRadiusMeters=Math.round(r.accuracy);return V}; g.C.createLocationInfo=function(r){var V={};r=r.coords;if(r==null?0:r.latitude)V.latitudeE7=Math.floor(r.latitude*1E7);if(r==null?0:r.longitude)V.longitudeE7=Math.floor(r.longitude*1E7);return V};g.C=Cwi.prototype;g.C.contains=function(r){return Object.prototype.hasOwnProperty.call(this.G,r)}; g.C.get=function(r){if(this.contains(r))return this.G[r]}; g.C.set=function(r,V){this.G[r]=V}; g.C.yu=function(){return Object.keys(this.G)}; g.C.remove=function(r){delete this.G[r]};IE.prototype.getModuleId=function(r){return g.J(r.serviceId.getModuleId())}; IE.prototype.get=function(r){a:{var V=g.J(this.mappings.get(r.toString()));switch(V.type){case "mapping":r=V.value;break a;case "factory":V=V.value();this.mappings.set(r.toString(),{type:"mapping",value:V});r=V;break a;default:r=hr(V)}}return r}; IE.prototype.registerService=function(r,V){this.mappings.set(r.toString(),{type:"mapping",value:V});return r}; new IE;var An={},TQO=(An.WEB_UNPLUGGED="^unplugged/",An.WEB_UNPLUGGED_ONBOARDING="^unplugged/",An.WEB_UNPLUGGED_OPS="^unplugged/",An.WEB_UNPLUGGED_PUBLIC="^unplugged/",An.WEB_CREATOR="^creator/",An.WEB_KIDS="^kids/",An.WEB_EXPERIMENTS="^experiments/",An.WEB_MUSIC="^music/",An.WEB_REMIX="^music/",An.WEB_MUSIC_EMBEDDED_PLAYER="^music/",An.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",An);fq.prototype.W=function(r,V,I){V=V===void 0?{}:V;I=I===void 0?zT:I;var d={context:g.V2(r.clickTrackingParams,!1,this.Y)};var a=this.X(r);if(a){this.G(d,a,V);var f;V=g.aE(this.S());(a=(f=g.U(r.commandMetadata,g.Hj))==null?void 0:f.apiUrl)&&(V=a);f=czX(Uh(V));r=Object.assign({},{command:r},void 0);d={input:f,nT:Qr(f),Iu:d,config:r};d.config.Wo?d.config.Wo.identity=I:d.config.Wo={identity:I};return d}I=new g.ox("Error: Failed to create Request from Command.",r);g.BG(I)}; g.Yv.Object.defineProperties(fq.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.T(eK,fq);g.T(Cq,eK);Cq.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",nT:Qr("/getDatasyncIdsEndpoint","GET"),Iu:{}}}; Cq.prototype.S=function(){return[]}; Cq.prototype.X=function(){}; Cq.prototype.G=function(){};var NXe={},hVX=(NXe.GET_DATASYNC_IDS=d4(Cq),NXe);var GR={},snG=(GR["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",GR["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",GR["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",GR["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",GR["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",GR["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",GR["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", GR["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",GR["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",GR["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",GR["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",GR["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",GR["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",GR["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",GR["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", GR["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",GR["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",GR["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",GR["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",GR["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",GR["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",GR["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", GR["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",GR.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",GR["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",GR["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",GR["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",GR["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",GR["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",GR["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", GR["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",GR["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",GR["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",GR["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",GR["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",GR["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",GR["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",GR["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",GR["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",GR["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",GR.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",GR["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",GR["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",GR["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",GR["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",GR["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",GR["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",GR["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",GR["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",GR["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",GR["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",GR["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",GR["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",GR["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",GR["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",GR["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",GR["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",GR["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",GR["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",GR["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",GR["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",GR["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", GR["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",GR["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",GR["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",GR["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",GR["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",GR["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",GR["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",GR["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",GR["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", GR["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",GR["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",GR["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",GR["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",GR["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",GR["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",GR["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",GR["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", GR),F3={},Kng=(F3.auto_search="LATENCY_ACTION_AUTO_SEARCH",F3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",F3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",F3.app_startup="LATENCY_ACTION_APP_STARTUP",F3.browse="LATENCY_ACTION_BROWSE",F3.cast_splash="LATENCY_ACTION_CAST_SPLASH",F3.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",F3.channels="LATENCY_ACTION_CHANNELS",F3.chips="LATENCY_ACTION_CHIPS",F3.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",F3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", F3.editor="LATENCY_ACTION_EDITOR",F3.embed="LATENCY_ACTION_EMBED",F3.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",F3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",F3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",F3.explore="LATENCY_ACTION_EXPLORE",F3.favorites="LATENCY_ACTION_FAVORITES",F3.home="LATENCY_ACTION_HOME",F3.inboarding="LATENCY_ACTION_INBOARDING",F3.landing="LATENCY_ACTION_LANDING",F3.library="LATENCY_ACTION_LIBRARY",F3.live= "LATENCY_ACTION_LIVE",F3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",F3.management="LATENCY_ACTION_MANAGEMENT",F3.mini_app="LATENCY_ACTION_MINI_APP_PLAY",F3.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",F3.onboarding="LATENCY_ACTION_ONBOARDING",F3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",F3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",F3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",F3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", F3.prebuffer="LATENCY_ACTION_PREBUFFER",F3.prefetch="LATENCY_ACTION_PREFETCH",F3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",F3.profile_switcher="LATENCY_ACTION_LOGIN",F3.projects="LATENCY_ACTION_PROJECTS",F3.reel_watch="LATENCY_ACTION_REEL_WATCH",F3.results="LATENCY_ACTION_RESULTS",F3.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",F3.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",F3.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",F3.review="LATENCY_ACTION_REVIEW",F3.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",F3.search_ui="LATENCY_ACTION_SEARCH_UI",F3.search_suggest="LATENCY_ACTION_SUGGEST",F3.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",F3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",F3.seek="LATENCY_ACTION_PLAYER_SEEK",F3.settings="LATENCY_ACTION_SETTINGS",F3.store="LATENCY_ACTION_STORE",F3.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",F3.tenx="LATENCY_ACTION_TENX",F3.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",F3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", F3.watch="LATENCY_ACTION_WATCH",F3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",F3["watch,watch7"]="LATENCY_ACTION_WATCH",F3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",F3["watch,watch7ad"]="LATENCY_ACTION_WATCH",F3["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",F3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",F3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",F3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",F3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",F3.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",F3.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",F3.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",F3.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",F3);Object.assign(Kng,snG);g.T(RE,M0);var Scg=new Oc("aft-recorded",RE);var cge=g.vr.ytLoggingGelSequenceIdObj_||{};g.qp("ytLoggingGelSequenceIdObj_",cge);var As=g.vr.ytLoggingLatencyUsageStats_||{};g.qp("ytLoggingLatencyUsageStats_",As);ts.prototype.tick=function(r,V,I,d){GX(this,"tick_"+r+"_"+V)||g.N9("latencyActionTicked",{tickName:r,clientActionNonce:V},{timestamp:I,cttAuthInfo:d})}; ts.prototype.info=function(r,V,I){var d=Object.keys(r).join("");GX(this,"info_"+d+"_"+V)||(r=Object.assign({},r),r.clientActionNonce=V,g.N9("latencyActionInfo",r,{cttAuthInfo:I}))}; ts.prototype.jspbInfo=function(r,V,I){for(var d="",a=0;a=a.length?(V.append(a),r-=a.length):r?(V.append(new Uint8Array(a.buffer,a.byteOffset,r)),I.append(new Uint8Array(a.buffer,a.byteOffset+r,a.length-r)),r=0):I.append(a);return{f4:V,Xb:I}}; g.C.isFocused=function(r){return r>=this.JR&&r=64&&(this.C.set(r.subarray(0,64-this.X),this.X),V=64-this.X,this.X=0,iVv(this,this.C,0));for(;V+64<=I;V+=64)iVv(this,r,V);V=this.start&&(r=2&&I.ssdaiAdsConfig&&zQ("Unexpected ad placement renderers length",r.slot,null,{length:d.length});var a;((a=I.adSlots)==null?0:a.some(function(f){var e,n;return((e=g.U(f,pt))==null?void 0:(n=e.adSlotMetadata)==null?void 0:n.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||d.some(function(f){var e,n,D,x; return!!((e=f.renderer)==null?0:(n=e.linearAdSequenceRenderer)==null?0:(D=n.linearAds)==null?0:D.length)||!((x=f.renderer)==null||!x.instreamVideoAdRenderer)})||xKU(r)})}; Dr.prototype.L7=function(){PcA(this.G)};xj.prototype.eS=function(){var r=this;qyZ(this.X,function(){var V=jC(r.slot.clientMetadata,"metadata_type_ad_break_request_data");return V.cueProcessedMs?r.G.get().fetch({yD:V.getAdBreakUrl,ST:new g.ex(V.VQ,V.D3),cueProcessedMs:V.cueProcessedMs}):r.G.get().fetch({yD:V.getAdBreakUrl,ST:new g.ex(V.VQ,V.D3)})})}; xj.prototype.L7=function(){PcA(this.X)};EO.prototype.eS=function(){var r=this.slot.clientMetadata,V,I=(V=this.slot.fulfilledLayout)!=null?V:jC(r,"metadata_type_fulfilled_layout");tUj(this.callback,this.slot,I)}; EO.prototype.L7=function(){bj(this.callback,this.slot,new q("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")};sO.prototype.build=function(r,V){return V.fulfilledLayout||Nb(V,{X8:["metadata_type_fulfilled_layout"]})?new EO(r,V):this.S(r,V)};g.T(cs,sO); cs.prototype.S=function(r,V){if(Nb(V,{X8:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Dr(r,V,this.G,this.X,this.Ot,this.ws,this.sE,this.SC,this.Fh);if(Nb(V,{X8:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new xj(r,V,this.G,this.X,this.Ot,this.ws);throw new q("Unsupported slot with type: "+V.slotType+" and client metadata: "+D9(V.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.T(zj,sO);zj.prototype.S=function(r,V){throw new q("Unsupported slot with type: "+V.slotType+" and client metadata: "+D9(V.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.C=E5i.prototype;g.C.aT=function(){return this.slot}; g.C.ZM=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(r){if(r.layoutId!==this.layout.layoutId)this.callback.er(this.slot,r,new Yp("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 V=jC(r.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Pp(this.slot,r),ApZ(this.S, this.slot,V)):zQ("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,r)}}; g.C.rF=function(r,V){r.layoutId!==this.layout.layoutId?this.callback.er(this.slot,r,new Yp("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.nF(this.slot,r,V),sDh(this),c2i(this))};g.T(wk,g.NK);g.C=wk.prototype;g.C.aT=function(){return this.X.slot}; g.C.ZM=function(){return this.X.layout}; g.C.init=function(){this.S.get().addListener(this)}; g.C.release=function(){this.S.get().removeListener(this);this.dispose()}; g.C.uC=function(){}; g.C.IP=function(){}; g.C.j5=function(){}; g.C.Rq=function(){}; g.C.startRendering=function(r){var V=this;Hs(this.X,r,function(){return void V.o5()})}; g.C.o5=function(){this.S.get().o5(this.G)}; g.C.rF=function(r,V){var I=this;Hs(this.X,r,function(){var d=I.S.get();FaO(d,I.G,3);I.G=[];I.callback.nF(I.slot,r,V)})}; g.C.eC=function(){this.S.h0()||this.S.get().removeListener(this);g.NK.prototype.eC.call(this)}; g.Yv.Object.defineProperties(wk.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.X.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.X.layout}}});Aw.prototype.xG=function(r,V){V=V===void 0?!1:V;var I=(this.S.get(r)||[]).concat();if(V=V&&TFA(r)){var d=this.S.get(V);d&&I.push.apply(I,g.R(d))}lH(this,r,I);this.G.add(r);V&&this.G.add(V)}; Aw.prototype.vp=function(r,V){V=V===void 0?!1:V;if(!this.G.has(r)){var I=V&&TFA(r);I&&(V=!this.G.has(I));this.xG(r,V)}};g.T(bBX,EN);g.T(Bs,wk);g.C=Bs.prototype;g.C.qp=function(r,V){Kv("ads-engagement-panel-layout",r,Bc(this.C.get()),this.sE.get(),this.Y,this.W,this.aT(),this.ZM(),V)}; g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),g.U(this.ZM().renderingContent,NE),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(V,I,d,a,f){return new bBX(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(r,V){this.W===V.layoutId&&(this.Y===null?this.Y=this.sE.get().SI():zQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)};g.T(W3r,EN);g.T(gk,wk);g.C=gk.prototype;g.C.qp=function(r,V){Kv("banner-image",r,Bc(this.C.get()),this.sE.get(),this.Y,this.W,this.aT(),this.ZM(),V)}; g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),g.U(this.ZM().renderingContent,xs),this.callback,"metadata_type_banner_image_layout_view_model",function(V,I,d,a,f){return new W3r(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(r,V){this.W===V.layoutId&&(this.Y===null?this.Y=this.sE.get().SI():zQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)};g.T(Sx,EN);g.T(iH,wk);g.C=iH.prototype;g.C.qp=function(r,V){Kv("action-companion",r,Bc(this.C.get()),this.sE.get(),this.Y,this.W,this.aT(),this.ZM(),V)}; g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),g.U(this.ZM().renderingContent,nt),this.callback,"metadata_type_action_companion_ad_renderer",function(V,I,d,a,f){return new Sx(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(r,V){V.layoutId===this.layout.layoutId?this.Nk.vp("impression"):this.W===V.layoutId&&(this.Y===null?this.Y=this.sE.get().SI():zQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)};g.T(R_O,EN);g.T(UO,wk);g.C=UO.prototype;g.C.qp=function(r,V){Kv("image-companion",r,Bc(this.C.get()),this.sE.get(),this.Y,this.W,this.aT(),this.ZM(),V)}; g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),g.U(this.ZM().renderingContent,jy),this.callback,"metadata_type_image_companion_ad_renderer",function(V,I,d,a,f){return new R_O(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(r,V){V.layoutId===this.layout.layoutId?this.Nk.vp("impression"):this.W===V.layoutId&&(this.Y===null?this.Y=this.sE.get().SI():zQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)};g.T(y2S,EN);g.T(Q0,wk);g.C=Q0.prototype;g.C.qp=function(r,V){Kv("shopping-companion",r,Bc(this.C.get()),this.sE.get(),this.Y,this.W,this.aT(),this.ZM(),V)}; g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(V,I,d,a,f){return new y2S(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(r,V){V.layoutId===this.layout.layoutId?this.Nk.vp("impression"):this.W===V.layoutId&&(this.Y===null?this.Y=this.sE.get().SI():zQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)};g.T(uH,wk);g.C=uH.prototype;g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(V,I,d,a,f){return new Sx(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(){}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)}; g.C.qp=function(){};g.C=J2i.prototype;g.C.aT=function(){return this.slot}; g.C.ZM=function(){return this.layout}; g.C.init=function(){this.SC.get().addListener(this);this.SC.get().jJ.push(this);var r=jC(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=jC(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Rv(this.layout.Ou)&&IF(this.wH.get(),this.layout.layoutId,{LY:V,jV:r,listener:this})}; g.C.release=function(){this.SC.get().removeListener(this);$NZ(this.SC.get(),this);Rv(this.layout.Ou)&&dy(this.wH.get(),this.layout.layoutId)}; g.C.startRendering=function(r){this.callback.Pp(this.slot,r)}; g.C.rF=function(r,V){P1X(this.ws.get())&&!this.G&&(this.Nk.vp("abandon"),this.G=!0);this.callback.nF(this.slot,r,V)}; g.C.cZ=function(r){switch(r.id){case "part2viewed":this.Nk.vp("start");this.Nk.vp("impression");break;case "videoplaytime25":this.Nk.vp("first_quartile");break;case "videoplaytime50":this.Nk.vp("midpoint");break;case "videoplaytime75":this.Nk.vp("third_quartile");break;case "videoplaytime100":P1X(this.ws.get())?this.G||(this.Nk.vp("complete"),this.G=!0):this.Nk.vp("complete");XS(this.Nk)&&Jw(this.Nk,Infinity,!0);ozO(this.ws.get())&&m$(this.X,Infinity,!0);break;case "engagedview":XS(this.Nk)||this.Nk.vp("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:zQ("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.C.onVolumeChange=function(){}; g.C.Fl=function(){}; g.C.TR=function(){}; g.C.M7=function(){}; g.C.onFullscreenToggled=function(){}; g.C.Np=function(){}; g.C.Mf=function(){}; g.C.Fs=function(r){ozO(this.ws.get())&&m$(this.X,r*1E3,!1);XS(this.Nk)&&Jw(this.Nk,r*1E3,!1)}; g.C.AK=function(){}; g.C.m8=function(){this.Nk.vp("active_view_measurable")}; g.C.Fx=function(){this.Nk.vp("active_view_viewable")}; g.C.wV=function(){this.Nk.vp("active_view_fully_viewable_audible_half_duration")}; g.C.rV=function(){this.Nk.vp("audio_measurable")}; g.C.eE=function(){this.Nk.vp("audio_audible")};g.T(pv,wk);g.C=pv.prototype;g.C.init=function(){wk.prototype.init.call(this);var r=g.J(jC(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),V={adsClientData:this.layout.zz};this.G.push(new $8(r,this.layout.layoutId,jC(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),V,!0))}; g.C.Vp=function(){this.Y||this.SC.get().resumeVideo(1)}; g.C.startRendering=function(r){wk.prototype.startRendering.call(this,r);DV(this.SC.get(),"ad-showing");this.callback.Pp(this.slot,r);this.W.UL=this}; g.C.rF=function(r,V){wk.prototype.rF.call(this,r,V);xc(this.SC.get(),"ad-showing");qI(this.W,this)}; g.C.qp=function(r){switch(r){case "ad-info-icon-button":(this.Y=this.SC.get().JV(1))||this.SC.get().pauseVideo();break;case "visit-advertiser":this.SC.get().pauseVideo()}}; g.C.eC=function(){wk.prototype.eC.call(this)};g.T(vs,EN);g.T(qb,wk);g.C=qb.prototype;g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(V,I,d,a,f){return new vs(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(){}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)}; g.C.qp=function(){};g.T(Ps,EN);g.T(ov,wk);ov.prototype.init=function(){wk.prototype.init.call(this);this.G.push(new Ps(g.U(this.layout.renderingContent,JQ),this.layout.layoutId,{adsClientData:this.layout.zz}))}; ov.prototype.qp=function(){g_(this.Y.get(),this.W)&&Ws(this.sE.get(),3)}; ov.prototype.startRendering=function(r){wk.prototype.startRendering.call(this,r);this.callback.Pp(this.slot,r)}; ov.prototype.eC=function(){wk.prototype.eC.call(this)};g.T(kj,EN);g.T(hw,wk);hw.prototype.init=function(){wk.prototype.init.call(this);var r=g.U(this.layout.renderingContent,EU)||jC(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),V=bH(this.Nk);this.G.push(new kj(r,V,this.layout.layoutId,{adsClientData:this.layout.zz},!0,!0))}; hw.prototype.startRendering=function(r){wk.prototype.startRendering.call(this,r);this.callback.Pp(this.slot,r)}; hw.prototype.qp=function(r,V){if(V===this.layout.layoutId)switch(r){case "skip-button":var I;(r=(I=jC(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:I.current)&&r.Hg(this.aT(),this.layout)}}; hw.prototype.eC=function(){wk.prototype.eC.call(this)};Vf.prototype.build=function(r,V,I,d){if(rE(d,{X8:["metadata_type_ad_break_response_data"],il:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new E5i(r,I,d,this.X,this.S,this.G);throw new Yp("Unsupported layout with type: "+d.layoutType+" and client metadata: "+D9(d.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.T(BFg,EN);g.T(Ie,wk);g.C=Ie.prototype;g.C.qp=function(r,V){Kv("ads-engagement-panel",r,Bc(this.C.get()),this.sE.get(),this.Y,this.W,this.aT(),this.ZM(),V)}; g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),g.U(this.ZM().renderingContent,DF),this.callback,"metadata_type_ads_engagement_panel_renderer",function(V,I,d,a,f){return new BFg(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(r,V){V.layoutId===this.layout.layoutId?this.Nk.vp("impression"):this.W===V.layoutId&&(this.Y===null?this.Y=this.sE.get().SI():zQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)};g.T(dE,wk);g.C=dE.prototype;g.C.qp=function(r,V){Kv("top-banner-image-text-icon-buttoned",r,Bc(this.C.get()),this.sE.get(),this.Y,this.W,this.aT(),this.ZM(),V)}; g.C.startRendering=function(r){OO(this.Nk,this.aT(),this.ZM(),g.U(this.ZM().renderingContent,Eo),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(V,I,d,a,f){return new vs(V,I,d,a,f)},this.G); wk.prototype.startRendering.call(this,r)}; g.C.Pp=function(r,V){this.W===V.layoutId&&(this.Y===null?this.Y=this.sE.get().SI():zQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.eC=function(){HE(this.kX(),this);wk.prototype.eC.call(this)};iBA.prototype.build=function(r,V,I,d){if(rE(d,g5j())||g.U(d.renderingContent,DF)!==void 0)return new Ie(r,I,d,this.wh,this.sE,this.kX,this.wH,this.G);if(rE(d,K3i())||g.U(d.renderingContent,nt)!==void 0)return new iH(r,I,d,this.wh,this.sE,this.kX,this.wH,this.G);if(rE(d,tAX())||g.U(d.renderingContent,jy)!==void 0)return new UO(r,I,d,this.wh,this.sE,this.kX,this.wH,this.G);if(rE(d,A2A()))return new Q0(r,I,d,this.wh,this.sE,this.kX,this.wH,this.G);if(rE(d,L3X()))return new uH(r,I,d,this.wh,this.sE,this.kX, this.wH,this.G);if(rE(d,$Kv())||g.U(d.renderingContent,xs)!==void 0)return new gk(r,I,d,this.wh,this.sE,this.kX,this.wH,this.G);if(rE(d,SNX())||g.U(d.renderingContent,Eo)!==void 0)return new dE(r,I,d,this.wh,this.sE,this.kX,this.wH,this.G);if(rE(d,ZBZ()))return new qb(r,I,d,this.wh,this.sE,this.kX,this.wH,this.G);if(rE(d,OBO())||g.U(d.renderingContent,NE)!==void 0)return new Bs(r,I,d,this.wh,this.sE,this.kX,this.wH,this.G);throw new Yp("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ D9(d.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};UKX.prototype.build=function(r,V,I,d){if(rE(d,{X8:["metadata_type_linked_player_bytes_layout_id"],il:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new ov(r,I,d,this.wh,this.sE,this.G);throw new Yp("Unsupported layout with type: "+d.layoutType+" and client metadata: "+D9(d.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.C=QDA.prototype;g.C.aT=function(){return this.slot}; g.C.ZM=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(r){r.layoutId!==this.layout.layoutId?this.callback.er(this.slot,r,new Yp("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.Pp(this.slot,r),this.Nk.vp("impression"),kX(this.Ba,r,"normal"))}; g.C.rF=function(r,V){r.layoutId!==this.layout.layoutId?this.callback.er(this.slot,r,new Yp("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.nF(this.slot,r,V)};g.C=uUp.prototype;g.C.aT=function(){return this.slot}; g.C.ZM=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(r){r.layoutId!==this.layout.layoutId?this.callback.er(this.slot,r,new Yp("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.Pp(this.slot,r),this.Nk.vp("impression"),kX(this.Ba,r,"normal"))}; g.C.rF=function(r,V){r.layoutId!==this.layout.layoutId?this.callback.er(this.slot,r,new Yp("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.nF(this.slot,r,V)};ae.prototype.build=function(r,V,I,d){if(!this.ws.get().T.N().U("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(rE(d,mKO()))return new QDA(r,I,d,this.sE,this.Ba)}else if(rE(d,{X8:[],il:["LAYOUT_TYPE_FORECASTING"]}))return new uUp(r,I,d,this.sE,this.Ba);throw new Yp("Unsupported layout with type: "+d.layoutType+" and client metadata: "+D9(d.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.T(qNr,EN);g.T(fN,wk);g.C=fN.prototype;g.C.init=function(){wk.prototype.init.call(this);var r=g.U(this.layout.renderingContent,xd)||g.J(jC(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer")),V={adsClientData:this.layout.zz};this.G.push(new qNr(r,jC(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,V))}; g.C.Vp=function(){this.Y||this.SC.get().resumeVideo(2)}; g.C.startRendering=function(r){wk.prototype.startRendering.call(this,r);this.callback.Pp(this.slot,r);this.W.UL=this}; g.C.rF=function(r,V){wk.prototype.rF.call(this,r,V);qI(this.W,this)}; g.C.qp=function(r,V){if(!kp(this.ws.get(),"stop_handling_click_for_non_rendering_overlay_layout")||V===this.layout.layoutId){if(g_(this.C.get(),this.L))switch(r){case "visit-advertiser-link":Ws(this.sE.get(),3)}switch(r){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.SC.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.SC.get().JV(2))||this.SC.get().pauseVideo();break; case "visit-advertiser-link":this.SC.get().pauseVideo();g.J(Pmi(this)).BF();break;case "skip-button":if(r=Pmi(this),this.layout.renderingContent&&!aV(this.layout.clientMetadata,"metadata_type_dai")||!r.cn){var I;(r=(I=jC(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:I.current)&&r.Hg(this.aT(),this.layout)}else zQ("Requesting to skip by LegacyPlayerBytes when components enabled"),r.Yn(this.aT(),this.layout)}}}; g.C.eC=function(){wk.prototype.eC.call(this)};g.T(eu,wk);g.C=eu.prototype;g.C.init=function(){wk.prototype.init.call(this);var r=g.U(this.layout.renderingContent,Dk)||g.J(jC(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),V={adsClientData:this.layout.zz},I;(I=!!this.layout.renderingContent)||(I=!Yd(this).cn);this.G.push(new $8(r,this.layout.layoutId,jC(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),V,I))}; g.C.Vp=function(){this.Y||this.SC.get().resumeVideo(2)}; g.C.startRendering=function(r){wk.prototype.startRendering.call(this,r);this.callback.Pp(this.slot,r);this.W.UL=this}; g.C.rF=function(r,V){wk.prototype.rF.call(this,r,V);qI(this.W,this)}; g.C.qp=function(r,V){if(!this.ws||!kp(this.ws.get(),"stop_handling_click_for_non_rendering_overlay_layout")||V===this.layout.layoutId){if(g_(this.C.get(),this.L))switch(r){case "visit-advertiser":Ws(this.sE.get(),3)}switch(r){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.SC.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.SC.get().JV(2))||this.SC.get().pauseVideo();break; case "visit-advertiser":this.SC.get().pauseVideo();g.J(Yd(this)).BF();break;case "skip-button":if(r=Yd(this),this.layout.renderingContent&&!aV(this.layout.clientMetadata,"metadata_type_dai")||!r.cn){var I;(r=(I=jC(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:I.current)&&r.Hg(this.aT(),this.layout)}else zQ("Requesting to skip by LegacyPlayerBytes"),r.Yn(this.aT(),this.layout)}}}; g.C.eC=function(){wk.prototype.eC.call(this)};g.T(kii,EN);g.T(nN,wk);g.C=nN.prototype;g.C.startRendering=function(r){var V=this;Hs(this.X,r,function(){V.G.push(new kii(jC(V.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),r.layoutId,r.zz));V.o5();V.callback.Pp(V.slot,r);g.v(VM(V.SC.get(),1),512)&&V.callback.er(V.aT(),V.ZM(),new Yp("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.C.Mf=function(){}; g.C.Np=function(r){if(r.state.isError()){var V;this.callback.er(this.aT(),this.ZM(),new Yp("A player error happened during adNotify",{playerErrorCode:(V=r.state.DD)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.C.onFullscreenToggled=function(){}; g.C.TR=function(){}; g.C.M7=function(){}; g.C.Fl=function(){}; g.C.onVolumeChange=function(){}; g.C.cZ=function(){}; g.C.AK=function(){}; g.C.qp=function(){};g.T(rti,EN);g.T(ju,wk);ju.prototype.init=function(){wk.prototype.init.call(this);var r=g.U(this.layout.renderingContent,NP),V=bH(this.Nk);this.G.push(new rti(r,V,this.layout.layoutId,{adsClientData:this.layout.zz}))}; ju.prototype.startRendering=function(r){wk.prototype.startRendering.call(this,r);this.callback.Pp(this.slot,r)}; ju.prototype.qp=function(r,V){if(V===this.layout.layoutId)switch(r){case "skip-button":var I;(r=(I=jC(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:I.current)&&r.Hg(this.aT(),this.layout)}}; ju.prototype.eC=function(){wk.prototype.eC.call(this)};VOA.prototype.build=function(r,V,I,d){if(r=sU(r,I,d,this.wh,this.SC,this.sE,this.X,this.G,this.ws))return r;throw new Yp("Unsupported layout with type: "+d.layoutType+" and client metadata: "+D9(d.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.C=MP.prototype;g.C.aT=function(){return this.slot}; g.C.ZM=function(){return this.layout}; g.C.init=function(){this.SC.get().addListener(this);this.SC.get().jJ.push(this);if(this.layout.renderingContent){var r=this.C8.get();r=bf(r,1).KH/1E3}else r=jC(this.layout.clientMetadata,"metadata_type_video_length_seconds");var V=g.U(this.layout.renderingContent,$s),I=V?tw(V.pings):jC(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");V=V?Cmp(V.pings):jC(this.layout.clientMetadata,"metadata_type_active_view_identifier");Rv(this.layout.Ou)&&IF(this.wH.get(),this.layout.layoutId, {LY:I,jV:r,listener:this,jP:V})}; g.C.release=function(){this.SC.get().removeListener(this);$NZ(this.SC.get(),this);Rv(this.layout.Ou)&&dy(this.wH.get(),this.layout.layoutId)}; g.C.startRendering=function(r){this.callback.Pp(this.slot,r)}; g.C.rF=function(r,V){CN(this,"abandon");this.callback.nF(this.slot,r,V)}; g.C.cZ=function(r){switch(r.id){case "part2viewed":this.Nk.vp("start");this.Nk.vp("impression");break;case "videoplaytime25":this.Nk.vp("first_quartile");break;case "videoplaytime50":this.Nk.vp("midpoint");break;case "videoplaytime75":this.Nk.vp("third_quartile");break;case "videoplaytime100":CN(this,"complete");XS(this.Nk)&&Jw(this.Nk,Infinity,!0);break;case "engagedview":XS(this.Nk)||this.Nk.vp("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:zQ("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.C.onVolumeChange=function(){}; g.C.Fl=function(){}; g.C.TR=function(){}; g.C.M7=function(){}; g.C.onFullscreenToggled=function(){}; g.C.Np=function(r){this.G||(g.TQ(r,4)&&!g.TQ(r,2)?Lv(this.Nk,"pause"):CW(r,4)<0&&!(CW(r,2)<0)&&Lv(this.Nk,"resume"))}; g.C.Mf=function(){}; g.C.Fs=function(r){XS(this.Nk)&&Jw(this.Nk,r*1E3,!1)}; g.C.AK=function(){CN(this,"swipe")}; g.C.m8=function(){this.Nk.vp("active_view_measurable")}; g.C.Fx=function(){this.Nk.vp("active_view_viewable")}; g.C.wV=function(){this.Nk.vp("active_view_fully_viewable_audible_half_duration")}; g.C.rV=function(){this.Nk.vp("audio_measurable")}; g.C.eE=function(){this.Nk.vp("audio_audible")};Ifi.prototype.build=function(r,V,I,d){if(I.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.U(d.renderingContent,$s)!==void 0)return new MP(r,I,d,this.SC,this.sE,this.ws,this.wH,this.C8);V=["metadata_type_ad_placement_config"];for(var a=g.H(Gj()),f=a.next();!f.done;f=a.next())V.push(f.value);if(rE(d,{X8:V,il:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return I.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new MP(r,I,d,this.SC,this.sE,this.ws,this.wH,this.C8):new J2i(r,I,d,this.SC,this.sE, this.RT,this.ws,this.wH);throw new Yp("Unsupported layout with type: "+d.layoutType+" and client metadata: "+D9(d.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Wq={contentCpn:"",uf:new Map};E8S.prototype.Ps=function(r,V){var I={};V=Object.assign({},V,(I.cc=this.w$.E6(),I));this.w$.T.Hs(r,V)};var l5p,X3; l5p={E9Q:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",bMs:"AUTHENTICATION_MALFORMED",m77:"AUTHENTICATION_MISSING",G0H:"BAD_REQUEST",JKH:"CAST_SESSION_DEVICE_MISMATCHED",tiM:"CAST_SESSION_VIDEO_MISMATCHED",hl0:"CAST_TOKEN_EXPIRED",Rl0:"CAST_TOKEN_FAILED",svc:"CAST_TOKEN_MALFORMED",TUC:"CGI_PARAMS_MALFORMED",oQc:"CGI_PARAMS_MISSING",Pu7:"DEVICE_FALLBACK",RsL:"GENERIC_WITH_LINK_AND_CPN",sO0:"ERROR_HDCP",Tqs:"LICENSE",ChM:"VIDEO_UNAVAILABLE",Zl0:"FORMAT_UNAVAILABLE",Nq7:"GEO_FAILURE", QkQ:"HTML5_AUDIO_RENDERER_ERROR",kKL:"GENERIC_WITHOUT_LINK",Oek:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",eEk:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",rWM:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",wLC:"HTML5_SPS_UMP_STATUS_REJECTED",pLH:"INVALID_DRM_MESSAGE",kwE:"PURCHASE_NOT_FOUND",OSE:"PURCHASE_REFUNDED",GwC:"RENTAL_EXPIRED",pGM:"RETRYABLE_ERROR",CTE:"SERVER_ERROR",Ip7:"SIGNATURE_EXPIRED",MUk:"STOPPED_BY_ANOTHER_PLAYBACK",Bak:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",AO0:"STREAMING_NOT_ALLOWED", iS0:"STREAM_LICENSE_NOT_FOUND",HdL:"TOO_MANY_REQUESTS",Qm0:"TOO_MANY_REQUESTS_WITH_LINK",kL7:"TOO_MANY_STREAMS_PER_ENTITLEMENT",OdM:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",C70:"VIDEO_FORBIDDEN",WD7:"VIDEO_NOT_FOUND",nQE:"BROWSER_OR_EXTENSION_ERROR"};X3={}; g.BD=(X3.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.",X3.DEVICE_FALLBACK="Sorry, this video is not available on this device.",X3.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",X3.LICENSE="Sorry, there was an error licensing this video.",X3.VIDEO_UNAVAILABLE= "Video unavailable",X3.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",X3.GEO_FAILURE="This video isn't available in your country.",X3.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",X3.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",X3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",X3.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", X3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",X3.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",X3.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",X3.PURCHASE_NOT_FOUND="This video requires payment.",X3.PURCHASE_REFUNDED="This video's purchase has been refunded.",X3.RENTAL_EXPIRED="This video's rental has expired.",X3.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",X3.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",X3.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",X3.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",X3.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",X3.SERVER_ERROR="There was an internal server error. Please try again later.",X3.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",X3.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",X3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",X3.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",X3.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",X3.TOO_MANY_REQUESTS="Please log in to watch this video.", X3.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",X3.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",X3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",X3.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",X3.VIDEO_FORBIDDEN="Access to this video is forbidden.",X3.VIDEO_NOT_FOUND="This video can not be found.",X3.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",X3);var LGm;var Jg_=g.RZ(),ZyK=Jg_.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!ZyK||ZyK.length<2)LGm=void 0;else{var Xl_=Jg_.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);LGm=Xl_&&Xl_.length===6?Number(Xl_[5].replace("_",".")):0}var QX=LGm,lD=QX>=0;g.T(g.Su,Gc);g.Su.prototype.K=function(r,V,I,d,a){return Gc.prototype.K.call(this,r,V,I,d,a)};var Bj={},$$=(Bj.FAIRPLAY="fairplay",Bj.PLAYREADY="playready",Bj.WIDEVINE="widevine",Bj.CLEARKEY=null,Bj.FLASHACCESS=null,Bj.UNKNOWN=null,Bj.WIDEVINE_CLASSIC=null,Bj);iS.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Sm={},Fq=(Sm.WIDTH={name:"width",video:!0,valid:640,FE:99999},Sm.HEIGHT={name:"height",video:!0,valid:360,FE:99999},Sm.FRAMERATE={name:"framerate",video:!0,valid:30,FE:9999},Sm.BITRATE={name:"bitrate",video:!0,valid:3E5,FE:2E9},Sm.EOTF={name:"eotf",video:!0,valid:"bt709",FE:"catavision"},Sm.CHANNELS={name:"channels",video:!1,valid:2,FE:99},Sm.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",FE:"invalidformat"},Sm.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", FE:"nope"},Sm.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",FE:"av99.0.05M.08"},Sm.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",FE:"invalid"},Sm);var BXG=["h","H"],gxG=["9","("],SSe=["9h","(h"],iym=["8","*"],UQm=["a","A"],Qne=["o","O"],mQK=["m","M"],utf=["mac3","MAC3"],plm=["meac3","MEAC3"],iB={},HPS=(iB.h=BXG,iB.H=BXG,iB["9"]=gxG,iB["("]=gxG,iB["9h"]=SSe,iB["(h"]=SSe,iB["8"]=iym,iB["*"]=iym,iB.a=UQm,iB.A=UQm,iB.o=Qne,iB.O=Qne,iB.m=mQK,iB.M=mQK,iB.mac3=utf,iB.MAC3=utf,iB.meac3=plm,iB.MEAC3=plm,iB),vx$=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),DPU=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var h={},vq=(h["0"]="f",h["160"]="h",h["133"]="h",h["134"]="h",h["135"]="h",h["136"]="h",h["137"]="h",h["264"]="h",h["266"]="h",h["138"]="h",h["298"]="h",h["299"]="h",h["304"]="h",h["305"]="h",h["214"]="h",h["216"]="h",h["374"]="h",h["375"]="h",h["140"]="a",h["141"]="a",h["327"]="sa",h["258"]="m",h["380"]="mac3",h["328"]="meac3",h["161"]="H",h["142"]="H",h["143"]="H",h["144"]="H",h["222"]="H",h["223"]="H",h["145"]="H",h["224"]="H",h["225"]="H",h["146"]="H",h["226"]="H",h["227"]="H",h["147"]="H",h["384"]= "H",h["376"]="H",h["385"]="H",h["377"]="H",h["149"]="A",h["261"]="M",h["381"]="MAC3",h["329"]="MEAC3",h["598"]="9",h["278"]="9",h["242"]="9",h["243"]="9",h["244"]="9",h["775"]="9",h["776"]="9",h["777"]="9",h["778"]="9",h["779"]="9",h["780"]="9",h["781"]="9",h["782"]="9",h["783"]="9",h["247"]="9",h["248"]="9",h["353"]="9",h["355"]="9",h["356"]="9",h["271"]="9",h["577"]="9",h["313"]="9",h["579"]="9",h["272"]="9",h["302"]="9",h["303"]="9",h["407"]="9",h["408"]="9",h["308"]="9",h["315"]="9",h["330"]= "9h",h["331"]="9h",h["332"]="9h",h["333"]="9h",h["334"]="9h",h["335"]="9h",h["336"]="9h",h["337"]="9h",h["338"]="so",h["600"]="o",h["250"]="o",h["251"]="o",h["774"]="o",h["194"]="*",h["195"]="*",h["220"]="*",h["221"]="*",h["196"]="*",h["197"]="*",h["279"]="(",h["280"]="(",h["317"]="(",h["318"]="(",h["273"]="(",h["274"]="(",h["357"]="(",h["358"]="(",h["275"]="(",h["359"]="(",h["360"]="(",h["276"]="(",h["583"]="(",h["584"]="(",h["314"]="(",h["585"]="(",h["561"]="(",h["277"]="(",h["361"]="(h",h["362"]= "(h",h["363"]="(h",h["364"]="(h",h["365"]="(h",h["366"]="(h",h["591"]="(h",h["592"]="(h",h["367"]="(h",h["586"]="(h",h["587"]="(h",h["368"]="(h",h["588"]="(h",h["562"]="(h",h["409"]="(",h["410"]="(",h["411"]="(",h["412"]="(",h["557"]="(",h["558"]="(",h["394"]="1",h["395"]="1",h["396"]="1",h["397"]="1",h["398"]="1",h["399"]="1",h["720"]="1",h["721"]="1",h["400"]="1",h["401"]="1",h["571"]="1",h["402"]="1",h["694"]="1h",h["695"]="1h",h["696"]="1h",h["697"]="1h",h["698"]="1h",h["699"]="1h",h["700"]="1h", h["701"]="1h",h["702"]="1h",h["703"]="1h",h["386"]="3",h["387"]="w",h["406"]="6",h["787"]="1",h["788"]="1",h["548"]="1e",h["549"]="1e",h["550"]="1e",h["551"]="1e",h["809"]="1e",h["810"]="1e",h["552"]="1e",h["811"]="1e",h["812"]="1e",h["553"]="1e",h["813"]="1e",h["814"]="1e",h["554"]="1e",h["815"]="1e",h["816"]="1e",h["555"]="1e",h["817"]="1e",h["818"]="1e",h["572"]="1e",h["556"]="1e",h["645"]="(",h["646"]="(",h["647"]="(",h["648"]="(",h["649"]="(",h["650"]="(",h["651"]="(",h["652"]="(",h["653"]="(", h["654"]="(",h["655"]="(",h["656"]="(",h["657"]="(",h["658"]="(",h["659"]="(",h["660"]="(",h["661"]="(",h["662"]="(",h["663"]="(",h["664"]="(",h["665"]="(",h["666"]="(",h["667"]="(",h["668"]="(",h["669"]="(",h["670"]="(",h["671"]="(",h["672"]="(",h["673"]="(",h["674"]="(h",h["675"]="(h",h["676"]="(h",h["677"]="(h",h["678"]="(h",h["679"]="(h",h["680"]="(h",h["681"]="(h",h["682"]="(h",h["683"]="(h",h["684"]="(h",h["685"]="(h",h["686"]="(h",h["687"]="(h",h["688"]="A",h["689"]="A",h["690"]="A",h["691"]= "MEAC3",h["773"]="i",h["806"]="I",h["805"]="I",h["829"]="9",h["830"]="9",h["831"]="9",h["832"]="9",h["833"]="9",h["834"]="9",h["835"]="9",h["836"]="9",h["837"]="9",h["838"]="9",h["839"]="9",h["840"]="9",h["841"]="(",h["842"]="(",h["843"]="(",h["844"]="(",h["845"]="(",h["846"]="(",h["847"]="(",h["848"]="(",h["849"]="(",h["850"]="(",h["851"]="(",h["852"]="(",h["865"]="9",h["866"]="9",h["867"]="9",h["868"]="9",h["869"]="9",h["870"]="9",h["871"]="9",h["872"]="9",h["873"]="9",h["874"]="9",h["875"]="9", h["876"]="9",h["877"]="(",h["878"]="(",h["879"]="(",h["880"]="(",h["881"]="(",h["882"]="(",h["883"]="(",h["884"]="(",h["885"]="(",h["886"]="(",h["887"]="(",h["888"]="(",h);var Ub={},VrA=(Ub.STEREO_LAYOUT_UNKNOWN=0,Ub.STEREO_LAYOUT_LEFT_RIGHT=1,Ub.STEREO_LAYOUT_TOP_BOTTOM=2,Ub);var Q8,Cc;Q8={};g.Qf=(Q8.auto=0,Q8.tiny=144,Q8.light=144,Q8.small=240,Q8.medium=360,Q8.large=480,Q8.hd720=720,Q8.hd1080=1080,Q8.hd1440=1440,Q8.hd2160=2160,Q8.hd2880=2880,Q8.highres=4320,Q8);Cc={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var uS="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");m6.prototype.isHdr=function(){return this.G==="smpte2084"||this.G==="arib-std-b67"};qP.prototype.mE=function(){return this.containerType===2}; qP.prototype.isEncrypted=function(){return!!this.Cq}; qP.prototype.HH=function(){return!!this.audio}; qP.prototype.BK=function(){return!!this.video}; var kd=!1;g.T(TH,g.NK);g.C=TH.prototype;g.C.appendBuffer=function(r,V,I){if(this.ex.GU()!==this.appendWindowStart+this.start||this.ex.Nh()!==this.appendWindowEnd+this.start||this.ex.N2()!==this.timestampOffset+this.start)this.ex.supports(1),this.ex.v8(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.ex.FQ(this.timestampOffset+this.start);this.ex.appendBuffer(r,V,I)}; g.C.abort=function(){this.ex.abort()}; g.C.remove=function(r,V){this.ex.remove(r+this.start,V+this.start)}; g.C.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.C.clear=function(){this.ex.clear()}; g.C.v8=function(r,V){this.appendWindowStart=r;this.appendWindowEnd=V}; g.C.Wh=function(){return this.timestampOffset+this.start}; g.C.GU=function(){return this.appendWindowStart}; g.C.Nh=function(){return this.appendWindowEnd}; g.C.FQ=function(r){this.timestampOffset=r}; g.C.N2=function(){return this.timestampOffset}; g.C.yz=function(r){r=this.ex.yz(r===void 0?!1:r);return CI(r,this.start,this.end)}; g.C.aO=function(){return this.ex.aO()}; g.C.Yf=function(){return this.ex.Yf()}; g.C.gB=function(){return this.ex.gB()}; g.C.Go=function(){return this.ex.Go()}; g.C.E0=function(){this.ex.E0()}; g.C.K1=function(r){return this.ex.K1(r)}; g.C.lE=function(){return this.ex.lE()}; g.C.xU=function(){return this.ex.xU()}; g.C.Hh=function(){return this.ex.Hh()}; g.C.My=function(r,V,I){this.ex.My(r,V,I)}; g.C.B6=function(r,V,I){this.ex.B6(r,V,I)}; g.C.KG=function(r,V){return this.ex.KG(r,V)}; g.C.supports=function(r){return this.ex.supports(r)}; g.C.V9=function(){return this.ex.V9()}; g.C.isView=function(){return!0}; g.C.y9=function(){return this.ex.y9()?this.isActive:!1}; g.C.isLocked=function(){return this.No&&!this.isActive}; g.C.Qy=function(r){r=this.ex.Qy(r);r.vw=this.start+"-"+this.end;return r}; g.C.Du=function(){return this.ex.Du()}; g.C.h8=function(){return this.ex.h8()}; g.C.RP=function(){return this.ex.RP()}; g.C.eC=function(){this.ex.N8(this.E_);g.NK.prototype.eC.call(this)};var CT=!1;g.T(wg,g.NK);g.C=wg.prototype;g.C.appendBuffer=function(r,V,I){this.Cz=!1;I&&(this.wA=I);if(r.length){var d;((d=this.Uu)==null?0:d.appendBuffer)?this.Uu.appendBuffer(r):this.Uu?this.Uu.append(r):this.UI&&this.UI.webkitSourceAppend(this.id,r)}V&&(V.isEncrypted()&&(this.LD=this.wA),V.type===3&&(this.k8=V),this.rA.push(V.qJ()),this.rA.length>4&&this.rA.shift());this.mf&&(this.mf.length>=2||r.length>1048576?delete this.mf:this.mf.push(r))}; g.C.abort=function(){try{this.Uu?this.Uu.abort():this.UI&&this.UI.webkitSourceAbort(this.id)}catch(V){if(SEi){var r=new g.ox("Error while abort the source buffer: "+V.name+", "+V.message);g.BG(r)}}this.wA=this.k8=null}; g.C.remove=function(r,V,I){this.Cz=!1;var d;if((d=this.Uu)==null?0:d.remove)I&&I({b:xY(this.yz()),s:r,e:V}),this.Uu.remove(r,V)}; g.C.removeAll=function(){this.remove(this.GU(),this.Nh())}; g.C.clear=function(){this.gB()||(this.abort(),this.removeAll(),this.LD=this.wA=this.k8=null,this.appendWindowStart=this.timestampOffset=0,this.z9=D$([],[]),this.Cz=!1,this.mf=HT?[]:void 0,this.kU=!0)}; g.C.GU=function(){if(CT&&this.BK)return this.appendWindowStart;var r;return((r=this.Uu)==null?void 0:r.appendWindowStart)||0}; g.C.Nh=function(){var r;return((r=this.Uu)==null?void 0:r.appendWindowEnd)||0}; g.C.v8=function(r,V){this.Uu&&(CT&&this.BK?(this.appendWindowStart=r,this.Uu.appendWindowEnd=V):r>this.GU()?(this.Uu.appendWindowEnd=V,this.Uu.appendWindowStart=r):(this.Uu.appendWindowStart=r,this.Uu.appendWindowEnd=V))}; g.C.Wh=function(){return this.timestampOffset}; g.C.FQ=function(r){CT?this.timestampOffset=r:this.supports(1)&&(this.Uu.timestampOffset=r)}; g.C.N2=function(){return CT?this.timestampOffset:this.supports(1)?this.Uu.timestampOffset:0}; g.C.yz=function(r){if(r===void 0?0:r)return this.Cz||this.aO()||(this.z9=this.yz(!1),this.Cz=!0),this.z9;try{return this.Uu?this.Uu.buffered:this.UI?this.UI.webkitSourceBuffered(this.id):D$([0],[Infinity])}catch(V){return D$([],[])}}; g.C.aO=function(){var r;return((r=this.Uu)==null?void 0:r.updating)||!1}; g.C.gB=function(){return this.kU}; g.C.Go=function(){return!this.kU&&this.aO()}; g.C.E0=function(){this.kU=!1}; g.C.K1=function(r){var V=r==null?void 0:r.A0;r=r==null?void 0:r.containerType;return!V&&!r||V===this.A0&&r===this.containerType}; g.C.lE=function(){return this.wA}; g.C.xU=function(){return this.LD}; g.C.KG=function(r,V){return this.containerType!==r||this.A0!==V}; g.C.My=function(r,V,I){if(this.containerType!==r||I&&this.KG(r,I))this.supports(4),bA()&&this.Uu.changeType(V),I&&(this.A0=I);this.containerType=r}; g.C.B6=function(r,V,I){this.containerType&&this.KG(r,V)&&bA()&&this.Uu.changeType(I);this.containerType=r;this.A0=V}; g.C.V9=function(){return this.k8}; g.C.isView=function(){return!1}; g.C.supports=function(r){switch(r){case 1:var V;return((V=this.Uu)==null?void 0:V.timestampOffset)!==void 0;case 0:var I;return!((I=this.Uu)==null||!I.appendBuffer);case 2:var d;return!((d=this.Uu)==null||!d.remove);case 3:var a,f;return!!(((a=this.Uu)==null?0:a.addEventListener)&&((f=this.Uu)==null?0:f.removeEventListener));case 4:return!(!this.Uu||!this.Uu.changeType);default:return!1}}; g.C.y9=function(){return!this.aO()}; g.C.isLocked=function(){return!1}; g.C.Qy=function(r){r.to=this.N2();r.up=this.aO();var V,I=((V=this.Uu)==null?void 0:V.appendWindowStart)||0,d;V=((d=this.Uu)==null?void 0:d.appendWindowEnd)||Infinity;r.aw=I.toFixed(3)+"-"+V.toFixed(3);return r}; g.C.Yf=function(){var r;return((r=this.Uu)==null?void 0:r.writeHead)||0}; g.C.Du=function(){for(var r={},V=0;V=7&&NUi(this,function(){g.Td(function(){GQS(r,r.getCurrentTime(),0)},500)}); return V}; g.C.seekTo=function(r){this.TK()>0&&(lD&&QX<4&&(r=Math.max(.1,r)),this.setCurrentTime(r))}; g.C.Q6=function(){if(!this.X&&this.f8)if(this.f8.W)try{var r;R2(this,{l:"mer",sr:(r=this.lL)==null?void 0:r.YQ(),rs:rm(this.f8)});this.f8.clear();this.X=this.f8;this.f8=void 0}catch(V){r=new g.ox("Error while clearing Media Source in MediaElement: "+V.name+", "+V.message),g.BG(r),this.stopVideo()}else this.stopVideo()}; g.C.stopVideo=function(){var r=this;if(!this.X){var V;(V=this.f8)==null||tOr(V);if(XOS){if(!this.S){var I=new IL;I.then(void 0,function(){}); this.S=I;Bpg&&this.pause();g.Td(function(){r.S===I&&(er(r),I.resolve())},200)}}else er(this)}}; g.C.CC=function(){var r=this.VX();return zH(r)&&this.getDuration()?sV(r,this.getCurrentTime()):0}; g.C.O4=function(){var r=this.getDuration();return r===Infinity?1:r?this.CC()/r:0}; g.C.Qy=function(){try{var r=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:xY(this.wj(),",",3),vbu:xY(this.VX()),vbs:xY(this.Cr()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.TK(),vns:""+this.lH(),vec:""+this.IQ(),vemsg:this.GY(),vvol:""+this.getVolume(),vdom:""+ +this.XF(),vsrc:""+ +!!this.Ff(),vw:""+r.width,vh:""+r.height}}catch(V){return{}}}; g.C.hasError=function(){return this.IQ()>0}; g.C.addEventListener=function(r,V){this.Y.listen(r,V,!1,this);this.Lp(r)}; g.C.removeEventListener=function(r,V){this.Y.pF(r,V,!1,this)}; g.C.dispatchEvent=function(r){if(this.S&&r.type==="pause")return!1;if(g3i){var V,I=((V=r.G)==null?void 0:V.timeStamp)||Infinity;V=I>performance.now()?I-Date.now()+performance.now():I;I=this.X||this.f8;if((I==null?0:I.gB())||V<=((I==null?void 0:I.C)||0)){var d;R2(this,{l:"mede",sr:(d=this.lL)==null?void 0:d.YQ(),et:r.type});return!1}if(this.K4)return R2(this,{l:"medes",et:r.type}),I&&r.type==="seeking"&&(I.C=performance.now(),this.K4=!1),!1}return this.Y.dispatchEvent(r)}; g.C.W0=function(){this.C=!1}; g.C.RD=function(){this.C=!0;this.Y1(!0)}; g.C.rk=function(){this.C&&!this.yf()&&this.Y1(!0)}; g.C.equals=function(r){return!!r&&r.YN()===this.YN()}; g.C.eC=function(){this.L&&this.removeEventListener("volumechange",this.rk);XOS&&er(this);g.X.prototype.eC.call(this)}; var XOS=!1,Bpg=!1,g3i=!1,LRv=!1;g.C=g.nP.prototype;g.C.isPaused=function(){return g.v(this,4)}; g.C.isPlaying=function(){return g.v(this,8)&&!g.v(this,512)&&!g.v(this,64)&&!g.v(this,2)}; g.C.isOrWillBePlaying=function(){return g.v(this,8)&&!g.v(this,2)&&!g.v(this,1024)}; g.C.isCued=function(){return g.v(this,64)&&!g.v(this,8)&&!g.v(this,4)}; g.C.isBuffering=function(){return g.v(this,1)&&!g.v(this,2)}; g.C.isError=function(){return g.v(this,128)}; g.C.isSuspended=function(){return g.v(this,512)}; g.C.TO=function(){return g.v(this,64)&&g.v(this,4)}; g.C.toString=function(){return"PSt."+this.state.toString(16)}; var mw={},uB=(mw.BUFFERING="buffering-mode",mw.CUED="cued-mode",mw.ENDED="ended-mode",mw.PAUSED="paused-mode",mw.PLAYING="playing-mode",mw.SEEKING="seeking-mode",mw.UNSTARTED="unstarted-mode",mw);g.T(CP,g.X);g.C=CP.prototype;g.C.Vg=function(){return this.S}; g.C.aT=function(){return this.slot}; g.C.ZM=function(){return this.layout}; g.C.init=function(){var r=jC(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=jC(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Rv(this.layout.Ou)&&IF(this.wH.get(),this.layout.layoutId,{LY:V,jV:r,listener:this,Yo:this.pJ()});M8i(this.sE.get(),this);r=this.B3;V=this.layout.layoutId;var I={Yo:this.pJ()};r.G.set(V,I);this.jp()}; g.C.i5=function(){}; g.C.release=function(){Rv(this.layout.Ou)&&dy(this.wH.get(),this.layout.layoutId);CVr(this.sE.get(),this);this.B3.G.delete(this.layout.layoutId);this.Lk()}; g.C.Au=function(){}; g.C.Hk=function(){}; g.C.startRendering=function(r){Re(TN(this));if(Hb(this,r)){var V=this.G;t4(V.params.QM.ws.get(),!0)&&x5A(V,"p_sr",{});wm(this);this.BX(r);this.pJ()||this.aj(!1)}}; g.C.Pp=function(r,V){if(V.layoutId===this.layout.layoutId){this.lJ="rendering";this.X=this.SC.get().isMuted()||this.SC.get().getVolume()===0;this.vp("impression");this.vp("start");if(this.SC.get().isMuted()){RL(this,"mute");var I;r=((I=MU(this))==null?void 0:I.muteCommands)||[];vE(this.RT.get(),r,this.layout.layoutId)}if(this.SC.get().isFullscreen()){this.xG("fullscreen");var d;I=((d=MU(this))==null?void 0:d.fullscreenCommands)||[];vE(this.RT.get(),I,this.layout.layoutId)}this.pJ()||(d=this.TP.get(), d.S&&!d.X&&(d.W=!1,d.X=!0,d.actionType!=="ad_to_video"&&(qM("pbs",void 0,d.actionType),g.WR("finalize_all_timelines")&&umg(d.actionType))));this.eU(1);this.oY(V);var a;V=((a=MU(this))==null?void 0:a.impressionCommands)||[];vE(this.RT.get(),V,this.layout.layoutId)}}; g.C.dX=function(r,V,I){this.L={Fy:3,Un:r==="load_timeout"?402:400,errorMessage:V.message};this.vp("error");var d;r=((d=MU(this))==null?void 0:d.errorCommands)||[];vE(this.RT.get(),r,this.layout.layoutId);this.pJ()||this.EO.er(this.slot,this.layout,V,I)}; g.C.Ct=function(){if(this.lJ==="rendering"){RL(this,"pause");var r,V=((r=MU(this))==null?void 0:r.pauseCommands)||[];vE(this.RT.get(),V,this.layout.layoutId);this.eU(2)}}; g.C.W5=function(){if(this.lJ==="rendering"){RL(this,"resume");var r,V=((r=MU(this))==null?void 0:r.resumeCommands)||[];vE(this.RT.get(),V,this.layout.layoutId)}}; g.C.V$=function(r,V){V=V===void 0?!1:V;if(this.lJ==="rendering"){var I={currentTimeSec:r,flush:V};yf(this.G,"p_ip",I);Jw(this.Nk,r*1E3,V);this.X||Jw(this.Nk,r*1E3,V===void 0?!1:V);var d=this.Ri();if(d){d/=1E3;if(r>=d*.25||V)this.vp("first_quartile"),yf(this.G,"p_fq",I);if(r>=d*.5||V)this.vp("midpoint"),yf(this.G,"p_sq",I);if(r>=d*.75||V)this.vp("third_quartile"),yf(this.G,"p_tq",I);this.ws.get().T.N().experiments.uL("enable_progress_command_flush_on_kabuki")?m$(this.Y,r*1E3,V):m$(this.Y,r*1E3,S9S(this)? V:!1)}}}; g.C.E6=function(){var r;return((r=bf(this.C8.get(),1))==null?void 0:r.clientPlaybackNonce)||""}; g.C.ke=function(r,V){r.layoutId!==this.layout.layoutId?this.EO.er(this.slot,r,new Yp("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"):V()}; g.C.nF=function(r,V,I){if(V.layoutId===this.layout.layoutId)switch(this.lJ="not_rendering",this.layoutExitReason=void 0,this.pJ()||(r=I!=="normal"||this.position+1===this.C)&&this.aj(r),this.oX(I),this.eU(0),I){case "abandoned":if(Zr(this.Nk,"impression")){var d,a=((d=MU(this))==null?void 0:d.abandonCommands)||[];vE(this.RT.get(),a,this.layout.layoutId)}break;case "normal":d=((a=MU(this))==null?void 0:a.completeCommands)||[];vE(this.RT.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f= MU(this))==null?void 0:f.skipCommands)||[];vE(this.RT.get(),d,this.layout.layoutId)}}; g.C.s9=function(){return this.layout.layoutId}; g.C.xa=function(){return this.L}; g.C.m8=function(){if(this.lJ==="rendering"){this.Nk.vp("active_view_measurable");var r,V=((r=MU(this))==null?void 0:r.activeViewMeasurableCommands)||[];vE(this.RT.get(),V,this.layout.layoutId)}}; g.C.wV=function(){if(this.lJ==="rendering"){this.Nk.vp("active_view_fully_viewable_audible_half_duration");var r,V=((r=MU(this))==null?void 0:r.activeViewFullyViewableAudibleHalfDurationCommands)||[];vE(this.RT.get(),V,this.layout.layoutId)}}; g.C.Fx=function(){if(this.lJ==="rendering"){this.Nk.vp("active_view_viewable");var r,V=((r=MU(this))==null?void 0:r.activeViewViewableCommands)||[];vE(this.RT.get(),V,this.layout.layoutId)}}; g.C.eE=function(){if(this.lJ==="rendering"){this.Nk.vp("audio_audible");var r,V=((r=MU(this))==null?void 0:r.activeViewAudioAudibleCommands)||[];vE(this.RT.get(),V,this.layout.layoutId)}}; g.C.rV=function(){if(this.lJ==="rendering"){this.Nk.vp("audio_measurable");var r,V=((r=MU(this))==null?void 0:r.activeViewAudioMeasurableCommands)||[];vE(this.RT.get(),V,this.layout.layoutId)}}; g.C.aj=function(r){this.TP.get().aj(jC(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,r,this.position,this.C,!1)}; g.C.onFullscreenToggled=function(r){if(this.lJ==="rendering")if(r){this.xG("fullscreen");var V,I=((V=MU(this))==null?void 0:V.fullscreenCommands)||[];vE(this.RT.get(),I,this.layout.layoutId)}else this.xG("end_fullscreen"),V=((I=MU(this))==null?void 0:I.endFullscreenCommands)||[],vE(this.RT.get(),V,this.layout.layoutId)}; g.C.onVolumeChange=function(){if(this.lJ==="rendering")if(this.SC.get().isMuted()){RL(this,"mute");var r,V=((r=MU(this))==null?void 0:r.muteCommands)||[];vE(this.RT.get(),V,this.layout.layoutId)}else RL(this,"unmute"),r=((V=MU(this))==null?void 0:V.unmuteCommands)||[],vE(this.RT.get(),r,this.layout.layoutId)}; g.C.TR=function(){}; g.C.M7=function(){}; g.C.Fl=function(){}; g.C.cZ=function(){}; g.C.AK=function(){}; g.C.xG=function(r){this.Nk.xG(r,!this.X)}; g.C.vp=function(r){this.Nk.vp(r,!this.X)}; g.C.pJ=function(){var r=jC(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return r===void 0?(zQ("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.ws.get().pJ(r)};g.T(F9,CP);g.C=F9.prototype;g.C.jp=function(){}; g.C.Lk=function(){var r=this.sE.get();r.SV===this&&(r.SV=null);this.aL.stop()}; g.C.Au=function(){this.aL.stop();CP.prototype.Ct.call(this)}; g.C.Hk=function(){LP(this);CP.prototype.W5.call(this)}; g.C.Ri=function(){return jC(this.ZM().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.C.rF=function(r,V){var I=this;this.ke(r,function(){I.lJ!=="rendering_stop_requested"&&(I.lJ="rendering_stop_requested",I.layoutExitReason=V,O7(I,V),I.aL.stop())})}; g.C.Uk=function(){var r=Date.now(),V=r-this.jf;this.jf=r;this.pM+=V;this.pM>=this.Ri()?this.L0():(this.V$(this.pM/1E3),lf(this,this.pM))}; g.C.oX=function(){}; g.C.Mf=function(){}; g.T(J3,F9);g.C=J3.prototype;g.C.Np=function(r){if(this.lJ!=="not_rendering"){r=Wb(this,r);var V=this.SC.get().getPresentingPlayerType()===2;this.lJ==="rendering_start_requested"?V&&cq(r)&&this.rP():V?g.TQ(r,2)?zQ("Receive player ended event during MediaBreak",this.aT(),this.ZM()):$X(this,r):this.U9()}}; g.C.BX=function(){BUA(this);t8j(this.SC.get());this.sE.get().SV=this;pq("pbp")||pq("pbs")||qM("pbp");pq("pbp","watch")||pq("pbs","watch")||qM("pbp",void 0,"watch");this.rP()}; g.C.oY=function(r){this.TP.get();var V=jC(r.clientMetadata,"metadata_type_ad_placement_config").kind,I=this.position===0;r=jC(r.clientMetadata,"metadata_type_linked_in_player_layout_type");r={adBreakType:KP(V),adType:kQi(r)};var d=void 0;I?V!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";Q2("ad_mbs",void 0,d);g.mI(r,d);LP(this)}; g.C.U9=function(){this.ZA()}; g.C.L0=function(){U5r(this);this.ZA()}; g.T(Z7,F9);g.C=Z7.prototype;g.C.Np=function(r){this.lJ!=="not_rendering"&&(r=Wb(this,r),$X(this,r))}; g.C.BX=function(){zQ("Not used in SSAP")}; g.C.oY=function(){LP(this)}; g.C.U9=function(){zQ("Not used in SSAP")}; g.C.L0=function(){U5r(this);this.EO.wI(this.aT(),this.ZM(),"normal")}; g.T(X9,Z7);X9.prototype.rF=function(r,V){var I=this;this.ke(r,function(){bS(I.S,V)&&(I.lJ="rendering_stop_requested",I.layoutExitReason=V,O7(I,V),I.aL.stop())})}; X9.prototype.startRendering=function(r){Re(TN(this));Hb(this,r)&&(wm(this),this.sE.get().SV=this)};g.T(Sr,CP);g.C=Sr.prototype;g.C.U9=function(){this.ZA()}; g.C.Np=function(r){if(this.lJ!=="not_rendering"){r=Wb(this,r);var V=this.SC.get().getPresentingPlayerType()===2;this.lJ==="rendering_start_requested"?V&&cq(r)&&this.rP():!V||g.TQ(r,2)?this.ZA():$X(this,r)}}; g.C.jp=function(){jC(this.ZM().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=jC(this.ZM().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.C.Lk=function(){jC(this.ZM().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.lj){var r=this.context.QM,V=this.lj,I=this.ZM().layoutId;if(t4(r.ws.get(),!0)){var d={};r.Ps("mccru",(d.cid=V,d.p_ac=I,d))}this.ZR.get().removeCueRange(this.lj)}this.lj=void 0;var a;(a=this.pB)==null||a.dispose();this.hj&&this.hj.dispose()}; g.C.BX=function(r){var V=Bb(this.ws.get()),I=gm(this.ws.get());if(V&&I&&!this.pJ()){I=jC(r.clientMetadata,"metadata_type_preload_player_vars");var d=this.ws.get();d=g.zM(d.T.N().experiments,"html5_preload_wait_time_secs");I&&this.hj&&this.hj.start(d*1E3)}uIj(this,r);BUA(this);V?(I=this.Xh.get(),r=jC(r.clientMetadata,"metadata_type_player_vars"),I.T.loadVideoByPlayerVars(r,!1,2)):iaA(this.Xh.get(),jC(r.clientMetadata,"metadata_type_player_vars"));var a;(a=this.pB)==null||a.start();V||this.Xh.get().T.playVideo(2)}; g.C.oY=function(){var r;(r=this.pB)==null||r.stop();this.lj="adcompletioncuerange:"+this.ZM().layoutId;this.ZR.get().addCueRange(this.lj,0x7ffffffffffff,0x8000000000000,!1,this,2,2);r=this.context.QM;var V=this.lj,I=this.ZM().layoutId;if(t4(r.ws.get(),!0)){var d={};r.Ps("mccr",(d.cid=V,d.p_ac=I,d))}(this.adCpn=XCA(this))||zQ("Media layout confirmed started, but ad CPN not set.");this.gh.get().Ov("onAdStart",this.adCpn);this.Ta=Date.now()}; g.C.Ri=function(){var r;return(r=bf(this.C8.get(),2))==null?void 0:r.KH}; g.C.BF=function(){this.Nk.xG("clickthrough")}; g.C.rF=function(r,V){var I=this;this.ke(r,function(){if(I.lJ!=="rendering_stop_requested"){I.lJ="rendering_stop_requested";I.layoutExitReason=V;O7(I,V);var d;(d=I.pB)==null||d.stop();I.hj&&I.hj.stop();pCS(I)}})}; g.C.onCueRangeEnter=function(r){if(r!==this.lj)zQ("Received CueRangeEnter signal for unknown layout.",this.aT(),this.ZM(),{cueRangeId:r});else{var V=this.context.QM,I=this.ZM().layoutId;if(t4(V.ws.get(),!0)){var d={};V.Ps("mccre",(d.cid=r,d.p_ac=I,d))}this.ZR.get().removeCueRange(this.lj);this.lj=void 0;kp(this.context.ws.get(),"html5_ssap_flush_at_stop_rendering")&&this.pJ()||(r=jC(this.ZM().clientMetadata,"metadata_type_video_length_seconds"),this.V$(r,!0),this.vp("complete"))}}; g.C.oX=function(r){r!=="abandoned"&&this.gh.get().Ov("onAdComplete");this.gh.get().Ov("onAdEnd",this.adCpn)}; g.C.onCueRangeExit=function(){}; g.C.Mf=function(r){this.lJ==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&r>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.SC.get().Jp(!0),this.V$(r))}; g.C.V$=function(r,V){CP.prototype.V$.call(this,r,V===void 0?!1:V);V=Date.now()-this.Ta;var I=r*1E3,d={contentCpn:this.E6(),adCpn:XCA(this)};if(r-this.f6>=5){var a=V=2||(this.iJ.rF(this.layout,V),r=kp(this.params.context.ws.get(),"html5_ssap_pass_transition_reason")&&V==="abandoned",this.uH()&&!r&&(kp(this.params.context.ws.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(V)||zQ("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:V})),this.Fh.get().finishSegmentByCpn(this.layout.layoutId, bf(this.C8.get(),1).clientPlaybackNonce,yS(V,this.params.context.ws))),this.SC.get().removeListener(this),this.RE()&&OU(this.iJ.Vg())&&this.Yz.nF(this.slot,this.layout,wE(this.iJ.Vg())))}; g.C.v$=function(r,V,I){joh({cpn:r,w$:this.C8.get(),zc:!0});this.ZM().layoutId!==r||kp(this.params.context.ws.get(),"html5_ssap_pass_transition_reason")&&I===5||(Hq(this.iJ.Vg())<2&&(r=A3(I,this.params.context.ws),r==="error"?this.Yz.er(this.slot,this.layout,new Yp("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:I},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):kX(this.Yb,this.layout, r)),kp(this.params.context.ws.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Yz.nF(this.slot,this.layout,wE(this.iJ.Vg())))};g.T(pP,g.X);g.C=pP.prototype;g.C.aT=function(){return this.slot}; g.C.ZM=function(){return this.layout}; g.C.yA=function(){}; g.C.yX=function(){return this.gY[this.SJ]}; g.C.uV=function(){return this.SJ}; g.C.Au=function(r,V){var I=this.yX();V.layoutId!==qU(I,r,V)?zQ("pauseLayout for a PlayerBytes layout that is not currently active",r,V):I.Au()}; g.C.Hk=function(r,V){var I=this.yX();V.layoutId!==qU(I,r,V)?zQ("resumeLayout for a PlayerBytes layout that is not currently active",r,V):I.Hk()}; g.C.Yn=function(r,V){var I=this.yX();dMg(this,r,V);aPh(I,r,V)&&this.jF(I.aT(),I.ZM(),"skipped")}; g.C.Hg=function(r,V){var I=this.yX();fPO(this);eSZ(I,r,V)&&(r=YYA(this,I,r,V),r!==void 0&&(this.pJ()?zQ("Should not happen. Should delete"):jEg(this,I.aT(),I.ZM(),r)))}; g.C.YY=function(r,V){var I=Object.assign({},vb(this),{layoutId:V.layoutId}),d=I.layoutId,a=I.zc;if(I.Yo){var f={};KN(I.w$,"wrse",(f.ec=d,f.is=a,f.ctp=$d(d),f))}GM(this.u7,r,V)}; g.C.Pp=function(r,V){var I;(I=this.yX())==null||I.Pp(r,V)}; g.C.nF=function(r,V,I){V.layoutId===this.ZM().layoutId&&(this.t4=!1,HE(this.kX(),this));var d;(d=this.yX())==null||d.nF(r,V,I)}; g.C.Mf=function(r){var V;(V=this.yX())==null||V.Mf(r)}; g.C.s2=function(r,V,I){this.uV()===-1&&(this.callback.Pp(this.slot,this.layout),this.SJ++);var d=this.yX();d?(d.dX(r,V,I),this.pJ()&&this.callback.er(this.slot,this.layout,V,I)):zQ("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.uV()),layoutId:this.ZM().layoutId})}; g.C.onFullscreenToggled=function(r){var V;(V=this.yX())==null||V.onFullscreenToggled(r)}; g.C.TR=function(r){var V;(V=this.yX())==null||V.TR(r)}; g.C.Fl=function(r){var V;(V=this.yX())==null||V.Fl(r)}; g.C.onVolumeChange=function(){var r;(r=this.yX())==null||r.onVolumeChange()}; g.C.DL=function(r,V,I){Fr(this.u7,r,V,I)}; g.C.hs=function(r){r.startRendering(r.ZM())}; g.C.init=function(){var r=jC(this.ZM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");r&&(r.current=this);if(this.gY.length<1)throw new q("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.gY.length)});if(r=jC(this.ZM().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))r.current=this;r=g.H(this.gY);for(var V=r.next();!V.done;V=r.next())V=V.value,V.init(),y8i(this.u7,this.slot,V.ZM()),A8i(this.u7,this.slot,V.ZM()); if(this.pJ())for(this.C8.get().addListener(this),d5i(IPv(this),this.C8.get()),r=IPv(this),r=g.H(r),V=r.next();!V.done;V=r.next())this.SD(V.value)}; g.C.SD=function(r){var V=jC(r.clientMetadata,"metadata_type_player_vars");V?(r.layoutType!=="LAYOUT_TYPE_MEDIA"&&zQ("Non-video ad contains playerVars",this.slot,r),this.Xh.get().addPlayerResponseForAssociation({playerVars:V})):(r=hjg(r),this.Xh.get().addPlayerResponseForAssociation({Fo:r}))}; g.C.release=function(){var r=jC(this.ZM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");r&&(r.current=null);if(r=jC(this.ZM().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))r.current=null;r=g.H(this.gY);for(var V=r.next();!V.done;V=r.next())V=V.value,GZX(this.u7,this.slot,V.ZM()),V.release();this.pJ()&&(this.C8.get().removeListener(this),afg())}; g.C.ke=function(r){return r.layoutId!==this.ZM().layoutId?(this.callback.er(this.aT(),r,new Yp("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.ZM().layoutId+("and LayoutType: "+this.ZM().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.C.Zz=function(){this.SC.get().addListener(this);TM(this.kX(),this)}; g.C.Np=function(r){if(r.state.isError()){var V,I;this.s2((V=r.state.DD)==null?void 0:V.errorCode,new Yp("There was a player error during this media layout.",{playerErrorCode:(I=r.state.DD)==null?void 0:I.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(V=this.yX())&&V.Np(r)}; g.C.pJ=function(){var r=jC(this.aT().clientMetadata,"metadata_type_eligible_for_ssap");return r===void 0?(zQ("Expected SSAP eligibility in PlayerBytes slots",this.aT(),this.ZM()),!1):this.ws.get().pJ(r)}; g.C.M7=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.cZ=function(){}; g.C.AK=function(){}; g.T(h3,pP);g.C=h3.prototype;g.C.JM=function(r,V,I){this.jF(r,V,I)}; g.C.pH=function(r,V){this.jF(r,V,"error")}; g.C.jF=function(r,V,I){var d=this;n_Z(this,r,V,I,function(){Pb(d,d.uV()+1)})}; g.C.startRendering=function(r){this.ke(r)&&(this.Zz(),BeA(this.TP.get()),vzX(this.ws.get())||t8j(this.SC.get()),this.uV()===-1&&Pb(this,this.uV()+1))}; g.C.rF=function(r,V){var I=this;this.t4=!0;this.uV()===this.gY.length?this.callback.nF(this.slot,this.layout,V):(r=this.yX(),r.rF(r.ZM(),V),this.Q4=function(){I.callback.nF(I.slot,I.layout,V)}); ylh(this.SC.get());iaA(this.Xh.get(),{});r=VM(this.SC.get(),1);r.isPaused()&&!g.v(r,2)&&this.SC.get().playVideo();this.SC.get().removeListener(this);this.t4&&DMA(this)}; g.C.v$=function(){}; g.C.c$=function(){}; g.C.wI=function(){}; g.T(rh,pP);g.C=rh.prototype;g.C.JM=function(r,V,I){r=Object.assign({},vb(this),{layoutId:V.layoutId,layoutExitReason:I});V=r.layoutId;I=r.layoutExitReason;var d={};KN(r.w$,"prse",(d.xc=V,d.ler=I,d.ctp=$d(V),d))}; g.C.pH=function(){zQ("onSubLayoutError in SSAP")}; g.C.jF=function(){zQ("exitSubLayoutAndPlayNext in SSAP")}; g.C.yX=function(){return this.tP}; g.C.uV=function(){var r=this;return this.gY.findIndex(function(V){var I;return V.ZM().layoutId===((I=r.tP)==null?void 0:I.ZM().layoutId)})}; g.C.hs=function(r){cC(this.tP===void 0,"replacing another adapter");this.tP=r;r.startRendering(r.ZM())}; g.C.DL=function(r,V,I){Fr(this.u7,r,V,I);var d;cC(V.layoutId===((d=this.tP)==null?void 0:d.ZM().layoutId),"currentAdapter does not match exiting layout",{slot:r?"slot: "+r.slotType:"",subLayout:s9(V)})&&(this.tP=void 0)}; g.C.release=function(){pP.prototype.release.call(this);cC(this.tP===void 0,"currentAdapter is still active during release");this.tP=void 0}; g.C.uH=function(){return this.SC.get().getPresentingPlayerType()===2}; g.C.rF=function(r,V){function I(){Vq(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(V)||zQ("Composite stopRendering: Unexpected layout exit reason",this.slot,r,{layoutExitReason:V}))} function d(){this.tP&&IS(this,this.tP,V);if(this.uH()&&(!Vq(this)||V!=="abandoned")){I.call(this);var f;var e=((f=this.C8.get().T.getVideoData())==null?void 0:f.clientPlaybackNonce)||"";f=bf(this.C8.get(),1).clientPlaybackNonce;this.Fh.get().finishSegmentByCpn(e,f,yS(V,this.ws))}xMi(this,V)} function a(){if(this.tP){var f=this.tP;Hq(f.Vg())<2&&f.rF(f.ZM(),V);f=Vq(this)&&V==="abandoned";this.uH()&&!f&&(I.call(this),this.Fh.get().finishSegmentByCpn(this.tP.ZM().layoutId,bf(this.C8.get(),1).clientPlaybackNonce,yS(V,this.ws)))}} cC(r.layoutId===this.ZM().layoutId,"StopRendering for wrong layout")&&bS(this.a$.X,V)&&(this.RE()?d.call(this):a.call(this))}; g.C.nF=function(r,V,I){pP.prototype.nF.call(this,r,V,I);V.layoutId===this.ZM().layoutId&&this.SC.get().removeListener(this)}; g.C.E6=function(){return bf(this.C8.get(),1).clientPlaybackNonce}; g.C.v$=function(r,V,I){joh(Object.assign({},vb(this),{cpn:r}));if(!Vq(this)||I!==5)if(this.RE()){if(this.tP&&this.tP.ZM().layoutId!==V){var d=this.tP.ZM().layoutId;d!==r&&zQ("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:d,exitingCpn:r,enteringCpn:V});r=A3(I,this.ws);IS(this,this.tP,r)}else this.tP&&zQ("onClipExited: active layout is entering again");V===this.E6()&&N4j(this,I)}else{if(this.tP&&this.tP.ZM().layoutId===r)E_i(this,this.tP,I);else{var a;zQ("Exiting cpn does not match active cpn", this.slot,(d=this.tP)==null?void 0:d.ZM(),{exitingCpn:r,transitionReason:I,activeCpn:(a=this.tP)==null?void 0:a.ZM().layoutId})}V===this.E6()&&(this.tP!==void 0&&(zQ("active adapter is not properly exited",this.slot,this.layout,{activeLayout:s9(this.tP.ZM())}),E_i(this,this.tP,I)),N4j(this,I),xMi(this,this.a$.X.G))}}; g.C.RE=function(){return kp(this.ws.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.C.startRendering=function(r){this.ke(r)&&(r=this.a$,cC(r.G===1,"tickStartRendering: state is not initial"),r.G=2,this.Zz())}; g.C.c$=function(r){n8v(Object.assign({},vb(this),{cpn:r}));var V=this.gY.find(function(I){return I.ZM().layoutId===r}); V?(this.a$.G!==2&&(P6A(this.oL,this.slot.slotId),cC(this.a$.G===2,"Expect started"),this.callback.Pp(this.slot,this.layout)),this.hs(V),GM(this.u7,this.slot,V.ZM())):sEr(this,r)}; g.C.Yn=function(r,V){dMg(this,r,V);var I=this.yX();I?aPh(I,r,V)&&csA(this,"skipped"):zSv(this,"onSkipRequested")}; g.C.Hg=function(r,V){var I;a:{if(I=this.yX()){if(fPO(this),eSZ(I,r,V)&&(r=YYA(this,I,r,V),r!==void 0)){I={K2:I,RXs:this.gY[r]};break a}}else zSv(this,"SkipWithAdPodSkip");I=void 0}if(r=I)I=r.K2,V=r.RXs,r=I.ZM().layoutId,this.RE()?IS(this,I,"skipped"):I.rF(I.ZM(),"skipped"),I=V.ZM().layoutId,this.Fh.get().finishSegmentByCpn(r,I,yS("skipped",this.ws))}; g.C.YY=function(){zQ("Not used in html5_ssap_fix_layout_exit")}; g.C.Np=function(r){var V;(V=this.yX())==null||V.Np(r)}; g.C.s2=function(){zQ("Not used in html5_ssap_fix_layout_exit")}; g.C.wI=function(r,V,I){var d;if(((d=this.yX())==null?void 0:d.ZM().layoutId)!==V.layoutId)return void zQ("requestToExitSubLayout: wrong layout");csA(this,I)};g.T(dh,g.X);g.C=dh.prototype;g.C.aT=function(){return this.iJ.aT()}; g.C.ZM=function(){return this.iJ.ZM()}; g.C.init=function(){var r=jC(this.ZM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");r&&(r.current=this);this.jp()}; g.C.jp=function(){this.iJ.init()}; g.C.release=function(){var r=jC(this.ZM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");r&&(r.current=null);this.Lk()}; g.C.Lk=function(){this.iJ.release()}; g.C.Au=function(){this.iJ.Au()}; g.C.Hk=function(){this.iJ.Hk()}; g.C.Yn=function(r,V){zQ("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.aT(),this.ZM(),{requestingSlot:r,requestingLayout:V})}; g.C.startRendering=function(r){r.layoutId!==this.ZM().layoutId?this.callback.er(this.aT(),r,new Yp("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.ZM().layoutId+("and LayoutType: "+this.ZM().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.SC.get().addListener(this),TM(this.kX(),this),BeA(this.TP.get()),vzX(this.ws.get())||t8j(this.SC.get()),this.iJ.startRendering(r))}; g.C.rF=function(r,V){this.t4=!0;this.iJ.rF(r,V);ylh(this.SC.get());iaA(this.Xh.get(),{});r=VM(this.SC.get(),1);r.isPaused()&&!g.v(r,2)&&this.SC.get().playVideo();this.SC.get().removeListener(this);this.t4&&this.iJ.U9()}; g.C.Pp=function(r,V){this.iJ.Pp(r,V)}; g.C.nF=function(r,V,I){V.layoutId===this.ZM().layoutId&&(this.t4=!1,HE(this.kX(),this));this.iJ.nF(r,V,I);V.layoutId===this.ZM().layoutId&&oL(this.TP.get())}; g.C.Mf=function(r){this.iJ.Mf(r)}; g.C.Np=function(r){if(r.state.isError()){var V,I;this.s2((V=r.state.DD)==null?void 0:V.errorCode,new Yp("There was a player error during this media layout.",{playerErrorCode:(I=r.state.DD)==null?void 0:I.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.iJ.Np(r)}; g.C.s2=function(r,V,I){this.iJ.dX(r,V,I)}; g.C.onFullscreenToggled=function(r){this.iJ.onFullscreenToggled(r)}; g.C.TR=function(r){this.iJ.TR(r)}; g.C.Fl=function(r){this.iJ.Fl(r)}; g.C.onVolumeChange=function(){this.iJ.onVolumeChange()}; g.C.M7=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.cZ=function(){}; g.C.AK=function(){};g.C=aS.prototype;g.C.aT=function(){return this.slot}; g.C.ZM=function(){return this.layout}; g.C.init=function(){this.Br.get().addListener(this);this.SC.get().addListener(this);var r=jC(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var V=jC(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Y){var I=JlX(this.Br.get()).slice(-1)[0];I!==void 0&&(r=I.startSecs*1E3,V=(I.startSecs+I.aB)*1E3)}this.i5(r,V);var d;I=(d=eo(this.C8.get()))==null?void 0:d.clientPlaybackNonce;d=this.layout.zz.adClientDataEntry;f1(this.sE.get(),{daiStateTrigger:{filledAdsDurationMs:V-r,contentCpn:I, adClientData:d}});var a=this.Br.get();a=T4v(a.S,r,V);a!==null&&(f1(this.sE.get(),{daiStateTrigger:{filledAdsDurationMs:a-r,contentCpn:I,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:d}}),this.Fh.get().un(a,V))}; g.C.release=function(){this.Lk();this.Br.get().removeListener(this);this.SC.get().removeListener(this)}; g.C.startRendering=function(){this.BX();this.callback.Pp(this.slot,this.layout)}; g.C.rF=function(r,V){this.VW(V);if(this.driftRecoveryMs!==null){r=this.driftRecoveryMs.toString();var I=Math.round(Hqj(this)-jC(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),d=Math,a=d.round;var f=this.SC.get().T.cL();Y7(this,{driftRecoveryMs:r,breakDurationMs:I,driftFromHeadMs:a.call(d,f*1E3).toString()});this.driftRecoveryMs=null}this.callback.nF(this.slot,this.layout,V)}; g.C.Z_=function(){return!1}; g.C.Gt=function(r){var V=jC(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),I=jC(this.layout.clientMetadata,"metadata_type_layout_exit_ms");r*=1E3;if(V<=r&&r0&&lj(this.G(),V)}; g.C.zR=function(r){this.W.delete(r.slotId);for(var V=[],I=g.H(this.oT.values()),d=I.next();!d.done;d=I.next()){d=d.value;var a=d.trigger;a instanceof dI&&a.triggeringSlotId===r.slotId&&V.push(d)}V.length>0&&lj(this.G(),V)}; g.C.oQ=function(r){for(var V=[],I=g.H(this.oT.values()),d=I.next();!d.done;d=I.next()){d=d.value;var a=d.trigger;a instanceof p1&&a.slotType===r.slotType&&a.G!==r.slotId&&V.push(d)}V.length>0&&lj(this.G(),V)}; g.C.CJ=function(r){this.S.add(r.slotId);for(var V=[],I=g.H(this.oT.values()),d=I.next();!d.done;d=I.next())d=d.value,d.trigger instanceof k7&&r.slotId===d.trigger.triggeringSlotId&&V.push(d);V.length>0&&lj(this.G(),V)}; g.C.WK=function(r){this.S.delete(r.slotId);this.Y.add(r.slotId);for(var V=[],I=g.H(this.oT.values()),d=I.next();!d.done;d=I.next())if(d=d.value,d.trigger instanceof h7)r.slotId===d.trigger.triggeringSlotId&&V.push(d);else if(d.trigger instanceof J7){var a=d.trigger;r.slotId===a.slotId&&this.X.has(a.triggeringLayoutId)&&V.push(d)}V.length>0&&lj(this.G(),V)}; g.C.Cw=function(r){for(var V=[],I=g.H(this.oT.values()),d=I.next();!d.done;d=I.next())d=d.value,d.trigger instanceof rI&&r.slotId===d.trigger.triggeringSlotId&&V.push(d);V.length>0&&lj(this.G(),V)}; g.C.W3=function(r){for(var V=[],I=g.H(this.oT.values()),d=I.next();!d.done;d=I.next())d=d.value,d.trigger instanceof V4&&r.slotId===d.trigger.triggeringSlotId&&V.push(d);V.length>0&&lj(this.G(),V)}; g.C.kG=function(r,V){this.C.add(V.layoutId)}; g.C.Y8=function(r,V){this.C.delete(V.layoutId)}; g.C.Pp=function(r,V){this.X.add(V.layoutId);for(var I=[],d=g.H(this.oT.values()),a=d.next();!a.done;a=d.next())if(a=a.value,a.trigger instanceof Ze)V.layoutId===a.trigger.triggeringLayoutId&&I.push(a);else if(a.trigger instanceof u2){var f=a.trigger;r.slotType===f.slotType&&V.layoutType===f.layoutType&&V.layoutId!==f.G&&I.push(a)}else a.trigger instanceof J7&&(f=a.trigger,V.layoutId===f.triggeringLayoutId&&this.Y.has(f.slotId)&&I.push(a));I.length>0&&lj(this.G(),I)}; g.C.nF=function(r,V,I){this.X.delete(V.layoutId);r=[];for(var d=g.H(this.oT.values()),a=d.next();!a.done;a=d.next())if(a=a.value,a.trigger instanceof BN&&V.layoutId===a.trigger.triggeringLayoutId&&r.push(a),a.trigger instanceof Xz){var f=a.trigger;V.layoutId===f.triggeringLayoutId&&f.G.includes(I)&&r.push(a)}r.length>0&&lj(this.G(),r)}; g.C.Io=function(){}; g.C.vZ=function(){this.Y.clear()}; g.C.yg=function(){};g.T(vc,g.X);vc.prototype.HL=function(r,V,I,d){if(this.oT.has(V.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(V instanceof l2))throw new q("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in CloseRequestedTriggerAdapter");this.oT.set(V.triggerId,new ey(r,V,I,d))}; vc.prototype.bV=function(r){this.oT.delete(r.triggerId)};g.T(Pc,g.X);Pc.prototype.HL=function(r,V,I,d){if(this.oT.has(V.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(V instanceof Fz||V instanceof qj))throw new q("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.oT.set(V.triggerId,new ey(r,V,I,d))}; Pc.prototype.bV=function(r){this.oT.delete(r.triggerId)}; Pc.prototype.vZ=function(r){for(var V=[],I=V.push,d=I.apply,a=[],f=g.H(this.oT.values()),e=f.next();!e.done;e=f.next())e=e.value,e.trigger instanceof Fz&&e.trigger.IE===r&&a.push(e);d.call(I,V,g.R(a));I=V.push;d=I.apply;a=[];f=g.H(this.oT.values());for(e=f.next();!e.done;e=f.next())e=e.value,e.trigger instanceof qj&&e.trigger.G!==r&&a.push(e);d.call(I,V,g.R(a));V.length&&lj(this.G(),V)}; Pc.prototype.yg=function(r){for(var V=[],I=V.push,d=I.apply,a=[],f=g.H(this.oT.values()),e=f.next();!e.done;e=f.next()){e=e.value;var n=e.trigger;n instanceof qj&&n.G===r&&a.push(e)}d.call(I,V,g.R(a));V.length&&lj(this.G(),V)};g.T(ow,g.X);g.C=ow.prototype;g.C.HL=function(r,V,I,d){if(this.oT.has(V.triggerId))throw new q("Tried to register duplicate trigger for slot.");var a="adtriggercuerange:"+V.triggerId;if(V instanceof Qq)SXi(this,r,V,I,d,a,V.G.start,V.G.end,V.IE,V.visible);else if(V instanceof L1)SXi(this,r,V,I,d,a,0x7ffffffffffff,0x8000000000000,V.IE,V.visible);else throw new q("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in CueRangeTriggerAdapter");}; g.C.bV=function(r){var V=this.oT.get(r.triggerId);V&&this.ZR.get().removeCueRange(V.cueRangeId);this.oT.delete(r.triggerId)}; g.C.onCueRangeEnter=function(r){var V=iUg(this,r);if(V&&(V=this.oT.get(V)))if(g.v(VM(this.SC.get()),32))this.G.add(V.cueRangeId);else{var I=V==null?void 0:V.TN.trigger;if(I instanceof Qq||I instanceof L1){if(t4(this.context.ws.get())){var d=V.TN.slot,a=V.TN.layout,f={};this.context.QM.Ps("cre",(f.ca=V.TN.category,f.tt=I.triggerType,f.st=d.slotType,f.lt=a==null?void 0:a.layoutType,f.cid=r,f))}lj(this.X(),[V.TN])}}}; g.C.onCueRangeExit=function(r){(r=iUg(this,r))&&(r=this.oT.get(r))&&this.G.delete(r.cueRangeId)}; g.C.Np=function(r){if(CW(r,16)<0){r=g.H(this.G);for(var V=r.next();!V.done;V=r.next())this.onCueRangeEnter(V.value,!0);this.G.clear()}}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Pp=function(){}; g.C.nF=function(){}; g.C.Io=function(){}; g.C.Mf=function(){}; g.C.onFullscreenToggled=function(){}; g.C.TR=function(){}; g.C.M7=function(){}; g.C.Fl=function(){}; g.C.onVolumeChange=function(){}; g.C.cZ=function(){}; g.C.AK=function(){};g.T(kl,g.X);g.C=kl.prototype; g.C.HL=function(r,V,I,d){if(this.X.has(V.triggerId)||this.S.has(V.triggerId))throw new q("Tried to re-register the trigger.");r=new ey(r,V,I,d);if(r.trigger instanceof Uw)this.X.set(r.trigger.triggerId,r);else if(r.trigger instanceof gh)this.S.set(r.trigger.triggerId,r);else throw new q("Incorrect TriggerType: Tried to register trigger of type "+r.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.X.has(r.trigger.triggerId)&&r.slot.slotId===this.G&&lj(this.Y(),[r])}; g.C.bV=function(r){this.X.delete(r.triggerId);this.S.delete(r.triggerId)}; g.C.yA=function(r){r=r.slotId;if(this.G!==r){var V=[];this.G!=null&&V.push.apply(V,g.R(UDv(this.S,this.G)));r!=null&&V.push.apply(V,g.R(UDv(this.X,r)));this.G=r;V.length&&lj(this.Y(),V)}}; g.C.v$=function(){}; g.C.c$=function(){};g.T(hJ,g.X);g.C=hJ.prototype;g.C.HL=function(r,V,I,d){if(this.oT.has(V.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(V instanceof vN))throw new q("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.oT.set(V.triggerId,new ey(r,V,I,d))}; g.C.bV=function(r){this.oT.delete(r.triggerId)}; g.C.Pp=function(){}; g.C.nF=function(){}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){};g.T(rD,g.X);g.C=rD.prototype;g.C.Io=function(r,V){for(var I=[],d=g.H(this.oT.values()),a=d.next();!a.done;a=d.next()){a=a.value;var f=a.trigger;f.opportunityType===r&&(f.associatedSlotId&&f.associatedSlotId!==V||I.push(a))}I.length&&lj(this.G(),I)}; g.C.HL=function(r,V,I,d){if(this.oT.has(V.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(V instanceof vRi))throw new q("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in OpportunityEventTriggerAdapter");this.oT.set(V.triggerId,new ey(r,V,I,d))}; g.C.bV=function(r){this.oT.delete(r.triggerId)}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Pp=function(){}; g.C.nF=function(){};g.T(VV,g.X);g.C=VV.prototype;g.C.HL=function(r,V,I,d){r=new ey(r,V,I,d);if(V instanceof So||V instanceof mp||V instanceof i2||V instanceof PN||V instanceof qYA){if(this.oT.has(V.triggerId))throw new q("Tried to register duplicate trigger for slot.");this.oT.set(V.triggerId,r)}else throw new q("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in PrefetchTriggerAdapter");}; g.C.bV=function(r){this.oT.delete(r.triggerId)}; g.C.Ej=function(r){var V=r.slotFulfillmentTriggers.find(function(I){return I instanceof So}); V&&I$(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",V.breakDurationMs,new Set([r.slotId]),!0)}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Pp=function(){}; g.C.nF=function(){}; g.C.Io=function(){}; g.C.Z_=function(r){var V=this;if(!this.G)return zQ("Unexpected cue break before fetch instructions are available"),!1;this.X&&this.X.stop();this.S&&g.r3(this.S);var I=uxX(this,r);if(!I)return!1;(new g.hz(function(){var d=I.trigger,a=I.slot;I$(V,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",d.breakDurationMs,new Set,!0);I$(V,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",d.breakDurationMs,new Set,!1);V.Y.add(a.slotId)},10)).start(); return!0}; g.C.Gt=function(){}; g.C.vZ=function(r){this.G&&this.G.contentCpn!==r?(zQ("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:r,fetchInstructionsCpn:this.G.contentCpn}),dD(this)):mDj(this)}; g.C.yg=function(r){this.G&&this.G.contentCpn!==r&&zQ("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:r,fetchInstructionsCpn:this.G.contentCpn},!0);dD(this)}; g.C.Sb=function(r){var V=this;if(this.G)zQ("Unexpected multiple fetch instructions for the current content");else{this.G=r;r=vDU(r);this.X=new g.hz(function(){mDj(V)},r?r:6E5); this.X.start();this.S=new g.hz(function(){V.G&&(V.X&&(V.X.stop(),V.X.start()),QHj(V,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},pwX(this.G)); r=tJ(this.SC.get());for(var I=g.H(JlX(this.Br.get())),d=I.next();!d.done;d=I.next())d=d.value,jo(this.sE.get(),"nocache","ct."+Date.now()+";cmt."+r+";d."+d.aB.toFixed(3)+";tw."+(d.startSecs-r)+";cid."+d.identifier+";")}}; g.C.eC=function(){g.X.prototype.eC.call(this);dD(this)};g.T(a$,g.X);g.C=a$.prototype;g.C.HL=function(r,V,I,d){if(this.oT.has(V.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(V instanceof ft))throw new q("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.oT.set(V.triggerId,new ey(r,V,I,d));r=this.G.has(V.triggeringLayoutId)?g.J(this.G.get(V.triggeringLayoutId)):new Set;r.add(V);this.G.set(V.triggeringLayoutId,r)}; g.C.bV=function(r){this.oT.delete(r.triggerId);if(!(r instanceof ft))throw new q("Incorrect TriggerType: Tried to unregister trigger of type "+r.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var V=this.X.get(r.triggerId);V&&(V.dispose(),this.X.delete(r.triggerId));if(V=this.G.get(r.triggeringLayoutId))V.delete(r),V.size===0&&this.G.delete(r.triggeringLayoutId)}; g.C.Ej=function(){}; g.C.zR=function(){}; g.C.oQ=function(){}; g.C.CJ=function(){}; g.C.WK=function(){}; g.C.Cw=function(){}; g.C.W3=function(){}; g.C.kG=function(){}; g.C.Y8=function(){}; g.C.Io=function(){}; g.C.Pp=function(r,V){var I=this;if(this.G.has(V.layoutId)){r=g.J(this.G.get(V.layoutId));r=g.H(r);var d=r.next();for(V={};!d.done;V={vx:void 0},d=r.next())V.vx=d.value,d=new g.hz(function(a){return function(){var f=g.J(I.oT.get(a.vx.triggerId));lj(I.S(),[f])}}(V),V.vx.durationMs),d.start(),this.X.set(V.vx.triggerId,d)}}; g.C.nF=function(){};g.T(fw,g.X);fw.prototype.HL=function(r,V,I,d){if(this.oT.has(V.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(V instanceof A7))throw new q("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in VideoTransitionTriggerAdapter.");this.oT.set(V.triggerId,new ey(r,V,I,d))}; fw.prototype.bV=function(r){this.oT.delete(r.triggerId)};j9.prototype.CU=function(r){return r.kind==="AD_PLACEMENT_KIND_START"};g.T(Ef,g.X);g.C=Ef.prototype;g.C.logEvent=function(r){this.L9(r)}; g.C.XB=function(r,V,I){this.L9(r,void 0,void 0,void 0,V,void 0,void 0,void 0,V.adSlotLoggingData,void 0,void 0,I)}; g.C.y_=function(r,V,I,d){this.L9(r,void 0,void 0,void 0,V,I?I:void 0,void 0,void 0,V.adSlotLoggingData,I?I.adLayoutLoggingData:void 0,void 0,d)}; g.C.u9=function(r,V,I,d){kp(this.ws.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+r,"trigger:",I,"slot:",V,"layout:",d);sp(this.G.get())&&this.L9(r,void 0,void 0,void 0,V,d?d:void 0,void 0,I,V.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; g.C.m1=function(r,V,I,d,a){this.L9(r,V,I,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a)}; g.C.h2=function(r,V,I,d){this.L9("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,I,d,void 0,void 0,I.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:r,errorMessage:V})}; g.C.L9=function(r,V,I,d,a,f,e,n,D,x,E,N){var c=this;N=N===void 0?0:N;kp(this.ws.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+r,"slot:",a,"layout:",f,"ping:",e,"Opportunity:",{opportunityType:V,associatedSlotId:I,Bo8:d,xZH:n,adSlotLoggingData:D,adLayoutLoggingData:x});try{var z=function(){if(!c.ws.get().T.N().U("html5_disable_client_tmp_logs")&&r!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){r||zQ("Empty PACF event type",a,f);var M=sp(c.G.get()),w={eventType:r,eventOrder:++c.eventCount},b={}; a&&(b.slotData=N_(M,a));f&&(b.layoutData=WsA(M,f));e&&(b.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:e.G.serializedAdPingMetadata,pingIndex:e.index});n&&(b.triggerData=Ep(n.trigger,n.category));V&&(b.opportunityData=$og(M,V,I,d));M={organicPlaybackContext:{contentCpn:bf(c.C8.get(),1).clientPlaybackNonce}};M.organicPlaybackContext.isLivePlayback=bf(c.C8.get(),1).Tz;var W;M.organicPlaybackContext.isMdxPlayback=(W=bf(c.C8.get(),1))==null?void 0:W.isMdxPlayback; var K;if((K=bf(c.C8.get(),1))==null?0:K.daiEnabled)M.organicPlaybackContext.isDaiContent=!0;var F;if(W=(F=bf(c.C8.get(),2))==null?void 0:F.clientPlaybackNonce)M.adVideoPlaybackContext={adVideoCpn:W};M&&(b.externalContext=M);w.adClientData=b;D&&(w.serializedSlotAdServingData=D.serializedSlotAdServingDataEntry);x&&(w.serializedAdServingData=x.serializedAdServingDataEntry);E&&(w.errorInfo=E);g.N9("adsClientStateChange",{adsClientEvent:w})}}; N&&N>0?g.IY(g.aY(),function(){return z()},N):z()}catch(M){kp(this.ws.get(),"html5_log_pacf_logging_errors")&&g.IY(g.aY(),function(){zQ(M instanceof Error?M:String(M),a,f,{pacf_message:"exception during pacf logging"})})}};var PEG=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.T(N3,Ef);g.C=N3.prototype; g.C.XB=function(r,V,I){Ef.prototype.XB.call(this,r,V,I);t4(this.ws.get())&&(I={},this.context.QM.Ps("pacf",(I.et=r,I.st=V.slotType,I.si=V.slotId,I)))}; g.C.y_=function(r,V,I,d){var a=PEG.has(r);Ef.prototype.y_.call(this,r,V,I,d);t4(this.ws.get(),a)&&(d={},this.context.QM.Ps("pacf",(d.et=r,d.st=V.slotType,d.si=V.slotId,d.lt=I==null?void 0:I.layoutType,d.li=I==null?void 0:I.layoutId,d.p_ac=I==null?void 0:I.layoutId,d)))}; g.C.m1=function(r,V,I,d,a){Ef.prototype.m1.call(this,r,V,I,d,a);t4(this.ws.get())&&(I={},this.context.QM.Ps("pacf",(I.et=r,I.ot=V,I.ss=d==null?void 0:d.length,I)))}; g.C.u9=function(r,V,I,d){Ef.prototype.u9.call(this,r,V,I,d);if(t4(this.ws.get())){var a={};this.context.QM.Ps("pacf",(a.et=r,a.tt=I.trigger.triggerType,a.tc=I.category,a.st=V.slotType,a.si=V.slotId,a.lt=d==null?void 0:d.layoutType,a.li=d==null?void 0:d.layoutId,a.p_ac=d==null?void 0:d.layoutId,a))}}; g.C.h2=function(r,V,I,d){Ef.prototype.h2.call(this,r,V,I,d);if(t4(this.ws.get(),!0)){var a={};this.context.QM.Ps("perror",(a.ert=r,a.erm=V,a.st=I.slotType,a.si=I.slotId,a.lt=d==null?void 0:d.layoutType,a.li=d==null?void 0:d.layoutId,a.p_ac=d==null?void 0:d.layoutId,a))}}; g.C.L9=function(r,V,I,d,a,f,e,n,D,x,E){var N=this.ws.get();g.Ai(N.T.N())?(N=this.ws.get(),N=g.zM(N.T.N().experiments,"H5_async_logging_delay_ms")):N=void 0;Ef.prototype.L9.call(this,r,V,I,d,a,f,e,n,D,x,E,N)};sf.prototype.clear=function(){this.G.clear()};g.C=zK.prototype;g.C.resolve=function(r){cp(this,r)}; g.C.reject=function(r){this.cK(r)}; g.C.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.t5()?{state:"fail",error:this.error}:{state:"wait"}}; g.C.t5=function(){return this.currentState==="fail"}; g.C.wait=function(){var r=this;return function I(){return Jh(I,function(d){if(d.X==1)return g.Oi(d,2),g.G(d,{EN:r},4);if(d.X!=2)return d.return(d.G);g.Ah(d);return g.Fj(d,0)})}()}; g.C.cK=function(r){this.currentState="fail";this.error=r;Of(this)}; var sCj=bE(function(r){return M3(r)?r instanceof zK:!1});Object.freeze({kOk:function(r){var V=x_X(r);return Wp(D_i(V,function(I){return V[I].t5()}),function(I){return Number.isNaN(I)?V.map(function(d){return d.state().result}):V[I]})}, OUz:function(r){var V=x_X(r);return Wp(D_i(V),function(){return V.map(function(I){return I.state()})})}});var yV=window.p9L||"en";lZ.prototype.ix=function(r){this.client=r}; lZ.prototype.G=function(){this.clear();this.csn=g.A8()}; lZ.prototype.clear=function(){this.S.clear();this.X.clear();this.Y.clear();this.csn=null};J0.prototype.ix=function(r){g.I6(Lw().ix).bind(Lw())(r)}; J0.prototype.clear=function(){g.I6(Lw().clear).bind(Lw())()};g.C=ZH.prototype;g.C.ix=function(r){this.client=r}; g.C.hw=function(r,V){var I=this;V=V===void 0?{}:V;g.I6(function(){var d,a,f,e=((d=g.U(r==null?void 0:r.commandMetadata,g.Hj))==null?void 0:d.rootVe)||((a=g.U(r==null?void 0:r.commandMetadata,scc))==null?void 0:(f=a.screenVisualElement)==null?void 0:f.uiType);if(e){d=g.U(r==null?void 0:r.commandMetadata,lhP);if(d==null?0:d.parentTrackingParams){var n=g.R9(d.parentTrackingParams);if(d.parentCsn)var D=d.parentCsn}else V.clickedVisualElement?n=V.clickedVisualElement:r.clickTrackingParams&&(n=g.R9(r.clickTrackingParams)); a:{d=g.U(r,g.dt);a=g.U(r,KQf);if(d){if(a=NiA(d,"VIDEO")){d={token:a,videoId:d.videoId};break a}}else if(a&&(d=NiA(a,"PLAYLIST"))){d={token:d,playlistId:a.playlistId};break a}d=void 0}V=Object.assign({},{cttAuthInfo:d,parentCsn:D},V);if(g.WR("expectation_logging")){var x;V.loggingExpectations=((x=g.U(r==null?void 0:r.commandMetadata,scc))==null?void 0:x.loggingExpectations)||void 0}Bp(I,e,n,V)}else g.gj(new g.ox("Error: Trying to create a new screen without a rootVeType",r))})()}; g.C.clickCommand=function(r,V,I){r=r.clickTrackingParams;I=I===void 0?0:I;r?(I=g.A8(I===void 0?0:I))?(aD(this.client,I,g.R9(r),V),V=!0):V=!1:V=!1;return V}; g.C.stateChanged=function(r,V,I){this.visualElementStateChanged(g.R9(r),V,I===void 0?0:I)}; g.C.visualElementStateChanged=function(r,V,I){I=I===void 0?0:I;I===0&&this.X.has(I)?this.j.push([r,V]):Tiv(this,r,V,I)};Uf.prototype.fetch=function(r,V,I){var d=this,a=bMA(r,V,I);return new Promise(function(f,e){function n(){if(I==null?0:I.wu)try{var x=d.handleResponse(r,a.status,a.response,I);f(x)}catch(E){e(E)}else f(d.handleResponse(r,a.status,a.response,I))} a.onerror=n;a.onload=n;var D;a.send((D=V.body)!=null?D:null)})}; Uf.prototype.handleResponse=function(r,V,I,d){I=I.replace(")]}'","");try{var a=JSON.parse(I)}catch(f){g.gj(new g.ox("JSON parsing failed after XHR fetch",r,V,I));if((d==null?0:d.wu)&&I)throw new g.eI(1,"JSON parsing failed after XHR fetch");a={}}V!==200&&(g.gj(new g.ox("XHR API fetch failed",r,V,I)),a=Object.assign({},a,{errorMetadata:{status:V}}));return a};QV.getInstance=function(){var r=g.Pr("ytglobal.storage_");r||(r=new QV,g.qp("ytglobal.storage_",r));return r}; QV.prototype.estimate=function(){var r,V,I;return g.L(function(d){r=navigator;return((V=r.storage)==null?0:V.estimate)?d.return(r.storage.estimate()):((I=r.webkitTemporaryStorage)==null?0:I.queryUsageAndQuota)?d.return(OMZ()):d.return()})}; g.qp("ytglobal.storageClass_",QV);xw.prototype.ML=function(r){this.handleError(r)}; xw.prototype.logEvent=function(r,V){switch(r){case "IDB_DATA_CORRUPTED":g.WR("idb_data_corrupted_killswitch")||this.G("idbDataCorrupted",V);break;case "IDB_UNEXPECTEDLY_CLOSED":this.G("idbUnexpectedlyClosed",V);break;case "IS_SUPPORTED_COMPLETED":g.WR("idb_is_supported_completed_killswitch")||this.G("idbIsSupportedCompleted",V);break;case "QUOTA_EXCEEDED":$_O(this,V);break;case "TRANSACTION_ENDED":this.S&&Math.random()<=.1&&this.G("idbTransactionEnded",V);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":r= Object.assign({},V,{hasWindowUnloaded:this.X}),this.G("idbTransactionAborted",r)}};var pz={},fFp=g.a1("yt-player-local-media",{IZ:(pz.index={LS:2},pz.media={LS:2},pz.captions={LS:5},pz),shared:!1,upgrade:function(r,V){V(2)&&(g.lO(r,"index"),g.lO(r,"media"));V(5)&&g.lO(r,"captions");V(6)&&(LH(r,"metadata"),LH(r,"playerdata"))}, version:5});var oxe={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},vj;a:{var qv=g.RZ();qv=qv.toLowerCase();if(g.Ht(qv,"android")){var kIG=qv.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(kIG){var hiP=parseFloat(kIG[1]);if(hiP<100){vj=hiP;break a}}var rA6=qv.match("("+Object.keys(oxe).join("|")+")");vj=rA6?oxe[rA6[0]]:0}else vj=void 0}var ZB=vj,JK=ZB>=0;var Mjr=window;var K1i=zI(function(){var r,V;return(V=(r=window).matchMedia)==null?void 0:V.call(r,"(prefers-reduced-motion: reduce)").matches});var uZ;g.mB=new lI;uZ=0;var aj=l9p()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.kw?!0:!1;var q3={rW:function(r,V){var I=r[0];r[0]=r[V%r[Y[1]]];r[V%r[Y[1]]]=I}, Y6:function(r){r[Y[29]]()}, t0:function(r,V){r[Y[16]](0,V)}};var djA={Czs:"adunit",ViQ:"detailpage",Fyz:"editpage",XOQ:"embedded",M$s:"leanback",PPM:"previewpage",lpc:"profilepage",z8:"unplugged",xTs:"playlistoverview",v27:"sponsorshipsoffer",ZSQ:"shortspage",il0:"handlesclaiming",m3E:"immersivelivepage",AKs:"creatormusic",FcQ:"immersivelivepreviewpage",tA7:"admintoolyurt",LFk:"shortsaudiopivot",EQ0:"consumption"};var Jir=2592E3;var Pj,V_f,bM;Pj={};g.IC=(Pj.STOP_EVENT_PROPAGATION="html5-stop-propagation",Pj.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Pj.IV_DRAWER_OPEN="ytp-iv-drawer-open",Pj.MAIN_VIDEO="html5-main-video",Pj.VIDEO_CONTAINER="html5-video-container",Pj.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Pj.HOUSE_BRAND="house-brand",Pj);V_f={};bM=(V_f.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",V_f.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",V_f);var m_h={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var qOp={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},PHZ={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"},Rwp={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var WEp={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.NO.prototype.getLanguageInfo=function(){return this.uo}; g.NO.prototype.getXtags=function(){if(!this.xtags){var r=this.id.split(";");r.length>1&&(this.xtags=r[1])}return this.xtags}; g.NO.prototype.toString=function(){return this.uo.name}; g.NO.prototype.getLanguageInfo=g.NO.prototype.getLanguageInfo;sG.prototype.equals=function(r){return this.X===r.X&&this.G===r.G&&this.S===r.S&&this.reason===r.reason&&(!zb||this.VH===r.VH)}; sG.prototype.isLocked=function(){return this.S&&!!this.X&&this.X===this.G}; sG.prototype.compose=function(r){if(r.S&&MO(r))return vk;if(r.S||MO(this))return r;if(this.S||MO(r))return this;var V=this.X&&r.X?Math.max(this.X,r.X):this.X||r.X,I=this.G&&r.G?Math.min(this.G,r.G):this.G||r.G;V=Math.min(V,I);var d=0;zb&&(d=this.VH!==0&&r.VH!==0?Math.min(this.VH,r.VH):this.VH===0?r.VH:this.VH);return zb&&V===this.X&&I===this.G&&d===this.VH||!zb&&V===this.X&&I===this.G?this:zb?new sG(V,I,!1,I===this.G&&d===this.VH?this.reason:r.reason,d):new sG(V,I,!1,I===this.G?this.reason:r.reason)}; sG.prototype.Y=function(r){return!r.video||zb&&this.VH!==0&&this.VH=0}; g.C.wl=function(){var r=this.segments[this.segments.length-1];return r?r.endTime:NaN}; g.C.Wy=function(){return this.segments[0].startTime}; g.C.Ti=function(){return this.segments.length}; g.C.uP=function(){return 0}; g.C.m5=function(r){return(r=this.ev(r))?r.J0:-1}; g.C.w9=function(r){return(r=this.MS(r))?r.sourceURL:""}; g.C.getStartTime=function(r){return(r=this.MS(r))?r.startTime:0}; g.C.vA=function(r){return this.getStartTime(r)+this.getDuration(r)}; g.C.Xv=VZ(1);g.C.isLoaded=function(){return this.segments.length>0}; g.C.MS=function(r){if(this.G&&this.G.J0===r)return this.G;r=g.Fe(this.segments,new Sv(r,0,0,0,""),function(V,I){return V.J0-I.J0}); return this.G=r>=0?this.segments[r]:null}; g.C.ev=function(r){if(this.G&&this.G.startTime<=r&&r=0?this.segments[r]:this.segments[Math.max(0,-r-2)]}; g.C.append=function(r){if(r.length)if(r=g.W9(r),this.segments.length){var V=this.segments.length?g.Nm(this.segments).endTime:0,I=r[0].J0-this.xX();I>1&&WAS(this.segments);for(I=I>0?0:-I+1;Ir.J0&&this.index.PG()<=r.J0+1}; g.C.update=function(r,V,I){this.index.append(r);$PA(this.index,I);r=this.index;r.X=V;r.S="update"}; g.C.sj=function(){return this.e1()?!0:XL.prototype.sj.call(this)}; g.C.fY=function(r,V){var I=this.index.w9(r),d=this.index.getStartTime(r),a=this.index.getDuration(r),f;V?a=f=0:f=this.info.VH>0?this.info.VH*a:1E3;return new PI([new UC(3,this,void 0,"liveCreateRequestInfoForSegment",r,d,a,0,f,!V)],I)}; g.C.nx=function(){return this.e1()?0:this.initRange.length}; g.C.kS=function(){return!1};db.prototype.update=function(r){var V=void 0;this.X&&(V=this.X);var I=new db,d=Array.from(r.getElementsByTagName("S"));if(d.length){var a=+VK(r,"timescale")||1,f=(+d[0].getAttribute("t")||0)/a,e=+VK(r,"startNumber")||0;I.Y=f;var n=V?V.startSecs+V.aB:0,D=Date.parse(HIA(VK(r,"yt:segmentIngestTime")))/1E3;I.W=r.parentElement.tagName==="SegmentTemplate";I.W&&(I.L=VK(r,"media"));r=V?e-V.J0:1;I.C=r>0?0:-r+1;r=g.H(d);for(d=r.next();!d.done;d=r.next()){d=d.value;for(var x=+d.getAttribute("d")/a,E=(+d.getAttribute("yt:sid")|| 0)/a,N=+d.getAttribute("r")||0,c=0;c<=N;c++)if(V&&e<=V.J0)e++;else{var z=new CAS(e,n,x,D+E,f);I.G.push(z);var M=d;var w=a,b=z.startSecs;z=M.getAttribute("yt:cuepointTimeOffset");var W=M.getAttribute("yt:cuepointDuration");if(z&&W){z=Number(z);b=-z/w+b;w=Number(W)/w;W=M.getAttribute("yt:cuepointContext")||null;var K=M.getAttribute("yt:cuepointIdentifier")||"";M=M.getAttribute("yt:cuepointEvent")||"";M=new oC(b,w,W,K,dsc[M]||"unknown",z)}else M=null;M&&I.S.push(M);e++;n+=x;f+=x;D+=x+E}}I.G.length&& (I.X=g.Nm(I.G))}this.C=I.C;this.X=I.X||this.X;g.KG(this.G,I.G);g.KG(this.S,I.S);this.W=I.W;this.L=I.L;this.Y===-1&&(this.Y=I.getStreamTimeOffset())}; db.prototype.getStreamTimeOffset=function(){return this.Y===-1?0:this.Y};g.T(fp,g.iY);g.C=fp.prototype;g.C.Lu=function(){return this.WH}; g.C.A2=function(r,V){r=eq(this,r);return r>=0&&(V||!this.segments[r].pending)}; g.C.PG=function(){return this.Zp?this.segments.length?this.ev(this.Wy()).J0:-1:g.iY.prototype.PG.call(this)}; g.C.Wy=function(){if(this.Ue)return 0;if(!this.Zp)return g.iY.prototype.Wy.call(this);if(!this.segments.length)return 0;var r=Math.max(g.Nm(this.segments).endTime-this.QQ,0);return this.S7>0&&g.J(this.ev(r)).J00)return this.iP/1E3;if(!this.segments.length)return g.iY.prototype.wl.call(this);var r=this.xX();if(!this.Zp||r<=this.segments[this.segments.length-1].J0)r=this.segments[this.segments.length-1];else{var V=this.segments[this.segments.length-1];r=new Sv(r,Math.max(0,V.startTime-(V.J0-r)*this.WH),this.WH,0,"sq/"+r,void 0,void 0,!0)}return this.Ue?Math.min(this.QQ,r.endTime):r.endTime}; g.C.Ti=function(){return this.Zp?this.segments.length?this.xX()-this.PG()+1:0:g.iY.prototype.Ti.call(this)}; g.C.xX=function(){var r=Math.min(this.pj,Math.max(g.iY.prototype.xX.call(this),this.jg)),V=this.QQ*1E3;V=this.iP>0&&this.iP0&&this.jg>0&&!V&&(V=this.ev(this.QQ))&&(r=Math.min(V.J0-1,r));return r}; g.C.Hw=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.C.FH=function(r){var V=eq(this,r.J0);if(V>=0)this.segments[V]=r;else if(this.segments.splice(-(V+1),0,r),this.Jj&&r.J0%(300/this.WH)===0){var I=this.segments[0].J0,d=Math.floor(this.Jj/this.WH);r=r.J0-d;V=-(V+1)-d;V>0&&r>I&&(this.segments=this.segments.slice(V))}}; g.C.A_=function(){return this.jg}; g.C.lc=function(r){return aJ?!this.X&&r>=0&&this.xX()<=r:g.iY.prototype.lc.call(this,r)}; g.C.ev=function(r){if(!this.Zp)return g.iY.prototype.ev.call(this,r);if(!this.segments.length)return null;var V=this.segments[this.segments.length-1];if(r=V.endTime)V=V.J0+Math.floor((r-V.endTime)/this.WH+1);else{V=l$(this.segments,function(d){return r=d.endTime?1:0}); if(V>=0)return this.segments[V];var I=-(V+1);V=this.segments[I-1];I=this.segments[I];V=Math.floor((r-V.endTime)/((I.startTime-V.endTime)/(I.J0-V.J0-1))+1)+V.J0}return this.MS(V)}; g.C.MS=function(r){if(!this.Zp)return g.iY.prototype.MS.call(this,r);if(!this.segments.length)return null;var V=eq(this,r);if(V>=0)return this.segments[V];var I=-(V+1);V=this.WH;if(I===0)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].J0-r)*V);else I===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(r-d.J0-1)*V):(d=this.segments[I-1],V=this.segments[I],V=(V.startTime-d.endTime)/(V.J0-d.J0-1),d=d.endTime+(r-d.J0-1)*V);return new Sv(r,d,V,0,"sq/"+r,void 0,void 0, !0)}; var aJ=!1;g.T(Y$,rb);g.C=Y$.prototype;g.C.VZ=function(){return!0}; g.C.sj=function(){return!0}; g.C.zC=function(r){return this.f1()&&r.S&&!r.W||!r.G.index.lc(r.J0)}; g.C.eW=function(){}; g.C.X6=function(r,V){return typeof r!=="number"||isFinite(r)?rb.prototype.X6.call(this,r,V===void 0?!1:V):new PI([new UC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.y7,void 0,this.y7*this.info.VH)],"")}; g.C.fY=function(r,V){var I=I===void 0?!1:I;if(this.index.A2(r))return rb.prototype.fY.call(this,r,V);var d=this.index.getStartTime(r),a=Math.round(this.y7*this.info.VH),f=this.y7;V&&(f=a=0);return new PI([new UC(I?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",r,d,f,void 0,a,!V)],r>=0?"sq/"+r:"")};g.T(np,XL);g.C=np.prototype;g.C.xD=function(){return!1}; g.C.f1=function(){return!1}; g.C.VZ=function(){return!1}; g.C.eW=function(){return new PI([new UC(1,this,void 0,"otfInit")],this.W)}; g.C.td=function(){return null}; g.C.dZ=function(r){this.zC(r);return tBA(this,ph(r),!1)}; g.C.X6=function(r,V){V=V===void 0?!1:V;r=this.index.m5(r);V&&(r=Math.min(this.index.xX(),r+1));return tBA(this,r,!0)}; g.C.Nq=function(r){r.info.type===1&&(this.G||(this.G=Ry(r.G)),r.X&&r.X.uri==="http://youtube.com/streaming/otf/durations/112015"&&yYU(this,r.X))}; g.C.zC=function(r){return r.S===0?!0:this.index.xX()>r.J0&&this.index.PG()<=r.J0+1}; g.C.nx=function(){return 0}; g.C.kS=function(){return!1};jq.prototype.qG=function(){return this.G.qG()};g.C=g.c5.prototype;g.C.A2=function(r){return r<=this.xX()}; g.C.uP=function(r){return this.offsets[r]}; g.C.getStartTime=function(r){return this.startTicks[r]/this.G}; g.C.vA=function(r){return this.getStartTime(r)+this.getDuration(r)}; g.C.Xv=VZ(0);g.C.dF=function(){return NaN}; g.C.getDuration=function(r){r=this.H_(r);return r>=0?r/this.G:-1}; g.C.H_=function(r){return r+1=0}; g.C.wl=function(){return this.X?this.startTicks[this.count]/this.G:NaN}; g.C.Wy=function(){return 0}; g.C.Ti=function(){return this.count}; g.C.w9=function(){return""}; g.C.m5=function(r){r=g.Fe(this.startTicks.subarray(0,this.count),r*this.G);return r>=0?r:Math.max(0,-r-2)}; g.C.isLoaded=function(){return this.xX()>=0}; g.C.mL=function(r,V){if(r>=this.xX())return 0;var I=0;for(V=this.getStartTime(r)+V;rthis.getStartTime(r);r++)I=Math.max(I,BgA(this,r)/this.getDuration(r));return I}; g.C.resize=function(r){r+=2;var V=this.offsets;this.offsets=new Float64Array(r+1);var I=this.startTicks;this.startTicks=new Float64Array(r+1);for(r=0;r0&&r&&(I=I.range.end+1,r=Math.min(r,this.info.contentLength-I),r>0&&d.push(new UC(4,this,S6(I,r),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,V)));return new PI(d)}; g.C.Nq=function(r){if(r.info.type===1){if(this.G)return;this.G=Ry(r.G)}else if(r.info.type===2){if(this.W||this.index.xX()>=0)return;if(g.I2(this.info)){var V=this.index,I=r.qG();r=r.info.range.start;var d=g.Ii(I,0,1936286840);I=Xqv(d);V.G=I.timescale;var a=I.ON;V.offsets[0]=I.jt+r+d.size;V.startTicks[0]=a;V.X=!0;r=I.oa.length;for(d=0;d0&&r===f[0].eF)for(r=0;r=V+I)break}a.length||(r=new g.ox("b189619593",""+r,""+V,""+I),g.BG(r));return new PI(a)}; g.C.sD=function(r){for(var V=this.bd(r.info),I=r.info.range.start+r.info.X,d=[],a=0;a=this.index.uP(I+1);)I++;return this.zU(I,V,r.S).iL}; g.C.zC=function(r){r.N7();return this.sj()?!0:r.range.end+1this.info.contentLength&&(V=new BI(V.start,this.info.contentLength-1)),new PI([new UC(4,r.G,V,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,r.clipId)]);r.type===4&&(r=this.bd(r),r=r[r.length-1]);var I=0,d=r.range.start+r.X+r.S;r.type===3&&(r.N7(),I=r.J0,d===r.range.end+1&&(I+=1));return this.zU(I,d,V)}; g.C.dZ=function(){return null}; g.C.X6=function(r,V,I){V=V===void 0?!1:V;r=this.index.m5(r);V&&(r=Math.min(this.index.xX(),r+1));return this.zU(r,this.index.uP(r),0,I)}; g.C.xD=function(){return!0}; g.C.f1=function(){return!0}; g.C.VZ=function(){return!1}; g.C.nx=function(){return this.indexRange.length+this.initRange.length}; g.C.kS=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var kH={},I7v=(kH.COLOR_PRIMARIES_BT709="bt709",kH.COLOR_PRIMARIES_BT2020="bt2020",kH.COLOR_PRIMARIES_UNKNOWN=null,kH.COLOR_PRIMARIES_UNSPECIFIED=null,kH),hn={},SVU=(hn.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",hn.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",hn.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",hn.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",hn.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,hn.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,hn);g.Cp.prototype.getName=function(){return this.name}; g.Cp.prototype.getId=function(){return this.id}; g.Cp.prototype.getIsDefault=function(){return this.isDefault}; g.Cp.prototype.toString=function(){return this.name}; g.Cp.prototype.getName=g.Cp.prototype.getName;g.Cp.prototype.getId=g.Cp.prototype.getId;g.Cp.prototype.getIsDefault=g.Cp.prototype.getIsDefault;var m$A=/action_display_post/;var uTh,wb,bs;g.T(Oq,g.NK);g.C=Oq.prototype;g.C.isLoading=function(){return this.state===1}; g.C.PL=function(){return this.state===3}; g.C.hhQ=function(r){var V=r.getElementsByTagName("Representation");if(r.getElementsByTagName("SegmentList").length>0||r.getElementsByTagName("SegmentTemplate").length>0){this.Tz=this.X=!0;this.timeline||(this.timeline=new bIi);KqA(this.timeline,r);this.publish("refresh");for(r=0;r=0?E=gr(c):N=N+"?range="+c}D.call(n,new Sv(x.J0,x.startSecs,x.aB,x.G,N,E,x.X))}d=a}I.update(d,this.isLive,this.EE)}R4p(this.timeline);return!0}this.duration=Tgh(VK(r,"mediaPresentationDuration")); a:{for(r=0;r0))return this.zd()-r}}r=this.G;for(var V in r){var I=r[V].index;if(I.isLoaded()&&!YY(r[V].info.mimeType))return I.Wy()}return 0}; g.C.getStreamTimeOffset=function(){return this.L}; g.C.dF=function(r){for(var V in this.G){var I=this.G[V].index;if(I.isLoaded()){var d=I.m5(r),a=I.dF(d);if(a)return a+r-I.getStartTime(d)}}return NaN}; var X5=null,agf,B5=!((agf=navigator.mediaCapabilities)==null||!agf.decodingInfo),nXX={commentary:1,alternate:2,dub:3,main:4};var ab=new Set,gb=new Map;Uq.prototype.clone=function(r){return new Uq(this.flavor,r,this.X,this.experiments)}; Uq.prototype.Qy=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Uq.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 fg9={},hD=(fg9.playready=["com.youtube.playready","com.microsoft.playready"],fg9.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],fg9),r9={},kmZ=(r9.widevine="DRM_SYSTEM_WIDEVINE",r9.fairplay="DRM_SYSTEM_FAIRPLAY",r9.playready="DRM_SYSTEM_PLAYREADY",r9),Vy={},eFp=(Vy.widevine=1,Vy.fairplay=2,Vy.playready=3,Vy);var Ij;g.T(r$,g.X); r$.prototype.initialize=function(r,V){for(var I=this,d=g.H(Object.keys(r)),a=d.next();!a.done;a=d.next()){a=g.H(r[a.value]);for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.Cq)for(var e=g.H(Object.keys(f.Cq)),n=e.next();!n.done;n=e.next()){var D=n.value;n=D;D=hD[D];!D&&this.U("html5_enable_vp9_fairplay")&&n==="fairplay"&&(D=["com.youtube.fairplay.sbdl"]);if(D){D=g.H(D);for(var x=D.next();!x.done;x=D.next())x=x.value,this.S[x]=this.S[x]||new Uq(n,x,f.Cq[n],this.mM.experiments),this.G[n]=this.G[n]|| {},this.G[n][f.mimeType]=!0}}}PR()&&(this.S["com.youtube.fairplay"]=new Uq("fairplay","com.youtube.fairplay","",this.mM.experiments),this.U("html5_enable_vp9_fairplay")||(this.G.fairplay=this.G.fairplay||{},this.G.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.G.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.X=wbA(V,this.useCobaltWidevine,this.U("html5_enable_safari_fairplay")&&!0,this.U("html5_enable_vp9_fairplay")).filter(function(E){return!!I.S[E]})}; r$.prototype.U=function(r){return this.mM.experiments.uL(r)};var YD9={"":"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"};trX.prototype.U=function(r){return this.experiments.uL(r)};var feS={RED:"red",X9C:"white"};y3A.prototype.uL=function(r){r=this.flags[r];JSON.stringify(r);return r==="true"};var FHi=Promise.resolve(),ZPZ=window.queueMicrotask?window.queueMicrotask.bind(window):l7A;e4.prototype.canPlayType=function(r,V){r=r.canPlayType?r.canPlayType(V):!1;oY?r=r||nqY[V]:ZB===2.2?r=r||j3P[V]:vR()&&(r=r||Dsc[V]);return!!r}; e4.prototype.isTypeSupported=function(r){return this.kc?window.cast.receiver.platform.canDisplayType(r):Xa(r)}; var j3P={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Dsc={"application/x-mpegURL":"maybe"},nqY={"application/x-mpegURL":"maybe"};g.T(DB,g.NK);DB.prototype.add=function(r,V){if(!this.items[r]&&(V.HA||V.jD||V.sJ)){var I=this.items,d=V;Object.isFrozen&&!Object.isFrozen(V)&&(d=Object.create(V),Object.freeze(d));I[r]=d;this.publish("vast_info_card_add",r)}}; DB.prototype.remove=function(r){var V=this.get(r);delete this.items[r];return V}; DB.prototype.get=function(r){return this.items[r]||null}; DB.prototype.isEmpty=function(){return g.ho(this.items)};var EL;Na.prototype.add=function(r){if(this.pos+20>this.data.length){var V=new Uint8Array(this.data.length*2);V.set(this.data);this.data=V}for(;r>31;)this.data[this.pos++]=EL[(r&31)+32],r>>=5;this.data[this.pos++]=EL[r|0]}; Na.prototype.eI=function(){return g.GU(this.data.subarray(0,this.pos))}; Na.prototype.reset=function(){this.pos=0};c8.prototype.V_=function(r,V){var I=Math.pow(this.alpha,r);this.G=V*(1-I)+I*this.G;this.X+=r}; c8.prototype.PH=function(){return this.G/(1-Math.pow(this.alpha,this.X))};zt.prototype.V_=function(r,V){for(var I=0;I<10;I++){var d=this.G[I],a=d+(I===0?r:0),f=1*Math.pow(2,I);if(a<=f)break;d=Math.min(1,(a-f*.5)/d);for(a=0;a<16;a++)f=this.values[I*16+a]*d,this.values[(I+1)*16+a]+=f,this.G[I+1]+=f,this.values[I*16+a]-=f,this.G[I]-=f}d=I=0;a=8192;V>8192&&(I=Math.ceil(Math.log(V/8192)/Math.log(2)),d=8192*Math.pow(2,I-1),a=d*2);I+2>16?this.values[15]+=r:(V=(V-d)/(a-d),this.values[I]+=r*(1-V),this.values[I+1]+=r*V);this.G[0]+=r}; zt.prototype.PH=function(){var r=r===void 0?this.X:r;var V=V===void 0?.02:V;var I=I===void 0?.98:I;for(var d=this.S,a=0;a<16;a++)d[a]=this.values[a];a=this.G[0];for(var f=1;f<11;f++){var e=this.G[f];if(e===0)break;for(var n=Math.min(1,(r-a)/e),D=0;D<16;D++)d[D]+=this.values[f*16+D]*n;a+=e*n;if(n<1)break}for(f=r=e=0;f<16;f++){n=e+d[f]/a;r+=Math.max(0,Math.min(n,I)-Math.max(e,V))*(f>0?8192*Math.pow(2,f-1):0);if(n>I)break;e=n}return r/(I-V)};Ma.prototype.V_=function(r,V){r=Math.min(this.G,Math.max(1,Math.round(r*this.resolution)));r+this.X>=this.G&&(this.S=!0);for(;r--;)this.values[this.X]=V,this.X=(this.X+1)%this.G;this.Hb=!0}; Ma.prototype.percentile=function(r){var V=this;if(!this.S&&this.X===0)return 0;this.Hb&&(g.LG(this.W,function(I,d){return V.values[I]-V.values[d]}),this.Hb=!1); return this.values[this.W[Math.round(r*((this.S?this.G:this.X)-1))]]||0}; Ma.prototype.PH=function(){return this.C?(this.percentile(this.Y-this.C)+this.percentile(this.Y)+this.percentile(this.Y+this.C))/3:this.percentile(this.Y)};g.T(Cx,g.X);Cx.prototype.L8=function(){var r;(r=this.TQ)==null||r.start();if(Kx(this)&&this.policy.j){var V;(V=this.dh)==null||V.Bt()}};Pfv.prototype.U=function(r){return this.experiments.uL(r)};g.T(kNZ,g.X);var aej="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Djv={VAM:"caoe",PzM:"capsv",XZL:"cbrand",qoc:"cbr",SoM:"cbrver",WHM:"cchip",jv0:"ccappver",d7L:"ccrv",Ly0:"cfrmver",XLM:"c",S6C:"cver",ngz:"ctheme",q6L:"cplayer",qcC:"cmodel",CPE:"cnetwork",dTL:"cos",OS_VERSION:"cosver",Mz0:"cplatform",qXM:"crqyear"};g.T(v8,g.X);g.C=v8.prototype;g.C.U=function(r){return this.experiments.uL(r)}; g.C.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.C.getVideoUrl=function(r,V,I,d,a,f,e){V={list:V};I&&(a?V.time_continue=I:V.t=I);I=e?"music.youtube.com":g.P8(this);a=I==="www.youtube.com";!f&&d&&a?f="https://youtu.be/"+r:g.g$(this)?(f="https://"+I+"/fire",V.v=r):(f&&a?(f=this.protocol+"://"+I+"/shorts/"+r,d&&(V.feature="share")):(f=this.protocol+"://"+I+"/watch",V.v=r),oY&&(r=g0j())&&(V.ebc=r));return g.Ly(f,V)}; g.C.getVideoEmbedCode=function(r,V,I,d){V="https://"+g.P8(this)+"/embed/"+V;d&&(V=g.Ly(V,{list:d}));d=I.width;I=I.height;V=CJ(V);r=CJ(r!=null?r:"YouTube video player");return'')}; g.C.supportsGaplessAudio=function(){return g.Zk&&!oY&&mg()>=74||g.oJ&&g.tS(68)?!0:!1}; g.C.supportsGaplessShorts=function(){return!this.U("html5_enable_short_gapless")||this.Ws||g.WQ?!1:!0}; g.C.getPlayerType=function(){return this.G.cplayer}; g.C.Ko=function(){return this.j7}; var sSi=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],jSr=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],E7X=[19];var IR={},MoO=(IR["140"]={numChannels:2},IR["141"]={numChannels:2},IR["251"]={audioSampleRate:48E3,numChannels:2},IR["774"]={audioSampleRate:48E3,numChannels:2},IR["380"]={numChannels:6},IR["328"]={numChannels:6},IR["773"]={},IR),d9={},c7A=(d9["1"]='video/mp4; codecs="av01.0.08M.08"',d9["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',d9["1e"]='video/mp4; codecs="av01.0.08M.08"',d9["9"]='video/webm; codecs="vp9"',d9["("]='video/webm; codecs="vp9"',d9["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', d9.h='video/mp4; codecs="avc1.64001e"',d9.H='video/mp4; codecs="avc1.64001e"',d9.o='audio/webm; codecs="opus"',d9.a='audio/mp4; codecs="mp4a.40.2"',d9.ah='audio/mp4; codecs="mp4a.40.2"',d9.mac3='audio/mp4; codecs="ac-3"; channels=6',d9.meac3='audio/mp4; codecs="ec-3"; channels=6',d9.i='audio/mp4; codecs="iamf.001.001.Opus"',d9),aR={},zWU=(aR["337"]={width:3840,height:2160,bitrate:3E7,fps:30},aR["336"]={width:2560,height:1440,bitrate:15E6,fps:30},aR["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, aR["702"]={width:7680,height:4320,bitrate:4E7,fps:60},aR["701"]={width:3840,height:2160,bitrate:2E7,fps:60},aR["700"]={width:2560,height:1440,bitrate:1E7,fps:60},aR["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},aR["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},aR["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},aR["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, aR["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},aR["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},aR["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},aR["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},aR["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},aR["315"]={width:3840,height:2160,bitrate:2E7,fps:60},aR["308"]={width:2560, height:1440,bitrate:1E7,fps:60},aR["303"]={width:1920,height:1080,bitrate:5E6,fps:60},aR["302"]={width:1280,height:720,bitrate:25E5,fps:60},aR["299"]={width:1920,height:1080,bitrate:75E5,fps:60},aR["298"]={width:1280,height:720,bitrate:35E5,fps:60},aR["571"]={width:7680,height:4320,bitrate:3E7,fps:60},aR["401"]={width:3840,height:2160,bitrate:15E6,fps:60},aR["400"]={width:2560,height:1440,bitrate:75E5,fps:60},aR["399"]={width:1920,height:1080,bitrate:2E6,fps:60},aR["398"]={width:1280,height:720,bitrate:1E6, fps:60},aR["397"]={width:854,height:480,bitrate:4E5,fps:30},aR["396"]={width:640,height:360,bitrate:25E4,fps:30},aR["787"]={width:1080,height:608,bitrate:2E5,fps:30},aR["788"]={width:1080,height:608,bitrate:4E5,fps:30},aR["572"]={width:7680,height:4320,bitrate:3E7,fps:60},aR["555"]={width:3840,height:2160,bitrate:15E6,fps:60},aR["554"]={width:2560,height:1440,bitrate:75E5,fps:60},aR["553"]={width:1920,height:1080,bitrate:2E6,fps:60},aR["552"]={width:1280,height:720,bitrate:1E6,fps:60},aR["551"]={width:854, height:480,bitrate:4E5,fps:30},aR["550"]={width:640,height:360,bitrate:25E4,fps:30},aR["313"]={width:3840,height:2160,bitrate:8E6,fps:30},aR["271"]={width:2560,height:1440,bitrate:4E6,fps:30},aR["248"]={width:1920,height:1080,bitrate:2E6,fps:30},aR["247"]={width:1280,height:720,bitrate:15E5,fps:30},aR["244"]={width:854,height:480,bitrate:52E4,fps:30},aR["243"]={width:640,height:360,bitrate:28E4,fps:30},aR["137"]={width:1920,height:1080,bitrate:4E6,fps:30},aR["136"]={width:1280,height:720,bitrate:3E6, fps:30},aR["135"]={width:854,height:480,bitrate:1E6,fps:30},aR["385"]={width:1920,height:1080,bitrate:6503313,fps:60},aR["376"]={width:1280,height:720,bitrate:5706960,fps:60},aR["384"]={width:1280,height:720,bitrate:3660979,fps:60},aR["225"]={width:1280,height:720,bitrate:5805E3,fps:30},aR["224"]={width:1280,height:720,bitrate:453E4,fps:30},aR["145"]={width:1280,height:720,bitrate:2682052,fps:30},aR);g.C=Er.prototype;g.C.getInfo=function(){return this.G}; g.C.Iz=function(){return null}; g.C.kR=function(){var r=this.Iz();return r?(r=g.n5(r.po),Number(r.expire)):NaN}; g.C.aV=function(){}; g.C.getHeight=function(){return this.G.video.height};wNv.prototype.build=function(){WpX(this);var r=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],V={};a:if(this.G)var I=this.G;else{I="";for(var d=g.H(this.S),a=d.next();!a.done;a=d.next())if(a=a.value,a.uo){if(a.uo.getIsDefault()){I=a.uo.getId();break a}I||(I=a.uo.getId())}}d=g.H(this.S);for(a=d.next();!a.done;a=d.next())if(a=a.value,this.C||!a.uo||a.uo.getId()===I)V[a.itag]||(V[a.itag]=[]),V[a.itag].push(a);I=g.H(this.X);for(d=I.next();!d.done;d=I.next())if(d=d.value,a=V[d.G]){a=g.H(a);for(var f=a.next();!f.done;f= a.next()){var e=r,n=e.push;f=f.value;var D="#EXT-X-MEDIA:TYPE=AUDIO,",x="YES",E="audio";if(f.uo){E=f.uo;var N=E.getId().split(".")[0];N&&(D+='LANGUAGE="'+N+'",');(this.G?this.G===E.getId():E.getIsDefault())||(x="NO");E=E.getName()}N="";d!==null&&(N=d.itag.toString());N=sr(this,f.url,N);D=D+('NAME="'+E+'",DEFAULT='+(x+',AUTOSELECT=YES,GROUP-ID="'))+(O1h(f,d)+'",URI="'+(N+'"'));n.call(e,D)}}I=g.H(this.W);for(d=I.next();!d.done;d=I.next())d=d.value,a=xse,d=(e=d.uo)?'#EXT-X-MEDIA:URI="'+sr(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+a+'",LANGUAGE="'+e.getId()+'",NAME="'+e.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&r.push(d);I=this.W.length>0?xse:void 0;d=g.H(this.X);for(a=d.next();!a.done;a=d.next())a=a.value,n=V[a.G],e=void 0,((e=n)==null?void 0:e.length)>0&&(e=a,n=n[0],n="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+n.bitrate)+',CODECS="'+(e.codecs+","+n.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(O1h(n,e)+'",')+(I?'SUBTITLES="'+I+'",':"")+"CLOSED-CAPTIONS=NONE",e.fps>1&&(n+= ",FRAME-RATE="+e.fps),e.DO&&(n+=",VIDEO-RANGE="+e.DO),r.push(n),r.push(sr(this,a.url,"")));return r.join("\n")}; var xse="text";g.T(ck,Er);ck.prototype.kR=function(){return this.expiration}; ck.prototype.Iz=function(){if(!this.po||this.po.h0()){var r=this.X.build();r="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(r);this.po=new OV(r)}return this.po};g.T(zp,Er);zp.prototype.Iz=function(){return new OV(this.X.fq())}; zp.prototype.aV=function(){this.X=B7(this.X)};g.T(MC,Er);MC.prototype.Iz=function(){return new OV(this.X)};var fC={},LpZ=(fC.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",fC.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",fC.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",fC);g.C=g.Ci.prototype;g.C.getId=function(){return this.id}; g.C.getName=function(){return this.name}; g.C.isServable=function(){return this.G}; g.C.fq=function(){return this.url}; g.C.getXtags=function(){return this.xtags}; g.C.toString=function(){return this.languageCode+": "+g.Tp(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.C.equals=function(r){return r?this.toString()===r.toString():!1}; g.C.IL=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var g7X={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Swj={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},i1h=/^(\d*)_((\d*)_?(\d*))$/;var QSX={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},mjg={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var eh={},Eqe=(eh.ALWAYS=1,eh.BY_REQUEST=3,eh.UNKNOWN=void 0,eh),YF={},NqG=(YF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",YF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",YF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",YF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",YF);var WfA; WfA=function(r){for(var V=Object.keys(r),I={},d=0;dd-V?-1:r}; g.C.hd=function(){return this.X.xX()}; g.C.Ea=function(){return this.X.PG()}; g.C.T4=function(r){this.X=r};g.T(pi,mi);pi.prototype.X=function(r,V){return mi.prototype.X.call(this,"$N|"+r,V)}; pi.prototype.W=function(r,V,I){return new uL(r,V,I,this.isLive)};var tyv=[],rt=new Set;g.T(g.qC,g.NK);g.C=g.qC.prototype; g.C.setData=function(r){r=r||{};var V=r.errordetail;V!=null&&(this.errorDetail=V);var I=r.errorcode;I!=null?this.errorCode=I:r.status==="fail"&&(this.errorCode="auth");var d=r.reason;d!=null&&(this.errorReason=d);var a=r.subreason;a!=null&&(this.cG=a);this.U("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=r.cpn||(this.mM.Ko()?"r"+g.RM(15):g.RM(16)));this.ya=Ym(this.mM.ya,r.livemonitor);w_O(this,r);var f=r.raw_player_response;if(f)this.kZ=f;else{var e=r.player_response; e&&(f=JSON.parse(e))}if(this.U("html5_enable_ssap_entity_id")){var n=r.cached_load;n&&(this.Gr=Ym(this.Gr,n));if(!this.clientPlaybackNonce){var D=r.cpn;D?(this.fk("ssei","shdc"),this.clientPlaybackNonce=D):this.clientPlaybackNonce=this.mM.Ko()?"r"+g.RM(15):g.RM(16)}}f&&(this.playerResponse=f);if(this.playerResponse){var x=this.playerResponse.annotations;if(x)for(var E=g.H(x),N=E.next();!N.done;N=E.next()){var c=N.value.playerAnnotationsUrlsRenderer;if(c){c.adsOnly&&(this.M8=!0);var z=c.loadPolicy; z&&(this.annotationsLoadPolicy=Eqe[z]);var M=c.invideoUrl;M&&(this.Ws=av(M));break}}var w=this.playerResponse.attestation;w&&pNg(this,w);var b=this.playerResponse.cotn;b&&(this.cotn=b);var W=this.playerResponse.heartbeatParams;if(W){wcX(this)&&(this.LB=!0);var K=W.heartbeatToken;K&&(this.drmSessionId=W.drmSessionId||"",this.heartbeatToken=K,this.ZT=Number(W.intervalMilliseconds),this.l0=Number(W.maxRetries),this.Y0=!!W.softFailOnError,this.Bx=!!W.useInnertubeHeartbeatsForDrm,this.ma=!0);this.heartbeatServerData= W.heartbeatServerData;var F;this.JW=!((F=W.heartbeatAttestationConfig)==null||!F.requiresAttestation)}var l=this.playerResponse.messages;l&&o7j(this,l);var B=this.playerResponse.overlay;if(B){var P=B.playerControlsOverlayRenderer;if(P)if(hWS(this,P.controlBgHtml),P.mutedAutoplay){var p=g.U(P.mutedAutoplay,ySe);if(p&&p.endScreen){var dA=g.U(p.endScreen,AS$);dA&&dA.text&&(this.iB=g.wF(dA.text))}}else this.mutedAutoplay=!1}var fg=this.playerResponse.playabilityStatus;if(fg){var rA=fg.backgroundability; rA&&rA.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var ji,k;if((ji=fg.offlineability)==null?0:(k=ji.offlineabilityRenderer)==null?0:k.offlineable)this.offlineable=!0;var bX=fg.contextParams;bX&&(this.contextParams=bX);var RX=fg.pictureInPicture;RX&&RX.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);fg.playableInEmbed&&(this.allowEmbed=!0);var Ui=fg.ypcClickwrap;if(Ui){var $f=Ui.playerLegacyDesktopYpcClickwrapRenderer,jp=Ui.ypcRentalActivationRenderer;if($f)this.c9= $f.durationMessage||"",this.fn=!0;else if(jp){var yZ=jp.durationMessage;this.c9=yZ?g.wF(yZ):"";this.fn=!0}}var Kg=fg.errorScreen;if(Kg){if(Kg.playerLegacyDesktopYpcTrailerRenderer){var fG=Kg.playerLegacyDesktopYpcTrailerRenderer;this.IF=fG.trailerVideoId||"";var O=Kg.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var ng=O&&O.ypcTrailerRenderer}else if(Kg.playerLegacyDesktopYpcOfferRenderer)fG=Kg.playerLegacyDesktopYpcOfferRenderer;else if(Kg.ypcTrailerRenderer){ng=Kg.ypcTrailerRenderer;var qm=ng.fullVideoMessage; this.B9=qm?g.wF(qm):"";var Wt,Ao;this.IF=((Wt=g.U(ng,GPY))==null?void 0:(Ao=Wt.videoDetails)==null?void 0:Ao.videoId)||""}fG&&(this.Ow=fG.itemTitle||"",fG.itemUrl&&(this.PX=fG.itemUrl),fG.itemBuyUrl&&(this.Ck=fG.itemBuyUrl),this.ir=fG.itemThumbnail||"",this.r_=fG.offerHeadline||"",this.WR=fG.offerDescription||"",this.Zq=fG.offerId||"",this.eO=fG.offerButtonText||"",this.xK=fG.offerButtonFormattedText||null,this.KR=fG.overlayDurationMsec||NaN,this.B9=fG.fullVideoMessage||"",this.k_=!0);if(ng){var c9= g.U(ng,GPY);if(c9)this.Ke={raw_player_response:c9};else{var Br=g.U(ng,iJG);this.Ke=Br?eJ(Br):null}this.k_=!0}}}var Jo=this.playerResponse.playbackTracking;if(Jo){var G6=r,t=Wk(Jo.googleRemarketingUrl);t&&(this.googleRemarketingUrl=t);var y=Wk(Jo.youtubeRemarketingUrl);y&&(this.youtubeRemarketingUrl=y);var A={},Z=Wk(Jo.ptrackingUrl);if(Z){var Q=$9(Z),Wr=Q.oid;Wr&&(this.bv=Wr);var IX=Q.pltype;IX&&(this.qQ=IX);var Cg=Q.ptchn;Cg&&(this.g4=Cg);var aX=Q.ptk;aX&&(this.pQ=encodeURIComponent(aX));var GS=Q.m; GS&&(this.FC=GS)}var oX=Wk(Jo.qoeUrl);if(oX){for(var O_=g.n5(oX),$r=g.H(Object.keys(O_)),Jr=$r.next();!Jr.done;Jr=$r.next()){var vM=Jr.value,vt=O_[vM];O_[vM]=Array.isArray(vt)?vt.join(","):vt}this.sG=O_;var q6=O_.cat;q6&&(this.U("html5_enable_qoe_cat_list")?this.P1=this.P1.concat(q6.split(",")):this.Ld=q6);var O5=O_.live;O5&&(this.H$=O5);var cv=O_.drm_product;cv&&(this.drmProduct=cv)}var FY=Wk(Jo.videostatsPlaybackUrl);if(FY){var TP=$9(FY),lg=TP.adformat;if(lg){G6.adformat=lg;var Ue=this.N(),Qk=Uji(lg, this.V5,Ue.Y,Ue.j);Qk&&(this.adFormat=Qk)}var tC=TP.aqi;tC&&(G6.ad_query_id=tC);var e1=TP.autoplay;e1&&(this.iz=e1=="1",this.S8=e1=="1",If(this,"vss"));var PM=TP.autonav;PM&&(this.isAutonav=PM=="1");var jS=TP.delay;jS&&(this.rH=bb(jS));var Az=TP.ei;Az&&(this.eventId=Az);if(TP.adcontext||lg)this.iz=!0,If(this,"ad");var p2=TP.feature;p2&&(this.yp=p2);var TF=TP.list;TF&&(this.playlistId=TF);var tY=TP.of;tY&&(this.pG=tY);var yU=TP.osid;yU&&(this.osid=yU);var AY=TP.referrer;AY&&(this.referrer=AY);var Y_= TP.sdetail;Y_&&(this.Tp=Y_);var En=TP.ssrt;En&&(this.pC=En=="1");var nq=TP.subscribed;nq&&(this.subscribed=nq=="1",this.L.subscribed=nq);var jK=TP.uga;jK&&(this.userGenderAge=jK);var GH=TP.upt;GH&&(this.qg=GH);var FT=TP.vm;FT&&(this.videoMetadata=FT);A.playback=TP}var lA=Wk(Jo.videostatsWatchtimeUrl);if(lA){var LI=$9(lA),JY=LI.ald;JY&&(this.aF=JY);A.watchtime=LI}var Z$=Wk(Jo.atrUrl);if(Z$){var e$=$9(Z$);A.atr=e$}var G9=Wk(Jo.engageUrl);if(G9){var Y6=$9(G9);A.engage=Y6}this.CS=A;if(Jo.promotedPlaybackTracking){var U$= Jo.promotedPlaybackTracking;U$.startUrls&&(this.R2=U$.startUrls);U$.firstQuartileUrls&&(this.aM=U$.firstQuartileUrls);U$.secondQuartileUrls&&(this.Mo=U$.secondQuartileUrls);U$.thirdQuartileUrls&&(this.kK=U$.thirdQuartileUrls);U$.completeUrls&&(this.En=U$.completeUrls);U$.engagedViewUrls&&(U$.engagedViewUrls.length>1&&g.gj(new g.ox("There are more than one engaged_view_urls.")),this.Yg=U$.engagedViewUrls[0])}}var DP=this.playerResponse.playerCueRanges;DP&&DP.length>0&&(this.cueRanges=DP);var XT=this.playerResponse.playerCueRangeSet; XT&&g.VW(this,XT);a:{var x_=this.playerResponse.adPlacements;if(x_)for(var BT=g.H(x_),EY=BT.next();!EY.done;EY=BT.next()){var gg=void 0,SB=void 0,iA=(gg=EY.value.adPlacementRenderer)==null?void 0:(SB=gg.renderer)==null?void 0:SB.videoAdTrackingRenderer;if(iA){var UV=iA;break a}}UV=null}var NM=UV;Jo&&Jo.promotedPlaybackTracking&&NM&&g.gj(new g.ox("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var CA;if(!(CA=NM))a:{for(var QU=g.H(this.playerResponse.adSlots||[]), sY=QU.next();!sY.done;sY=QU.next()){var cS=g.U(sY.value,pt);if(cS===void 0||!THU(cS))break;var mq=void 0,n8=(mq=cS.fulfillmentContent)==null?void 0:mq.fulfilledLayout,uA=g.U(n8,XQ);if(uA&&lp(uA)){CA=!0;break a}}CA=!1}CA&&(this.Jg=!0);var pI=this.playerResponse.playerAds;if(pI)for(var j$=r,vT=g.H(pI),TT=vT.next();!TT.done;TT=vT.next()){var q$=TT.value;if(q$){var PT=q$.playerLegacyDesktopWatchAdsRenderer;if(PT){var FK=PT.playerAdParams;if(FK){FK.autoplay=="1"&&(this.S8=this.iz=!0);this.vR=FK.encodedAdSafetyReason|| null;FK.showContentThumbnail!==void 0&&(this.hW=!!FK.showContentThumbnail);j$.enabled_engage_types=FK.enabledEngageTypes;break}}}}var OS=this.playerResponse.playerConfig;if(OS){var mN=OS.manifestlessWindowedLiveConfig;if(mN){var o2=Number(mN.minDvrSequence),zX=Number(mN.maxDvrSequence),HH=Number(mN.minDvrMediaTimeMs),wQ=Number(mN.maxDvrMediaTimeMs),MM=Number(mN.startWalltimeMs);o2&&(this.S7=o2);HH&&(this.n8=HH/1E3,this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&xa(this)&&(this.H9=HH/ 1E3));zX&&(this.pj=zX);wQ&&(this.gH=wQ/1E3,this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&xa(this)&&(this.tW=wQ/1E3));MM&&(this.Bp=MM/1E3);(o2||HH)&&(zX||wQ)&&(this.allowLiveDvr=this.isLivePlayback=this.GQ=!0,this.Ue=!1)}var ut=OS.daiConfig;if(ut){if(ut.enableDai){this.QX=!0;var bw=ut.enableServerStitchedDai;bw&&(this.enableServerStitchedDai=bw);var kY=ut.enablePreroll;kY&&(this.m0=kY)}var x6;if(ut.daiType==="DAI_TYPE_SS_DISABLED"||((x6=ut.debugInfo)==null?0:x6.isDisabledUnpluggedChannel))this.wp= !0;ut.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.ey=!0)}var sn=OS.audioConfig;if(sn){var vy=sn.loudnessDb;vy!=null&&(this.xQ=vy);var r$X=sn.trackAbsoluteLoudnessLkfs;r$X!=null&&(this.Al=r$X);var VWX=sn.loudnessTargetLkfs;VWX!=null&&(this.loudnessTargetLkfs=VWX);sn.audioMuted&&(this.Xq=!0);sn.muteOnStart&&(this.tJ=!0);var Kt=sn.loudnessNormalizationConfig;if(Kt){Kt.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Kt.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var ICj=Kt.minimumLoudnessTargetLkfs;ICj!=null&&(this.minimumLoudnessTargetLkfs=ICj);var dWO=Kt.maxStatefulTimeThresholdSec;dWO!=null&&(this.maxStatefulTimeThresholdSec=dWO)}sn.playAudioOnly&&(this.Nm=!0)}var lgS=OS.playbackEndConfig;if(lgS){var aCZ=lgS.endSeconds,fCi=lgS.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(aCZ&&(this.endSeconds=aCZ),fCi&&(this.limitedPlaybackDurationInSeconds=fCi))}var JM=OS.fairPlayConfig;if(JM){var emA=JM.certificate;emA&&(this.L8=xg(emA));var YHp=Number(JM.keyRotationPeriodMs); YHp>0&&(this.XC=YHp);var nuU=Number(JM.keyPrefetchMarginMs);nuU>0&&(this.Gp=nuU)}var Dq=OS.playbackStartConfig;if(Dq){this.WG=Number(Dq.startSeconds);var j5p=Dq.liveUtcStartSeconds,DWS=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;j5p&&!DWS&&(this.liveUtcStartSeconds=Number(j5p));var LrU=Dq.startPosition;if(LrU){var xWp=LrU.utcTimeMillis;xWp&&!DWS&&(this.liveUtcStartSeconds=Number(xWp)*.001);var Eug=LrU.streamTimeMillis;Eug&&(this.Gd=Number(Eug)*.001)}this.progressBarStartPosition=Dq.progressBarStartPosition; this.progressBarEndPosition=Dq.progressBarEndPosition}else{var JAi=OS.skippableSegmentsConfig;if(JAi){var NRU=JAi.introSkipDurationMs;NRU&&(this.sX=Number(NRU)/1E3);var s5i=JAi.outroSkipDurationMs;s5i&&(this.NH=Number(s5i)/1E3)}}var ZrA=OS.skippableIntroConfig;if(ZrA){var c$g=Number(ZrA.startMs),zmA=Number(ZrA.endMs);isNaN(c$g)||isNaN(zmA)||(this.wy=c$g,this.KJ=zmA)}var MWi=OS.streamSelectionConfig;MWi&&(this.Py=Number(MWi.maxBitrate));var Czr=OS.vrConfig;Czr&&(this.yJ=Czr.partialSpherical=="1"); var RT=OS.webDrmConfig;if(RT){RT.skipWidevine&&(this.Ss=!0);var TRg=RT.widevineServiceCert;TRg&&(this.Le=xg(TRg));RT.useCobaltWidevine&&(this.useCobaltWidevine=!0);RT.startWithNoQualityConstraint&&(this.FB=!0)}var oN=OS.mediaCommonConfig;if(oN){var Zx=oN.dynamicReadaheadConfig;if(Zx){this.maxReadAheadMediaTimeMs=Zx.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Zx.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Zx.readAheadGrowthRateMs||NaN;var H0h,wUO=oN==null?void 0:(H0h=oN.mediaUstreamerRequestConfig)== null?void 0:H0h.videoPlaybackUstreamerConfig;wUO&&(this.Zm=xg(wUO));var XoS=oN==null?void 0:oN.sabrContextUpdates;if(XoS&&XoS.length>0)for(var b0X=g.H(XoS),BqA=b0X.next();!BqA.done;BqA=b0X.next()){var cZ=BqA.value;if(cZ.type&&cZ.value){var Shp={type:cZ.type,scope:cZ.scope,value:xg(cZ.value)||void 0,sendByDefault:cZ.sendByDefault};this.sabrContextUpdates.set(cZ.type,Shp)}}}var O0h=oN.serverPlaybackStartConfig;O0h&&(this.serverPlaybackStartConfig=O0h);oN.useServerDrivenAbr&&(this.lh=!0);var W_X=oN.requestPipeliningConfig; W_X&&(this.requestPipeliningConfig=W_X)}var $WU=OS.inlinePlaybackConfig;$WU&&(this.p4=!!$WU.showAudioControls);var X0=OS.embeddedPlayerConfig;if(X0){this.embeddedPlayerConfig=X0;var gqr=X0.embeddedPlayerMode;if(gqr){var K_v=this.N();K_v.GQ=gqr;K_v.S=gqr==="EMBEDDED_PLAYER_MODE_PFL"}var RmZ=X0.permissions;RmZ&&(this.allowImaMonetization=!!RmZ.allowImaMonetization)}var tWi=OS.ssapConfig;tWi&&(this.U2=tWi.ssapPrerollEnabled||!1);var BP=OS.webPlayerConfig;BP&&(BP.gatewayExperimentGroup&&(this.gatewayExperimentGroup= BP.gatewayExperimentGroup),BP.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var ky=this.playerResponse.streamingData;if(ky){var SDA=ky.formats;if(SDA){for(var tQ=[],y$Z=g.H(SDA),iri=y$Z.next();!iri.done;iri=y$Z.next()){var UsA=iri.value;tQ.push(UsA.itag+"/"+UsA.width+"x"+UsA.height)}this.Q0=tQ.join(",");tQ=[];for(var A$p=g.H(SDA),Q3U=A$p.next();!Q3U.done;Q3U=A$p.next()){var y4=Q3U.value,AQ={itag:y4.itag,type:y4.mimeType,quality:y4.quality},G4A=y4.url;G4A&&(AQ.url=G4A);var gf=gV(y4),i5e=gf.zN, ULf=gf.w4,Q6K=gf.s;gf.v_&&(AQ.url=i5e,AQ.sp=ULf,AQ.s=Q6K);tQ.push(g.lE(AQ))}this.IB=tQ.join(",")}var msr=ky.hlsFormats;if(msr&&!this.U("safari_live_drm_captions_fix")){var F_i=OS||null,S0={};if(F_i){var uOv=F_i.audioPairingConfig;if(uOv&&uOv.pairs)for(var lCi=g.H(uOv.pairs),pop=lCi.next();!pop.done;pop=lCi.next()){var L_p=pop.value,vqg=L_p.videoItag;S0[vqg]||(S0[vqg]=[]);S0[vqg].push(L_p.audioItag)}}for(var J$i={},Z0i=g.H(msr),qDA=Z0i.next();!qDA.done;qDA=Z0i.next()){var XUA=qDA.value;J$i[XUA.itag]= XUA.bitrate}for(var BRp=[],guX=g.H(msr),P0g=guX.next();!P0g.done;P0g=guX.next()){var fj=P0g.value,GO={itag:fj.itag,type:fj.mimeType,url:fj.url,bitrate:fj.bitrate,width:fj.width,height:fj.height,fps:fj.fps},iR=fj.audioTrack;if(iR){var SHp=iR.displayName;SHp&&(GO.name=SHp,GO.audio_track_id=iR.id,iR.audioIsDefault&&(GO.is_default="1"))}if(fj.drmFamilies){for(var i0S=[],UWj=g.H(fj.drmFamilies),oqU=UWj.next();!oqU.done;oqU=UWj.next())i0S.push($$[oqU.value]);GO.drm_families=i0S.join(",")}var UF=S0[fj.itag]; if(UF&&UF.length){GO.audio_itag=UF.join(",");var Q5A=J$i[UF[0]];Q5A&&(GO.bitrate+=Q5A)}var mWZ=iIg(fj);mWZ&&(GO.eotf=mWZ);fj.audioChannels&&(GO.audio_channels=fj.audioChannels);BRp.push(g.lE(GO))}this.hlsFormats=BRp.join(",")}var kBj=ky.licenseInfos;if(kBj&&kBj.length>0){for(var uXS={},pUZ=g.H(kBj),hFZ=pUZ.next();!hFZ.done;hFZ=pUZ.next()){var vuO=hFZ.value,qHU=vuO.drmFamily,PzA=vuO.url;qHU&&PzA&&(uXS[$$[qHU]]=PzA)}this.Cq=uXS}var ouv=ky.drmParams;ouv&&(this.drmParams=ouv);var k4v=ky.dashManifestUrl; k4v&&(this.CF=g.Ly(k4v,{cpn:this.clientPlaybackNonce}));var hmA=ky.hlsManifestUrl;hmA&&(this.hlsvp=hmA);var rGv=ky.probeUrl;rGv&&(this.probeUrl=av(g.Ly(rGv,{cpn:this.clientPlaybackNonce})));var Vfh=ky.serverAbrStreamingUrl;Vfh&&(this.VM=new g.lY(Vfh,!0))}var IKv=this.playerResponse.trackingParams;IKv&&(this.EE=IKv);var Vv=this.playerResponse.videoDetails;if(Vv){var Fs=r,reA=Vv.videoId;reA&&(this.videoId=reA,Fs.video_id||(Fs.video_id=reA));var dkg=Vv.channelId;dkg&&(this.L.uid=dkg.substring(2));var VzA= Vv.title;VzA&&(this.title=VzA,Fs.title||(Fs.title=VzA));var I8Z=Vv.lengthSeconds;I8Z&&(this.lengthSeconds=Number(I8Z),Fs.length_seconds||(Fs.length_seconds=I8Z));var aKi=Vv.keywords;aKi&&(this.keywords=KEj(aKi));var deX=Vv.channelId;deX&&(this.Sz=deX,Fs.ucid||(Fs.ucid=deX));var fKp=Vv.viewCount;fKp&&(this.rawViewCount=Number(fKp));var a8v=Vv.author;a8v&&(this.author=a8v,Fs.author||(Fs.author=a8v));var eZg=Vv.shortDescription;eZg&&(this.shortDescription=eZg);var YPO=Vv.isCrawlable;YPO&&(this.isListed= YPO);var nPi=Vv.musicVideoType;nPi&&(this.musicVideoType=nPi);var f8X=Vv.isLive;f8X!=null&&(this.isLivePlayback=f8X);if(f8X||Vv.isUpcoming)this.isPremiere=!Vv.isLiveContent;var jgj=Vv.thumbnail;jgj&&(this.V=Or(jgj));var Dkr=Vv.isExternallyHostedPodcast;Dkr&&(this.isExternallyHostedPodcast=Dkr);var elZ=Vv.viewerLivestreamJoinPosition;if(elZ==null?0:elZ.utcTimeMillis)this.oJ=bb(elZ.utcTimeMillis);var xkg=OS||null,Y$X=r;Vv.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Vv.isUpcoming&&(this.isUpcoming= !0);if(Vv.isPostLiveDvr){this.Ue=!0;var EPX=Vv.latencyClass;EPX&&(this.latencyClass=NqG[EPX]||"UNKNOWN");Vv.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var nVA=!1;this.ya?(this.allowLiveDvr=Yg()?!0:Vh&&QX<5?!1:!0,this.isLivePlayback=!0):Vv.isLive?(Y$X.livestream="1",this.allowLiveDvr=Vv.isLiveDvrEnabled?Yg()?!0:Vh&&QX<5?!1:!0:!1,this.partnerId=27,nVA=!0):Vv.isUpcoming&&(nVA=!0);if(Vv.isLive||this.ya){Vv.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var NKX=Vv.latencyClass; NKX&&(this.latencyClass=NqG[NKX]||"UNKNOWN");var sgi=Vv.liveChunkReadahead;sgi&&(this.liveChunkReadahead=sgi);var xO=xkg&&xkg.livePlayerConfig;if(xO){xO.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);xO.hasSubfragmentedWebm&&(this.NA=!0);xO.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var cGO=xO.liveExperimentalContentId;cGO&&(this.liveExperimentalContentId=Number(cGO));var zZZ=xO.isLiveHeadPlayable;this.U("html5_live_head_playable")&&zZZ!=null&&(this.isLiveHeadPlayable=zZZ)}}nVA&& (this.isLivePlayback=!0,Y$X.adformat&&Y$X.adformat.split("_")[1]!=="8"||this.kc.push("heartbeat"),this.ma=!0)}var Mfp=Vv.isPrivate;Mfp!==void 0&&(this.isPrivate=Ym(this.isPrivate,Mfp))}if(fg){var CGS=Vv||null,TKi=!1,EA=fg.errorScreen;TKi=EA&&(EA.playerLegacyDesktopYpcOfferRenderer||EA.playerLegacyDesktopYpcTrailerRenderer||EA.ypcTrailerRenderer)?!0:CGS&&CGS.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(fg.status);if(!TKi){this.errorCode=J7p(fg.errorCode)||"auth";var Qu=EA&& EA.playerErrorMessageRenderer;if(Qu){this.playerErrorMessageRenderer=Qu;var HFr=Qu.reason;HFr&&(this.errorReason=g.wF(HFr));var jOh=Qu.subreason;jOh&&(this.cG=g.wF(jOh),this.qX=jOh)}else this.errorReason=fg.reason||null;var DeS=fg.status;if(DeS==="LOGIN_REQUIRED")this.errorDetail="1";else if(DeS==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(DeS==="AGE_CHECK_REQUIRED"){var wdU=fg.errorScreen,bFZ=wdU&&wdU.playerKavRenderer;this.errorDetail=bFZ&&bFZ.kavUrl?"4":"3"}else this.errorDetail=fg.isBlockedInRestrictedMode? "5":"0"}}var OFX=this.playerResponse.interstitialPods;OFX&&P2g(this,OFX);this.Ws&&this.eventId&&(this.Ws=DJ(this.Ws,{ei:this.eventId}));var xeA=this.playerResponse.captions;if(xeA&&xeA.playerCaptionsTracklistRenderer)a:{var lo=xeA.playerCaptionsTracklistRenderer;this.captionTracks=[];if(lo.captionTracks)for(var WFA=g.H(lo.captionTracks),EVS=WFA.next();!EVS.done;EVS=WFA.next()){var LR=EVS.value,$kS=Otp(LR.baseUrl);if(!$kS)break a;var NJh={is_translateable:!!LR.isTranslatable,languageCode:LR.languageCode, languageName:LR.name&&g.wF(LR.name),url:$kS,vss_id:LR.vssId,kind:LR.kind};NJh.name=LR.trackName;NJh.displayName=LR.name&&g.wF(LR.name);this.captionTracks.push(new g.Ci(NJh))}this.SB=lo.audioTracks||[];this.Cg=lo.defaultAudioTrackIndex||0;this.k$=[];if(lo.translationLanguages)for(var KFA=g.H(lo.translationLanguages),sOO=KFA.next();!sOO.done;sOO=KFA.next()){var NT=sOO.value,zg={};zg.languageCode=NT.languageCode;zg.languageName=g.wF(NT.languageName);if(NT.translationSourceTrackIndices){zg.translationSourceTrackIndices= [];for(var RZj=g.H(NT.translationSourceTrackIndices),ceS=RZj.next();!ceS.done;ceS=RZj.next())zg.translationSourceTrackIndices.push(ceS.value)}if(NT.excludeAudioTrackIndices){zg.excludeAudioTrackIndices=[];for(var tfp=g.H(NT.excludeAudioTrackIndices),zlA=tfp.next();!zlA.done;zlA=tfp.next())zg.excludeAudioTrackIndices.push(zlA.value)}this.k$.push(zg)}this.pN=[];if(lo.defaultTranslationSourceTrackIndices)for(var yGX=g.H(lo.defaultTranslationSourceTrackIndices),Mzh=yGX.next();!Mzh.done;Mzh=yGX.next())this.pN.push(Mzh.value); this.i8=!!lo.contribute&&!!lo.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.WG=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&knA(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var AGj;this.compositeLiveIngestionOffsetToken= (AGj=this.playerResponse.playbackTracking)==null?void 0:AGj.compositeLiveIngestionOffsetToken;var Glg;this.compositeLiveStatusToken=(Glg=this.playerResponse.playbackTracking)==null?void 0:Glg.compositeLiveStatusToken}oU(this,r);r.queue_info&&(this.queueInfo=r.queue_info);var FFp=r.hlsdvr;FFp!=null&&(this.allowLiveDvr=Number(FFp)===1?Yg()?!0:Vh&&QX<5?!1:!0:!1);this.adQueryId=r.ad_query_id||null;this.vR||(this.vR=r.encoded_ad_safety_reason||null);this.Xq=Ym(this.Xq,r.infringe||r.muted);this.b8Q=r.authkey; this.rD=r.authuser;this.mutedAutoplay=Ym(this.mutedAutoplay,r&&r.playmuted);this.mutedAutoplayDurationMode=jb(this.mutedAutoplayDurationMode,r&&r.muted_autoplay_duration_mode);this.XI=Ym(this.XI,r&&r.mutedautoplay);var uR=r.length_seconds;uR&&(this.lengthSeconds=typeof uR==="string"?bb(uR):uR);if(this.isAd()||this.RH||!g.s3(g.UL(this.mM)))this.endSeconds=jb(this.endSeconds,this.NH||r.end||r.endSeconds);else{var mLf=g.UL(this.mM),pf=this.lengthSeconds;switch(mLf){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":pf> 30?this.limitedPlaybackDurationInSeconds=30:pf<30&&pf>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=pf*.2}}this.EE=Dp(this.EE,r.itct);this.Fe=Ym(this.Fe,r.is_live_destination);this.isLivePlayback=Ym(this.isLivePlayback,r.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Tz();r.isUpcoming&&(this.isUpcoming=Ym(this.isUpcoming,r.isUpcoming));this.Ue=Ym(this.Ue,r.post_live_playback); this.GQ&&(this.Ue=!1);this.isMdxPlayback=Ym(this.isMdxPlayback,r.mdx);var vP=r.mdx_control_mode;vP&&(this.mdxControlMode=typeof vP==="number"?vP:bb(vP));this.isInlinePlaybackNoAd=Ym(this.isInlinePlaybackNoAd,r.is_inline_playback_no_ad);this.M2=jb(this.M2,r.reload_count);this.reloadReason=Dp(this.reloadReason,r.reload_reason);this.hW=Ym(this.hW,r.show_content_thumbnail);this.cycToken=r.cyc||null;var lKA=bL(r);Object.keys(lKA).length>0&&(this.V=lKA);this.R7=Dp(this.R7,r.vvt);this.mdxEnvironment=Dp(this.mdxEnvironment, r.mdx_environment);r.source_container_playlist_id&&(this.sourceContainerPlaylistId=r.source_container_playlist_id);r.serialized_mdx_metadata&&(this.serializedMdxMetadata=r.serialized_mdx_metadata);this.zh0=r.osig;this.eventId||(this.eventId=r.eventid);this.osid||(this.osid=r.osid);this.playlistId=Dp(this.playlistId,r.list);r.index&&(this.playlistIndex=this.playlistIndex===void 0?jb(0,r.index):jb(this.playlistIndex,r.index));this.lQ=r.pyv_view_beacon_url;this.k6=r.pyv_quartile25_beacon_url;this.OU= r.pyv_quartile50_beacon_url;this.rN=r.pyv_quartile75_beacon_url;this.Qw=r.pyv_quartile100_beacon_url;var LFp=r.session_data;!this.FV&&LFp&&(this.FV=a6(LFp,"&").feature);this.isFling=jb(this.isFling?1:0,r.is_fling)===1;this.vnd=jb(this.vnd,r.vnd);this.forceAdsUrl=Dp(this.forceAdsUrl,r.force_ads_url);this.Si=Dp(this.Si,r.ctrl);this.O6=Dp(this.O6,r.ytr);this.Lz=r.ytrcc;this.Ga=r.ytrexp;this.O8=r.ytrext;this.dH=Dp(this.dH,r.adformat);this.V5=Dp(this.V5,r.attrib);this.slotPosition=jb(this.slotPosition, r.slot_pos);this.breakType=r.break_type;this.pC=Ym(this.pC,r.ssrt);this.videoId=E3(r)||this.videoId;this.C=Dp(this.C,r.vss_credentials_token);this.tO=Dp(this.tO,r.vss_credentials_token_type);this.Nm=Ym(this.Nm,r.audio_only);this.a7=Ym(this.a7,r.aac_high);this.mS=Ym(this.mS,r.prefer_low_quality_audio);this.Rz=Ym(this.Rz,r.uncap_inline_quality);this.U("html5_enable_qoe_cat_list")?r.qoe_cat&&(this.P1=this.P1.concat(r.qoe_cat.split(","))):this.Ld=Dp(this.Ld,r.qoe_cat);this.bq=Ym(this.bq,r.download_media); var JGX=r.prefer_gapless;this.j=JGX!=null?Ym(this.j,JGX):this.j?this.j:this.mM.preferGapless&&this.mM.supportsGaplessShorts();k1h(this.playerResponse)&&this.kc.push("ad");var ZFg=r.adaptive_fmts;ZFg&&(this.adaptiveFormats=ZFg,this.Hs("adpfmts",{},!0));var Xdv=r.allow_embed;Xdv&&(this.allowEmbed=Number(Xdv)===1);var BKX=r.backgroundable;BKX&&(this.backgroundable=Number(BKX)===1);var gPX=r.autonav;gPX&&(this.isAutonav=Number(gPX)===1);var SPO=r.autoplay;SPO&&(this.iz=this.S8=Number(SPO)===1,If(this, "c"));var iFi=r.iv_load_policy;iFi&&(this.annotationsLoadPolicy=no(this.annotationsLoadPolicy,iFi,Qi));var UkA=r.cc_lang_pref;UkA&&(this.captionsLanguagePreference=Dp(UkA,this.captionsLanguagePreference));var Qgp=r.cc_load_policy;Qgp&&(this.P4=no(this.P4,Qgp,Qi));var mkj;this.deviceCaptionsOn=(mkj=r.device_captions_on)!=null?mkj:void 0;var u_g;this.EG=(u_g=r.device_captions_lang_pref)!=null?u_g:"";var pdi;this.Ah=(pdi=r.viewer_selected_caption_langs)!=null?pdi:[];if(!this.U("html5_enable_ssap_entity_id")){var vPZ= r.cached_load;vPZ&&(this.Gr=Ym(this.Gr,vPZ))}if(r.dash==="0"||r.dash===0||r.dash===!1)this.gZ=!0;var qPp=r.dashmpd;qPp&&(this.CF=g.Ly(qPp,{cpn:this.clientPlaybackNonce}));var PGX=r.delay;PGX&&(this.rH=bb(PGX));var CTi=this.NH||r.end;if(this.Hy?CTi!=null:CTi!=void 0)this.clipEnd=jb(this.clipEnd,CTi);var oPZ=r.fmt_list;oPZ&&(this.Q0=oPZ);r.heartbeat_preroll&&this.kc.push("heartbeat");this.yn=-Math.floor(Math.random()*10);this.w_=-Math.floor(Math.random()*40);var klS=r.is_listed;klS&&(this.isListed= Ym(this.isListed,klS));var hZA=r.is_private;hZA&&(this.isPrivate=Ym(this.isPrivate,hZA));var rFg=r.is_dni;rFg&&(this.Mm=Ym(this.Mm,rFg));var Vgp=r.dni_color;Vgp&&(this.tL=Dp(this.tL,Vgp));var IsA=r.pipable;IsA&&(this.pipable=Ym(this.pipable,IsA));this.pL=(this.pg=this.pipable&&this.mM.cR)&&!this.mM.showMiniplayerButton;var dBj=r.paid_content_overlay_duration_ms;dBj&&(this.paidContentOverlayDurationMs=bb(dBj));var asr=r.paid_content_overlay_text;asr&&(this.paidContentOverlayText=asr);var fsi=r.url_encoded_fmt_stream_map; fsi&&(this.IB=fsi);var eTj=r.hls_formats;eTj&&(this.hlsFormats=eTj);var Y1i=r.hlsvp;Y1i&&(this.hlsvp=Y1i);var q8=r.live_start_walltime;q8&&(this.Uks=typeof q8==="number"?q8:bb(q8));var PP=r.live_manifest_duration;PP&&(this.nQ=typeof PP==="number"?PP:bb(PP));var nhi=r.player_params;nhi&&(this.playerParams=nhi);var jQS=r.partnerid;jQS&&(this.partnerId=jb(this.partnerId,jQS));var DBp=r.probe_url;DBp&&(this.probeUrl=av(g.Ly(DBp,{cpn:this.clientPlaybackNonce})));var TJS=r.pyv_billable_url;TJS&&IuX(TJS)&& (this.Yg=TJS);var H9X=r.pyv_conv_url;H9X&&IuX(H9X)&&(this.Hc=H9X);RMS(this,r);this.startSeconds>0?this.U("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.WG||this.sX||r.start||r.startSeconds)&&this.Hs("lss",{css:this.startSeconds,pcss:this.WG,iss:this.sX,ps:r.start||void 0,pss:r.startSeconds||void 0}):this.X_=this.startSeconds=jb(this.startSeconds,this.WG||this.sX||r.start||r.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var xBj=r.live_utc_start;if(xBj!= null)this.liveUtcStartSeconds=Number(xBj);else{var wvj=this.startSeconds;wvj&&isFinite(wvj)&&wvj>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var EhO=r.utc_start_millis;EhO&&(this.liveUtcStartSeconds=Number(EhO)*.001)}var N2A=r.stream_time_start_millis;N2A&&(this.Gd=Number(N2A)*.001);var b9v=this.sX||r.start;(this.Hy?b9v==null||Number(r.resume)===1:b9v==void 0||r.resume=="1")||this.isLivePlayback||(this.clipStart=jb(this.clipStart, b9v));var sQO=r.url_encoded_third_party_media;sQO&&(this.U6=YQ(sQO));var O9Z=r.ypc_offer_button_formatted_text;if(O9Z){var cFr=JSON.parse(O9Z);this.xK=cFr!=null?cFr:null;this.WN=O9Z}var zTZ=r.ypc_offer_button_text;zTZ&&(this.eO=zTZ);var MgO=r.ypc_offer_description;MgO&&(this.WR=MgO);var C4i=r.ypc_offer_headline;C4i&&(this.r_=C4i);var T2A=r.ypc_full_video_message;T2A&&(this.B9=T2A);var HTr=r.ypc_offer_id;HTr&&(this.Zq=HTr);var wBX=r.ypc_buy_url;wBX&&(this.Ck=wBX);var bTi=r.ypc_item_thumbnail;bTi&& (this.ir=bTi);var OTS=r.ypc_item_title;OTS&&(this.Ow=OTS);var Wjr=r.ypc_item_url;Wjr&&(this.PX=Wjr);var $Bh=r.ypc_vid;$Bh&&(this.IF=$Bh);r.ypc_overlay_timeout&&(this.KR=Number(r.ypc_overlay_timeout));var Kjp=r.ypc_trailer_player_vars;Kjp&&(this.Ke=eJ(Kjp));var RTj=r.ypc_original_itct;RTj&&(this.Sl0=RTj);this.Sz=Dp(this.Sz,r.ucid);r.baseUrl&&(this.L.baseUrl=r.baseUrl);r.uid&&(this.L.uid=r.uid);r.oeid&&(this.L.oeid=r.oeid);r.ieid&&(this.L.ieid=r.ieid);r.ppe&&(this.L.ppe=r.ppe);r.engaged&&(this.L.engaged= r.engaged);r.subscribed&&(this.L.subscribed=r.subscribed);this.L.focEnabled=Ym(this.L.focEnabled,r.focEnabled);this.L.rmktEnabled=Ym(this.L.rmktEnabled,r.rmktEnabled);this.Vl=r.storyboard_spec||null;this.Sn=r.live_storyboard_spec||null;this.Bi=r.iv_endscreen_url||null;this.ma=Ym(this.ma,r.ypc_license_checker_module);this.k_=Ym(this.k_,r.ypc_module);this.fn=Ym(this.fn,r.ypc_clickwrap_module);this.k_&&this.kc.push("ypc");this.fn&&this.kc.push("ypc_clickwrap");this.SY={video_id:r.video_id,eventid:r.eventid, cbrand:r.cbrand,cbr:r.cbr,cbrver:r.cbrver,c:r.c,cver:r.cver,ctheme:r.ctheme,cplayer:r.cplayer,cmodel:r.cmodel,cnetwork:r.cnetwork,cos:r.cos,cosver:r.cosver,cplatform:r.cplatform,user_age:r.user_age,user_display_image:r.user_display_image,user_display_name:r.user_display_name,user_gender:r.user_gender,csi_page_type:r.csi_page_type,csi_service_name:r.csi_service_name,enablecsi:r.enablecsi,enabled_engage_types:r.enabled_engage_types};btA(this,r);var tgj=r.cotn;tgj&&(this.cotn=tgj);if(SoA(this))sQ(this)&& (this.isLivePlayback&&this.CF&&(this.Ol=!0),this.L8&&(this.Tw=!0));else if(itX(this))this.Ol=!0;else{var yFr,AFr,GGX=((yFr=this.playerResponse)==null?void 0:(AFr=yFr.streamingData)==null?void 0:AFr.adaptiveFormats)||[];if(GGX.length>0)var GA=gsA(this,GGX);else{var FjZ=this.adaptiveFormats;if(FjZ&&!sQ(this)){this.mM.W.S&&(B5=!0);var sA=wt(FjZ),WvA=this.Cq,lsg=this.lengthSeconds,u7G=this.isLivePlayback,FQ=this.Ue,ca=this.mM,pRG=dUA(sA);if(u7G||FQ){var Lji=ca==null?void 0:ca.experiments,Q7=new Oq("", Lji,!0);Q7.Tz=!0;Q7.isManifestless=!0;Q7.X=!FQ;Q7.isLive=!FQ;Q7.Ue=FQ;for(var JFr=g.H(sA),$ei=JFr.next();!$ei.done;$ei=JFr.next()){var zr=$ei.value,ZTi=RJ(zr,WvA),Mu=tD(zr.url,zr.sp,zr.s),XBi=Mu.get("id");XBi&&XBi.includes("%7E")&&(Q7.V=!0);var B2Z=void 0,vQG=(B2Z=Lji)==null?void 0:B2Z.uL("html5_max_known_end_time_rebase"),qhK=Number(zr.target_duration_sec)||5,Pd9=Number(zr.max_dvr_duration_sec)||14400,ghr=Number(Mu.get("mindsq")||Mu.get("min_sq")||"0"),S1O=Number(Mu.get("maxdsq")||Mu.get("max_sq")|| "0")||Infinity;Q7.S7=Q7.S7||ghr;Q7.pj=Q7.pj||S1O;var oQf=!YY(ZTi.mimeType);Mu&&H5(Q7,new Y$(Mu,ZTi,{y7:qhK,Zp:oQf,QQ:Pd9,S7:ghr,pj:S1O,Jj:300,Ue:FQ,zX:vQG}))}var iTX=Q7}else{if(pRG==="FORMAT_STREAM_TYPE_OTF"){var oA=lsg;oA=oA===void 0?0:oA;var MT=new Oq("",ca==null?void 0:ca.experiments,!1);MT.duration=oA||0;for(var UBS=g.H(sA),KvX=UBS.next();!KvX.done;KvX=UBS.next()){var CX=KvX.value,Rlh=RJ(CX,WvA,MT.duration),tzg=tD(CX.url,CX.sp,CX.s);if(tzg)if(Rlh.streamType==="FORMAT_STREAM_TYPE_OTF")H5(MT,new np(tzg, Rlh,"sq/0"));else{var kdp=gr(CX.init),h8Y=gr(CX.index);H5(MT,new MY(tzg,Rlh,kdp,h8Y))}}MT.isOtf=!0;var QQh=MT}else{var kU=lsg;kU=kU===void 0?0:kU;var hM=new Oq("",ca==null?void 0:ca.experiments,!1);hM.duration=kU||0;for(var mBS=g.H(sA),yeh=mBS.next();!yeh.done;yeh=mBS.next()){var Tr=yeh.value,rZe=RJ(Tr,WvA,hM.duration),Vbe=g.J(gr(Tr.init)),IpG=g.J(gr(Tr.index)),uDX=tD(Tr.url,Tr.sp,Tr.s);uDX&&H5(hM,new MY(uDX,rZe,Vbe,IpG))}QQh=hM}iTX=QQh}var pBX=iTX;if(sA.length>0){var vhS=sA[0];if(this.N().playerStyle=== "hangouts-meet"&&vhS.url){var d1f=g.n5(vhS.url);this.au=this.au||Number(d1f.expire)}}var ap$=this.isLivePlayback&&!this.Ue&&!this.GQ&&!this.isPremiere;this.U("html5_live_head_playable")&&(!cx(this)&&ap$&&this.Hs("missingLiveHeadPlayable",{}),this.mM.QH==="yt"&&(pBX.L8=!0));GA=pBX}else GA=null;this.Hs("pafmts",{isManifestFilled:!!GA})}if(GA){Ck(this,GA);var q1i=!0}else q1i=!1;q1i?this.enableServerStitchedDai=this.enableServerStitchedDai&&zV(this):this.CF&&(this.mM.QH==="yt"&&this.Tz()&&this.U("drm_manifestless_unplugged")&& this.U("html5_deprecate_manifestful_fallback")?this.Hs("deprecateMflFallback",{}):this.Ol=!0)}var Aeg=r.adpings;Aeg&&(this.cR=Aeg?eJ(Aeg):null);var P4O=r.feature;P4O&&(this.yp=P4O);var ohS=r.referrer;ohS&&(this.referrer=ohS);this.clientScreenNonce=Dp(this.clientScreenNonce,r.csn);this.NI=jb(this.NI,r.root_ve_type);this.Xe=jb(this.Xe,r.kids_age_up_mode);this.Hy||r.kids_app_info==void 0||(this.kidsAppInfo=r.kids_app_info);this.Hy&&r.kids_app_info!=null&&(this.kidsAppInfo=r.kids_app_info);this.Mn=Ym(this.Mn, r.upg_content_filter_mode);this.unpluggedFilterModeType=jb(this.unpluggedFilterModeType,r.unplugged_filter_mode_type);var kGj=r.unplugged_location_info;kGj&&(this.XN=kGj);var hTA=r.unplugged_partner_opt_out;hTA&&(this.GG=Dp("",hTA));this.y0=Ym(this.y0,r.disable_watch_next);this.eJ=Dp(this.eJ,r.internal_ip_override);this.bO=!!r.is_yto_interstitial;(this.interstitials.length||this.bO)&&this.kc.push("yto");var rMU=r.Pu;rMU&&(this.Pu=rMU);if(this.U("html5_persist_csi_timer"))this.QH=Dp(this.QH,r.csi_timer); else{var V0i;this.QH=(V0i=r.csi_timer)!=null?V0i:""}r.watchUrl&&(this.watchUrl=r.watchUrl);var CV=r.watch_endpoint;this.U("html5_attach_watch_endpoint_ustreamer_config")&&CV&&XNh(this,CV);if(CV==null?0:CV.ustreamerConfig)this.gr=xg(CV.ustreamerConfig);var Ixv,d8h,axZ=CV==null?void 0:(Ixv=CV.loggingContext)==null?void 0:(d8h=Ixv.qoeLoggingContext)==null?void 0:d8h.serializedContextData;axZ&&(this.GDQ=axZ);g.FG(this.mM)&&this.mM.tW&&(this.embedsRct=Dp(this.embedsRct,r.rct),this.embedsRctn=Dp(this.embedsRctn, r.rctn));this.S$=this.S$||!!r.pause_at_start;r.default_active_source_video_id&&(this.defaultActiveSourceVideoId=r.default_active_source_video_id)}; g.C.N=function(){return this.mM}; g.C.U=function(r){return this.mM.U(r)}; g.C.RQ=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.C.hasSupportedAudio51Tracks=function(){var r;return!((r=this.LJ)==null||!r.Mk)}; g.C.getUserAudio51Preference=function(){var r=1;IU(this.mM)&&this.U("html5_ytv_surround_toggle_default_off")?r=0:g.hK(this.mM)&&this.isLivePlayback&&this.v3()&&(r=0);var V;return(V=g.BJ("yt-player-audio51"))!=null?V:r}; g.C.aC=function(){this.h0()||(this.G.X||this.G.unsubscribe("refresh",this.aC,this),this.O5(-1))}; g.C.O5=function(r){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var V=f7X(this.G,this.F$);if(V.length>0){for(var I=g.H(V),d=I.next();!d.done;d=I.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Wy()),this.U("html5_cuepoint_identifier_logging")&&d.event==="start"&&this.Hs("cuepoint",{pubCue:d.identifier,segNum:r});this.publish("cuepointupdated",V,r);this.F$+=V.length;if(zV(this)&&this.mM.Ko())for(V=g.H(V),I=V.next();!I.done;I=V.next())I=I.value,this.Hs("cuepoint",{segNum:r,event:I.event, startSecs:I.startSecs,id:I.identifier.slice(-16)}),I.event==="start"&&(I=I.startSecs,this.rZ.start=this.TQ,this.rZ.end=I+3)}}}; g.C.j1=function(){this.h0()||(this.loading=!1,this.publish("dataloaded"))}; g.C.v3=function(){return this.AS!==void 0?this.AS:this.AS=!!this.Cq||!!this.G&&Kc(this.G)}; g.C.MC=function(r){var V=this;if(this.h0())return Ja();this.By=this.Mk=this.S=null;hR(this,"html5_high_res_logging_always")&&(this.mM.j7=!0);return uQj(this,r).then(void 0,function(){return vsZ(V,r)}).then(void 0,function(){return qov(V)}).then(void 0,function(){return osh(V)})}; g.C.mG=function(r){this.S=r;p_A(this,this.S.getAvailableAudioTracks());if(this.S){r=g.H(this.S.videoInfos);for(var V=r.next();!V.done;V=r.next()){V=V.value;var I=V.containerType;I!==0&&(this.hh[I]=V.id)}}tR(this);if(this.W&&this.S&&this.S.videoInfos&&!(this.S.videoInfos.length<=0)&&(r=dg(this.S.videoInfos[0]),this.W.flavor==="fairplay"!==r))for(V=g.H(this.Vu),I=V.next();!I.done;I=V.next())if(I=I.value,r===(I.flavor==="fairplay")){this.W=I;break}}; g.C.GD=function(){if(this.cotn)return null;var r=g.ti(this.mM)||this.U("web_l3_storyboard");if(!this.Fq)if(this.playerResponse&&this.playerResponse.storyboards){var V=this.playerResponse.storyboards,I=V.playerStoryboardSpecRenderer;I&&I.spec?this.Fq=new mi(I.spec,this.lengthSeconds,void 0,!1,r):(V=V.playerLiveStoryboardSpecRenderer)&&V.spec&&this.G&&(I=LAr(this.G.G).index)&&(this.Fq=new pi(V.spec,this.G.isLive,I,r))}else this.Vl?this.Fq=new mi(this.Vl,this.lengthSeconds,void 0,!1,r):this.Sn&&this.G&& (V=LAr(this.G.G).index)&&(this.Fq=new pi(this.Sn,this.G.isLive,V,r));return this.Fq}; g.C.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var r=this.playerResponse.storyboards;return(r=r.playerStoryboardSpecRenderer||r.playerLiveStoryboardSpecRenderer)&&r.spec||null}return this.Vl||this.Sn}; g.C.zd=function(){return this.G&&!isNaN(this.G.zd())?this.G.zd():zV(this)?0:this.lengthSeconds}; g.C.Wy=function(){return this.G&&!isNaN(this.G.Wy())?this.G.Wy():0}; g.C.getPlaylistSequenceForTime=function(r){if(this.G&&this.X){var V=this.G.G[this.X.id];if(!V)return null;var I=V.index.m5(r);V=V.index.getStartTime(I);return{sequence:I,elapsed:Math.floor((r-V)*1E3)}}return null}; g.C.IL=function(){return!this.h0()&&!(!this.videoId&&!this.U6)}; g.C.Gf=function(){var r,V,I;return!!this.adaptiveFormats||!!((r=this.playerResponse)==null?0:(V=r.streamingData)==null?0:(I=V.adaptiveFormats)==null?0:I.length)}; g.C.isLoaded=function(){return Pk(this)&&!this.Ol&&!this.Tw}; g.C.YG=function(r){r||(r="hqdefault.jpg");var V=this.V[r];return V||this.mM.kc||r==="pop1.jpg"||r==="pop2.jpg"||r==="sddefault.jpg"||r==="hq720.jpg"||r==="maxresdefault.jpg"?V:oj(this.mM,this.videoId,r)}; g.C.Tz=function(){return this.isLivePlayback||this.Ue||this.GQ||!(!this.liveUtcStartSeconds||!this.nQ)}; g.C.isOtf=function(){return!!this.G&&(this.G.isOtf||!this.Ue&&!this.isLivePlayback&&this.G.X)}; g.C.getAvailableAudioTracks=function(){return this.S?this.S.getAvailableAudioTracks().length>0?this.S.getAvailableAudioTracks():this.G6||[]:[]}; g.C.getAudioTrack=function(){var r=this;if(this.Y&&!dg(this.Y)){var V=g.z6(this.getAvailableAudioTracks(),function(a){return a.id===r.Y.id}),I; if(this.U("html5_sabr_skip_client_audio_init_selection")&&!V&&((I=this.Y.uo)==null?0:I.id)){var d=this.Y.uo.id;V=g.z6(this.getAvailableAudioTracks(),function(a){return a.uo.id===d}); this.Hs("nat",{id:this.Y.id,track:!!V})}return V||this.eA}if(this.G6){if(!this.Qp)for(V=g.H(this.G6),I=V.next();!I.done;I=V.next())if(I=I.value,I.uo.getIsDefault()){this.Qp=I;break}return this.Qp||this.eA}return this.eA}; g.C.getPlayerResponse=function(){return this.playerResponse}; g.C.getWatchNextResponse=function(){return this.p8}; g.C.getHeartbeatResponse=function(){return this.kI}; g.C.Iv=function(){return this.watchUrl?this.watchUrl:this.mM.getVideoUrl(this.videoId)}; g.C.qN=function(){return!!this.G&&(qVr(this.G)||PAO(this.G)||oYO(this.G))}; g.C.getEmbeddedPlayerResponse=function(){return this.Nf}; g.C.bu=function(){return(this.eventLabel||this.mM.n8)==="shortspage"}; g.C.isAd=function(){return this.GN||!!this.adFormat}; g.C.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.C.uJ=function(){var r,V,I;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((r=this.playerResponse)==null?0:(V=r.playerConfig)==null?0:(I=V.daiConfig)==null?0:I.ssaEnabledPlayback)}; g.C.Qh=function(){return wcX(this)?this.LB:this.ma||this.GR}; g.C.lB=function(){return this.k_||this.GR}; g.C.j2=function(){return hR(this,"html5_samsung_vp9_live")}; g.C.Hs=function(r,V,I){this.publish("ctmp",r,V,I)}; g.C.fk=function(r,V,I){this.publish("ctmpstr",r,V,I)}; g.C.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.C.getGetAdBreakContext=function(r,V){r=r===void 0?NaN:r;V=V===void 0?NaN:V;var I={isSabr:xa(this)},d,a=(d=this.getHeartbeatResponse())==null?void 0:d.adBreakHeartbeatParams;a&&(I.adBreakHeartbeatParams=a);if(this.U("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.G&&!isNaN(r)&&!isNaN(V)){V=r-V;for(var f in this.G.G)if(d=this.G.G[f],d.info.BK()||d.info.HH())if(d=d.index,d.isLoaded()){f=d.m5(V);d=d.dF(f)+V-d.getStartTime(f);this.Hs("gabc",{t:r.toFixed(3),mt:V.toFixed(3),sg:f,igt:d.toFixed(3)}); I.livePlaybackPosition={utcTimeMillis:""+(d*1E3).toFixed(0)};break}}return I}; g.C.isEmbedsShortsMode=function(r,V){if(!g.FG(this.mM)||(this.mM.GQ||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||V)return!1;var I,d;return!!(((I=this.embeddedPlayerConfig)==null?0:(d=I.embeddedPlayerFlags)==null?0:d.isShortsExperienceEligible)&&r.width<=r.height)}; g.C.eC=function(){g.NK.prototype.eC.call(this);this.cR=null;delete this.zB;delete this.accountLinkingConfig;delete this.G;this.S=this.kI=this.playerResponse=this.p8=null;this.IB=this.adaptiveFormats="";delete this.botguardData;this.DM=this.suggestions=this.BV=null;this.sabrContextUpdates.clear()};var tnA={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},yJA={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},KOr={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},O3O={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"},$Hg={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},WOO={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"},Rvr={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.T(EM,g.X);g.C=EM.prototype;g.C.handleExternalCall=function(r,V,I){var d=this.state.L[r],a=this.state.j[r],f=d;if(a)if(I&&V0(I,FG$))f=a;else if(!d)throw Error('API call from an untrusted origin: "'+I+'"');this.logApiCall(r,I);if(f){I=!1;d=g.H(V);for(a=d.next();!a.done;a=d.next())if(String(a.value).includes("javascript:")){I=!0;break}I&&g.gj(Error('Dangerous call to "'+r+'" with ['+V+"]."));return f.apply(this,V)}throw Error('Unknown API method: "'+r+'".');}; g.C.logApiCall=function(r,V,I){var d=this.app.N();d.P1&&!this.state.V.has(r)&&(this.state.V.add(r),g.N9("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:r,origin:V||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.GQ,errorCode:I}))}; g.C.publish=function(r){var V=g.ZU.apply(1,arguments);this.state.S.publish.apply(this.state.S,[r].concat(g.R(V)));if(r==="videodatachange"||r==="resize"||r==="cardstatechange")this.state.X.publish.apply(this.state.X,[r].concat(g.R(V))),this.state.Y.publish.apply(this.state.Y,[r].concat(g.R(V)))}; g.C.Bs=function(r){var V=g.ZU.apply(1,arguments);this.state.S.publish.apply(this.state.S,[r].concat(g.R(V)));this.state.X.publish.apply(this.state.X,[r].concat(g.R(V)))}; g.C.k5=function(r){var V=g.ZU.apply(1,arguments);this.state.S.publish.apply(this.state.S,[r].concat(g.R(V)));this.state.X.publish.apply(this.state.X,[r].concat(g.R(V)));this.state.Y.publish.apply(this.state.Y,[r].concat(g.R(V)))}; g.C.fJ=function(r){var V=g.ZU.apply(1,arguments);this.state.S.publish.apply(this.state.S,[r].concat(g.R(V)));this.state.X.publish.apply(this.state.X,[r].concat(g.R(V)));this.state.Y.publish.apply(this.state.Y,[r].concat(g.R(V)));this.state.W.publish.apply(this.state.W,[r].concat(g.R(V)))}; g.C.U=function(r){return this.app.N().U(r)}; g.C.eC=function(){if(this.state.element){var r=this.state.element,V;for(V in this.state.G)this.state.G.hasOwnProperty(V)&&(r[V]=null);this.state.element=null}g.X.prototype.eC.call(this)};g.T(MJ,g.yj);MJ.prototype.publish=function(r){var V=g.ZU.apply(1,arguments);if(this.W.has(r))return this.W.get(r).push(V),!0;var I=!1;try{for(V=[V],this.W.set(r,V);V.length;)I=g.yj.prototype.publish.call.apply(g.yj.prototype.publish,[this,r].concat(g.R(V.shift())))}finally{this.W.delete(r)}return I};g.T(C8,g.X);C8.prototype.eC=function(){this.W.dispose();this.Y.dispose();this.X.dispose();this.S.dispose();this.V=this.G=this.j=this.L=this.C=void 0};var Z3h=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.T(HF,EM);g.C=HF.prototype;g.C.getApiInterface=function(){return Array.from(this.state.C)}; g.C.A3=function(r,V){this.state.W.subscribe(r,V)}; g.C.rTH=function(r,V){this.state.W.unsubscribe(r,V)}; g.C.getPlayerState=function(r){return S4X(this.app,r)}; g.C.Fa=function(){return S4X(this.app)}; g.C.L9L=function(r,V,I){OM(this)&&(BW(this.app,!0,1),iy(this.app,r,V,I,1))}; g.C.getCurrentTime=function(r,V,I){var d=this.getPlayerState(r);if(this.app.getAppState()===2&&d===5){var a;return((a=this.app.getVideoData())==null?void 0:a.startSeconds)||0}return this.U("web_player_max_seekable_on_ended")&&d===0?Gw(this.app,r):r?this.app.getCurrentTime(r,V,I):this.app.getCurrentTime(r)}; g.C.VN=function(){return this.app.getCurrentTime(1)}; g.C.OM=function(){var r=this.app.dF(1);return isNaN(r)?this.getCurrentTime(1):r}; g.C.lA=function(){return this.app.getDuration(1)}; g.C.SL=function(r,V){r=g.yv(Math.floor(r),0,100);isFinite(r)&&y6(this.app,{volume:r,muted:this.isMuted()},V)}; g.C.xpE=function(r){this.SL(r,!1)}; g.C.z5=function(r){y6(this.app,{muted:!0,volume:this.getVolume()},r)}; g.C.nNc=function(){this.z5(!1)}; g.C.x0=function(r){b5(this.app)&&!this.U("embeds_enable_emc3ds_muted_autoplay")||y6(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},r)}; g.C.EG7=function(){b5(this.app)&&this.U("embeds_enable_emc3ds_muted_autoplay")||this.x0(!1)}; g.C.getPlayerMode=function(){var r={};this.app.getVideoData().Mm&&(r.pfp={enableIma:g.V_(this.app.getVideoData())&&this.app.Hr().allowImaMonetization,autoplay:UQ(this.app.Hr()),mutedAutoplay:this.app.Hr().mutedAutoplay});return r}; g.C.O$=function(){var r=this.app.getPresentingPlayerType();if(r===2&&!this.app.QX()){var V=R8(this.app.Gz());if(!prp(V)||vvo(V))return}r===3?this.app.OO().BO.playVideo():this.app.N().U("html5_ssap_ignore_play_for_ad")&&g.hI(this.app.Hr())&&r===2||this.app.playVideo(r)}; g.C.ZJk=function(){BW(this.app,!0,1);this.O$()}; g.C.pauseVideo=function(r){var V=this.app.getPresentingPlayerType();if(V!==2||this.app.QX()||prp(R8(this.app.Gz())))V===3?this.app.OO().BO.pauseVideo():this.app.pauseVideo(V,r)}; g.C.nGM=function(){var r=this.app,V=!1;r.yH.dH&&(r.zQ.publish("pageTransition"),V=!0);r.stopVideo(V)}; g.C.clearVideo=function(){}; g.C.getAvailablePlaybackRates=function(){var r=this.app.N();return r.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(r.Y?r.ancestorOrigins[0]:window.location.origin)||r.yp?nxm:r.supportsVarispeedExtendedFeatures?jnP:r.U("web_remix_allow_up_to_3x_playback_rate")&&g.ih(r)?DQY:tn:[1]}; g.C.getPlaybackQuality=function(r){return(r=this.app.xN(r))?r.getPlaybackQuality():"unknown"}; g.C.v8s=function(){}; g.C.getAvailableQualityLevels=function(r){return(r=this.app.xN(r))?(r=g.uE(r.BG(),function(V){return V.quality}),r.length&&(r[0]==="auto"&&r.shift(),r=r.concat(["auto"])),r):[]}; g.C.ib=function(){return this.getAvailableQualityLevels(1)}; g.C.Yi=function(){return this.z_()}; g.C.JB=function(){return 1}; g.C.getVideoLoadedFraction=function(r){return this.app.getVideoLoadedFraction(r)}; g.C.z_=function(){return this.getVideoLoadedFraction()}; g.C.Rc=function(){return 0}; g.C.getSize=function(){var r=this.app.gs().getPlayerSize();return{width:r.width,height:r.height}}; g.C.setSize=function(){this.app.gs().resize()}; g.C.loadVideoById=function(r,V,I,d){if(!r)return!1;r=Tm(r,V,I);return this.app.loadVideoByPlayerVars(r,d)}; g.C.aMC=function(r,V,I){r=this.loadVideoById(r,V,I,1);BW(this.app,r,1)}; g.C.cueVideoById=function(r,V,I,d){r=Tm(r,V,I);this.app.cueVideoByPlayerVars(r,d)}; g.C.uY=function(r,V,I){this.cueVideoById(r,V,I,1)}; g.C.loadVideoByUrl=function(r,V,I,d){r=JJU(r,V,I);return this.app.loadVideoByPlayerVars(r,d)}; g.C.MCQ=function(r,V,I){r=this.loadVideoByUrl(r,V,I,1);BW(this.app,r,1)}; g.C.cueVideoByUrl=function(r,V,I,d){r=JJU(r,V,I);this.app.cueVideoByPlayerVars(r,d)}; g.C.Md=function(r,V,I){this.cueVideoByUrl(r,V,I,1)}; g.C.TB=function(){var r=this.app.N();if(r.kc)return"";var V=this.app.Hr(),I=void 0;V.isLivePlayback||(I=Math.floor(this.app.getCurrentTime(1)));return r.getVideoUrl(V.videoId,this.getPlaylistId()||void 0,I)}; g.C.yP=function(){return this.app.getDebugText()}; g.C.getVideoEmbedCode=function(){var r=this.app.N();if(r.kc)return"";var V=this.app.Hr(),I=r.getVideoEmbedCode;V=V.isPrivate?"":V.title;var d=this.app.Hr().videoId;return I.call(r,V,d,this.app.gs().getPlayerSize(),this.getPlaylistId()||void 0)}; g.C.MW=function(r,V,I){return q4A(this.app,r,V,I)}; g.C.removeCueRange=function(r){return o2Z(this.app,r)}; g.C.loadPlaylist=function(r,V,I,d){this.app.loadPlaylist(r,V,I,d)}; g.C.uzL=function(r,V,I,d){this.loadPlaylist(r,V,I,d);BW(this.app,!0,1)}; g.C.cuePlaylist=function(r,V,I,d){this.app.cuePlaylist(r,V,I,d)}; g.C.nextVideo=function(r,V){this.app.nextVideo(r,V)}; g.C.SuL=function(){this.nextVideo();BW(this.app,!0,1)}; g.C.previousVideo=function(r){this.app.previousVideo(r)}; g.C.M78=function(){this.previousVideo();BW(this.app,!0,1)}; g.C.playVideoAt=function(r){this.app.playVideoAt(r)}; g.C.LEs=function(r){this.playVideoAt(r);BW(this.app,!0,1)}; g.C.setShuffle=function(r){var V=this.app.getPlaylist();V&&V.setShuffle(r)}; g.C.setLoop=function(r){var V=this.app.getPlaylist();V&&(V.loop=r)}; g.C.Xa=function(){var r=this.app.getPlaylist();if(!r)return null;for(var V=[],I=0;I=400)if(r=g.J(this.Hr()),this.T.N().U("client_respect_autoplay_switch_button_renderer"))r=!!r.autoplaySwitchButtonRenderer;else{var V,I,d,a;r=!!((V=r.getWatchNextResponse())==null?0:(I=V.contents)==null?0:(d=I.twoColumnWatchNextResults)==null?0:(a=d.autoplay)==null?0:a.autoplay)!==!1}if(r)this.G||(this.G=!0,this.Ok(this.G),this.T.N().U("web_player_autonav_toggle_always_listen")||Yfh(this), V=g.J(this.Hr()),this.Ch(V.autonavState),this.T.logVisibility(this.element,this.G));else if(this.G=!1,this.Ok(this.G),!this.T.N().U("web_player_autonav_toggle_always_listen"))for(this.T.N().U("web_player_autonav_toggle_always_listen"),V=g.H(this.X),I=V.next();!I.done;I=V.next())this.pF(I.value)}; g.C.Ch=function(r){j$X(this)?this.isChecked=r!==1:((r=r!==1)||(g.mL(),r=g.WR("web_autonav_allow_off_by_default")&&!g.uQ(0,141)&&g.kt("AUTONAV_OFF_BY_DEFAULT")?!1:!g.uQ(0,140)),this.isChecked=r);nNv(this)}; g.C.onClick=function(){this.isChecked=!this.isChecked;this.T.gQ(this.isChecked?2:1);nNv(this);if(j$X(this)){var r=g.J(this.Hr()).autoplaySwitchButtonRenderer;this.isChecked&&(r==null?0:r.onEnabledCommand)?this.T.Bs("innertubeCommand",r.onEnabledCommand):!this.isChecked&&(r==null?0:r.onDisabledCommand)&&this.T.Bs("innertubeCommand",r.onDisabledCommand)}this.T.logClick(this.element)}; g.C.getValue=function(){return this.isChecked}; g.C.Hr=function(){return this.T.getVideoData(1)};g.T(D3U,I5);g.T(jW,g.k6);jW.prototype.onClick=function(){this.enabled&&(DC(this,!this.checked),this.publish("select",this.checked))}; jW.prototype.getValue=function(){return this.checked}; jW.prototype.setEnabled=function(r){(this.enabled=r)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var ENX=["en-CA","en","es-MX","fr-CA"];g.T(MW,jW);MW.prototype.UE=function(r){r?this.G||(this.F_.LF(this),this.G=!0):this.G&&(this.F_.ao(this),this.G=!1);this.G&&DC(this,RQi())}; MW.prototype.Y=function(){g.xS(this.element,"ytp-menuitem-highlight-transition-enabled")}; MW.prototype.S=function(r){var V=RQi();r!==V&&(V=g.mL(),vJ(190,r),vJ(192,!0),V.save(),this.T.Bs("cinematicSettingsToggleChange",r))}; MW.prototype.eC=function(){this.G&&this.F_.ao(this);jW.prototype.eC.call(this)};g.T(C0,I5);C0.prototype.updateCinematicSettings=function(r){this.G=r;var V;(V=this.menuItem)==null||V.UE(r);this.api.publish("onCinematicSettingsVisibilityChange",r)};g.T(c0S,I5);g.T(T4,I5);T4.prototype.setCreatorEndscreenVisibility=function(r){var V;(V=Gu(this.api.Gz()))==null||V.Ok(r)}; T4.prototype.G=function(r){function V(d){d==="creatorendscreen"&&(d=Gu(I.api.Gz()))&&d.aDC(I.hideButton)} var I=this;this.hideButton=r;this.events.K(this.api,"modulecreated",V);V("creatorendscreen")};g.T(HU,jW);HU.prototype.Y=function(r){this.S(r?1:0)}; HU.prototype.X=function(){var r=this.hasDrcAudioTrack(),V=this.G()===1&&r;DC(this,V);this.setEnabled(r)}; HU.prototype.eC=function(){this.F_.ao(this);jW.prototype.eC.call(this)};g.T(wR,I5);wR.prototype.getDrcUserPreference=function(){return this.G}; wR.prototype.setDrcUserPreference=function(r){g.X2("yt-player-drc-pref",r,31536E3);r!==this.G&&(this.G=r,this.updateEnvironmentData(),this.X()&&this.api.fR())}; wR.prototype.updateEnvironmentData=function(){this.api.N().Nm=this.G===1}; wR.prototype.X=function(){var r,V,I=(r=this.api.getVideoData())==null?void 0:(V=r.S)==null?void 0:V.G;if(!I)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.U("mta_drc_mutual_exclusion_removal")){var d,a,f=(d=this.api.b5())==null?void 0:(a=d.uo)==null?void 0:a.id;return r6(I,function(e){var n;return e.audio.G&&((n=e.uo)==null?void 0:n.id)===f})}return r6(I,function(e){var n; return((n=e.audio)==null?void 0:n.G)===!0})};g.T(bz,I5);bz.prototype.onVideoDataChange=function(){var r=this,V=this.api.getVideoData();this.api.Zg("embargo",1);var I=V==null?void 0:V.eB.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(I==null?0:I.length)?M9S(this,I.filter(function(d){return zdi(r,d)})):(V==null?0:V.cueRanges)&&M9S(this,V.cueRanges.filter(function(d){return zdi(r,d)}))}; bz.prototype.X=function(r){return r.embargo!==void 0}; bz.prototype.eC=function(){I5.prototype.eC.call(this);this.G={}};g.T(OH,I5); OH.prototype.addEmbedsConversionTrackingParams=function(r){var V=this.api.N(),I=V.widgetReferrer,d=V.Bp,a=this.G,f="",e=V.getWebPlayerContextConfig();e&&(f=e.embedsIframeOriginParam||"");I.length>0&&(r.embeds_widget_referrer=I);d.length>0&&(r.embeds_referring_euri=d);V.Y&&f.length>0&&(r.embeds_referring_origin=f);e&&e.embedsFeature&&(r.feature=e.embedsFeature);a.length>0&&(V.U("embeds_web_enable_lite_experiment_control_arm_logging")?a.unshift(28572):g.s3(g.UL(V))&&a.unshift(159628),V=a.join(","),V= g.qL()?V:g.dq(V,4),r.source_ve_path=V);this.G.length=0};g.T(CZj,I5);g.T(TDU,I5);g.T(WU,g.X);WU.prototype.eC=function(){g.X.prototype.eC.call(this);this.G=null;this.X&&this.X.disconnect()};g.T(wpU,I5);g.T($u,g.u);$u.prototype.show=function(){g.u.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; $u.prototype.stopTimer=function(){this.G&&(this.G.dispose(),this.G=null)}; $u.prototype.onVideoDataChange=function(r){var V,I,d=(V=this.api.getVideoData())==null?void 0:(I=V.getPlayerResponse())==null?void 0:I.playabilityStatus;d&&(V=bwX(d),g.v(this.api.getPlayerStateObject(),128)||r==="dataloaderror"||!V?(this.X=0,this.stopTimer(),this.hide()):(r=(V.remainingTimeSecs||0)*1E3,r>0&&(this.show(),this.updateValue("label",GK(V.label)),WBZ(this,r))))}; $u.prototype.eC=function(){this.stopTimer();g.u.prototype.eC.call(this)};g.T($3X,I5);g.T(K0,g.u);K0.prototype.onClick=function(){this.zQ.logClick(this.element);this.zQ.Bs("onFullerscreenEduClicked")}; K0.prototype.UE=function(){this.zQ.isFullscreen()?this.G?this.fade.hide():this.fade.show():this.hide();this.zQ.logVisibility(this.element,this.zQ.isFullscreen()&&!this.G)};g.T(R5,I5);R5.prototype.updateFullerscreenEduButtonSubtleModeState=function(r){var V;(V=this.G)!=null&&(g.NA(V.element,"ytp-fullerscreen-edu-button-subtle",r),r&&!V.X&&(V.element.setAttribute("title","Scroll for details"),y_(V.zQ,V.element,V),V.X=!0))}; R5.prototype.updateFullerscreenEduButtonVisibility=function(r){var V;(V=this.G)!=null&&(V.G=r,V.UE())};g.T(KBO,g.u);g.T(y0j,I5);g.T(t$,I5);t$.prototype.getSphericalProperties=function(){var r=g.Xd(this.api.Gz());return r?r.getSphericalProperties():{}}; t$.prototype.setSphericalProperties=function(r){if(r){var V=g.Xd(this.api.Gz());V&&V.setSphericalProperties(r,!0)}};g.T(yb,I5);g.C=yb.prototype;g.C.createClientVe=function(r,V,I,d){this.api.createClientVe(r,V,I,d===void 0?!1:d)}; g.C.createServerVe=function(r,V,I){this.api.createServerVe(r,V,I===void 0?!1:I)}; g.C.setTrackingParams=function(r,V){this.api.setTrackingParams(r,V)}; g.C.logClick=function(r,V){this.api.logClick(r,V)}; g.C.logVisibility=function(r,V,I){this.api.logVisibility(r,V,I)}; g.C.hasVe=function(r){return this.api.hasVe(r)}; g.C.destroyVe=function(r){this.api.destroyVe(r)};var GKg=!1;G4.prototype.setPlaybackRate=function(r){this.playbackRate=Math.max(1,r)}; G4.prototype.getPlaybackRate=function(){return this.playbackRate};ZC.prototype.sf=function(r){var V=g.a2(r.info.G.info,this.o7.Tz),I=r.info.J0+this.Y,d=r.info.startTime*1E3;if(this.policy.EE)try{d=this.policy.EE?g.x$(r)*1E3:r.info.startTime*1E3}catch(e){Math.random()>.99&&this.logger&&(d=Ry(r.G).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:r.info.qJ(),encodedDataView:g.I3(d,4)})),d=r.info.startTime*1E3}var a=r.info.clipId,f=this.policy.EE?g.l$i(r)*1E3:r.info.duration*1E3;this.policy.EE&&(d<0||f<0)&&(this.logger&&(this.logger({missingSegInfo:r.info.qJ(), startTimeMs:d,durationMs:f}),this.policy.Tw||(d<0&&(d=r.info.startTime*1E3),f<0&&(f=r.info.duration*1E3))),this.policy.Tw&&(d<0&&(d=r.info.startTime*1E3),f<0&&(f=r.info.duration*1E3)));return{formatId:V,J0:I,startTimeMs:d,clipId:a,kH:f}}; ZC.prototype.FQ=function(r){this.timestampOffset=r};gR.prototype.seek=function(r,V){r!==this.G&&(this.seekCount=0);this.G=r;var I=this.videoTrack.X,d=this.audioTrack.X,a=this.audioTrack.Uu,f=oNp(this,this.videoTrack,r,this.videoTrack.Uu,V);V=oNp(this,this.audioTrack,this.policy.Gd?r:f,a,V);r=Math.max(r,f,V);this.W=!0;this.o7.isManifestless&&(ucX(this,this.videoTrack,I),ucX(this,this.audioTrack,d));return r}; gR.prototype.isSeeking=function(){return this.W}; gR.prototype.Vm=function(r){this.S=r}; var PZj=2/24;var rjZ=0;g.C=o5.prototype;g.C.QY=function(){this.V=this.now();pbO(this.Jz,this.V);this.q2.QY()}; g.C.Mv=function(r,V){var I=this.policy.X?(0,g.m)():0;ku(this,r,V);r-this.C<10&&this.X>0||this.Ql(r,V);this.q2.Mv(r,V);this.policy.X&&(r=(0,g.m)()-I,this.X_+=r,this.DM=Math.max(r,this.DM))}; g.C.Ql=function(r,V){var I=(r-this.C)/1E3,d=V-this.S;this.JL||(OL(this.Jz,I,d),this.Gl(I,d));this.C=r;this.S=V}; g.C.W1=function(){this.GQ&&Vvg(this);this.q2.W1()}; g.C.EZ=function(r){this.GQ||(this.GQ=this.W-this.dH+r,this.Bp=this.W,this.Hy=this.L)}; g.C.w0=function(r,V){r=r===void 0?this.L:r;V=V===void 0?this.W:V;this.X>0||(this.j=r,this.X=V,this.QH=this.isActive=!0)}; g.C.PA=function(){return this.WH||2}; g.C.HY=function(){}; g.C.g5=function(){var r,V={rn:this.requestNumber,rt:(this.L-this.G).toFixed(),lb:this.W,stall:(1E3*this.Y).toFixed(),ht:(this.V-this.G).toFixed(),elt:(this.j-this.G).toFixed(),elb:this.X,d:(r=this.n8)==null?void 0:r.eI()};this.url&&A0Z(V,this.url);this.policy.X&&(V.mph=this.DM.toFixed(),V.tph=this.X_.toFixed());V.ulb=this.R7;V.ult=this.kc;return V}; g.C.now=function(){return(0,g.m)()}; g.C.deactivate=function(){this.isActive&&(this.isActive=!1)};g.T(rK,o5);g.C=rK.prototype;g.C.g5=function(){var r=o5.prototype.g5.call(this);r.pb=this.O9;r.pt=(1E3*this.ya).toFixed();r.se=this.M2;return r}; g.C.hL=function(){var r=this.q2;this.EE||(this.EE=r.hL?r.hL():1);return this.EE}; g.C.RK=function(){return this.Hu?this.hL()!==1:!1}; g.C.HQ=function(r,V,I){if(!this.gH){this.gH=!0;if(!this.JL){ku(this,r,V);this.Ql(r,V);var d=this.hL();this.M2=I;if(!this.JL)if(d===2){d=r-this.j0)||Vz(this,d,V),this.X>0&&w$(this.Jz,V,this.Y));r=(r-this.G)/ 1E3||.01;this.policy.j&&!(this.X>0)||H8(this.Jz,r,this.S,dOZ(this),this.I0)}this.deactivate()}}; g.C.Pt=function(r,V,I){I&&(this.EE=2);r<0&&this.WH&&(r=this.WH);V?this.L8+=r:this.Ws+=r}; g.C.PA=function(){return this.Ws||this.L8||o5.prototype.PA.call(this)}; g.C.Ql=function(r,V){var I=(r-this.C)/1E3,d=V-this.S,a=this.hL();this.isActive?a===1&&((d>0||this.policy.W)&&(I>.2||d<1024)?(this.Y+=I,d>0&&I>.2&&Vz(this,this.QF?I:.05,d),this.Qa=!0):d>0&&(Vz(this,I,d),this.Qa=!0)):V&&V>=this.policy.G&&this.w0(r,V);o5.prototype.Ql.call(this,r,V)}; g.C.I_=function(r){if(!this.JL){ku(this,r,this.W);var V=(r-this.G)/1E3;this.hL()!==2&&this.X>0&&(this.Y+=(r-this.C)/1E3,w$(this.Jz,this.S,this.Y));H8(this.Jz,V,this.S,dOZ(this),this.I0,!0);r=(r-this.C)/1E3;OL(this.Jz,r,0);this.Gl(r,0)}}; g.C.w0=function(r,V){r=r===void 0?this.L:r;V=V===void 0?this.W:V;if(!(this.X>0)&&(o5.prototype.w0.call(this,r,V),this.hL()===1)){V=(this.V-this.G)/1E3;var I=(r-this.V)/1E3;this.Hu&&Ig(this,this.now());this.rH||this.JL||(this.WH&&(I=Math.max(0,I-this.WH)),r=this.Jz,r.j.V_(1,V),r.n8.V_(1,I))}}; g.C.Jn=function(){this.Hu&&Ig(this,this.now());return this.TQ}; g.C.U4=function(){var r;if(r=this.S>this.xV)r=(r=this.S)?r>=this.policy.G:!1;return r}; g.C.r9=function(){return this.a7}; g.C.RV=function(r){r=r===void 0?this.now():r;if(this.Hu){Ig(this,r);if(this.EE?this.RK():this.bL!==this.p8){var V=this.p8;if(r0?I+r:I+Math.max(r,V)}; g.C.cA=function(){return this.now()-this.j}; g.C.t7=function(){return(this.S-this.X)*1E3/this.cA()||0}; g.C.hn=function(){return this.j};dK.prototype.feed=function(r){OT(this.G,r);this.Td()}; dK.prototype.Td=function(){if(this.Y){if(!this.G.getLength())return;var r=this.G.split(this.S-this.X),V=r.f4;r=r.Xb;if(!this.q2.EZ(this.Y,V,this.X,this.S))return;this.X+=V.getLength();this.G=r;this.X===this.S&&(this.Y=this.S=this.X=void 0)}for(;;){var I=0;r=g.H(YGv(this.G,I));V=r.next().value;I=r.next().value;I=g.H(YGv(this.G,I));r=I.next().value;I=I.next().value;if(V<0||r<0)break;if(!this.G.XL(I,r)){if(!this.q2.EZ||!this.G.XL(I,1))break;I=this.G.split(I).Xb;this.q2.EZ(V,I,0,r)&&(this.Y=V,this.X= I.getLength(),this.S=r,this.G=new be([]));break}r=this.G.split(I).Xb.split(r);I=r.Xb;this.q2.uD(V,r.f4);this.G=I}}; dK.prototype.dispose=function(){this.G=new be};g.C=ag.prototype;g.C.lC=function(){return 0}; g.C.A_=function(){return null}; g.C.rS=function(){return null}; g.C.Wt=function(){return this.state>=1}; g.C.isComplete=function(){return this.state>=3}; g.C.PL=function(){return this.state===5}; g.C.onStateChange=function(){}; g.C.Az=function(r){var V=this.state;this.state=r;this.onStateChange(V);this.callback&&this.callback(this,V)}; g.C.LW=function(r){r&&this.state=this.xhr.HEADERS_RECEIVED}; g.C.getResponseHeader=function(r){try{return this.xhr.getResponseHeader(r)}catch(V){return""}}; g.C.nu=function(){return+this.getResponseHeader("content-length")}; g.C.NT=function(){return this.X}; g.C.WX=function(){return this.status>=200&&this.status<300&&!!this.X}; g.C.V6=function(){return this.G.getLength()>0}; g.C.cX=function(){var r=this.G;this.G=new be;return r}; g.C.Jq=function(){return this.G}; g.C.abort=function(){this.h0=!0;this.xhr.abort()}; g.C.LT=function(){return!0}; g.C.j3=function(){return this.cK}; g.C.GY=function(){return""};YP.prototype.bP=function(r,V){V=V===void 0?1:V;this.jU+=V;this.X+=r;r/=V;for(var I=0;I0)d+="."+ef[a].toFixed(0)+"_"+I.G[a].toFixed(0);else break;I=d}I&&(r[V]=I)}this.G=new jCj;return r}; g.C.toString=function(){return""};g.C=cjX.prototype;g.C.isActive=function(){return!1}; g.C.NO=function(){}; g.C.g3=function(){}; g.C.L5=function(){}; g.C.r3=function(){}; g.C.SM=function(r,V){V()}; g.C.iX=function(){return{}}; g.C.toString=function(){return""};var jh,s3G,cAp,zFo,M__,DN,Ok,jf,bsg;jh=new cjX;s3G=!!+hL("html5_enable_profiler");cAp=!!+hL("html5_onesie_enable_profiler");zFo=!!+hL("html5_offline_encryption_enable_profiler");M__=!!+hL("html5_performance_impact_profiling_timer_ms");DN=s3G||cAp||zFo||M__?new xOh:jh;g.lM=s3G?DN:jh;Ok=cAp?DN:jh;jf=zFo?DN:jh;bsg=M__?DN:jh;g.C=CYh.prototype;g.C.getResponseHeader=function(r){return r==="content-type"?this.G.get("type"):""}; g.C.abort=function(){}; g.C.JE=function(){return!0}; g.C.nu=function(){return this.range.length}; g.C.NT=function(){return this.loaded}; g.C.WX=function(){return!!this.loaded}; g.C.V6=function(){return!!this.X.getLength()}; g.C.cX=function(){var r=this.X;this.X=new be;return r}; g.C.Jq=function(){return this.X}; g.C.LT=function(){return!0}; g.C.j3=function(){return!!this.error}; g.C.GY=function(){return this.error};g.C=Hcg.prototype;g.C.start=function(r){var V={credentials:"include",cache:"no-store"};Object.assign(V,this.C);this.Y&&(V.signal=this.Y.signal);r=new Request(r,V);fetch(r).then(this.j,this.onError).then(void 0,Es)}; g.C.onDone=function(){this.h0()||this.q2.W1()}; g.C.getResponseHeader=function(r){return this.responseHeaders?this.responseHeaders.get(r):null}; g.C.JE=function(){return!!this.responseHeaders}; g.C.NT=function(){return this.X}; g.C.nu=function(){return+this.getResponseHeader("content-length")}; g.C.WX=function(){return this.status>=200&&this.status<300&&!!this.X}; g.C.V6=function(){return!!this.G.getLength()}; g.C.cX=function(){this.V6();var r=this.G;this.G=new be;return r}; g.C.Jq=function(){this.V6();return this.G}; g.C.h0=function(){return this.W}; g.C.abort=function(){this.S&&this.S.cancel().catch(function(){}); this.Y&&this.Y.abort();this.W=!0}; g.C.LT=function(){return!0}; g.C.j3=function(){return this.cK}; g.C.GY=function(){return this.errorMessage};g.C=w7A.prototype;g.C.onDone=function(){if(!this.h0){this.status=this.xhr.status;try{this.response=this.xhr.response,this.X=this.response.byteLength}catch(r){}this.G=!0;this.q2.W1()}}; g.C.dM=function(){this.xhr.readyState===2&&this.q2.QY()}; g.C.uI=function(r){this.h0||(this.status=this.xhr.status,this.G||(this.X=r.loaded),this.q2.Mv((0,g.m)(),r.loaded))}; g.C.JE=function(){return this.xhr.readyState>=2}; g.C.getResponseHeader=function(r){try{return this.xhr.getResponseHeader(r)}catch(V){return g.gj(Error("Could not read XHR header "+r)),""}}; g.C.nu=function(){return+this.getResponseHeader("content-length")}; g.C.NT=function(){return this.X}; g.C.WX=function(){return this.status>=200&&this.status<300&&this.G&&!!this.X}; g.C.V6=function(){return this.G&&!!this.response&&!!this.response.byteLength}; g.C.cX=function(){this.V6();var r=this.response;this.response=void 0;return new be([new Uint8Array(r)])}; g.C.Jq=function(){this.V6();return new be([new Uint8Array(this.response)])}; g.C.abort=function(){this.h0=!0;this.xhr.abort()}; g.C.LT=function(){return!1}; g.C.j3=function(){return!1}; g.C.GY=function(){return""};g.xP.prototype.info=function(){}; g.xP.prototype.debug=function(){}; g.xP.prototype.G=function(r){EP.apply(null,[5,this.tag,r].concat(g.R(g.ZU.apply(1,arguments))))}; var WVA=new Map,RDZ=new Map,$Or=new function(){var r=this;this.G=new Map;this.m_={Ywk:function(){return r.G}}};g.T(Nk,g.X);Nk.prototype.Fb=function(){if(!this.gm.length)return[];var r=this.gm;this.gm=[];this.S=g.Nm(r).info;return r}; Nk.prototype.rb=function(){return this.gm}; Nk.prototype.eC=function(){g.X.prototype.eC.call(this);this.G=null;this.gm.length=0;this.iL.length=0;this.S=null};g.T(cd,g.X);g.C=cd.prototype; g.C.GYM=function(){if(!this.h0()){var r=(0,g.m)(),V=!1;if(this.policy.Rk){r=r-(this.timing.X>0?this.timing.j:this.timing.G)-this.timing.PA()*1E3;var I=yF(zl(this),!1);r>=2E3*I?V=!0:r>=this.policy.Ne*I&&(this.G=this.policy.S$)}else if(this.timing.X>0){if(this.W){this.policy.Hy&&(this.G=0);return}var d=this.timing.r9();this.timing.RV();var a=this.timing.r9();a-d>=this.policy.uZ*.8?(this.G++,this.logger.debug(function(){return"Mispredicted by "+(a-d).toFixed(0)}),V=this.G>=5):this.G=0}else{var f=r-this.timing.Jn(); this.policy.S$&&f>0&&(this.G+=1);V=yF(zl(this),!1)*this.policy.Rz;(V=f>V*1E3)&&this.logger.debug(function(){return"Elbow late by "+f.toFixed(3)})}this.G>0&&this.q2.EB(); V?this.d0():this.X.start()}}; g.C.d0=function(){this.Y=!0;this.q2.oN();this.lastError="net.timeout";CF(this)}; g.C.canRetry=function(r){var V=zl(this);r=r?this.policy.ir:this.policy.lh;return V.timedOut0&&(V=V.G.getUint8(0),r.ubyte=V,I===1&&V===0&&(r.b248180278=!0))}this.jr&&(r.rc=this.policy.R0?this.jr:this.jr.toString());this.policy.By&&this.qj&&(r.tr=this.qj);r.itag=this.info.iL[0].G.info.itag;r.ml=""+ +this.info.iL[0].G.sj();r.sq=""+this.info.iL[0].J0;this.t9&&(r.ifi=""+ +Xq(this.info.po.X));this.jr!==410&&this.jr!==500&&this.jr!==503||(r.fmt_unav="true");var d;(I=this.errorMessage||((d=this.xhr)==null? void 0:d.GY()))&&(r.msg=I);this.Fm&&(r.smb="1");this.info.isDecorated()&&(r.sdai="1");return r}; g.C.lS=function(){return aQA(this.timing)}; g.C.GY=function(){return this.xhr.GY()||""}; g.C.U4=function(){return this.isComplete()||this.timing.U4()}; g.C.Mv=function(){!this.h0()&&this.xhr&&(this.jr=this.xhr.status,this.policy.AS&&this.pn&&this.vu(!1),this.Qg()?this.LW(2):!this.xR&&this.U4()&&(this.LW(),this.xR=!0))}; g.C.QY=function(){if(!this.h0()&&this.xhr){if(!this.vJ&&this.xhr.JE()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var r=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.vJ=((0,g.m)()-r)/1E3}this.xhr.JE()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.jL&&!iMX()&&g.X2("yt-player-headers-readable",!0,2592E3);r=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var V=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),I;(I=this.vt)==null||I.stop();this.jg=r||this.jg; this.iP=V||this.iP}}; g.C.W1=function(){var r=this.xhr;if(!this.h0()&&r){this.jr=r.status;r=this.A7(r);if(this.policy.By){var V;(V=this.vt)==null||V.stop()}r===5?CF(this.fF):this.Az(r);this.fF.X.stop()}}; g.C.A7=function(r){var V=this;YCi(this);if(Tl(this.fF,this.xhr.status,this.VU?this.timing.QH||this.g6:this.xhr.WX(),!1,this.Zk))return 5;var I="";Hd(this.fF,this.xhr)&&(I=lQj(this.fF,this.xhr));if(I)return tX(zl(this.fF)),this.info.ZN(this.t9,I),3;I=r.NT();if(this.n_){this.vu(!0);YCi(this);if(Tl(this.fF,this.xhr.status,this.timing.QH||this.g6,!1,this.Zk))return 5;if(!this.Kt){if(this.g6)return tX(zl(this.fF)),3;this.fF.lastError="net.closed";return 5}}else{if(Tl(this.fF,this.xhr.status,this.xhr.WX(), !1,this.Zk))return 5;var d=this.info.S;if(d&&d!==I||r.j3())return this.fF.lastError="net.closed",5;this.vu(!0)}d=nCi(this)?r.getResponseHeader("X-Bandwidth-Est"):0;if(r=nCi(this)?r.getResponseHeader("X-Bandwidth-Est3"):0)this.WY=!0,this.policy.Cg&&(d=r);Gbh(this.fF,I,d?Number(d):0,this.info.iL[0].type===5);this.logger.debug(function(){var a=V.timing;return"Succeeded, rtpd="+(a.ya*1E3+a.G-Date.now()).toFixed(0)}); return 4}; g.C.canRetry=function(){this.h0();var r=this.info.isDecorated();return this.fF.canRetry(r)}; g.C.onStateChange=function(){this.isComplete()&&(this.policy.IF?this.oN():this.timing.deactivate())}; g.C.d0=function(){this.fF.d0()}; g.C.EB=function(){this.callback&&this.callback(this,this.state)}; g.C.Gc=function(){return this.fF.Gc()}; g.C.dispose=function(){ag.prototype.dispose.call(this);this.fF.dispose();var r;(r=this.vt)==null||r.dispose();this.policy.IF||this.oN()}; g.C.oN=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.C.Fb=function(){if(!this.rb().length)return[];this.xA=!0;return this.pn.Fb()}; g.C.Qg=function(){if(this.state<1)return!1;if(this.pn&&this.pn.gm.length)return!0;var r;return((r=this.xhr)==null?0:r.V6())?!0:!1}; g.C.rb=function(){this.vu(!1);return this.pn?this.pn.rb():[]}; g.C.vu=function(r){try{if(r||this.xhr.JE()&&this.xhr.V6()&&!Hd(this.fF,this.xhr)&&!this.cW)this.pn||(this.pn=new Nk(this.policy,this.info.iL)),this.xhr.V6()&&(this.n_?this.n_.feed(this.xhr.cX()):sP(this.pn,this.xhr.cX(),r&&!this.xhr.V6()))}catch(V){this.n_?aTv(this,V):g.gj(V)}}; g.C.uD=function(r,V){switch(r){case 21:r=V.split(1).Xb;fTg(this,r);break;case 22:this.Kt=!0;sP(this.pn,new be([]),!0);break;case 43:if(r=ie(new Jp(V),1))this.info.ZN(this.t9,r),this.g6=!0;break;case 45:V=EG(new Jp(V));r=V.dC;V=V.IV;r&&V&&(this.xq=r/V);break;case 44:this.GZ=ivU(new Jp(V));var I,d,a;!this.timing.QH&&((I=this.GZ)==null?void 0:I.action)===4&&((d=this.GZ)==null?0:(a=d.Jb)==null?0:a.VU)&&(this.VU=this.GZ.Jb.VU);break;case 53:this.policy.By&&(r=Bki(new Jp(V)).Dr)&&(this.vt||(this.Dr=r,this.vt= new g.hz(this.b3,r,this)),this.vt.start());break;case 60:this.FU=xC(new Jp(V));break;case 58:if(r=zrj(new Jp(V)))this.RF=r,r.RF===3&&(this.Zk=!0)}}; g.C.EZ=function(r,V,I,d){I||this.timing.EZ(d);if(r!==21)return!1;if(r=this.policy.AS)if(d=V.getLength()+I===d,r*=this.info.iL[0].G.info.VH,!d&&V.getLength()0)return!1;if(!this.xhr.JE())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.n_)var r=!this.info.S;else this.xhr.nu()?r=!1:(r=this.xhr.getResponseHeader("content-type"),r=r==="audio/mp4"||r==="video/mp4"||r==="video/webm");if(!r)return!1;if(isNaN(this.info.pw)){r=this.xhr.getResponseHeader("x-head-seqnum");var V=this.timing.policy.L?1:0;if(!r)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(r)>this.info.iL[0].J0+V)return!1}return!0}; g.C.oP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.C.A_=function(){this.xhr&&(this.jg=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.jg}; g.C.rS=function(){this.xhr&&(this.iP=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.iP}; g.C.IQ=function(){return this.fF.IQ()}; g.C.b3=function(){if(!this.h0()&&this.xhr){this.qj="heartbeat";var r=this.fF;r.G+=2;this.EB()}};g.T(tG,o5);g.C=tG.prototype;g.C.Ql=function(r,V){var I=(r-this.C)/1E3,d=V-this.S;this.X>0?d>0&&(this.bL&&(I>.2||d<1024?(this.Y+=I,I>.2&&nkA(this,.05,d)):nkA(this,I,d)),this.p8&&(this.TQ+=d,this.Ws+=I)):V>this.policy.G&&this.w0(r,V);o5.prototype.Ql.call(this,r,V)}; g.C.HQ=function(r,V){ku(this,r,V);this.Ql(r,V);this.bL&&(V=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.X>0&&w$(this.Jz,this.TQ,this.Y),r=(r-this.G)/1E3||.01,this.policy.j&&!(this.X>0)||H8(this.Jz,r,this.S,V,!1))}; g.C.I_=function(r){ku(this,r,this.W);var V=(r-this.C)/1E3;OL(this.Jz,V,0);this.Gl(V,0);!this.bL&&this.X>0||(V=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.X>0&&(this.Y+=(r-this.C)/1E3,w$(this.Jz,this.TQ,this.Y)),H8(this.Jz,((r-this.G)/1E3||.01)*this.policy.QH,this.S,V,!1,!0))}; g.C.QV=function(r){r=r.ob||2147483647;(r&2)!==2&&(this.p8=!1);(r&1)===1&&(this.bL=!0)}; g.C.B$=function(r){r=r.ob||2147483647;(r&2)===2&&(this.p8=!1);(r&1)===1&&(this.bL=!1)}; g.C.hn=function(){return this.j}; g.C.cA=function(){var r=this.p8?this.now()-this.C:0;return Math.max(this.Ws*1E3+r,1)}; g.C.t7=function(){return this.TQ*1E3/this.cA()}; g.C.w0=function(r,V){r=r===void 0?this.L:r;V=V===void 0?this.W:V;this.X>0||(o5.prototype.w0.call(this,r,V),V=this.Jz,r=(r-this.V)/1E3,V.j.V_(1,(this.V-this.G)/1E3),V.n8.V_(1,r))}; g.C.HY=function(r){this.L8=r}; g.C.g5=function(){var r=o5.prototype.g5.call(this);r.rbw=this.t7();r.rbe=+this.p8;r.gbe=+this.bL;r.ackt=(this.L8-this.G).toFixed();return r}; g.C.RV=function(){}; g.C.r9=function(){return NaN}; g.C.Jn=function(){return this.G+this.snapshot.delay*1E3};yz.prototype.uD=function(r,V){V.getLength();switch(r){case 20:r=new Jp(V);r={b7:B1(r,1),videoId:ie(r,2),itag:B1(r,3),lmt:B1(r,4),xtags:ie(r,5),Xt:B1(r,6),S6:gH(r,8),j6:B1(r,9),uc7:B1(r,10),startMs:B1(r,11),durationMs:B1(r,12),kz:B1(r,14),timeRange:UT(r,15,rwX),PZ:B1(r,16),Ns:B1(r,17),clipId:ie(r,1E3)};this.zt(r);break;case 21:this.WQ(V,!1);break;case 22:this.yG(V);break;case 31:r=ue(V,Awi);this.DG(r);break;case 52:r=ue(V,gjU);this.IR(r);break;default:this.nZ(r,V)}}; yz.prototype.zt=function(){}; yz.prototype.nZ=function(){};g.T(AG,yz);g.C=AG.prototype; g.C.nZ=function(r,V){V.getLength();switch(r){case 35:this.l_(V);break;case 44:this.P$(V);break;case 43:this.IY(V);break;case 53:this.KZ(V);break;case 55:r=new Jp(V);(r={timeline:UT(r,1,Qvh),soQ:UT(r,2,psA)},r.timeline)&&r.timeline.Xr&&this.q2.vQ(r.timeline.Xr,r.timeline.ltQ,r.soQ);break;case 56:this.Dd();break;case 57:this.SE(V);break;case 42:this.JN(V);break;case 45:this.HR(V);break;case 59:this.VE(V);break;case 51:this.lx(V);break;case 49:this.QV(V);break;case 50:this.B$(V);break;case 47:this.yV(V); break;case 58:this.l8(V);break;case 61:this.q2.F8.HY((0,g.m)());break;case 66:this.aZ(V);break;case 46:this.gA(V);break;case 67:this.onSnackbarMessage(V)}}; g.C.lx=function(r){r=new Jp(r);r={RoM:mt(r,1,jv),hoQ:mt(r,2,jv)};this.q2.lx(r)}; g.C.VE=function(r){var V=new Jp(r);r=QI(V,1);var I=QI(V,2);V=QI(V,3);this.q2.VE(r,I,V)}; g.C.HR=function(r){r=EG(new Jp(r));this.q2.HR(r)}; g.C.yV=function(r){r=ue(r,lrv);this.q2.yV(r)}; g.C.JN=function(r){r=new Jp(r);r={videoId:ie(r,1),formatId:UT(r,2,jv),endTimeMs:B1(r,3),xRM:B1(r,4),mimeType:ie(r,5),GH:UT(r,6,W$Z),indexRange:UT(r,7,W$Z),Av:UT(r,8,$br)};this.q2.JN(r)}; g.C.SE=function(r){r=psA(new Jp(r));this.q2.SE(r)}; g.C.Dd=function(){this.q2.Dd()}; g.C.l_=function(r){r=GjU(new Jp(r));this.q2.l_(r)}; g.C.KZ=function(r){r=Bki(new Jp(r));this.q2.KZ(r)}; g.C.P$=function(r){r=ivU(new Jp(r));this.q2.P$(r)}; g.C.IY=function(r){r={redirectUrl:ie(new Jp(r),1)};this.q2.IY(r)}; g.C.WQ=function(r){var V=r.getUint8(0);if(r.getLength()!==1){r=r.split(1).Xb;var I=this.X[V]||null;I&&X_(this.q2.Oj,V,I,r)}}; g.C.yG=function(r){r=r.getUint8(0);var V=this.X[r]||null;V&&this.q2.yG(r,V)}; g.C.IR=function(r){this.q2.IR(r)}; g.C.zt=function(r){var V=r.b7,I=r.S6,d=r.Xt,a=r.Ns,f=r.PZ,e=r.j6,n=r.startMs,D=r.durationMs,x=r.timeRange,E=r.kz,N=r.clipId,c=ZT(r);r=vx$.has(vq[""+r.itag]);this.X[V]=c;this.q2.Pt(c,r,{b7:V,S6:!!I,Xt:d!=null?d:-1,j6:e!=null?e:-1,startMs:n!=null?n:-1,durationMs:D!=null?D:-1,kz:E,Ns:a,PZ:f,clipId:N,timeRange:x})}; g.C.QV=function(r){r={ob:B1(new Jp(r),1)};this.q2.QV(r)}; g.C.B$=function(r){r={ob:B1(new Jp(r),1)};this.q2.B$(r)}; g.C.DG=function(r){this.q2.DG(r)}; g.C.l8=function(r){r=zrj(new Jp(r));this.q2.l8(r)}; g.C.aZ=function(r){r={AG:UT(new Jp(r),1,Zvj)};this.q2.aZ(r)}; g.C.onSnackbarMessage=function(r){r=B1(new Jp(r),1);this.q2.onSnackbarMessage(r)}; g.C.gA=function(r){r={reloadPlaybackParams:UT(new Jp(r),1,cwr)};this.q2.gA(r)};g.T(Gl,g.X);g.C=Gl.prototype;g.C.kC=function(){return Array.from(this.I8.keys())}; g.C.XZ=function(r){r=this.I8.get(r);var V=r.gm;r.d_+=V.getLength();r.gm=new be;return V}; g.C.H3=function(r){return this.I8.get(r).H3}; g.C.s4=function(r){return this.I8.get(r).s4}; g.C.Pt=function(r,V,I,d){this.I8.get(r)||Nrj(this,r,V);V=this.I8.get(r);if(this.o7){r=cXX(this,r,I);if(d)for(var a=g.H(r),f=a.next();!f.done;f=a.next()){f=f.value;var e=d;f.kc=e;f.startTime+=e;f.Y+=e;f.C+=e}siA(this,I.b7,V,r)}else I.S6?V.Fp=I.kz:V.fO.push(I),V.uW.push(I)}; g.C.zr=function(r){var V;return((V=this.I8.get(r))==null?void 0:V.iL)||[]}; g.C.LW=function(){for(var r=g.H(this.I8.values()),V=r.next();!V.done;V=r.next())V=V.value,V.XS&&(V.uI&&V.uI(),V.XS=!1)}; g.C.yG=function(r,V){this.logger.debug(function(){return"[onMediaEnd] formatId: "+V}); var I=this.I8.get(V);if(F_){if(I&&!I.H3){if(I.Eo.get(r))I.Eo.get(r).zf=!0;else{var d;((d=this.Qs)==null?0:d.Py)&&I.Eo.set(r,{data:new be,i$:0,zf:!0})}I.s4=!0}}else I&&!I.s4&&(I.s4=!0)}; g.C.Fb=function(r){if(F_){var V=this.I8.get(r);if(V)for(var I=g.H(V.Eo),d=I.next();!d.done;d=I.next()){var a=g.H(d.value);d=a.next().value;a=a.next().value;var f=V.eV.get(d);if(QF(f[0])){if(!a.zf)continue;var e=f,n=a.data;n.getLength();f=0;var D=[];e=g.H(e);for(var x=e.next();!x.done;x=e.next()){x=x.value;var E=x.S,N=W1(n,f,E);f+=E;D.push(new jq(x,N))}V.Pw.push.apply(V.Pw,g.R(D))}else if(a.data.getLength()>0||!f[0].range&&a.zf)n=void 0,f=f[0],D=a.i$,e=a.data,f.range||(n=a.zf),x=e.getLength(),n=new jq(Ngi(f, f.X+D,x,n),e),a.i$+=n.info.S,V.Pw.push(n);V.Eo.get(d).data=new be;a.zf&&V.Eo.delete(d)}r=this.I8.get(r);if(!r)return[];V=r.Pw;r.Pw=[];I=g.H(V);for(d=I.next();!d.done;d=I.next())r.d_+=d.value.info.S;return V||[]}I=(V=this.I8.get(r))==null?void 0:V.pn;if(!I)return[];this.vu(r,I);return I.Fb()}; g.C.Qg=function(r){if(F_)return ZK(this,r);var V,I,d;return!!((I=(V=this.I8.get(r))==null?void 0:V.pn)==null?0:(d=I.rb())==null?0:d.length)||ZK(this,r)}; g.C.vu=function(r,V){for(;ZK(this,r);){var I=this.XZ(r);var d=r;d=this.I8.get(d).H3&&!JG(this,d);sP(V,I,d&&Ekg(this,r))}}; g.C.eC=function(){g.X.prototype.eC.call(this);for(var r=g.H(this.I8.keys()),V=r.next();!V.done;V=r.next())lG(this,V.value);var I;if((I=this.Qs)==null?0:I.tW)for(r=g.H(this.I8.values()),V=r.next();!V.done;V=r.next())V=V.value,V.Eo.clear(),V.eV.clear(),V.Pw.length=0,V.iL.length=0,V.uW.length=0,V.fO.length=0;this.I8.clear()}; var F_=!1;g.T(Bd,g.X);g.C=Bd.prototype;g.C.Mv=function(){!this.h0()&&this.xhr&&(this.vu(!1),Tz(this.q2,this))}; g.C.QY=function(){}; g.C.W1=function(){if(!this.h0()&&this.xhr){var r=this.A7();r===5?CF(this.fF):this.Az(r);this.fF.X.stop();var V;(V=this.UV)==null||V.stop()}}; g.C.A7=function(){var r="";Hd(this.fF,this.xhr)&&(r=lQj(this.fF,this.xhr));if(r)return this.info.po.ZN(this.t9,r),3;this.vu(!0);if(Tl(this.fF,this.xhr.status,this.xhr.WX(),this.info.oZ(),this.Zk))return 5;if(this.tb)return 3;Gbh(this.fF,this.xhr.NT(),0,this.oZ());this.policy.CF&&yRU(this.q2);return 4}; g.C.vu=function(r){var V=this.xhr;if((r||!Hd(this.fF,this.xhr))&&V.V6()){r=V.cX();var I=r.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+I}); this.n_.feed(r)}}; g.C.uD=function(r,V){this.xhr.LT()&&r===21&&Hhi(this);this.RS.uD(r,V)}; g.C.EZ=function(r,V,I,d){I||(this.F8.EZ(d),this.policy.dj&&r===21&&Hhi(this));if(r!==21)return!1;this.F8.QH=!0;r=V.getLength();I||(this.Ya=V.getUint8(0),V=V.split(1).Xb);var a=this.policy.xK,f=this.RS.X[this.Ya],e=this.o7.S.get(f);if(a&&e&&(a*=e.info.VH,r+I!==d&&r0){this.policy.Rk&&this.fF.X.stop();r=this.F8.cA();V=this.F8.t7();var I=wIU(this,r);if(!(V>I.sz||I.gG>0&&this.info.rd()>I.gG)){this.T$=(0,g.m)();var d;(d=this.UV)==null||d.stop();this.policy.CF&&(d=this.q2,r={KQ:Math.round(V*r/1E3),gV:r},d.policy.CF&&(d.n8=r,d.qe++));this.d0()}}}}; g.C.d0=function(){this.fF.d0()}; g.C.P$=function(r){this.q2.P$(r,this.Ec())}; g.C.IY=function(r){this.tb=!0;this.info.po.ZN(this.t9,r.redirectUrl)}; g.C.QV=function(r){this.F8 instanceof tG&&this.F8.QV(r)}; g.C.B$=function(r){this.F8 instanceof tG&&this.F8.B$(r)}; g.C.vQ=function(r,V,I){this.q2.vQ(r,V,I,this.Ec())}; g.C.JN=function(r){var V=r.formatId,I=ZT({itag:V.itag,lmt:V.lmt,xtags:V.xtags}),d,a,f=new BI(((d=r.GH)==null?void 0:d.first)||0,((a=r.GH)==null?void 0:a.zH)||0),e,n;d=new BI(((e=r.indexRange)==null?void 0:e.first)||0,((n=r.indexRange)==null?void 0:n.zH)||0);if(!this.o7.S.get(I)){I=r.Av||{};if(this.policy.B9){var D,x;r=(D=r.mimeType)!=null?D:"";D=(x=V.itag)!=null?x:0;x=vq[""+D];I.mimeType=x!=="9"&&x!=="9h"?r:'video/webm; codecs="'+["vp09",x==="9h"?"02":"00","51",x==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else I.mimeType=r.mimeType;I.itag=V.itag;I.lastModified=""+(V.lmt||0);I.xtags=V.xtags;V=this.o7;x=tD("");D=Kp(I,null);H5(V,new MY(x,D,f,d))}}; g.C.HR=function(r){this.q2.HR(r)}; g.C.onSnackbarMessage=function(r){if(this.policy.F$)this.q2.onSnackbarMessage(r)}; g.C.DG=function(r){this.Hx=r;this.Mb=(0,g.m)();this.q2.DG(r)}; g.C.VE=function(r,V,I){this.q2.VE(r,V,I)}; g.C.SE=function(r){r.scope===2?this.T$Q=r:this.q2.SE(r)}; g.C.Dd=function(){this.LL=!0;this.q2.Dd()}; g.C.lx=function(r){this.policy.JP&&this.q2.lx(r)}; g.C.yV=function(r){this.q2.yV(r,this.Ec())}; g.C.l8=function(r){r.RF===3&&(this.Zk=!0);this.q2.l8(r)}; g.C.aZ=function(r){this.q2.aZ(r)}; g.C.gA=function(r){this.q2.gA(r)}; g.C.canRetry=function(){this.h0();return this.fF.canRetry(!1)}; g.C.dispose=function(){if(!this.h0()){g.X.prototype.dispose.call(this);this.fF.dispose();var r;(r=this.UV)==null||r.dispose();this.Az(-1);this.oN()}}; g.C.Az=function(r){this.state=r;Tz(this.q2,this)}; g.C.oZ=function(){return this.info.oZ()}; g.C.Us=function(){return this.LL}; g.C.sB=function(){return this.T$Q}; g.C.Pt=function(r,V,I){I.clipId&&(this.clipId=I.clipId);this.policy.W&&!V&&(this.Wa=I.j6,this.Yh=I.startMs);var d=0;this.policy.eA&&this.m$&&this.clipId&&(d=XX(this.m$,this.clipId)/1E3);this.Oj.Pt(r,V,I,d);this.policy.hW&&this.Hx&&this.F8 instanceof rK&&(d=this.Hx.uG,this.F8.Pt(I.durationMs/1E3,V,d>0&&I.j6+1>=d));this.Oj.I8.get(r).nz=!0}; g.C.yG=function(r,V){this.Oj.yG(r,V)}; g.C.IR=function(r){this.requestIdentifier=r}; g.C.Fb=function(r){return this.Oj.Fb(r)}; g.C.zr=function(r){return this.Oj.zr(r)}; g.C.Qg=function(r){return this.Oj.Qg(r)}; g.C.kC=function(){return this.Oj.kC()}; g.C.hL=function(){return 1}; g.C.Ec=function(){return this.F8.requestNumber}; g.C.h7=function(){return this.requestIdentifier}; g.C.VI=function(){return this.clipId}; g.C.fq=function(){return this.t9.fq()}; g.C.L3=function(){this.oN()}; g.C.oN=function(){this.F8.deactivate();var r;(r=this.xhr)==null||r.abort()}; g.C.isComplete=function(){return this.state>=3}; g.C.C6=function(){return this.state===3}; g.C.PL=function(){return this.state===5}; g.C.WM=function(){return this.state===4}; g.C.iC=function(){return this.isComplete()}; g.C.Wt=function(){return this.state>=1}; g.C.Gc=function(){return this.policy.Hy?this.fF.Gc():0}; g.C.EB=function(){this.policy.Hy&&Tz(this.q2,this)}; g.C.Rf=function(){return YrA(this.info)}; g.C.IQ=function(){return this.fF.IQ()}; g.C.Tr=function(){var r=LVj(this.fF);Object.assign(r,jUi(this.info));r.req="sabr";r.rn=this.Ec();var V;if((V=this.xhr)==null?0:V.status)r.rc=this.policy.R0?this.xhr.status:this.xhr.status.toString();var I;(V=(I=this.xhr)==null?void 0:I.GY())&&(r.msg=V);this.T$&&(I=wIU(this,this.T$-this.F8.hn()),r.letm=I.KME,r.mrbps=I.sz,r.mram=I.gG);return r}; g.C.T_=function(){return{Wa:this.Wa,Yh:this.Yh,isDecorated:this.info.isDecorated()}};bhU.prototype.tick=function(r,V){this.ticks[r]=V?window.performance.timing.navigationStart+V:(0,g.m)()};g.T(Sf,g.NK);g.C=Sf.prototype; g.C.V2=function(r,V,I,d){if(this.policy.ma&&this.policy.W){var a=r.Et||null;a?(Zhg(this,r.J0,pF(this,r.startTime,r.J0),{Et:a,J0:r.J0,Kr:!!V,BK:I},this.S),d&&this.S&&this.S.yY(r.J0,r.startTime,this.X,(V==null?void 0:V.G)||[],(V==null?void 0:V.X)||[],(V==null?void 0:V.S)||[],I,(V==null?void 0:V.Cy)||0,(V==null?void 0:V.Y)||void 0)):this.X===1&&UP(this,5,"noad")}else{var f=!1;this.policy.Mk&&(f=I?this.GQ===r.J0:this.bL===r.J0);if(this.S&&d&&!f){d=[];f=[];var e=[],n=void 0,D=0;V&&(d=V.G,f=V.X,e=V.S,n= V.Y,D=V.Cy,this.Hs("sdai",{sq:r.J0,ssvicpns:d.join("."),ssvid:f.join(".")}));this.policy.Mk&&(I?this.GQ=r.J0:this.bL=r.J0);this.S.yY(r.J0,r.startTime,this.X,d,f,e,I,D,n)}this.policy.Mk?I&&(this.X===1&&UP(this,5,"noad"),r.J0!==((a=this.G)==null?void 0:a.J0)&&(LYv(this,r,V,I),isNaN(r.startTime)||Qz(this,r.J0,pF(this,r.startTime,r.J0),!!V,this.S))):I&&LYv(this,r,V)}}; g.C.fZ=function(r,V,I){var d=this.videoTrack.G.index.xX()<=V;this.G={Et:r,J0:V,Kr:I};d&&iG(this,r,V)}; g.C.FL=function(){this.S&&this.S.FL()}; g.C.Hs=function(r,V,I){(r!=="sdai"||this.policy.KR||(I===void 0?0:I))&&this.loader.Hs(r,V)}; g.C.XQ=function(r,V){var I=this.videoTrack.G.index.m5(r);if(I>=0){var d;var a=((d=V.j4.WD(I,2))==null?void 0:d.x$)||"";if(this.policy.W||a)return V.CT(r,I),mF(this.loader,r,r,I),this.Hs("sdai",{cmskpad:1,t:r.toFixed(3),sq:I}),!0}this.Hs("sdai",{cmskpad:0,t:r.toFixed(3),sq:I});return!1};g.T(og,g.X);og.prototype.B1=function(r,V,I){I=I===void 0?{}:I;this.policy.WZ=is(r,I,this.Y,V===void 0?!1:V)};IQ.prototype.Ag=function(r){var V=this;if(this.policy.bO){var I=new Set(r);I.size===this.n8.size&&[].concat(g.R(I)).every(function(d){return V.n8.has(d)})||(this.loader.Hs("lwnmow",{itagDenylist:[].concat(g.R(r)).join(",")}),this.loader.Kk(!!I.size),this.V=-1,this.n8=I,d2(this,this.G),this.TQ=!0)}}; IQ.prototype.B1=function(r,V,I){I=I===void 0?{}:I;var d=this.policy.WZ;this.W.B1(r,V===void 0?!1:V,I);if(d!==this.policy.WZ){d2(this,this.G);aQ(this);var a,f;d>this.policy.WZ&&((a=this.S)==null?0:h4(a.info))&&((f=this.nextVideo)==null||!h4(f.info))&&(this.QH=!0)}};n$O.prototype.FQ=function(r){this.timestampOffset=r;this.flush()}; n$O.prototype.flush=function(){if(this.G.pos>0){var r={a:this.track.HH(),u:this.G.eI(),pd:Math.round(this.Y),ad:Math.round(this.S)},V=this.X;if(V){var I=V.G.info;r.itag=I.itag;I.G&&(r.xtags=I.G);r.sq=V.J0;r.st=V.startTime;r.sd=V.duration;this.track.policy.YK&&(r.si=V.qJ());V.W&&(r.esl=V.X+V.S);V.N7()&&(r.eos=1)}isNaN(this.timestampOffset)||(r.to=this.timestampOffset);var d;if(V=(d=this.track.Uu)==null?void 0:d.Qy({})){for(var a in V)this.C[a]!==V[a]&&(r["sb_"+a]=V[a]);this.C=V}this.track.Hs("sbu", r);this.G.reset();this.buffered=[];this.W=this.S=this.Y=0;this.timestampOffset=this.X=void 0}};xYS.prototype.dispose=function(){this.kc=!0}; xYS.prototype.h0=function(){return this.kc}; g.T(E1,Error);cB.prototype.skip=function(r){this.offset+=r}; cB.prototype.uP=function(){return this.offset};g.C=ADX.prototype;g.C.YR=function(){return this.X}; g.C.fd=function(){return this.X.length?this.X[this.X.length-1]:null}; g.C.I1=function(){this.X=[];MB(this);yDg(this)}; g.C.XZ=function(r){this.Ws=this.X.shift().info;r.info.equals(this.Ws)}; g.C.zr=function(){return g.uE(this.X,function(r){return r.info})}; g.C.HH=function(){return!!this.C.info.audio}; g.C.getDuration=function(){return this.C.index.wl()};g.T(SW,ag);g.C=SW.prototype;g.C.onStateChange=function(){this.h0()&&(LF(this.Oj,this.formatId),this.G.dispose())}; g.C.Tr=function(){var r=xxZ(this.Oj,this.formatId),V;var I=((V=this.Oj.I8.get(this.formatId))==null?void 0:V.bytesReceived)||0;var d;V=((d=this.Oj.I8.get(this.formatId))==null?void 0:d.d_)||0;return{expected:r,received:I,bytesShifted:V,sliceLength:JG(this.Oj,this.formatId),isAnyMediaEndReceived:this.Oj.s4(this.formatId)}}; g.C.lS=function(){return 0}; g.C.U4=function(){return!0}; g.C.Fb=function(){return this.Oj.Fb(this.formatId)}; g.C.rb=function(){return[]}; g.C.Qg=function(){return this.Oj.Qg(this.formatId)}; g.C.IQ=function(){return this.lastError}; g.C.Gc=function(){return 0};g.T(HB,g.X);g.C=HB.prototype;g.C.HH=function(){return!!this.G.info.audio}; g.C.fd=function(){return this.Y.fd()}; g.C.XZ=function(r){this.Y.XZ(r);var V;(V=this.L)!=null&&(V.W.add(r.info.J0),V.G=gNA(V,V.Eu,V.lT,r,V.G),V.S=r,V.C=(0,g.m)());this.VH=Math.max(this.VH,r.info.G.info.VH||0)}; g.C.getDuration=function(){if(this.policy.X){var r=this.loader.Ro();if(r)return M8(r)}return this.G.index.wl()}; g.C.I1=function(){UH(this);this.Y.I1()}; g.C.qq=function(){return this.Y}; g.C.isRequestPending=function(r){return this.S.length?r===this.S[this.S.length-1].info.iL[0].J0:!1}; g.C.FQ=function(r){var V;(V=this.L)==null||V.FQ(r);var I;(I=this.V)==null||I.FQ(r)}; g.C.Hs=function(r,V){this.loader.Hs(r,V)}; g.C.vL=function(){return this.loader.vL()}; g.C.dispose=function(){var r;(r=this.V)==null||r.flush();g.X.prototype.dispose.call(this)};g.T(BB,g.X);BB.prototype.S=function(){this.X++>15||(this.G=!this.G,new AKA(this.loader,this.policy,this.Jz,this.po,this.G),this.delay.start())}; g.C=AKA.prototype;g.C.QY=function(){}; g.C.Mv=function(){}; g.C.W1=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.NT()===this.size)this.loader.Hs("rqs",this.getInfo());else{var r="net.connect";this.xhr.status>200?r="net.badstatus":this.xhr.JE()&&(r="net.closed");this.onError(r)}}; g.C.onError=function(r){var V=this;this.loader.handleError(r,this.getInfo());A$("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(I){V.loader.Hs("pathprobe",I)},function(I){V.loader.handleError(I.errorCode,I.details)})}; g.C.getInfo=function(){var r=this.timing.g5();r.shost=Jj(this.location.Pa);r.pb=this.size;return r};g.T(g2,g.X); g2.prototype.L=function(r,V){if(r.j){this.o7.isLive?(r=this.o7.S7&&this.o7.Y?r.G.fY(this.o7.S7,!1):r.G.X6(Infinity),r.pw=this.pw):r=r.G.fY(0,!1);if(this.QH){var I=this.QH;r.pw===0&&(r.W=I.j)}else r.W=this.V;return r}I=r.X;if(!I.G.sj())return I.G.xD()?(r=lz(this.W,r.G.info.VH,V.G.info.VH,0),r=g.J(I.G.td(I,r))):r=g.J(I.G.dZ(I)),r;var d=I.C-this.loader.getCurrentTime(),a=!I.range||I.S===0&&I.X===0?0:I.range.length-(I.X+I.S),f=I.G;this.J5(r,d)&&a===0&&(this.o7.isManifestless?f=r.G:(f=I.startTime+Kdv, I.S&&(f+=I.duration),uz(r,f),I=r.X,f=I.G));f.xD()?(a=this.S,V=lz(this.W,f.info.VH,V.G.info.VH,d,a.Y.length>0&&a.j===0&&this.loader.C9),d=FD(r),r=g.J(I.G.td(I,V)),(V=r.S)&&r.iL.length>1&&(d||r.po.S||r.iL[0].G!==I.G?r=g.J(I.G.td(I,r.iL[0].S)):(d=r.iL[r.iL.length-1],f=d.S/V,!d.W&&f<.4&&(r=g.J(I.G.td(I,V-d.S)))))):(I.J0<0&&(V=vI(I),V.pr=""+r.S.length,this.loader.isSeeking()&&(V.sk="1"),V.snss=I.j,this.loader.Hs("nosq",V)),r=g.J(f.dZ(I)));if(this.policy.GQ)for(I=g.H(r.iL),V=I.next();!V.done;V=I.next())V.value.type= 6;return r}; g2.prototype.J5=function(r,V){if(!FD(r)||!r.G.sj())return!1;var I=this.S.TQ||xah(r)||V<=this.policy.Jh||this.S.QH;this.logger.debug(function(){return"ready to adapt: "+I+", upgrade pending: "+xah(r)+", health: "+V}); return I}; g2.prototype.eC=function(){g.X.prototype.eC.call(this)}; var Kdv=2/24;g.T(Qt,g.X);Qt.prototype.BB=function(r,V,I){var d;var a=((d=this.X)==null?void 0:d.reason)==="m"?"m":this.X&&PnU(this,this.X)?this.X.reason:"a";this.loader.BB(new Pd(r,a,I));i4(this.loader,V,r,!0)}; Qt.prototype.TI=function(r,V){for(var I=g.H(this.GQ),d=I.next();!d.done;d=I.next())if(d=d.value,d.id===r)return this.Qs.zK||(this.S=[d]),this.W=this.o7.G[r],XD(this.Qs)&&(this.QH=!0),r=new Pd(this.W,V?"t":"m"),V&&(this.j=!0),r;this.S=[];return null}; Qt.prototype.B1=function(r,V,I){I=I===void 0?{}:I;this.G.B1(r,V===void 0?!1:V,I)};pT.prototype.setData=function(r,V,I,d){var a=this;d=d===void 0?{}:d;if(I==null?0:I.gH)this.k0=Tri(this,I,d),r.jn=this.po.jn();if(this.oZ())return!0;this.data=r;this.G=fbi(r,V,function(f,e){var n;(n=a.q2)==null||n.Ps(f,e)},I==null?void 0:I.S); if(!this.G)return!1;this.X=g.ru(this.G,HvU);return!0}; pT.prototype.oZ=function(){return this.requestType===1}; pT.prototype.rd=function(){var r;return((r=this.q2)==null?void 0:r.rd())||0}; pT.prototype.isDecorated=function(){var r;return!((r=this.data)==null||!r.bT)};vB.prototype.encrypt=function(r){this.Gy.exports.AES128CTRCipher_encrypt(this.cipher,r.byteOffset,r.byteLength);return r}; vB.prototype.h0=function(){return this.cipher===0}; vB.prototype.dispose=function(){this.Gy.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};qB.prototype.encrypt=function(r,V){return TK(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:V},this.key,r).catch(function(I){return Promise.reject(I.name+": "+I.message)}).then(function(I){return new Uint8Array(I)}))}; qB.prototype.h0=function(){return this.G}; qB.prototype.dispose=function(){this.G=!0}; PB.prototype.encrypt=function(r,V){return TK(this.X(r,V))}; PB.prototype.X=function(r,V){bI(this.S,V);return this.S.encrypt(r)}; PB.prototype.h0=function(){return this.G}; PB.prototype.dispose=function(){this.G=!0}; oQ.prototype.encrypt=function(r,V){return TK(this.X(r,V))}; oQ.prototype.X=function(r,V){V=this.Gy.Ix(V);var I=this.G;I.Gy.exports.AES128CTRCipher_setCounter(I.cipher,V.byteOffset);this.Gy.free(V.byteOffset);V=this.Gy.Ix(r);this.G.encrypt(V!=null?V:r);return V?this.Gy.CB(V):r}; oQ.prototype.h0=function(){return this.G.h0()}; oQ.prototype.dispose=function(){this.G.dispose()}; Ok.g3(qB,{encrypt:xCX("oan2")});Ok.g3(PB,{encrypt:xCX("oap")});Ok.g3(oQ,{encrypt:xCX("oalw")});kh.prototype.encrypt=function(r,V){var I=this,d=wD("");r.length<=this.uB&&this.G&&!this.W&&(d=$N(d,function(){return I.G?I.G.encrypt(r,V):wD("wasm unavailable")})); r.length<=this.QE&&(this.G&&this.W&&(d=$N(d,function(){return I.G?I.G.encrypt(r,V):wD("wasm unavailable")})),d=$N(d,function(){return sUA(I,r,V)})); return $N($N(d,function(){return cIZ(I,r,V)}),function(){return sUA(I,r,V)})}; kh.prototype.X=function(r,V){if(this.G)return this.G.X(r,V);this.S||(this.S=new PB(this.key));return this.S.X(r,V)}; kh.prototype.h0=function(){return this.C}; kh.prototype.dispose=function(){this.C=!0;var r;(r=this.Y)==null||Wp(r,g.NS);g.NS(this.G);g.NS(this.S)};hF.prototype.encrypt=function(r){(0,g.m)();return(new g.Rd(this.G.G)).encrypt(r,this.iv)}; hF.prototype.decrypt=function(r,V){(0,g.m)();return(new g.Rd(this.G.G)).decrypt(r,V)}; hF.prototype.h0=function(){return this.S}; hF.prototype.dispose=function(){this.S=!0;g.NS(this.X)};g.T(rf,g.X);rf.prototype.S=function(r,V){if(V){V=V instanceof g.lY?V:Vu(this,V);var I;((I=this.G.get(r))==null?void 0:Jj(I.location))!==Jj(V)&&this.G.set(r,new $Ch(V,r))}else this.G.delete(r)}; rf.prototype.load=function(){var r=this,V,I,d,a,f,e,n,D,x,E;return g.L(function(N){switch(N.X){case 1:V=r.G.get(0);g.wA(N,2);var c;if(c=V&&!r.X)c=Jj(V.location),c=r.X===Mk(c);if(c){N.qk(4);break}return g.G(N,OiX(r,r.X?2:0),5);case 5:if(I=N.G)r.S(0,I),Xq(I)&&r.S(1,B7(I));case 4:g.$v(N,3);break;case 2:d=g.th(N);g.gj(d);if(!r.X){N.qk(3);break}r.X=!1;return g.G(N,r.load(),7);case 7:return N.return();case 3:if(!r.yH.experiments.uL("html5_onesie_probe_ec_hosts")){N.qk(0);break}g.wA(N,9);a=r;f=a.S;e=3;return g.G(N, OiX(r,1),11);case 11:return f.call(a,e,N.G),n=r,D=n.S,x=4,g.G(N,OiX(r,2),12);case 12:D.call(n,x,N.G);g.$v(N,0);break;case 9:E=g.th(N),g.gj(E),g.Hr(N)}})}; rf.prototype.L=function(){var r=this,V,I;return g.L(function(d){g.r3(r.j);V=g.zM(r.yH.experiments,"html5_onesie_prewarm_max_lact_ms");if(Gg()>=V)return d.return();(I=r.G.get(0))&&bii(r,I);g.Hr(d)})}; var Hii={yOs:0,TaL:1,wGM:2,o2H:3,x78:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};tQh.prototype.decrypt=function(r){var V=this,I,d,a,f,e,n;return g.L(function(D){switch(D.X){case 1:if(KiZ(V))return D.return();V.X=!0;V.Xl.DR("omd_s");I=new Uint8Array(16);$O()?d=new g.KX(r):a=new g.Rd(r);case 2:if(!V.G.length||!V.G[0].isEncrypted){D.qk(4);break}f=V.G.shift();if(!d){e=a.decrypt(f.buffer.ji(),I);D.qk(5);break}return g.G(D,d.decrypt(f.buffer.ji(),I),6);case 6:e=D.G;case 5:n=e;Rgi(I);var x=V.Xl,E=f.videoId,N=f.b7,c=f.formatId,z=new be([n]),M;(M=df(x.rh,E))==null||X_(M,N,c,z);D.qk(2); break;case 4:V.Xl.DR("omd_c"),aA(V),V.X=!1,V.Xl.DI(),g.Hr(D)}})}; tQh.prototype.enqueue=function(r,V,I,d,a){this.G.push({videoId:r,b7:V,formatId:I,buffer:d,isEncrypted:a});this.X||aA(this)};var Bvg=!!Uint8Array.prototype.copyWithin,ff=[],yIA=[],FiZ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],YU=[],e0=[],nf=[],AIO=[];Dx.prototype.w7=function(r){return g.XkS(new g.GpS(r))}; Dx.prototype.bF=function(r){function V(e){if(!e.done)return f.append(e.value),a.read().then(function(n){return V(n)})} if(!("DecompressionStream"in window))return wD("native decompression unavailable");var I=new DecompressionStream("gzip"),d=I.writable.getWriter();d.write(r).then(function(){return d.close()}); var a=I.readable.getReader(),f=new be([]);return $N(Wp(Wp(TK(a.read()),V),function(){return f.ji()}),function(e){return wD(e.message)})}; Dx.prototype.mP=function(r,V){var I=void 0,d=V.Ix(r);d&&(I=d.byteOffset,r=d);d=V.exports.getInflatedSize(r.byteOffset,r.length);if(d===0)return wD("bad compressed input");var a=V.malloc(d);if(V.exports.inflateGzip(r.byteOffset,r.length,a))return V.free(a),wD("inflateGzip failed");I&&V.free(I);return TK(new Uint8Array(V.exports.memory.buffer,a,d))}; Ok.g3(Dx,{w7:function(r){return{profile:"gzjb",jU:Math.ceil(r.byteLength/16)}}, bF:function(r){return{profile:"gznb",jU:Math.ceil(r.byteLength/16)}}, mP:function(r){return{profile:"gzwb",jU:Math.ceil(r.byteLength/16)}}});g.T(mCp,yz);g.C=mCp.prototype;g.C.DI=function(){this.rh.DI()}; g.C.nZ=function(r,V){switch(r){case 10:var I=ue(V,txZ);r=I.Tms;var d=!1;switch(r){case 0:this.S=!I.N5.Ts8;this.iv=I.N5.iv;break;case 2:break;case 23:var a=this.rh;I=I.eaC;a.DR("omp_r");I.videoId&&(a.kh=I.videoId);a.kh!==a.videoData.videoId&&(a.videoData.Dm7=a.kh,a.Hs("ompp","vid."+a.kh));a.cT=!0;break;case 24:I=this.rh;I.DR("omp_c");I.cT=!1;I.jN=!1;var f=(a=I.Sr)==null?void 0:a.get(I.kh);I.notifySubscribers(I.kh);f!=null&&(f.G=!0);N8(I);break;default:d=!0}this.rh.Bu&&this.rh.Hs("ombup","id.10;pt."+ r+";len."+V.getLength()+(d?";ignored.1":""));this.Y=r;break;case 11:v9v(this,V);break;case 12:this.WQ(V,!0);break;case 37:V=ue(V,ywA);(V.P7||V.OA)&&V.videoId&&this.rh.Dl.set(V.videoId,V);break;case 60:this.Tt(V);break;case 47:this.U("html5_server_playback_start_policy")&&(V=ue(V,lrv),this.rh.playbackStartPolicy=V);break;case 35:this.l_(V);break;case 45:this.HR(V);break;case 66:this.aZ(V);break;default:this.rh.Bu&&this.rh.Hs("ombup","id."+r+";len."+V.getLength()+";ignored.1")}}; g.C.DG=function(r){this.rh.DG(r)}; g.C.Tt=function(r){r=ue(r,xC);this.rh.Tt(r)}; g.C.HR=function(r){r=ue(r,EG);this.rh.HR(r)}; g.C.zt=function(r){var V=r.b7,I=r.S6,d=r.Xt,a=r.PZ,f=r.j6,e=r.startMs,n=r.durationMs,D=r.timeRange,x=r.kz,E=ZT(r),N=vx$.has(vq[""+r.itag]);I&&this.DR(N?"oais_r":"ovis_r");var c=this.G[E]!==void 0;this.rh.Bu&&this.rh.Hs("ombup","id.20;hid."+V+";fid."+E);var z=r.videoId||"";this.X[V]=E;this.W[V]=z;c||(this.G[E]={videoId:z,B_:!1,HH:N,headers:[]});this.G[E].headers.push(r);this.rh.Pt(z,E,N,{b7:V,S6:!!I,Xt:d!=null?d:-1,j6:f!=null?f:-1,startMs:e!=null?e:-1,durationMs:n!=null?n:-1,kz:x!=null?x:0,PZ:a,timeRange:D})}; g.C.WQ=function(r,V){var I=r.getUint8(0);this.rh.Bu&&this.rh.Hs("ombup","id."+(V?12:21)+";len."+r.getLength()+";hid."+I);if(r.getLength()!==1){r=r.split(1).Xb;var d=this.X[I]||null,a=this.W[I]||"";d&&(this.zY(this.G[d].HH?"oafs_r":"ovfs_r"),this.queue.enqueue(a,I,d,r,V))}}; g.C.yG=function(r){var V=r.getUint8(0);this.rh.Bu&&this.rh.Hs("ombup","id.22;len."+r.getLength()+";hid."+V);r=this.X[V]||null;var I=this.W[V]||"";if(r)if(this.U("html5_use_ump_request_slicer")){var d=this.queue;d.G.push({videoId:I,b7:V,formatId:r,isEncrypted:!1,ub:!0});d.X||aA(d)}else this.rh.yG(I,V,r)}; g.C.IR=function(r){this.rh.IR(r)}; g.C.PB=function(r,V){var I=this,d,a,f,e,n,D,x,E,N,c;return g.L(function(z){switch(z.X){case 1:I.rh.PB();d=r.ji();if(!V){f=d;z.qk(2);break}return g.G(z,fdS(I.rh,d,I.iv),3);case 3:f=z.G;case 2:a=f;if(!I.rh.enableCompression){z.qk(4);break}n=(e=performance)==null?void 0:e.now();return g.G(z,g9h(a),5);case 5:a=z.G,I.rh.Hs("decompression",{ds:"DecompressionStream"in window,rt:((D=performance)==null?NaN:D.now())-n});case 4:try{x=ue(a,svv)}catch(M){return E=M instanceof Error?{name:M.name,message:M.message}: {},E.webcrypto=""+ +!!$O(),E.enc=""+ +I.S,N=new Gk("onesie.response.parse",E),z.return(Promise.reject(N))}QUr(x);c=g.GU(x.body);return z.return(c)}})}; g.C.l_=function(r){this.U("html5_consume_onesie_next_request_policy_for_sabr")&&(r=ue(r,GjU),this.rh.l_(r))}; g.C.aZ=function(r){r={AG:UT(new Jp(r),1,Zvj)};this.rh.aZ(r)}; g.C.DR=function(r){this.rh.DR(r)}; g.C.zY=function(r){return this.rh.zY(r)}; g.C.U=function(r){return this.rh.U(r)};g.T(EF,g.X);g.C=EF.prototype;g.C.VI=function(){return""}; g.C.kC=function(r){var V,I;return((I=(V=this.Sr)==null?void 0:V.get(r))==null?void 0:I.kC())||[]}; g.C.Qg=function(r,V){var I;return!((I=df(this,V))==null||!I.Qg(r))}; g.C.Fb=function(r,V){var I;return((I=df(this,V))==null?void 0:I.Fb(r))||[]}; g.C.zr=function(r,V){var I;return((I=df(this,V))==null?void 0:I.zr(r))||[]}; g.C.Az=function(r){this.state=r;this.notifySubscribers()}; g.C.oZ=function(){return!1}; g.C.Us=function(){return!1}; g.C.sB=function(){}; g.C.DR=function(r){this.lL.DR(r)}; g.C.zY=function(r){return this.lL.zY(r)}; g.C.EZ=function(r,V,I,d){I||this.F8.EZ(d);return!1}; g.C.uD=function(r,V){this.Xl.uD(r,V)}; g.C.YV=function(){this.DR("orfb");this.aq=!0;if(eoU(this)&&this.xhr){var r={rc:this.xhr.status,lb:this.xhr.NT(),rt:(1E3*aQA(this.F8)).toFixed(),shost:g.Rn(this.ip),trigger:"o1"};this.Hs("pathprobe",A4(r))}}; g.C.PB=function(){this.DR("opr_r");this.gS=!0}; g.C.Pt=function(r,V,I,d){if(this.Sr){if(!this.Sr.has(r)){var a=new Gl(this);this.Sr.set(r,a);g.S(this,a)}var f;(f=this.Sr.get(r))==null||f.Pt(V,I,d);N8(this);I||(this.Wa=d.j6,this.Yh=d.startMs)}else N8(this)}; g.C.DG=function(r){this.Ax=r;r.HB!=null&&this.lL.UY(r.HB)}; g.C.Tt=function(r){this.FU=r}; g.C.l_=function(r){r.videoId&&this.C3.set(r.videoId,r)}; g.C.DI=function(){if(this.Sr)for(var r=g.H(this.Sr.keys()),V=r.next();!V.done;V=r.next()){var I=void 0;(I=this.Sr.get(V.value))==null||I.LW()}}; g.C.HR=function(r){this.o4=r}; g.C.aZ=function(r){if(r==null?0:r.AG)if(r=r.AG.xl){r=g.H(r);for(var V=r.next();!V.done;V=r.next())V=V.value,V.videoId&&this.B0.set(V.videoId,V)}}; g.C.Hs=function(r,V,I){this.lL.Hs(r,V,I===void 0?!1:I)}; g.C.yG=function(r,V,I){var d;(d=df(this,r))==null||d.yG(V,I)}; g.C.IR=function(r){this.mT.set(r.videoId,r)}; g.C.fetch=function(){var r=this,V,I,d,a,f,e,n,D,x,E,N,c,z,M,w,b,W,K,F,l,B;return g.L(function(P){switch(P.X){case 1:r.logger.debug("Onesie fetch started.");r.Wi?r.Ib.start():r.kM.start();r.DR("or_i");V=r.yH.experiments.uL("html5_onesie_verbose_timing");I={};d=(0,g.m)();a=function(p){V&&(I[p]=(0,g.m)()-d)}; a("loc_s");if(f=PLA(r.videoData,r.NE)){P.qk(2);break}a("loc_async");e=g.zM(r.yH.experiments,"html5_onesie_redirector_timeout_ms");return g.G(P,o9Z(r.videoData,r.NE,e),3);case 3:f=P.G;case 2:if(!f)return r.logger.info("Onesie URL creation failed."),n={url:"0"},D=new Gk("onesie.unavailable.hotconfig",n),r.kQ(D),P.return(r.TA);r.k0=Jj(f);a("loc_e");x=g.jQ(r.yH,g.QW(r.videoData));E=!!x.G;if(!E){N=x.getValue();P.qk(4);break}return g.G(P,x.G,5);case 5:N=P.G;case 4:c=N;r.U("html5_log_onesie_empty_oauth")&& !c&&r.Hs("no_token",{async:E});a("oauth");z=hgA(r.playerRequest,r.yH,r.videoData,c,Mk(r.k0));g.wA(P,6);if(!adU(r,z)){a("or_s_sync");r.mX=V3Z(z,r.Em,r.yH,r.lL,r.q6.onesieUstreamerConfig,(M=r.videoData.AN)==null?void 0:M.gr);P.qk(8);break}a("or_s_async");return g.G(P,dqg(z,r.Em,r.yH,r.lL,r.q6.onesieUstreamerConfig,(w=r.videoData.AN)==null?void 0:w.gr),9);case 9:r.mX=P.G;case 8:g.$v(P,7);break;case 6:return b=g.th(P),r.logger.info("Failed to create OnesieRequestProto."),r.kQ(b),P.return(r.TA);case 7:return a("or_e"), V&&r.Hs("oreqvt",I),r.enableCompression=r.mX.b6.z3,r.DR("osor"),W=$aA(),K=g.ru(r.mX,Pji),F={method:"POST",body:K,headers:{"Content-Type":"text/plain",Referer:location.origin}},l=r.U("html5_onesie_media_capabilities"),kpp(f,r.videoData,naZ(r),l),r.logger.debug("Starting Onesie network request."),r.Bu&&r.Hs("ombrs","1"),B=r.lL.N().schedule,r.F8=new rK(r,{Jz:B,h_:r.Bu,Gl:function(p,dA){r.lL.sV(p,dA)}, I0:!0}),f.set("rn",""+r.F8.requestNumber),r.ip=f.fq(),h$(r.F8,r.ip),r.DR("or_p"),r.xhr=DK(new Kh(f),W,r.F8,aj,F),r.sx.start(),P.return(r.TA)}})}; g.C.hL=function(){return 2}; g.C.QY=function(){this.DR("orh_r")}; g.C.Mv=function(){!this.aq&&this.xhr.NT()&&this.YV();if(this.xT&&!this.Wi){var r;(r=this.wQ)==null||r.start()}this.vu()}; g.C.W1=function(r){r=r===void 0?!1:r;this.logger.debug("onXhrDone");this.vu();if(!(this.h0()||this.state>=4)){var V=xU(this),I=this.xhr;V.rc=I.status;r&&(V.ab=!0);if(I.GY()){var d="onesie.net";V.msg=I.GY()}else I.status>=400?d="onesie.net.badstatus":I.WX()?this.gS||(d="onesie.response.noplayerresponse"):d=I.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.kQ(new Gk(d,V)):(this.DR("or_fs"),this.F8.HQ((0,g.m)(),I.NT(),0),this.Az(4),this.Bu&&this.Hs("rqs",V));this.Bu&&this.Hs("ombre", "ok."+ +!d);this.jN=!1;N8(this);u$A(this.Xl);if(!this.Wi){this.kM.stop();var a;(a=this.wQ)==null||a.stop()}var f;if(r=(f=this.NE)==null?void 0:Wir(f))for(f=0;f1E3){var r;(r=this.F8)==null||r.I_((0,g.m)());r=xU(this);if(this.yH.Ko()&&this.xhr instanceof fF){var V=this.xhr;r.xrs=V.xhr.readyState;r.xpb=V.G.getLength();r.xdc=V.S}this.kQ(new Gk("net.timeout",r))}}else(0,g.m)()-this.F8.G>1E4&&((V=this.F8)==null||V.I_((0,g.m)()),this.Mq());this.isComplete()||this.Ib.start()}}; g.C.Mq=function(){this.logger.info("Onesie request timed out");this.jN=!1;if(!N8(this)){var r=xU(this);r.timeout="1";this.kQ(new Gk("onesie.request",r))}}; g.C.kQ=function(r){var V=this;r=lS(r);this.xT?this.lL.vy(r):(this.TA.reject(r),this.xT=!0);u$A(this.Xl);this.Wi||this.kM.stop();this.DR("or_fe");var I,d;(I=this.NE)==null||(d=Wir(I))==null||d.forEach(function(a){V.Hs("pathprobe",a)}); this.Az(5);this.dispose()}; g.C.isComplete=function(){return this.state>=3}; g.C.WM=function(){return this.state===4}; g.C.iC=function(r){var V,I;return this.isComplete()||!!((V=this.Sr)==null?0:(I=V.get(r))==null?0:I.G)}; g.C.C6=function(){return!1}; g.C.PL=function(){return this.state===5}; g.C.notifySubscribers=function(r){for(var V=0;V102400&&!this.Jx&&(this.DR("or100k"),this.Jx=!0);if(r.V6()){var V=r.cX(),I=V.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+I}); this.Bu&&this.Hs("ombrss","len."+I);this.n_.feed(V)}if(this.Sr)for(var d=g.H(this.Sr.keys()),a=d.next();!a.done;a=d.next()){var f=a.value;r=void 0;(r=this.Sr.get(f))==null||r.LW();this.notifySubscribers(f)}}catch(e){this.kQ(e)}}; g.C.Ec=function(){return this.F8.requestNumber}; g.C.h7=function(r){return this.mT.get(r)}; g.C.T_=function(){return{Wa:this.Wa,Yh:this.Yh,isDecorated:!1}};g.T(DqX,g.X);g.C=DqX.prototype;g.C.lf=function(r,V){this.kc=void 0;yRU(this);KmU(this,r,V)}; g.C.Yt=function(r){if(this.G.length===0)return!1;var V=this.G[0];return V instanceof EF?r===this.loader.getCurrentTime()*1E3:!(V instanceof Bd&&n9i(V.info))&&Math.abs(V.Rf()-r)<50}; g.C.l_=function(r){this.S=r;this.kc=(0,g.m)()+(r.backoffTimeMs||0)}; g.C.P$=function(r,V){if(r.action===void 0){var I=this.lL.rj();I!==void 0&&this.loader.IU(I)}else if(r.action!==0||!this.Ws)switch(r.action===0&&this.policy.lO&&(r.action=2),I={},I.reason=r.V7M,I.action=r.action,I.rn=V,r.action){case 1:this.policy.W&&this.X&&this.X.l5(void 0,void 0,I);break;case 0:this.Ws=!0;this.videoData.uJ()&&this.policy.W&&this.X&&this.X.l5(void 0,void 0,I,!1);this.loader.T3(I);break;case 2:this.loader.handleError("sabr.config",I,1);break;case 3:this.policy.gH&&((r=this.o7.j)!= null&&(r.j=!0),this.loader.handleError("sabr.hostfallback",I))}}; g.C.vQ=function(r,V,I,d){if(this.policy.X){this.loader.Hs("ssap",{rn:d,v:V,tl:GVp(r)});var a=this.loader.Ro();r={uf:r,context:I,version:V};RoA(this,I);a?t3X(this,a,r):(this.loader.Hs("ssap",{cacheclips:1,rn:d,v:V}),this.j=r)}}; g.C.SE=function(r){this.loader.Hs("ssap",{onsbrctxt:r.type,dflt:r.sendByDefault});RoA(this,r);this.lL.SE(r)}; g.C.Dd=function(){}; g.C.HR=function(r){if(r.dC!==void 0&&r.IV){var V=r.dC/r.IV;this.audioTrack.j=!1;this.videoTrack.j=!1;if(this.policy.kc||this.policy.SA||this.policy.Qp)this.loader.iI.X=!1;this.loader.Uc(V,1);if(this.lL.getCurrentTime()!==V){var I={YX:"sabr_seek",fU:!0,qy:!0};r.seekSource&&(I.seekSource=r.seekSource);qW(this.loader,V+.1,I)}}}; g.C.onSnackbarMessage=function(r){this.lL.publish("onSnackbarMessage",r)}; g.C.DG=function(r){r.uG&&r.d3&&JD(this.o7,r.uG,r.d3);this.policy.q3&&(r.JH&&r.tH&&(this.o7.H9=r.JH/r.tH),r.Xg&&r.qs&&(this.o7.tW=r.Xg/r.qs));this.policy.ZT&&F8(this.videoData)&&(this.policy.q3?r.Xg&&r.qs&&this.loader.Uc(r.Xg,r.qs):r.d3&&this.loader.Uc(r.d3,1E3));r.HB!=null&&this.lL.UY(r.HB);this.policy.WR&&r.wJ&&(r=((0,g.m)()-r.wJ)/1E3,this.loader.UR.V_(1,r))}; g.C.l8=function(r){this.loader.l8(r)}; g.C.Om=function(r){return this.jm.has(r)}; g.C.VE=function(r,V,I){this.policy.S&&this.loader.Hs("sabrctxtplc",{start:r?r.join("_"):"",stop:V?V.join("_"):"",discard:I?I.join("_"):""});if(r){r=g.H(r);for(var d=r.next();!d.done;d=r.next())this.jm.add(d.value)}if(V)for(V=g.H(V),r=V.next();!r.done;r=V.next())r=r.value,this.jm.has(r)&&this.jm.delete(r);if(I)for(I=g.H(I),V=I.next();!V.done;V=I.next())V=V.value,this.videoData.sabrContextUpdates.has(V)&&(this.videoData.sabrContextUpdates.delete(V),V===3&&(this.videoData.LQ=""))}; g.C.lx=function(){}; g.C.d2=function(r){this.C=r}; g.C.fV=function(r){this.p8=r}; g.C.yV=function(r,V){Ryh(this.policy,r,4,V)}; g.C.aZ=function(r){if(r==null?0:r.AG)if(r=r.AG.xl){r=g.H(r);for(var V=r.next();!V.done;V=r.next())if(V=V.value,V.formatId){var I=this.o7.S.get(ZT(V.formatId));I&&I.info&&(I.info.debugInfo=V.debugInfo)}}}; g.C.gA=function(r){(r=r==null?void 0:r.reloadPlaybackParams)&&this.lL.publish("reloadplayer",r)}; g.C.Ty=function(){return this.lL.Ty()||""}; g.C.rd=function(){var r=KT(this.audioTrack,!0)*1E3,V=KT(this.videoTrack,!0)*1E3;return Math.min(r,V)}; g.C.Ps=function(r,V){this.loader.Hs(r,V)}; g.C.Zf=function(r){r6i(this.loader,k2i(this.EE,r))}; g.C.eC=function(){g.X.prototype.eC.call(this);this.S=void 0;KmU(this,!0,"i");this.G=[]};ldS.prototype.Td=function(r,V){if(this.Y)return Btp(this,V);if(V=PU(r)){var I=V.X;I&&I.S&&I.G&&(r=r.S.length?r.S[0]:null)&&r.state>=2&&!r.PL()&&r.info.pw===0&&(this.Y=r,this.L=I,this.X=V.info,this.C=this.startTimeSecs=Date.now()/1E3,this.W=this.X.startTime)}return NaN}; ldS.prototype.clear=function(){this.X=this.L=this.Y=null;this.G=this.W=this.C=this.startTimeSecs=NaN;this.S=!1};g.T(g.OF,g.X);g.C=g.OF.prototype;g.C.initialize=function(r,V,I){this.logger.debug(function(){return"Initialized, t="+r}); r=r||0;this.policy.G||(V=rDr(this.G),dJi(this.lL,new Pd(V.video,V.reason)),this.lL.qK(new Pd(V.audio,V.reason)));this.o7.isManifestless&&mai(this.W);this.L&&JRU(this.L,this.videoTrack.G);V=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.o7.isManifestless;this.policy.XC&&(d=d||this.o7.Ue);this.policy.n8||(this.currentTime=d?r:V);this.policy.kc&&this.seek(this.getCurrentTime(),{}).Q7(function(){}); if(this.policy.G){var a;((a=this.V)==null?0:jaU(a,this.Ty()||""))&&QaX(this)&&Uqh(this,this.videoTrack)&&Uqh(this,this.audioTrack)&&(ARO(this.X,this.V),this.policy.C&&ikr(this))}else this.kc&&(mqv(this,this.videoTrack),mqv(this,this.audioTrack),DxA(this.kc),delete this.kc);I?(this.policy.Ol?(this.X_=I,WP(this,I)):WP(this,!1),g.r3(this.S1)):(I=this.getCurrentTime()===0,Sg(this.W,this.videoTrack,this.videoTrack.G,I),Sg(this.W,this.audioTrack,this.audioTrack.G,I),this.policy.G&&NtO(this.X,!0),this.policy.kc|| this.seek(this.getCurrentTime(),{}).Q7(function(){}),this.timing.tick("gv")); (this.o7.S7||this.o7.pj||this.o7.n8||this.o7.gH||this.o7.Bp)&&this.lL.Ry(this.o7)}; g.C.resume=function(){if(this.isSuspended||this.C9){this.logger.debug("Resumed.");this.SF=this.C9=this.isSuspended=!1;try{this.Td()}catch(r){g.BG(r)}}}; g.C.oG=function(){return!this.policy.MG}; g.C.yZ=function(r,V){r=r===void 0?!1:r;V=V===void 0?!1:V;this.logger.debug("detaching media source");P3U(this);this.lL.YQ()&&(this.C=NaN);r?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.R7&&this.Hs("loader",{setsmb:1}),this.policy.GQ=!0,this.I1()):(this.policy.Ol?WP(this,this.X_):WP(this,!1),V||this.I1())}; g.C.setAudioTrack=function(r,V,I){I=I===void 0?!1:I;if(!this.h0()){var d=!isNaN(V);I&&d&&(this.audioTrack.kc=Date.now(),this.policy.KJ&&(this.a7=!0));if(this.policy.G){var a=this.Y.TI(r.id,d);this.logger.debug(function(){return"Logging new audio format: "+a.G.info.id}); this.lL.qK(a)}else{var f=okv(this.G,r.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id}); this.lL.qK(new Pd(f.audio,f.reason))}if(d&&(I=this.audioTrack.G.index.m5(V),this.Hs("setAudio",{id:r.id,cmt:V,sq:I}),I>=0)){this.policy.G&&this.lf(!0,"mosaic");DaA(this.audioTrack,I,NaN,NaN);!this.policy.ZQ&&this.o7.isLive&&Lp(this.o7,I,!1);return}this.lL.Z$()}}; g.C.setPlaybackRate=function(r){r!==this.j.getPlaybackRate()&&this.j.setPlaybackRate(r)}; g.C.R3=function(r){var V=this.X.C;this.X.d2(r);this.Hs("scfidc",{curr:ZT(V),"new":ZT(r)});r&&ZT(r)!==ZT(V)&&(this.lf(!0,"caption change"),this.Td())}; g.C.hf=function(r){this.X.fV(r)}; g.C.BB=function(r){var V=r.G.info.HH();this.logger.debug(function(){return"New "+(V?"audio":"video")+" format from SABR: "+jB(r.G.info)}); V?this.lL.qK(r):dJi(this.lL,r)}; g.C.Zf=function(r){mY(r.iL[r.iL.length-1])&&r6i(this,k2i(this.G,r.iL[0].G))}; g.C.e6=function(){return this.lL.e6()}; g.C.kf=function(){return this.lL.kf()}; g.C.l8=function(r){this.lL.N().Ko()&&this.Hs("sps",{status:r.RF||""});if(r.RF===1)this.lL.videoData.wZ=0;else if(r.RF===2||r.RF===3){var V=!1;if(r.RF===3){V=this.lL.GO();var I;this.Hy=(I=r.kYH)!=null?I:Infinity;this.lL.videoData.wZ=V+1;(V=Qjr(this))&&this.xr(!0)}this.lL.aY(!0,V)}}; g.C.oi=function(){return this.lL.oi()}; g.C.bz=function(){return this.lL.bz()}; g.C.BQ=function(r){this.lL.BQ(r)}; g.C.IQM=function(){var r,V=(r=this.lL.Sx())==null?void 0:r.getCurrentTime();V?this.lL.Hs("rms",{cta:V}):g.r3(this.M2)}; g.C.Td=function(){hoS(this);if(this.f8&&$Y(this.f8)&&!this.f8.aO()&&(!this.policy.n8||isFinite(this.getCurrentTime()))){var r=b4(this.videoTrack);r=this.policy.O8&&r&&r.N7();this.o7.isManifestless&&this.o7.Y&&AD(this.o7)?(this.C=AD(this.o7),this.f8.pR(this.C)):ZA(this.o7)&&!r?isNaN(this.C)?(this.C=this.getCurrentTime()+3600,this.f8.pR(this.C)):this.C<=this.getCurrentTime()+1800&&(this.C=Math.max(this.C+1800,this.getCurrentTime()+3600),this.f8.pR(this.C)):this.f8.isView||(r=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.C)||this.C!==r)&&r>0&&(this.f8.pR(r),this.C=r))}if(!this.h0())if(yK(this.o7)&&this.o7.PL()){var V=this.o7;this.handleError("manifest.net.retryexhausted",V.a7?{rc:V.jr}:{rc:V.jr.toString()},1)}else if(this.policy.G)a:{try{Oki(this.X);this.o7.isManifestless&&this.policy.C&&p0(this.iI);if(qQZ(this)&&this.f8&&!hY(this.f8)&&this.videoTrack.p8&&this.audioTrack.p8){this.Hs("ssap",{delaysb:1,v:this.videoTrack.G.info.id,vf:this.videoTrack.G.info.A0,a:this.audioTrack.G.info.id, af:this.audioTrack.G.info.A0});var I=this.f8,d=this.videoTrack.G,a=this.audioTrack.G;!hY(I)&&a&&d&&($5A(I,d.info,a.info,this.policy.LJ),oag(this,I))}var f;((f=this.f8)==null?0:hY(f))&&this.iD();NtO(this.X)}catch(n){g.gj(n);V=n;if(V.message.includes("changeType")){this.Hs("ssap",{exp:V.name,msg:V.message,s:V.stack});break a}this.handleError("fmt.unplayable",{exp:V.name,msg:V.message,s:V.stack},1)}wFr(this);g.r3(this.L8)}else if(!this.o7.X||!sjA(this.videoTrack)&&!sjA(this.audioTrack)||(this.videoTrack.W|| this.audioTrack.W)&&this.policy.rH?I=!1:(this.I1(),this.lL.seekTo(Infinity,{YX:"checkLoaderTracksSync",Uc:!0}),I=!0),!I){hoS(this);this.o7.isManifestless&&(cKO(this.videoTrack),cKO(this.audioTrack),p0(this.iI),(I=PU(this.videoTrack))&&I.X&&(I=I.X.S&&!this.policy.WO,this.Hs(I===this.policy.j.tK?"strm":"strmbug",{strm:I,sfmp4:this.policy.j.tK,dfs:this.policy.WO},!0)));if(this.f8)this.iD();else if(this.policy.Y){var e;I=!1;if(this.policy.vU)for(d=g.H([this.videoTrack,this.audioTrack]),a=d.next();!a.done;a= d.next()){f=a.value;for(a=PU(f);a&&f.fd()!==b4(f);a=PU(f))f.XZ(a);I=I||!!a}else(V=PU(this.videoTrack))&&this.videoTrack.XZ(V),(e=PU(this.audioTrack))&&this.audioTrack.XZ(e);O1(this.videoTrack)&&O1(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(V||e||I)&&Cf(this)}u8S(this);Sg(this.W,this.videoTrack,this.videoTrack.G,!1);Sg(this.W,this.audioTrack,this.audioTrack.G,!1);this.policy.HS||ILp(this,this.videoTrack,this.audioTrack);JKZ(this.W,this.videoTrack,this.audioTrack); JKZ(this.W,this.audioTrack,this.videoTrack);wFr(this);this.L&&(V=this.L,V.Y?(e=V.C+V.policy.eO,V.S||(e=Math.min(e,V.startTimeSecs+V.policy.Zq)),V=Math.max(0,e*1E3-Date.now())):V=NaN,isNaN(V)||g.r3(this.CF,V));g.r3(this.L8)}}; g.C.T3=function(r){this.lL.T3(r)}; g.C.iD=function(){var r=this;if(this.f8){var V=this.f8.G,I=this.f8.X;y6r(this,this.audioTrack);y6r(this,this.videoTrack);var d=fLO(this);if(d){if(this.policy.ZU){if(!V.lE()){var a=PU(this.audioTrack);if(a){if(!bR(this,this.audioTrack,V,a.info))return;n6j(this,this.audioTrack,V,a)}}if(!I.lE()&&(a=PU(this.videoTrack))){if(!bR(this,this.videoTrack,I,a.info))return;n6j(this,this.videoTrack,I,a)}}this.eg||(this.eg=(0,g.m)(),this.logger.debug(function(){return"Appends pause start "+r.eg+" reason "+d}), this.policy.S&&this.Hs("apdps",{r:d}))}else if(this.eg&&(aLA(this,this.eg),this.eg=0),e2X(this),a=!1,this.policy.X&<(this.videoTrack)||!N1S(this,this.videoTrack,I)||(a=!0,$xj(this.timing),yXO(this.timing)),this.f8&&!this.f8.H3()&&(this.policy.X&<(this.audioTrack)||!N1S(this,this.audioTrack,V)||(a=!0,KYX(this.timing),AXX(this.timing)),!this.h0()&&this.f8)){if(!this.policy.MG&&O1(this.videoTrack)&&O1(this.audioTrack)&&$Y(this.f8)&&!this.f8.aO()){I=!1; I=b4(this.audioTrack);if(this.policy.X){var f;V=(f=this.mK)==null?void 0:BU(f,I.Y*1E3);I=!(!V||V.clipId!==I.clipId);this.Hs("ssap",{eos:I})}else f=I.G,I=f===this.o7.G[f.info.id];I&&(this.logger.debug("Setting EOS"),KRX(this.f8),vXZ(this.schedule))}a&&!this.f8.isAsync()&&Cf(this)}}}; g.C.mA=function(r){var V,I=r===((V=this.f8)==null?void 0:V.G)?this.audioTrack:this.videoTrack,d;if((d=PU(I))==null?0:d.isLocked){if(this.lL.N().Ko()){var a;this.Hs("eosl",{ounlock:(a=PU(I))==null?void 0:a.info.qJ()})}var f;T1r(this,r===((f=this.f8)==null?void 0:f.G))}var e;if(this.policy.KJ&&r===((e=this.f8)==null?void 0:e.G)&&this.Mk){V=this.Mk-this.getCurrentTime();var n;this.lL.Hs("asl",{l:V,xtag:(n=b4(this.audioTrack))==null?void 0:n.G.info.G});this.a7=!1;this.Mk=0}r.gB()&&r.yz().length===0&& (r.E0(),this.f8&&!this.f8.gB()&&(this.lL.N().Ko()&&this.lL.Hs("rms",{ld:"seek"}),this.f8.C=performance.now(),this.lL.M6(),this.lL.N().Ko()&&g.r3(this.M2)));var D;(D=I.V)!=null&&nT(D,0);this.policy.Bp?Uaj(this):this.Td()}; g.C.za0=function(r){if(this.f8){var V=b4(r===this.f8.G?this.audioTrack:this.videoTrack);if(r=r.RP())for(var I=0;I5&&r.QH.shift();V=V.J0;var d;if((d=this.lL.getVideoData())==null?0:d.enableServerStitchedDai)d=OxS(this.audioTrack,V),I=OxS(this.videoTrack,V),d!==0&&I!==0&&d!==I&&this.handleError("ssdai.avsync",{sq:V,a:d,v:I},0)}}; g.C.fZ=function(r,V,I,d){r.info.video&&this.S.fZ(V,I,d)}; g.C.Ag=function(r){this.G.Ag(r)}; g.C.Zc=VZ(20);g.C.hS=function(r){this.mK=r;var V;(V=this.audioTrack.L)!=null&&(V.j4=r);(V=this.videoTrack.L)!=null&&(V.j4=r);V=this.X;V.j&&(V.loader.Hs("ssap",{addcacheclips:1,v:V.j.version,tl:GVp(V.j.uf)}),t3X(V,r,V.j),V.j=void 0)}; g.C.Ro=function(){return this.mK}; g.C.yE=function(){return this.videoTrack.j||this.audioTrack.j}; g.C.seek=function(r,V){if(this.h0())return A_();if(this.yE())return A_("seeking to head");if(this.policy.kc&&!isFinite(r))return vNg(this.iI),g.yg(Infinity);hoS(this);this.v9=(0,g.m)();this.policy.G||u8S(this,r);this.f8&&this.f8.G&&this.f8.X&&!this.lL.getVideoData().JJ&&(this.f8.G.isLocked()||this.f8.X.isLocked())&&this.lL.Z$({reattachOnLockedBuffer:1,vsb:""+this.f8.X.isLocked(),asb:""+this.f8.G.isLocked()});var I=this.getCurrentTime(),d=this.iI.seek(r,V);this.policy.n8||(this.currentTime=d);vd(this.S, r,I,this.policy.V5&&!V.fU);Cf(this);return g.yg(d)}; g.C.Yt=function(r){return this.policy.G&&this.X.Yt(r)}; g.C.Om=function(r){return this.X.Om(r)}; g.C.lf=function(r,V){this.X.lf(r,V)}; g.C.getCurrentTime=function(){if(this.policy.n8){var r=this.N2()||0;return this.lL.getCurrentTime()-r}return this.currentTime}; g.C.OB=function(){return this.audioTrack.G.info}; g.C.Ru=function(){return this.videoTrack.G.info}; g.C.Gi=function(){return this.audioTrack.G.info.A0}; g.C.X1=function(){return this.videoTrack.G.info.A0}; g.C.eC=function(){try{this.yZ(),UH(this.audioTrack),UH(this.videoTrack),l4(this.audioTrack),l4(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.X.prototype.eC.call(this)}catch(r){g.BG(r)}}; g.C.handleError=function(r,V,I){I=I===void 0?0:I;var d=Fa(I);r==="fmt.unplayable"&&this.o7.isLive&&(this.policy.ZU=!1,ls(this.o7));V=new Gk(r,V,I);g.dP(this);A4(V.details);this.lL.handleError(V);r!=="html5.invalidstate"&&V.errorCode!=="fmt.unplayable"&&r!=="fmt.unparseable"&&d&&this.dispose()}; g.C.Qy=function(){var r=b4(this.audioTrack),V=b4(this.videoTrack);r={lct:this.getCurrentTime().toFixed(3),lsk:this.iI.isSeeking(),lmf:this.G.G.isLocked(),lbw:W8(this.schedule).toFixed(3),lhd:bn(this.schedule).toFixed(3),lst:((this.schedule.L.PH()||0)*1E9).toFixed(3),laa:r?r.qJ():"",lva:V?V.qJ():"",lar:this.audioTrack.X?this.audioTrack.X.qJ():"",lvr:this.videoTrack.X?this.videoTrack.X.qJ():"",laq:""+WB(this.audioTrack),lvq:""+WB(this.videoTrack)};this.f8&&!this.f8.H3()&&this.f8.G&&this.f8.X&&(r.lab= xY(this.f8.G.yz()),r.lvb=xY(this.f8.X.yz()));this.eg&&(r.lapt=((0,g.m)()-this.eg).toFixed(0),r.lapr=fLO(this));this.n8&&(r.lapmabht=((0,g.m)()-this.n8).toFixed(0),r.lapmabh=m_(this,this.audioTrack).toFixed(0));this.p8&&(r.lapmvbht=((0,g.m)()-this.p8).toFixed(0),r.lapmvbh=m_(this,this.videoTrack).toFixed(0));this.R7&&(r.lapsdai=((0,g.m)()-this.R7).toFixed(0));return r}; g.C.I1=function(){try{this.policy.G&&this.X.lf(!1,"pending"),this.audioTrack.I1(),this.videoTrack.I1()}catch(r){g.BG(r)}this.policy.Y=""}; g.C.P0=function(){return FX(this.j)}; g.C.Hs=function(r,V,I){this.lL.Hs(r,V,I===void 0?!1:I)}; g.C.Ty=function(){return this.lL.Ty()}; g.C.Uc=function(r,V){r/=V;isNaN(this.timestampOffset)&&A6Z(this,r-Math.min(r,this.policy.Ah));return(r-this.timestampOffset)*V}; g.C.N2=function(){return this.timestampOffset}; g.C.isSeeking=function(){return this.iI.isSeeking()}; g.C.FL=function(){this.S.FL()}; g.C.B1=function(r,V,I){V=V===void 0?!1:V;I=I===void 0?{}:I;this.policy.G?this.Y.B1(r,V,I):this.G.B1(r,V,I)}; g.C.XQ=function(r,V){if(this.QH&&this.S.XQ(r,this.QH))return A6Z(this,this.timestampOffset-V),Cf(this),this.policy.W&&(ls(this.o7),l4(this.audioTrack),l4(this.videoTrack),this.I1()),!0;V=this.videoTrack.G.index.m5(r);this.handleError("ad.skipfailed",{dec:!!this.QH,t:r.toFixed(3),sq:V});return!1}; g.C.getManifest=function(){return this.o7}; g.C.isOffline=function(){return!!this.lL.getVideoData().cotn}; g.C.sV=function(r,V){this.lL.sV(r,V)}; g.C.yU=function(r){if(this.policy.G)this.X.lf(!0,"utc"),this.Td();else{var V=this.lL.getVideoData().Zm;if(V){var I=this.W;I.Zt=r;I.Zm=V;U1(this)}}}; g.C.IU=function(r){this.videoTrack.j=!1;this.audioTrack.j=!1;this.iI.X=!1;this.lL.IU(r)}; g.C.Vm=function(r){this.iI.Vm(r-this.N2())}; g.C.fz=function(){this.lL.fz()}; g.C.xr=function(r){r!==this.policy.wy&&((this.policy.wy=r)||this.Td())}; g.C.OW=function(r,V){var I=this.audioTrack.Uu,d=this.videoTrack.Uu;I&&d&&(I.remove(r,V),d.remove(r,V))}; g.C.Z$=function(r){this.lL.Z$(r)}; g.C.Kk=function(r){this.lL.Kk(r)}; g.C.GO=function(){return this.lL.GO()}; g.C.Nc=function(){ls(this.o7);this.I1()};g.C=g.Kf.prototype;g.C.qE=function(r,V,I,d,a,f){return this.j4.qE(r,V,I,d,a,f)}; g.C.Sp=function(r,V,I,d,a,f){return this.j4.Sp(r,V,I,d,a,f)}; g.C.bH=function(r){return this.j4.bH(r)}; g.C.Jl=function(r){this.j4.Jl(r)}; g.C.l5=function(r,V,I,d){return this.j4.l5(r,V,I,d)}; g.C.FL=function(){this.j4.FL()}; g.C.CT=function(r,V){this.j4.CT(r,V)}; g.C.fK=function(){this.j4.fK()}; g.C.SS=VZ(62);g.C.ZN=function(r,V,I){this.j4.ZN(r,V,I)}; g.C.u8=VZ(65);g.C.yY=function(r,V,I,d,a,f,e,n,D){this.j4.yY(r,V,I,d,a,f,e,n,D)}; g.C.yh=function(r){this.j4.yh(r)}; g.C.xC=function(r){return this.j4.xC(r)}; g.C.Cp=function(r){return this.j4.Cp(r)};g.T(RA,g.NK);g.T(tM,RA);tM.prototype.C=function(r,V){if(r&&V){var I=Number(Z5(r,"cpi"))*1+1;isNaN(I)||I<=0||Ithis.S&&(this.S=I,g.ho(this.G)||(this.G={},this.Y.stop(),this.X.stop())),this.G[V]=r,g.r3(this.X))}}; tM.prototype.W=function(){for(var r=g.H(Object.keys(this.G)),V=r.next();!V.done;V=r.next()){var I=V.value;V=this.publish;for(var d=this.S,a=g.Ky(this.G[I]),f=[],e=g.H(a[6].split("&")),n=e.next();!n.done;n=e.next())n=n.value,n.indexOf("cpi=")===0?f.push("cpi="+d.toString()):n.indexOf("ek=")===0?f.push("ek="+g.zP(I)):f.push(n);a[6]="?"+f.join("&");I="skd://"+a.slice(2).join("");a=I.length*2;d=new Uint8Array(a+4);d[0]=a%256;d[1]=(a-d[0])/256;for(a=0;a0)for(var I=g.H(this.G),d=I.next();!d.done;d=I.next())if(V===d.value.info.cryptoPeriodIndex){V=!0;break a}V=!1}if(!V){V=(0,g.m)();a:{I=r.cryptoPeriodIndex;if(!isNaN(I)){d=g.H(this.S.values());for(var a=d.next();!a.done;a=d.next())if(Math.abs(a.value.cryptoPeriodIndex-I)<=1){I=!0;break a}}I=!1}I?(I=r.G,I=Math.max(0,Math.random()*((isNaN(I)?120:I)-30))*1E3):I=0;this.publish("log_qoe",{wvagt:"delay."+I,cpi:r.cryptoPeriodIndex,reqlen:this.G.length, ignore:this.Y});I<=0?LdX(this,r):this.Y||(this.G.push({time:V+I,info:r}),g.r3(this.X,I))}}; yu.prototype.eC=function(){this.G=[];RA.prototype.eC.call(this)};var CC={},g6i=(CC.DRM_TRACK_TYPE_AUDIO="AUDIO",CC.DRM_TRACK_TYPE_SD="SD",CC.DRM_TRACK_TYPE_HD="HD",CC.DRM_TRACK_TYPE_UHD1="UHD1",CC);g.T(XFg,g.X);g.T(i8i,g.NK);g.C=i8i.prototype;g.C.P9=function(r){var V=this;this.h0()||r.size<=0||(r.forEach(function(I,d){var a=us(V.X)?d:I;d=new Uint8Array(us(V.X)?I:d);us(V.X)&&jAA(d);I=g.I3(d,4);jAA(d);d=g.I3(d,4);V.G[I]?V.G[I].status=a:V.G[d]?V.G[d].status=a:V.G[I]={type:"",status:a};V.tR=[];F0(V,V.G[I].type)&&V.tR.push(YFi(V.G[I].type))}),fxj(this,","),AM(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.C.error=function(r,V,I,d){this.h0()||(this.publish("licenseerror",r,V,I,d),r==="drm.provision"&&(r=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:r.toFixed(3)})));Fa(V)&&this.dispose()}; g.C.shouldRetry=function(r,V){return!r&&this.requestNumber===V.requestNumber}; g.C.eC=function(){this.G={};g.NK.prototype.eC.call(this)}; g.C.Qy=function(){var r={ctype:this.j.contentType||"",length:this.j.initData.length,requestedKeyIds:this.bL,cryptoPeriodIndex:this.cryptoPeriodIndex};this.S&&(r.keyStatuses=this.G);return r}; g.C.getInfo=function(){var r=this.Y.join();if(Gz(this)){var V=new Set,I;for(I in this.G)this.G[I].status!=="usable"&&V.add(this.G[I].type);r+="/UKS."+Array.from(V)}return r+="/"+this.cryptoPeriodIndex}; g.C.fq=function(){return this.url};g.T(lR,g.X);g.C=lR.prototype;g.C.FW=function(r){if(this.W){var V=r.messageType||"license-request";this.W(new Uint8Array(r.message),V)}}; g.C.P9=function(){this.L&&this.L(this.G.keyStatuses)}; g.C.onClosed=function(){this.h0()||g.p5("xboxone")&&this.S&&this.S("closedShouldNotRetry")}; g.C.y8=function(r){this.W&&this.W(r.message,"license-request")}; g.C.PP=function(r){if(this.S){if(this.X){var V=this.X.error.code;r=this.X.error.systemCode}else V=r.errorCode,r=r.systemCode;this.S("t.prefixedKeyError;c."+V+";sc."+r,V,r)}}; g.C.Ve=function(){this.C&&this.C()}; g.C.update=function(r){var V=this;if(this.G)return this.G.update(r).then(null,Fc(function(I){x8Z(V,"t.update",I)})); this.X?this.X.update(r):this.element.addKey?this.element.addKey(this.j.keySystem,r,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.j.keySystem,r,this.initData,this.sessionId);return ZJ()}; g.C.eC=function(){this.G&&(this.V?this.G.close().catch(g.gj):this.G.close());this.element=null;g.X.prototype.eC.call(this)};g.T(Lf,g.X);g.C=Lf.prototype;g.C.setServerCertificate=function(){return this.X.setServerCertificate?this.G.flavor==="widevine"&&this.G.Le?this.X.setServerCertificate(this.G.Le):qY(this.G)&&this.G.L8?this.X.setServerCertificate(this.G.L8):null:null}; g.C.createSession=function(r,V){var I=r.initData;if(this.G.keySystemAccess){V&&V("createsession");var d=this.X.createSession();v5(this.G)?I=sAU(I,this.G.L8):qY(this.G)&&(I=lLj(I)||new Uint8Array(0));V&&V("genreq");r=d.generateRequest(r.contentType,I);var a=new lR(null,null,null,d,null,this.L);r.then(function(){V&&V("genreqsuccess")},Fc(function(e){x8Z(a,"t.generateRequest",e)})); return a}if(mc(this.G))return zCi(this,I);if(pp(this.G))return cMU(this,I);if((d=this.element)==null?0:d.generateKeyRequest)this.element.generateKeyRequest(this.G.keySystem,I);else{var f;(f=this.element)==null||f.webkitGenerateKeyRequest(this.G.keySystem,I)}return this.Y=new lR(this.element,this.G,I,null,null,this.L)}; g.C.q_=function(r){var V=M0U(this,r);V&&V.y8(r)}; g.C.XW=function(r){var V=M0U(this,r);V&&V.PP(r)}; g.C.G1=function(r){var V=M0U(this,r);V&&V.Ve(r)}; g.C.getMetrics=function(){if(this.X&&this.X.getMetrics)try{var r=this.X.getMetrics()}catch(V){}return r}; g.C.eC=function(){this.S=this.X=null;var r;(r=this.Y)==null||r.dispose();r=g.H(Object.values(this.C));for(var V=r.next();!V.done;V=r.next())V.value.dispose();this.C={};g.X.prototype.eC.call(this);delete this.element};g.C=rL.prototype;g.C.get=function(r){r=this.findIndex(r);return r!==-1?this.values[r]:null}; g.C.remove=function(r){r=this.findIndex(r);r!==-1&&(this.keys.splice(r,1),this.values.splice(r,1))}; g.C.removeAll=function(){this.keys=[];this.values=[]}; g.C.set=function(r,V){var I=this.findIndex(r);I!==-1?this.values[I]=V:(this.keys.push(r),this.values.push(V))}; g.C.findIndex=function(r){return g.Mm(this.keys,function(V){return g.Zm(r,V)})};g.T(HfX,g.NK);g.C=HfX.prototype;g.C.kPs=function(r){this.T0({onecpt:1});r.initData&&Ofg(this,new Uint8Array(r.initData),r.initDataType)}; g.C.W_7=function(r){this.T0({onndky:1});Ofg(this,r.initData,r.contentType)}; g.C.nk=function(r){this.T0({onneedkeyinfo:1});this.yH.U("html5_eme_loader_sync")&&(this.L.get(r.initData)||this.L.set(r.initData,r));bfX(this,r)}; g.C.CL=function(r){this.S.push(r);VD(this)}; g.C.createSession=function(r){var V=$8X(this)?Opp(r):g.I3(r.initData);this.X.get(V);this.GQ=!0;r=new i8i(this.videoData,this.yH,r,this.drmSessionId);this.X.set(V,r);r.subscribe("ctmp",this.jw,this);r.subscribe("keystatuseschange",this.P9,this);r.subscribe("licenseerror",this.gX,this);r.subscribe("newlicense",this.gf,this);r.subscribe("newsession",this.xu,this);r.subscribe("sessionready",this.q5,this);r.subscribe("fairplay_next_need_key_info",this.cP,this);this.yH.U("html5_enable_vp9_fairplay")&&r.subscribe("qualitychange", this.P6,this);r.subscribe("sabrlicenseconstraint",this.c90,this);udr(r,this.Y)}; g.C.gf=function(r){this.h0()||(this.T0({onnelcswhb:1}),r&&!this.heartbeatParams&&(this.heartbeatParams=r,this.publish("heartbeatparams",r)))}; g.C.xu=function(){this.h0()||(this.T0({newlcssn:1}),this.S.shift(),this.GQ=!1,VD(this))}; g.C.q5=function(){if(mc(this.G)&&(this.T0({onsnrdy:1}),this.p8--,this.p8===0)){var r=this.QH,V,I;(V=r.element)==null||(I=V.msSetMediaKeys)==null||I.call(V,r.S)}}; g.C.P9=function(r){if(!this.h0()){!this.R7&&this.videoData.U("html5_log_drm_metrics_on_key_statuses")&&(Kbi(this),this.R7=!0);this.T0({onksch:1});var V=this.P6;if(!Gz(r)&&g.kw&&r.X.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var I="large";else{I=[];var d=!0;if(Gz(r))for(var a=g.H(Object.keys(r.G)),f=a.next();!f.done;f=a.next())f=f.value,r.G[f].status==="usable"&&I.push(r.G[f].type),r.G[f].status!=="unknown"&&(d=!1);if(!Gz(r)||d)I=r.Y;I=h2A(I)}V.call(this,I);this.publish("keystatuseschange", r)}}; g.C.jw=function(r,V){this.h0()||this.publish("ctmp",r,V)}; g.C.cP=function(r,V){this.h0()||this.publish("fairplay_next_need_key_info",r,V)}; g.C.gX=function(r,V,I,d){this.h0()||(this.videoData.U("html5_log_drm_metrics_on_error")&&Kbi(this),this.publish("licenseerror",r,V,I,d))}; g.C.Q5=function(){return this.j}; g.C.P6=function(r){var V=g.c7("auto",r,!1,"l");if(this.videoData.FB){if(this.j.equals(V))return}else if(kjO(this.j,r))return;this.j=V;this.publish("qualitychange");this.T0({updtlq:r})}; g.C.c90=function(r){this.videoData.sabrLicenseConstraint=r}; g.C.eC=function(){this.G.keySystemAccess&&this.element&&(this.bL?this.element.setMediaKeys(null).catch(g.gj):this.element.setMediaKeys(null));this.element=null;this.S=[];for(var r=g.H(this.X.values()),V=r.next();!V.done;V=r.next())V=V.value,V.unsubscribe("ctmp",this.jw,this),V.unsubscribe("keystatuseschange",this.P9,this),V.unsubscribe("licenseerror",this.gX,this),V.unsubscribe("newlicense",this.gf,this),V.unsubscribe("newsession",this.xu,this),V.unsubscribe("sessionready",this.q5,this),V.unsubscribe("fairplay_next_need_key_info", this.cP,this),this.yH.U("html5_enable_vp9_fairplay")&&V.unsubscribe("qualitychange",this.P6,this),V.dispose();this.X.clear();this.C.removeAll();this.L.removeAll();this.heartbeatParams=null;g.NK.prototype.eC.call(this)}; g.C.Qy=function(){for(var r={systemInfo:this.G.Qy(),sessions:[]},V=g.H(this.X.values()),I=V.next();!I.done;I=V.next())r.sessions.push(I.value.Qy());return r}; g.C.getInfo=function(){return this.X.size<=0?"no session":""+this.X.values().next().value.getInfo()+(this.W?"/KR":"")}; g.C.T0=function(r,V){V=V===void 0?!1:V;this.h0()||(A4(r),(this.yH.Ko()||V)&&this.publish("ctmp","drmlog",r))};g.T(Gzj,g.X);g.C=Gzj.prototype;g.C.Rg=function(){return!!this.FG}; g.C.jW=function(){return this.X}; g.C.handleError=function(r){var V=this;XPh(this,r);if((r.errorCode!=="html5.invalidstate"&&r.errorCode!=="fmt.unplayable"&&r.errorCode!=="fmt.unparseable"||!Zfi(this,r.errorCode,r.details))&&!ifX(this,r)){if(this.mM.QH!=="yt"&&gUA(this,r)&&this.videoData.au&&(0,g.m)()/1E3>this.videoData.au&&this.mM.QH==="hm"){var I=Object.assign({e:r.errorCode},r.details);I.stalesigexp="1";I.expire=this.videoData.au;I.init=this.videoData.nA/1E3;I.now=(0,g.m)()/1E3;I.systelapsed=((0,g.m)()-this.videoData.nA)/1E3;r= new Gk(r.errorCode,I,2);this.lL.Ut(r.errorCode,2,"SIGNATURE_EXPIRED",A4(r.details))}if(Fa(r.severity)){var d;I=(d=this.lL.loader)==null?void 0:d.G.G;if(this.mM.U("html5_use_network_error_code_enums"))if(Bfv(r)&&I&&I.isLocked())var a="FORMAT_UNAVAILABLE";else if(this.mM.C||r.errorCode!=="auth"||r.details.rc!==429)r.errorCode==="ump.spsrejectfailure"&&(a="HTML5_SPS_UMP_STATUS_REJECTED");else{a="TOO_MANY_REQUESTS";var f="6"}else Bfv(r)&&I&&I.isLocked()?a="FORMAT_UNAVAILABLE":this.mM.C||r.errorCode!== "auth"||r.details.rc!=="429"?r.errorCode==="ump.spsrejectfailure"&&(a="HTML5_SPS_UMP_STATUS_REJECTED"):(a="TOO_MANY_REQUESTS",f="6");this.lL.Ut(r.errorCode,r.severity,a,A4(r.details),f)}else this.lL.publish("nonfatalerror",r),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.vy(r.errorCode,r.details),d&&r.errorCode==="manifest.net.connect"&&(r="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.m)(),A$(r,"manifest",function(e){V.C=!0;V.Hs("pathprobe",e)}, function(e){V.vy(e.errorCode,e.details)}))}}; g.C.Hs=function(r,V){this.lL.jR().Hs(r,V)}; g.C.vy=function(r,V){V=A4(V);this.lL.jR().vy(r,V)};dL.prototype.D6=function(r,V){return(V===void 0?0:V)?{Z7:r?fZ(this,r):vk,ge:r?hCX(this,r):vk,kRM:r?oUZ(this,r):vk,raC:r?fvh(this,r.videoData):vk,nX:r?ewg(this,r.videoData,r):vk,w3k:r?qFp(this,r):vk,FvL:pPZ(this)}:{Z7:r?fZ(this,r):vk}}; dL.prototype.Eh=function(r){var V;g.XG(this.yH)&&(V=window.screen&&window.screen.width?new g.LJ(window.screen.width,window.screen.height):null);V||(V=this.yH.o0?this.yH.o0.clone():this.zZ.Xf());(rs||Yh||r)&&V.scale(g.rv());return V}; dL.prototype.U=function(r){return this.yH.U(r)};g.T(ej,g.X);ej.prototype.onError=function(r){if(r!=="player.fatalexception"||this.provider.U("html5_exception_to_health"))r==="sabr.fallback"&&(this.encounteredSabrFallback=!0),r.match(C0$)?this.networkErrorCount++:this.nonNetworkErrorCount++}; ej.prototype.send=function(){if(!(this.S||this.G<0)){jbv(this);var r=g.$U(this.provider)-this.G,V="PLAYER_PLAYBACK_STATE_UNKNOWN",I=this.playerState.DD;this.playerState.isError()?V=I&&I.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.v(this.playerState,2)?V="PLAYER_PLAYBACK_STATE_ENDED":g.v(this.playerState,64)?V="PLAYER_PLAYBACK_STATE_UNSTARTED":g.v(this.playerState,16)||g.v(this.playerState,32)?V="PLAYER_PLAYBACK_STATE_SEEKING":g.v(this.playerState,1)&&g.v(this.playerState, 4)?V="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.v(this.playerState,1)?V="PLAYER_PLAYBACK_STATE_BUFFERING":g.v(this.playerState,4)?V="PLAYER_PLAYBACK_STATE_PAUSED":g.v(this.playerState,8)&&(V="PLAYER_PLAYBACK_STATE_PLAYING");I=YD9[$a(this.provider.videoData)];a:switch(this.provider.yH.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var a=Drr(this.provider), f=this.X<0?r:this.X-this.G;r=this.provider.yH.IB+36E5<(0,g.m)();V={started:this.X>=0,stateAtSend:V,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:a,isAd:this.provider.videoData.isAd(),liveMode:I,hasDrm:!!g.OQ(this.provider.videoData),isGapless:this.provider.videoData.j,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:xa(this.provider.videoData)};r||g.N9("html5PlayerHealthEvent",V);this.S=!0;this.dispose()}}; ej.prototype.eC=function(){this.S||this.send();window.removeEventListener("error",this.KW);window.removeEventListener("unhandledrejection",this.KW);g.X.prototype.eC.call(this)}; var C0$=/\bnet\b/;g.T(E4S,g.X);E4S.prototype.eC=function(){sbA(this);g.X.prototype.eC.call(this)};var cbr=/[?&]cpn=/;g.T(Y4,g.X);Y4.prototype.flush=function(){var r={};this.X&&(r.pe=this.X);this.G.length>0&&(r.pt=this.G.join("."));this.G=[];return r}; Y4.prototype.stop=function(){var r=this,V,I,d;return g.L(function(a){if(a.X==1)return g.wA(a,2),g.G(a,(V=r.Y)==null?void 0:V.stop(),4);if(a.X!=2)return(I=a.G)&&r.logTrace(I),g.$v(a,0);d=g.th(a);r.X=bZi(d.message);g.Hr(a)})}; Y4.prototype.logTrace=function(r){this.encoder.reset();this.encoder.add(1);this.encoder.add(r.resources.length);for(var V=g.H(r.resources),I=V.next();!I.done;I=V.next()){I=I.value.replace("https://www.youtube.com/s/","");this.encoder.add(I.length);for(var d=0;d=0?r:g.$U(this.provider),this.GQ?Tq9.has(this.Lq)&&(this.G.size||(this.Lq==="PL"?r>=this.X+30:r<=this.bL+30||r>=this.X+1200&&r<=this.bL+86400))&&(g.Dv(this,r,"vps",[this.Lq]),this.X=r):["PL","B","S"].indexOf(this.Lq)>-1&&(this.G.size||r>=this.X+30)&&(g.Dv(this,r,"vps",[this.Lq]),this.X=r),this.G.size)){this.sequenceNumber===7E3&&g.gj(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Nr(this,r);var V=this.provider.lL.V1(); V=g.H(V);for(var I=V.next();!I.done;I=V.next())I=I.value,this.Hs(I.key,I.value);V=r;I=this.provider.lL.jS();var d=I.droppedVideoFrames||0,a=I.totalVideoFrames||0,f=d-this.xw,e=a&&!this.Dh;d>I.totalVideoFrames||f>5E3?JbX(this,"html5.badframedropcount","df."+d+";tf."+I.totalVideoFrames):(f>0||e)&&g.Dv(this,V,"df",[f]);this.xw=d;this.Dh=a;this.V>0&&(g.Dv(this,r,"glf",[this.V]),this.V=0);DN.isActive()&&(r=DN.iX(),Object.keys(r).length>0&&this.Hs("profile",r));this.gH&&sl(this,"lwnmow");this.provider.yH.Ko()&& this.provider.U("html5_record_now")&&this.Hs("now",{wt:(0,g.m)()});r={};this.provider.videoData.X&&(r.fmt=this.provider.videoData.X.itag,(V=this.provider.videoData.Y)&&V.itag!==r.fmt&&(r.afmt=V.itag));r.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(r.adcpn=this.adCpn);this.zG&&(r.addocid=this.zG);this.contentCpn&&(r.ccpn=this.contentCpn);this.kc&&(r.cdocid=this.kc);this.provider.videoData.cotn&&(r.cotn=this.provider.videoData.cotn);r.el=gt(this.provider.videoData);r.content_v=i3(this.provider.videoData); r.ns=this.provider.yH.QH;r.fexp=GNj(this.provider.yH.experiments).toString();r.cl=(749652930).toString();(V=this.provider.videoData.adFormat||this.adFormat)&&(r.adformat=V);(V=$a(this.provider.videoData))&&(r.live=V);this.provider.videoData.v3()&&(r.drm=1,this.provider.videoData.W&&(r.drm_system=eFp[this.provider.videoData.W.flavor]||0),this.provider.videoData.drmProduct&&(r.drm_product=this.provider.videoData.drmProduct));Eh()&&this.provider.videoData.C&&(r.ctt=this.provider.videoData.C,r.cttype= this.provider.videoData.tO,this.provider.videoData.mdxEnvironment&&(r.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(r.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.b9&&(r.dai_fallback="1")):this.provider.videoData.Vy?r.dai="cs":this.provider.videoData.wp&&(r.dai="disabled");r.seq=this.sequenceNumber++;if(this.provider.videoData.sG){if(V=this.provider.videoData.sG,r&&V)for(V.ns==="3pp"&&(r.ns="3pp"),this.MG.has(V.ns)&& sl(this,"hbps"),V.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=V.shbpslc),this.provider.yH.experiments.uL("html5_use_server_qoe_el_value")&&this.DM.delete("el"),I=g.H(Object.keys(V)),d=I.next();!d.done;d=I.next())d=d.value,this.DM.has(d)||(r[d]=V[d])}else r.event="streamingstats",r.docid=this.provider.videoData.videoId,r.ei=this.provider.videoData.eventId;this.isEmbargoed&&(r.embargoed="1");Object.assign(r,this.provider.yH.G);if(V=r.seq)V={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+V,serializedWatchEndpointLoggingContext:this.provider.videoData.GDQ},this.serializedHouseBrandPlayerServiceLoggingContext&&(V.serializedHouseBrandPlayerServiceLoggingContext=a3(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(V.playerResponseCpn=this.provider.videoData.playerResponseCpn),jj.length&&(V.decoderInfo=jj),this.provider.lL.Ro()&&(V.transitionStitchType=4,this.n8&&(V.timestampOffsetMsecs=this.n8)),this.remoteControlMode&& (V.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(V.remoteConnectedDevices=this.remoteConnectedDevices),V=g.ru(V,OvZ),V=g.I3(V,4),this.G.set("qclc",[V]);r=g.Ly("//"+this.provider.yH.CS+"/api/stats/qoe",r);I=V="";d=g.H(this.G.entries());for(a=d.next();!a.done;a=d.next())f=g.H(a.value),a=f.next().value,f=f.next().value,e=void 0,(e=f)!=null&&e.join&&(a="&"+a+"="+f.join(","),a.length>100?I+=a:V+=a);G_A(this,r+V,I.replace(/ /g,"%20"))}this.G.clear()}}; g.C.Kk=function(r){this.gH=r}; g.C.KV=function(){if(this.provider.videoData.W){var r=this.provider.videoData.W;sl(this,"eme-"+(r.keySystemAccess?"final":mc(r)?"ms":v5(r)?"ytfp":pp(r)?"safarifp":"nonfinal"))}}; g.C.Oc=VZ(59);g.C.lV=function(r){this.isEmbargoed=r}; g.C.OI=VZ(36);g.C.AZ=VZ(42);g.C.onPlaybackRateChange=function(r){var V=g.$U(this.provider);r&&r!==this.Py&&(g.Dv(this,V,"rate",[r]),this.Py=r);this.GQ||this.reportStats(V)}; g.C.G0=VZ(30);g.C.getPlayerState=function(r){if(g.v(r,128))return"ER";if(g.v(r,2048))return"B";if(g.v(r,512))return"SU";if(g.v(r,16)||g.v(r,32))return"S";if(r.isOrWillBePlaying()&&g.v(r,64))return"B";var V=Hrc[zN(r)];g.Ai(this.provider.yH)&&V==="B"&&this.provider.lL.getVisibilityState()===3&&(V="SU");V==="B"&&g.v(r,4)&&(V="PB");return V}; g.C.eC=function(){g.X.prototype.eC.call(this);g.bd(this.C);g.bd(this.M2)}; g.C.IW=function(r){this.isOffline=r;g.Dv(this,g.$U(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.C.Hs=function(r,V,I){var d=this.ll.indexOf(r)!==-1;d||this.ll.push(r);if(!I||!d){var a=typeof V!=="string"?A4(V):V;a=Xih(a);if(!I&&!/^t[.]/.test(a)){var f=g.$U(this.provider)*1E3;a="t."+f.toFixed()+";"+a}El(this,"ctmp",r+":"+a);this.logger.debug(function(){return"ctmp "+r+" "+a}); FPr(this);return f}}; g.C.Fw=function(r,V,I){this.W={RCC:Number(this.Hs("glrem",{nst:r.toFixed(),rem:V.toFixed(),ca:+I})),zv:r,On8:V,isAd:I}}; g.C.Fu=function(r,V,I){g.Dv(this,g.$U(this.provider),"ad_playback",[r,V,I])}; g.C.b8=function(r,V){var I=g.$U(this.provider)*1E3;El(this,"daism","t."+I.toFixed(0)+";smw."+(r*1E3).toFixed(0)+";smo."+(V*1E3).toFixed(0))}; g.C.resume=function(){var r=this;this.provider.yH.Ko()&&this.Hs("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.C)?lvi(this):this.C=g.HR(function(){r.reportStats()},1E4)}; var T7={},Hrc=(T7[5]="N",T7[-1]="N",T7[3]="B",T7[0]="EN",T7[2]="PA",T7[1]="PL",T7[-1E3]="ER",T7[1E3]="N",T7),Tq9=new Set(["PL","B","S"]),jj=[];CZ.prototype.X5=function(){return this.G}; CZ.prototype.update=function(){if(this.L){var r=this.hP()||0,V=g.$U(this.provider);r>=this.provider.lL.getDuration()-.1&&(this.previouslyEnded=!0);if(r!==this.G||Uri(this,r,V)){var I;if(!(I=rV-this.MR+2||Uri(this,r,V))){I=this.provider.lL.getVolume();var d=I!==this.V,a=this.provider.lL.isMuted()?1:0;a!==this.j?(this.j=a,I=!0):(!d||this.Y>=0||(this.V=I,this.Y=V),I=V-this.Y,this.Y>=0&&I>2?(this.Y=-1,I=!0):I=!1)}I&&(T_(this),this.S=r);this.MR=V;this.G=r}}}; CZ.prototype.hP=function(){var r=this.provider.lL.hP();return this.provider.yH.U("html5_disable_live_dvr_shrink_for_cdm_vss")&&mm(this.provider.videoData)?r+this.provider.lL.N2():r};Qbi.prototype.send=function(r){var V=this;if(!this.a7){var I=uRA(this),d=g.Ly(this.uri,I);this.yH.U("vss_through_gel_double")&&pir(d);this.GQ&&!this.yH.U("html5_simplify_pings")?k_h(this,d):mrZ(this,r).then(function(a){V.GQ&&(a=a||{},a.method="POST",a.postParams={atr:V.attestationResponse});TLi(d,a,{token:V.kc,ZS:V.Qa,mdxEnvironment:V.mdxEnvironment},V.yH,r,V.n8,V.isFinal&&V.j7||V.R7||V.S&&V.IB)}); this.a7=!0}}; Qbi.prototype.X=function(r){r===void 0&&(r=NaN);return Number(r.toFixed(3)).toString()}; var H0={},P8i=(H0.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,H0.LIVING_ROOM_APP_MODE_MAIN=1,H0.LIVING_ROOM_APP_MODE_KIDS=2,H0.LIVING_ROOM_APP_MODE_MUSIC=3,H0.LIVING_ROOM_APP_MODE_UNPLUGGED=4,H0.LIVING_ROOM_APP_MODE_GAMING=5,H0),w9={},qlj=(w9.EMBEDDED_PLAYER_MODE_UNKNOWN=0,w9.EMBEDDED_PLAYER_MODE_DEFAULT=1,w9.EMBEDDED_PLAYER_MODE_PFP=2,w9.EMBEDDED_PLAYER_MODE_PFL=3,w9);g.T(wL,g.X);g.C=wL.prototype;g.C.uI=function(){this.G.update();YtA(this)&&(V2X(this),IoS(this),this.JO())}; g.C.eC=function(){g.X.prototype.eC.call(this);Wi(this);SlO(this.G)}; g.C.Qy=function(){return uRA(b8(this,"playback"))}; g.C.JO=function(){this.provider.videoData.L.eventLabel=gt(this.provider.videoData);this.provider.videoData.L.playerStyle=this.provider.yH.playerStyle;this.provider.videoData.Yg&&(this.provider.videoData.L.feature="pyv");this.provider.videoData.L.vid=this.provider.videoData.videoId;var r=this.provider.videoData.L;var V=this.provider.videoData;V=V.isAd()||!!V.Yg;r.isAd=V}; g.C.SI=function(r){var V=b8(this,"engage");V.bL=r;return v4X(V,Nnh(this.provider))};EZZ.prototype.isEmpty=function(){return this.endTime===this.startTime};KZ.prototype.U=function(r){return this.yH.U(r)}; KZ.prototype.getCurrentTime=function(r){if(this.U("html5_ssap_current_time_for_logging_refactor")){var V=this.lL.Ro();if(V&&(r=r||V.iT()))return a_(V,r)}else if(g.hI(this.videoData)){var I=this.lL.Ro();if(I)return r=this.lL.getCurrentTime(),I=(((V=BU(I,r*1E3))==null?void 0:V.kD)||0)/1E3,r-I}return this.lL.getCurrentTime()}; KZ.prototype.hP=function(r){if(this.U("html5_ssap_current_time_for_logging_refactor")){var V=this.lL.Ro();if(V&&(r=r||V.iT()))return a_(V,r)}else if(g.hI(this.videoData)){var I=this.lL.Ro();if(I)return r=this.lL.hP(),I=(((V=BU(I,r*1E3))==null?void 0:V.kD)||0)/1E3,r-I}return this.lL.hP()}; var s4g={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.T(g.Rb,g.X);g.C=g.Rb.prototype;g.C.uI=function(){if(this.provider.videoData.enableServerStitchedDai&&this.g$){var r;(r=this.S.get(this.g$))==null||r.uI()}else this.G&&this.G.uI()}; g.C.lV=function(r){this.qoe&&this.qoe.lV(r)}; g.C.OI=VZ(35);g.C.AZ=VZ(41);g.C.b8=function(r,V){this.qoe&&this.qoe.b8(r,V)}; g.C.iq=function(){if(this.provider.videoData.enableServerStitchedDai&&this.g$){var r;(r=this.S.get(this.g$))!=null&&T_(r.G)}else this.G&&T_(this.G.G)}; g.C.vy=function(r,V){this.qoe&&JbX(this.qoe,r,V);if(this.X)this.X.onError(r)}; g.C.onPlaybackRateChange=function(r){if(this.qoe)this.qoe.onPlaybackRateChange(r);this.G&&T_(this.G.G)}; g.C.Oc=VZ(58);g.C.Hs=function(r,V,I){this.qoe&&this.qoe.Hs(r,V,I)}; g.C.Fw=function(r,V,I){this.qoe&&this.qoe.Fw(r,V,I)}; g.C.UY=function(r){var V;(V=this.qoe)==null||V.UY(r)}; g.C.Ry=function(r){var V;(V=this.qoe)==null||V.Ry(r)}; g.C.Kk=function(r){this.qoe&&this.qoe.Kk(r)}; g.C.Fu=function(r,V,I){this.qoe&&this.qoe.Fu(r,V,I)}; g.C.G0=VZ(29);g.C.tG=function(){if(this.qoe)return this.qoe.tG()}; g.C.Qy=function(){if(this.provider.videoData.enableServerStitchedDai&&this.g$){var r,V;return(V=(r=this.S.get(this.g$))==null?void 0:r.Qy())!=null?V:{}}return this.G?this.G.Qy():{}}; g.C.mw=function(){var r;return(r=this.qoe)==null?void 0:r.mw()}; g.C.tS=function(r,V){var I;(I=this.qoe)==null||I.tS(r,V)}; g.C.SI=function(r){return this.G?this.G.SI(r):function(){}}; g.C.JO=function(){this.G&&this.G.JO()}; g.C.getVideoData=function(){return this.provider.videoData}; g.C.resume=function(){this.qoe&&this.qoe.resume()};g.T(Ab,g.X); Ab.prototype.bU=function(r,V,I){if(this.G.has(r)){var d=this.G.get(r);if(V.videoId&&!cfX(d))this.X.Hs("ssap",{rlc:r}),$2h(this,r);else return}if(!this.G.has(r)){d=new KZ(V,this.yH,this.lL);var a=Math.round(tb(this.X)*1E3);d=new g.Rb(d,a);cfX(d)||this.X.Hs("nqv",{vv:V.videoId});a=this.X.getVideoData();this.G.set(r,d);if(d.qoe){var f=d.qoe,e=a.videoId||"";f.contentCpn=a.clientPlaybackNonce;f.kc=e}zph(d);I===2&&(this.yH.U("html5_log_ad_playback_docid")?(I=this.X,I.qoe&&(I=I.qoe,d=V.dH||"",a=V.breakType|| 0,V=V.videoId||"",f=this.yH.QH||"yt",g.Dv(I,g.$U(I.provider),"ad_playback",[r,d,a,V,f]))):this.X.Fu(r,V.dH||"",V.breakType||0))}}; Ab.prototype.Ae=function(r,V,I,d,a,f,e,n){if(r!==V){var D=this.jR(r),x=this.jR(V),E,N=r===((E=D.getVideoData())==null?void 0:E.clientPlaybackNonce),c;E=V===((c=x.getVideoData())==null?void 0:c.clientPlaybackNonce);var z;c=N?((z=D.getVideoData())==null?void 0:z.videoId)||"":"nvd";var M;z=E?((M=x.getVideoData())==null?void 0:M.videoId)||"":"nvd";N&&(D=D.qoe)!=null&&(z_(D,4,f?4:a?2:0,V,z,I),D.reportStats());E&&(yD(x),(V=x.qoe)!=null&&(z_(V,4,f?5:a?3:1,r,c,d),V.reportStats()),Tnp(x,new g.M5(e,x.Lq)), M2A(x));n&&$2h(this,r)}}; Ab.prototype.jR=function(r){r=r||this.g$;return this.G.get(r)||this.X};g.T(g.G_,g.X);g.C=g.G_.prototype; g.C.Dg=function(r,V){this.sync();V&&this.G.array.length>=2E3&&this.bj("captions",1E4);V=this.G;if(r.length>1&&r.length>V.array.length)V.array=V.array.concat(r),V.array.sort(V.G);else for(var I=g.H(r),d=I.next();!d.done;d=I.next())d=d.value,!V.array.length||V.G(d,V.array[V.array.length-1])>0?V.array.push(d):g.Xe(V.array,d,V.G);r=g.H(r);for(V=r.next();!V.done;V=r.next())V=V.value,V.namespace==="ad"&&this.Y("ssap",{acrsid:V.getId(),acrsst:V.start,acrset:V.end,acrscpt:V.playerType});this.S=NaN;this.sync()}; g.C.e$=function(r){r.length>1E4&&g.gj(new g.ox("Over 10k cueRanges removal occurs with a sample: ",r[0]));if(!this.h0()){for(var V=g.H(r),I=V.next();!I.done;I=V.next())(I=I.value)&&I.namespace==="ad"&&this.Y("ssap",{rcrid:I.getId(),rcst:I.start,rcet:I.end,rcpt:I.playerType});var d=new Set(r);this.X=this.X.filter(function(a){return!d.has(a)}); F5h(this.G,d);this.sync()}}; g.C.bj=function(r,V){var I=(isNaN(this.S)?g.v(this.lL.getPlayerState(),2)?0x8000000000000:this.lL.getCurrentTime()*1E3:this.S)-V;V=this.bz().filter(function(d){return d.namespace===r&&d.endthis.G,f=g.v(I,8)&&g.v(I,16),e=this.lL.dU().isBackground()||I.isSuspended();Ul(this,this.a7,f&&!e,a,"qoe.slowseek",function(){},"timeout"); var n=isFinite(this.G);n=f&&n&&lfv(V,this.G);var D=!d||Math.abs(d-this.G)>10,x=this.yH.U("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),E=d===0&&this.X&&[11,10].includes(this.X);Ul(this,this.Mk,n&&D&&!e&&(!x||!E),a,"qoe.slowseek",function(){V.seekTo(r.G)},"set_cmt"); D=n&&N$(V.VX(),this.G);var N=this.lL.loader;n=!N||N.oG();var c=function(){V.seekTo(r.G+.001)}; Ul(this,this.p8,D&&n&&!e,a,"qoe.slowseek",c,"jiggle_cmt");n=function(){return r.lL.X3()}; Ul(this,this.Ws,D&&!e,a,"qoe.slowseek",n,"new_elem");D=cb(I);x=I.isBuffering();var z=V.VX(),M=EV(z,d),w=M>=0&&z.end(M)>d+5,b=D&&x&&w;E=this.lL.getVideoData();Ul(this,this.TQ,d<.002&&this.G<.002&&f&&g.Ai(this.yH)&&g.S3(E)&&!e,a,"qoe.slowseek",n,"slow_seek_shorts");Ul(this,this.V,E.bu()&&f&&!e&&!E.bL,a,"qoe.slowseek",n,"slow_seek_gapless_shorts");Ul(this,this.kc,b&&!e,D&&!x,"qoe.longrebuffer",c,"jiggle_cmt");Ul(this,this.bL,b&&!e,D&&!x,"qoe.longrebuffer",n,"new_elem_nnr");if(N){var W=N.getCurrentTime(); f=V.wj();f=wCh(f,W);f=!N.isSeeking()&&d===f;Ul(this,this.rH,D&&x&&f&&!e,D&&!x&&!f,"qoe.longrebuffer",function(){V.seekTo(W)},"seek_to_loader")}f={}; c=EV(z,Math.max(d-3.5,0));b=c>=0&&d>z.end(c)-1.1;var K=c>=0&&c+1=0&&b&&K<11;f.close2edge=b;f.gapsize=K;f.buflen=z.length;this.X&&(f.seekSour=this.X);Ul(this,this.GQ,D&&x&&!e,D&&!x,"qoe.longrebuffer",function(){},"timeout",f); f=I.isSuspended();f=this.lL.q$()&&!f;Ul(this,this.L,f,!f,"qoe.start15s",function(){r.lL.bI("ad")},"ads_preroll_timeout"); f=this.yH.experiments.uL("html5_use_playback_rate_in_skip_slow_ad")?this.lL.getPlaybackRate()*1E3:1E3;M=d-this.Y5;Ul(this,this.EE,g.S3(E)&&N,D&&!x,"qoe.longrebuffer",function(){r.lL.Z$()},"reset_media_source"); Ul(this,this.L8,g.S3(E)&&N,D&&!x,"qoe.longrebuffer",n,"reset_media_element");this.Y===0&&(this.C=d);N=x&&this.G===0&&d>1&&d===this.C;Ul(this,this.R7,g.S3(E)&&N,D&&!x,"qoe.slowseek",function(){V.seekTo(0)},"reseek_after_time_jump"); e=I.isOrWillBePlaying()&&!e;w=this.lL.Qu()-d<6&&!w&&this.lL.Tc();Ul(this,this.j,E.bu()&&e&&x&&w,D&&!x,"qoe.longrebuffer",function(){r.lL.X3(!1,!0)},"handoff_end_long_buffer_reload"); I=nk(E)&&this.X===104&&e&&(x||g.v(I,8)&&g.v(I,16));Ul(this,this.QH,I,a,"qoe.start15s",n,"gapless_slow_start");this.Y=d;this.W.start()}}; i8.prototype.vy=function(r,V,I){V=this.Qy(V);V.wn=I;V.wdup=this.S[r]?"1":"0";this.lL.vy(new Gk(r,V));this.S[r]=!0}; i8.prototype.Qy=function(r){r=Object.assign(this.lL.Qy(!0),r.Qy());this.G&&(r.stt=this.G.toFixed(3));this.lL.getVideoData().isLivePlayback&&(r.ct=this.lL.getCurrentTime().toFixed(3),r.to=this.lL.N2().toFixed(3));delete r.uga;delete r.euri;delete r.referrer;delete r.fexp;delete r.vm;return r}; gL.prototype.reset=function(){this.G=this.X=this.S=this.startTimestamp=0;this.Y=!1}; gL.prototype.test=function(r){if(!this.W||this.X)return!1;if(!r)return this.reset(),!1;r=(0,g.m)();if(!this.startTimestamp)this.startTimestamp=r,this.S=0;else if(this.S>=this.W)return this.X=r,!0;this.S+=1;return!1}; gL.prototype.Qy=function(){var r={},V=(0,g.m)();this.startTimestamp&&(r.wsd=(V-this.startTimestamp).toFixed());this.X&&(r.wtd=(V-this.X).toFixed());this.G&&(r.wssd=(V-this.G).toFixed());return r};g.T(hpA,g.X);g.C=hpA.prototype;g.C.setMediaElement=function(r){(this.mediaElement=r)?(this.mediaElement&&(this.W||this.S||!this.mediaElement.CK()||this.seekTo(.01,{YX:"seektimeline_setupMediaElement"})),QD(this)):u8(this)}; g.C.getCurrentTime=function(){if(mP(this.lL)){if(!isNaN(this.X))return this.X}else if(!isNaN(this.X)&&isFinite(this.X))return this.X;return this.mediaElement&&NzA(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.S||0}; g.C.rj=function(){return this.a7}; g.C.hP=function(){return this.getCurrentTime()-this.N2()}; g.C.Za=function(){return this.G?this.G.Za():Infinity}; g.C.isAtLiveHead=function(r){if(!this.G)return!1;r===void 0&&(r=this.getCurrentTime());return Zv(this.G,r)}; g.C.Ei=function(){return!!this.G&&this.G.Ei()}; g.C.seekTo=function(r,V){var I=V===void 0?{}:V;V=I.HJ===void 0?!1:I.HJ;var d=I.Ay===void 0?0:I.Ay;var a=I.J4===void 0?!1:I.J4;var f=I.K$===void 0?0:I.K$;var e=I.YX===void 0?"":I.YX;var n=I.seekSource===void 0?void 0:I.seekSource;var D=I.Uc===void 0?!1:I.Uc;var x=I.fU===void 0?!1:I.fU;I=I.qy===void 0?!1:I.qy;D&&(r+=this.N2());xa(this.videoData)&&n===29&&(this.a7=void 0);D=r=this.zd())||!g.GV(this.videoData),E||(w={st:w,mst:this.zd()},this.G&&this.U("html5_high_res_seek_logging")&&(w.ht=this.G.Za(),w.adft=uCA(this.G)),this.lL.Hs("seeknotallowed",w)),w=E));if(!w)return this.Y&&(this.Y=null,DZX(this)),g.yg(this.getCurrentTime());w=.005;x&&this.U("html5_sabr_seek_no_shift_tolerance")&&(w=0);if(Math.abs(r-this.X)<=w&&this.bL)return this.W;e&&(w=r,(this.yH.Ko()||this.U("html5_log_seek_reasons"))&&this.lL.Hs("seekreason",{reason:e, tgt:w}));n&&(this.V.X=n);this.bL&&u8(this);this.W||(this.W=new IL);r&&!isFinite(r)&&dZU(this,!1);(e=I||D)||(e=r,e=!(this.videoData.isLivePlayback&&this.videoData.S&&!this.videoData.S.G&&!(this.mediaElement&&this.mediaElement.TK()>0&&aL(this.mediaElement)>0)||zV(this.videoData)&&this.Wy()===this.zd(!1)?0:isFinite(e)||!zV(this.videoData)));e||(r=vi(this,r,a));r&&!isFinite(r)&&dZU(this,!1);this.S=r;this.Ws=f;this.X=r;this.C=0;this.G&&(a=this.G,f=r,pXA(a,f,!1),vZO(a,f));a=this.lL;f=r;e={HJ:V,seekSource:n}; a.zP.S=f;I=a.sR;I.mediaTime=f;I.G=!0;e.HJ&&a.ZO(e);e=f>a.videoData.endSeconds&&f>a.videoData.limitedPlaybackDurationInSeconds;a.k7&&e&&isFinite(f)&&ufO(a);fV.start&&ufO(this.lL);return this.W}; g.C.zd=function(r){if(!this.videoData.isLivePlayback)return MZU(this.lL);var V;return r1(this.videoData)&&((V=this.mediaElement)==null?0:V.isPaused())&&this.videoData.G?(r=this.getCurrentTime(),T_X(this.dF(r)*1E3)+r):this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&xa(this.videoData)&&this.videoData.G?r?this.videoData.G.kc||0:this.videoData.G.tW||0:zV(this.videoData)&&this.videoData.GQ&&this.videoData.G?this.videoData.G.zd()+this.timestampOffset:this.videoData.S&&this.videoData.S.G?!r&& this.G?this.G.Za():MZU(this.lL)+this.timestampOffset:this.mediaElement?PR()?T_X(g.J(this.mediaElement.b$()).getTime()):aL(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.C.Wy=function(){if(g.hI(this.videoData)){var r=this.lL;g.hI(r.videoData);var V,I;return(I=(V=r.mK)==null?void 0:V.Wy())!=null?I:r.videoData.Wy()}if(this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&xa(this.videoData)){var d;return((d=this.videoData.G)==null?void 0:d.H9)||0}V=this.videoData?this.videoData.Wy()+this.timestampOffset:this.timestampOffset;return r1(this.videoData)&&this.videoData.G&&(I=Number((r=this.videoData.progressBarStartPosition)==null?void 0:r.utcTimeMillis)/1E3,r= this.getCurrentTime(),r=this.dF(r)-r,!isNaN(I)&&!isNaN(r))?Math.max(V,I-r):V}; g.C.M6=function(){this.W||this.seekTo(this.S,{YX:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.C.yE=function(){return this.bL&&!isFinite(this.X)}; g.C.eC=function(){awA(this,null);this.V.dispose();g.X.prototype.eC.call(this)}; g.C.Qy=function(){var r={};this.loader&&Object.assign(r,this.loader.Qy());this.mediaElement&&Object.assign(r,this.mediaElement.Qy());return r}; g.C.Mx=function(r){this.timestampOffset=r}; g.C.getStreamTimeOffset=function(){return zV(this.videoData)?0:this.videoData.G?this.videoData.G.getStreamTimeOffset():0}; g.C.N2=function(){return this.timestampOffset}; g.C.dF=function(r){return this.videoData&&this.videoData.G?this.videoData.G.dF(r-this.timestampOffset):NaN}; g.C.O4=function(){if(!this.mediaElement)return 0;if(F8(this.videoData)){var r=this.mediaElement,V=r.VX();r=(zH(V)&&r.getDuration()?V.end(V.length-1):0)+this.timestampOffset-this.Wy();V=this.zd()-this.Wy();return Math.max(0,Math.min(1,r/V))}return this.mediaElement.O4()}; g.C.qK=function(r){this.L&&(this.L.G=r)}; g.C.yU=function(r,V){this.lL.Hs("requestUtcSeek",{time:r});xa(this.videoData)&&(this.a7=r);var I;(I=this.loader)==null||I.yU(r);V&&(this.GQ=V)}; g.C.IU=function(r){xa(this.videoData)&&(this.a7=void 0);if(this.GQ)this.lL.Hs("utcSeekingFallback",{source:"streamTime",timeSeconds:this.GQ}),this.lL.seekTo(this.GQ,{YX:"utcSeekingFallback_streamTime"}),this.GQ=0;else{var V=this.getCurrentTime();isNaN(V)||(r=this.dF(V)-r,V-=r,this.lL.Hs("utcSeekingFallback",{source:"estimate",timeSeconds:V}),this.lL.seekTo(V,{YX:"utcSeekingFallback_estimate"}))}}; g.C.fz=function(){this.GQ=0}; g.C.U=function(r){return this.yH&&this.yH.U(r)};g.T(qr,g.X);qr.prototype.start=function(){this.X.start()}; qr.prototype.stop=function(){this.X.stop()}; qr.prototype.clear=function(){for(var r=g.H(this.G.values()),V=r.next();!V.done;V=r.next())V.value.clear()}; qr.prototype.sample=function(){for(var r=g.H(this.S),V=r.next();!V.done;V=r.next()){var I=g.H(V.value);V=I.next().value;I=I.next().value;this.G.has(V)||this.G.set(V,new HYX(woP.has(V)));this.G.get(V).update(I())}this.X.start()}; var woP=new Set(["networkactivity"]);HYX.prototype.update=function(r){this.X?(this.buffer.add(r-this.G||0),this.G=r):this.buffer.add(r)}; HYX.prototype.clear=function(){this.buffer.clear();this.G=0};k4.prototype.Wt=function(){return this.started}; k4.prototype.start=function(){this.started=!0}; k4.prototype.reset=function(){this.finished=this.started=!1};var $ZO=!1;g.T(g.dn,g.NK);g.C=g.dn.prototype;g.C.eC=function(){this.logger.debug("dispose");g.bd(this.hq);AMX(this.r$);this.visibility.unsubscribe("visibilitystatechange",this.r$);XDp(this);e2(this);g.Qa.hR(this.Tj);this.Cj();this.AP=null;g.NS(this.videoData);g.NS(this.Ik);g.NS(this.tQ);g.NS(this.hQ);g.cn(this.JIQ);this.k7=null;g.NK.prototype.eC.call(this)}; g.C.Fu=function(r,V,I,d,a){if(this.yH.U("html5_log_ad_playback_docid")){var f=this.jR();if(f.qoe){f=f.qoe;var e=this.yH.QH||"yt";g.Dv(f,g.$U(f.provider),"ad_playback",[r,V,I,a,e])}}else this.jR().Fu(r,V,I);this.U("html5_log_media_perf_info")&&this.Hs("adloudness",{ld:d.toFixed(3),cpn:r})}; g.C.Gi=function(){var r;return(r=this.loader)==null?void 0:r.Gi()}; g.C.X1=function(){var r;return(r=this.loader)==null?void 0:r.X1()}; g.C.Ru=function(){var r;return(r=this.loader)==null?void 0:r.Ru()}; g.C.OB=function(){var r;return(r=this.loader)==null?void 0:r.OB()}; g.C.v3=function(){return this.videoData.v3()}; g.C.YQ=function(){return this.U("html5_not_reset_media_source")&&!this.v3()&&!this.videoData.isLivePlayback&&g.S3(this.videoData)&&!this.yH.supportsGaplessShorts()}; g.C.o3=function(){this.videoData.j&&(this.videoData.Ne=this.videoData.Ne||this.dh.jC().Gi(),this.videoData.u_=this.videoData.u_||this.dh.jC().X1());if(evg(this.videoData)||!ka(this.videoData)){var r=this.videoData.errorDetail;this.Ut(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),r,r,this.videoData.cG||void 0)}this.U("html5_generate_content_po_token")&&this.B4();this.U("html5_enable_d6de4")&&this.oM()}; g.C.R9=function(){return this.nW}; g.C.bU=function(){!this.qc||this.qc.h0();this.qc=new g.Rb(new KZ(this.videoData,this.yH,this));this.nW=new Ab(this.yH,this,this.qc)}; g.C.getVideoData=function(){return this.videoData}; g.C.N=function(){return this.yH}; g.C.D6=function(r){return this.gU.D6(this.AP,r===void 0?!1:r)}; g.C.jR=function(r){if(r)a:{for(var V=this.nW,I=g.H(V.G.values()),d=I.next();!d.done;d=I.next())if(d=d.value,d.getVideoData().videoId===r){r=d;break a}r=V.X}else r=this.nW.jR();return r}; g.C.dU=function(){return this.visibility}; g.C.nU=function(){return this.mediaElement&&this.mediaElement.Ho()?this.mediaElement.YN():null}; g.C.Sx=function(){return this.mediaElement}; g.C.Ey=function(){if(this.U("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.N().C&&this.N().houseBrandUserStatus&&this.Hs("hbut",{status:this.N().houseBrandUserStatus});if(this.videoData.IL())return!0;this.Ut("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.C.qZ=function(r){(r=r===void 0?!1:r)||g.hI(this.videoData)||yD(this.jR());this.oU=r;!this.Ey()||this.ij.Wt()?g.Ai(this.yH)&&this.videoData.isLivePlayback&&this.ij.Wt()&&!this.ij.finished&&!this.oU&&this.u4():(this.ij.start(),r=this.jR(),tb(r),r.qoe&&lvi(r.qoe),this.u4())}; g.C.u4=function(){if(this.videoData.isLoaded()){var r=this.Ik;g.zM(r.mM.experiments,"html5_player_min_build_cl")>0&&g.zM(r.mM.experiments,"html5_player_min_build_cl")>749652930&&SFU(r,"oldplayer");iYr(this)}else this.videoData.Ol||this.videoData.Tw?this.oU&&g.Ai(this.yH)&&this.videoData.isLivePlayback||(this.videoData.Ol?QTj(this.videoData):(r=this.jR(),r.qoe&&(r=r.qoe,sl(r,"protected"),r.provider.videoData.W?r.KV():r.provider.videoData.subscribe("dataloaded",r.KV,r)),BIZ(this.videoData))):!this.videoData.loading&& this.e0&&Bzh(this)}; g.C.Xd=function(r){this.j4=r;this.loader&&(O8O(this.loader,new g.Kf(r)),this.Hs("sdai",{sdsstm:1}))}; g.C.hS=function(r){this.mK=r;this.loader&&this.loader.hS(r)}; g.C.l7=VZ(16);g.C.isFullscreen=function(){return this.visibility.isFullscreen()}; g.C.isBackground=function(){return this.visibility.isBackground()}; g.C.fR=function(){var r=this;this.logger.debug("Updating for format change");a4(this).then(function(){return I4(r)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.C.UW=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.qZ();this.Ey()&&!g.v(this.playerState,128)&&(this.x7.Wt()||(this.x7.start(),this.videoData.S$?this.GP(xX(this.playerState,4)):this.GP(xX(xX(this.playerState,8),1))),gBA(this))}; g.C.Pl=function(){return this.ij.finished}; g.C.sendAbandonmentPing=function(){g.v(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.O3(!0),XDp(this),g.Qa.hR(this.Tj))}; g.C.pT=function(r,V){r=r===void 0?!0:r;(V===void 0||V)&&this.mediaElement&&this.mediaElement.pause();this.GP(r?new g.nP(14):new g.nP)}; g.C.R$=function(){this.jR().iq()}; g.C.Ut=function(r,V,I,d,a,f){this.logger.debug(function(){return"set player error: ec="+r+", detail="+a}); var e,n;g.oG(l5p,I)?e=I:I?n=I:e="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+sT());if(r==="auth"||r==="drm.auth"||r==="heartbeat.stop")I&&(d+=";r."+I.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));V={errorCode:r,errorDetail:a,errorMessage:n||g.BD[e]||"",jT:e,cG:f||"",Km:d,QC:V,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=r;fS(this,"dataloaderror");this.GP(D7(this.playerState,128,V));g.Qa.hR(this.Tj);e2(this);this.Q6()}; g.C.bI=function(r){this.e8=this.e8.filter(function(V){return r!==V}); this.logger.debug(function(){return"set preroll ready for "+r}); g.hI(this.videoData)&&!this.Kl()&&this.hI.zY("pl_pr");this.x7.Wt()&&gBA(this)}; g.C.Kl=function(){var r;(r=!!this.e8.length)||(r=this.k9.G.array[0],r=!!r&&r.start<=-0x8000000000000);return r}; g.C.Ei=function(){return this.zP.Ei()}; g.C.isPlaying=function(){return this.playerState.isPlaying()}; g.C.TO=function(){return this.playerState.TO()&&this.videoData.S$}; g.C.getPlayerState=function(){return this.playerState}; g.C.R3=function(r){var V;(V=this.loader)==null||V.R3(r)}; g.C.hf=function(r){var V;(V=this.loader)==null||V.hf(r)}; g.C.getPlayerType=function(){return this.playerType}; g.C.getPreferredQuality=function(){if(this.AP){var r=this.AP;r=r.videoData.dj.compose(r.videoData.Tn);r=Tb(r)}else r="auto";return r}; g.C.W9=VZ(22);g.C.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.C.setMediaElement=function(r){this.logger.debug("set media element");if(this.mediaElement&&r.YN()===this.mediaElement.YN()&&(r.isView()||this.mediaElement.isView())){if(r.isView()||!this.mediaElement.isView())this.ea(),this.mediaElement=r,this.mediaElement.lL=this,atg(this),this.zP.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Cj();if(!this.playerState.isError()){var V=E7(this.playerState,512);g.v(V,8)&&!g.v(V,2)&&(V=xX(V,1));r.isView()&&(V=E7(V,64));this.GP(V)}this.mediaElement= r;this.mediaElement.lL=this;!g.Ai(this.yH)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);atg(this);this.zP.setMediaElement(this.mediaElement);this.U("html5_prewarm_media_source")&&!this.Ik.Rg()&&ytj(this.mediaElement)}}; g.C.Cj=function(r,V,I){r=r===void 0?!1:r;V=V===void 0?!1:V;I=I===void 0?!1:I;this.logger.debug("remove media element");if(this.mediaElement){var d=this.getCurrentTime();d>0&&(this.zP.S=d);this.zP.setMediaElement(null);!r&&this.YQ()?hAp(this):this.GA(I);this.loader&&(Cf(this.loader),Do(this,V));this.Bw.stop();if(this.mediaElement&&(!this.x7.Wt()&&!this.q$()||this.playerState.isError()||g.v(this.playerState,2)||this.GP(xX(this.playerState,512)),this.mediaElement)){this.ea();if(r||!this.mediaElement.isView())this.hI.KT("mesv_s"), this.mediaElement.stopVideo(),xZ(this);this.mediaElement=this.mediaElement.lL=null}}}; g.C.playVideo=function(r,V){r=r===void 0?!1:r;V=V===void 0?!1:V;var I=this,d,a,f,e,n,D;return g.L(function(x){if(x.X==1){I.logger.debug("start play video");var E=window.google_image_requests;E&&E.length>10&&(window.google_image_requests=E.slice(-10));if(g.v(I.playerState,128))return x.return();if(I.Ik.jW())return I.publish("signatureexpired"),x.return();I.mediaElement&&yD(I.jR());I.UW();(g.v(I.playerState,64)||r)&&I.GP(xX(I.playerState,8));return I.x7.finished&&I.mediaElement?I.AP||!I.eN?x.qk(2): g.G(x,I.eN,3):x.return()}if(x.X!=2&&g.v(I.playerState,128))return x.return();if(!I.videoData.S)return I.videoData.isLivePlayback&&!g.nx(I.yH.W,!0)?(d="html5.unsupportedlive",a=2):(d=I.videoData.v3()?"fmt.unplayable":"fmt.noneavailable",a=1),g.gj(Error("selectableFormats")),I.Ut(d,a,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),x.return();if(I.lk()&&I.videoData.S.G)return I.logger.debug("rebuild playbackData for airplay"),x.return(a4(I));if(mP(I))E=I.zP,cx(E.videoData)?!E.isAtLiveHead(E.getCurrentTime())&& E.Ei()&&E.lL.seekTo(Infinity,{YX:"seektimeline_peggedToLive",seekSource:34}):g.hI(E.videoData)&&E.getCurrentTime()e;if(!n||!e){f&&n&&(d=Math.max(d,f));var D;f=vUU(V,(D=a.G)==null?void 0:D.videoInfos);D=V.lL.getPlaybackRate();D>1&&f&&(D=J3h(V.yH.W,a.G.videoInfos,D),r.G!==0&& D=480;if(V.U("html5_exponential_memory_for_sticky")){x=V.yH.ZQ;E=1;var N=N===void 0?!1:N;hzZ(x,"sticky-lifetime");x.values["sticky-lifetime"]&&x.Se["sticky-lifetime"]||(x.values["sticky-lifetime"]=0,x.Se["sticky-lifetime"]=0);N&&Rj(x,"sticky-lifetime")>.0625&&(E=x.Se["sticky-lifetime"]*2); x.values["sticky-lifetime"]+=1*Math.pow(2,x.G/E);x.Se["sticky-lifetime"]=E;x.Y.start()}if(V.U("html5_perf_cap_override_sticky")){N=V.S;x=V.U("html5_perserve_av1_perf_cap");x=x===void 0?!1:x;if(x===void 0?0:x){E=kN();r=g.H(Object.keys(E));for(V=r.next();!V.done;V=r.next())V=V.value,V.indexOf("1")!==0&&delete E[V];g.X2("yt-player-performance-cap",E,2592E3)}else g.gs("yt-player-performance-cap");gpi(x);if(x){x=g.H(gb.keys());for(E=x.next();!E.done;E=x.next())E=E.value,E.startsWith("1")||gb.delete(E); x=g.H(ab.values());for(E=x.next();!E.done;E=x.next())E=E.value,E.startsWith("1")||ab.delete(E);x=g.H(N.keys());for(E=x.next();!E.done;E=x.next())E=E.value,E.startsWith("1")||N.delete(E)}else gb.clear(),ab.clear(),N.clear()}}}this.loader&&(N=this.loader,I=I||"",N.policy.G?r2(N.Y.G,I):r2(N.G.W,I));this.Uw()}; g.C.getUserPlaybackQualityPreference=function(){return this.videoData.S&&!this.videoData.S.G?Tb(this.videoData.dj):Cc[Pp()]}; g.C.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.C.setUserAudio51Preference=function(r,V){this.getUserAudio51Preference()!==r&&(this.Hs("toggle51",{pref:r}),g.X2("yt-player-audio51",r,V?31536E3:2592E3),this.fR())}; g.C.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.C.setProximaLatencyPreference=function(r){var V=this.getProximaLatencyPreference();this.Hs("proxima",{pref:r});g.X2("yt-player-proxima-pref",r,31536E3);V!==r&&(r=this.zP,r.Mk=!0,r.lL.seekTo(Infinity,{YX:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.C.getProximaLatencyPreference=function(){var r;return(r=o$())!=null?r:0}; g.C.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.C.B4=function(){this.videoData.videoId?this.dh.B4(this.videoData):this.Hs("povid",{})}; g.C.oM=function(){this.videoData.videoId?this.dh.oM(this.videoData):this.Hs("piavid",{})}; g.C.Uw=function(){if(!this.h0()&&!g.v(this.playerState,128)&&this.videoData.S){if(this.videoData.S.G)VR(this);else{var r=j2(this),V=this.videoData;a:{var I=this.videoData.By;if(r.G){for(var d=g.H(I),a=d.next();!a.done;a=d.next()){a=a.value;var f=a.getInfo(),e=g.Qf[f.video.quality];if((!r.S||f.video.quality!=="auto")&&e<=r.G){I=a;break a}}I=I[I.length-1]}else I=I[0]}V.Mk=I;pDZ(this,r.reason,YIU(this,this.videoData.Mk))}if(this.U("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.zP.j= !1,this.playVideo()}}; g.C.Qi=function(r,V){if(this.h0()||g.v(this.playerState,128))return!1;var I,d=!((I=this.videoData.S)==null||!I.G);I=d&&V?this.getCurrentTime()-this.N2():NaN;if(this.yH.experiments.uL("html5_record_audio_format_intent")){var a=this.jR();if(a.qoe){a=a.qoe;var f=[r.uo.id,isNaN(I)?"m":"t"];g.Dv(a,g.$U(a.provider),"afi",f)}}if(d)return V&&(d=eAr(this.zP),this.Hs("aswh",{id:r.id,xtags:r.xtags,bh:d.toFixed(3)})),this.loader.setAudioTrack(r,I,V),!0;if(qkA(this)){a:{V=this.mediaElement.audioTracks();for(d= 0;d=0?r:this.getCurrentTime()}; g.C.dF=function(){var r;return((r=this.videoData.G)==null?0:r.dF)?this.videoData.G.dF(this.getCurrentTime()-this.N2()):this.mediaElement&&(r=this.mediaElement.b$())&&(r=r.getTime(),!isNaN(r))?r/1E3+this.getCurrentTime():NaN}; g.C.getDuration=function(r){return g.hI(this.videoData)&&this.mK?r?FzA(this.mK,r):M8(this.mK):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.N2():this.zd()?this.zd():0}; g.C.fu=function(){var r=new W5U;if(this.loader){var V=this.yH.schedule,I=this.yH.Ko();I=I===void 0?!1:I;r.JC=V.bL;r.jc=V.Ws;r.bandwidthEstimate=$g(V);if(I){I=(V.j.PH()*1E3).toFixed();var d=(V.n8.PH()*1E3).toFixed(),a=bn(V).toFixed(2),f=((V.L.PH()||0)*1E9).toFixed(2),e=V.S.PH().toFixed(0),n=V.R7.PH().toFixed(0),D=V.V.percentile(.5).toFixed(2),x=V.V.percentile(.92).toFixed(2),E=V.V.percentile(.96).toFixed(2),N=V.V.percentile(.98).toFixed(2);V.G?V.G.reset():V.G=new Na;V.G.add(V.GQ);V.G.add(V.interruptions.length); for(var c=0,z=V.interruptions.length-1;z>=0;z--){var M=V.interruptions[z];V.G.add(M-c);c=M}c=0;for(z=V.Y.length-1;z>=0;z--){M=V.Y[z];var w=M.stamp/36E5;V.G.add(w-c);c=w;V.G.add(M.net/1E3);V.G.add(M.max)}V=V.G.eI();r.G={ttr:I,ttm:d,d:a,st:f,bw:e,abw:n,v50:D,v92:x,v96:E,v98:N,"int":V}}b8S(this.loader,r)}else this.mediaElement&&(r.ZZ=fP(this.mediaElement));r.JC=this.JC;r.jc=this.jc;r.S=this.isAtLiveHead()&&this.isPlaying()?JWp(this):NaN;return r}; g.C.sV=function(r,V){this.jc+=r;this.JC+=V}; g.C.O4=function(){return this.mediaElement?g.GV(this.videoData)?1:F8(this.videoData)?this.isAtLiveHead()||this.Ei()?1:this.zP.O4():this.mediaElement.O4():0}; g.C.zi=function(){var r=this.Ra,V=ob(r,"bandwidth"),I=ob(r,"bufferhealth"),d=ob(r,"livelatency"),a=ob(r,"networkactivity"),f=Pi(r,"bandwidth"),e=Pi(r,"bufferhealth"),n=Pi(r,"livelatency");r=Pi(r,"networkactivity");var D=this.jS(),x=D.droppedVideoFrames;D=D.totalVideoFrames;var E=this.getCurrentTime();if(this.Pr){var N="IT/"+(this.Pr.G.getInfo()+"/"+Tb(this.Q5()));N+="/"+this.Pr.getInfo()}else N="";var c=this.isGapless(),z=this.nj(),M=this.tG(),w=g.nS(this),b=this.getPlayerState(),W=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var K=0;var F="";if(this.j4){if(this.j4.dB){F="D,";break a}K=this.j4.kA();F=this.j4.iT().substring(0,4)}else this.mK&&(K=this.mK.kA(),F=this.mK.iT().substring(0,4));K>0?(K="AD"+K+", ",F&&(K+=F+", "),F=K):F=""}return{AU:f,Ky:e,currentTime:E,gp:N,droppedVideoFrames:x,isGapless:c,nj:z,wM:M,Id:V,N9:I,ES:d,cM:a,BM:n,Tv:r,CH:w,playerState:b,a4:W,f$:F,totalVideoFrames:D}}; g.C.Qy=function(r){var V={};if(r===void 0?0:r){Object.assign(V,this.jR().Qy());this.mediaElement&&(Object.assign(V,this.mediaElement.Qy()),r=this.jS(),V.dvf=r.droppedVideoFrames,V.tvf=r.totalVideoFrames);this.loader&&Object.assign(V,this.loader.Qy());this.Pr&&(V.drm=JSON.stringify(this.Pr.Qy()));V.state=this.playerState.state.toString(16);g.v(this.playerState,128)&&(V.debug_error=JSON.stringify(this.playerState.DD));this.Kl()&&(V.prerolls=this.e8.join(","));this.videoData.Py&&(V.ismb=this.videoData.Py); this.videoData.latencyClass!=="UNKNOWN"&&(V.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(V.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)V.is_mosaic=1;this.videoData.cotn&&(V.is_offline=1,V.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(V.playerResponseCpn=this.videoData.playerResponseCpn);this.dh.isOrchestrationLeader()&&(V.leader=1);this.videoData.isLivePlayback&& (this.videoData.G&&F5(this.videoData.G)&&(V.segduration=F5(this.videoData.G)),r=this.zP,V.lat=r.L?gZA(r.L.Y):0,V.liveutcstart=this.videoData.liveUtcStartSeconds);V.relative_loudness=this.videoData.xQ.toFixed(3);if(r=g.nS(this))V.optimal_format=r.video.qualityLabel;V.user_qual=Pp();V.release_version=Y[85];g.hI(this.videoData)&&this.mK&&(V.ssap=u4(this.mK))}V.debug_videoId=this.videoData.videoId;return V}; g.C.addCueRange=function(r){this.xs([r])}; g.C.removeCueRange=function(r){this.k9.e$([r])}; g.C.MH=function(){this.k9.sync()}; g.C.bj=function(r,V){return this.k9.bj(r,V)}; g.C.xs=function(r,V){this.k9.Dg(r,V)}; g.C.q8=function(r){this.k9.e$(r)}; g.C.LO=function(r){var V=this.k9;r.length<=0||V.h0()||(r=V.G,r.array.sort(r.G))}; g.C.bz=function(){return this.k9.bz()||[]}; g.C.gP=function(){return this.iG}; g.C.lk=function(){return this.visibility.lk()}; g.C.Im=function(){this.mediaElement&&this.mediaElement.Im()}; g.C.nbL=function(){fS(this)}; g.C.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.C.ea=function(){g.lQ(this.Z5)}; g.C.kY=function(){this.Uk();this.publish("onLoadProgress",this.O4())}; g.C.R4=function(r){var V=r.target.Ff();if(this.mediaElement&&this.mediaElement.Ff()&&this.mediaElement.Ff()===V){s7A(this,r.type);switch(r.type){case "error":var I=YX(this.mediaElement)||"",d=this.mediaElement.GY();if(I==="capability.changed"){this.U("html5_restart_on_capability_change")?(this.Hs("capchg",{msg:d}),this.X3(!0)):a4(this);return}if(this.mediaElement.hasError()&&(Zfi(this.Ik,I,{msg:d})||g.hI(this.videoData)&&this.mK&&(d=this.playerState.DD,this.mK.handleError(I,d==null?void 0:d.QC))))return; if(this.isBackground()&&this.mediaElement.IQ()===4){this.Q6();YZ(this,"unplayable");return}break;case "durationchange":I=this.mediaElement.getDuration();isFinite(I)&&(!this.f8||I>0)&&I!==1&&this.pR(I);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());loZ(this.k9);this.jR().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":ztX(this);this.publish("onLoadedMetadata");etv(this);I=this.dF();this.videoData.oJ&&(this.videoData.oJ= I);break;case "loadstart":etv(this);break;case "progress":case "suspend":g.zM(this.yH.experiments,"html5_progress_event_throttle_ms")>0?this.Ox.e2():this.kY();break;case "playing":this.hI.KT("plev");this.Nt&&!mP(this)&&(this.Nt=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{YX:"videoplayer_onPlaying"})));break;case "timeupdate":I=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.TK()===0;if(I&&(!this.KB|| d))return;this.KB=this.KB||!!this.mediaElement.getCurrentTime();ftr(this);this.Uk();if(!this.mediaElement||this.mediaElement.Ff()!==V)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.wj().length>0&&this.mediaElement.VX().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;if(this.U("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.TK()>2||!this.mediaElement.isSeeking()&& N$(this.mediaElement.VX(),this.mediaElement.getCurrentTime()))){var a=this.mediaElement.Qy();a.bh=fP(this.mediaElement).toFixed(3);this.Hs("uwe",a)}if(g.hI(this.videoData)&&this.mK){a=this.mK;var f=this.mediaElement.getCurrentTime();if(!a.gq.has(a.SR)){var e=0,n=0,D=HP(a.timeline,a.SR);if(D==null?0:D.length)for(D=g.H(D),D=D.next();!D.done;D=D.next()){n=D.value;e=n.RB();n=n.rU();break}if(!(n>0&&n>f*1E3+a.K9s)&&(n=Lzp(a,e))){f=!1;e=void 0;n=g.H(n.segments);for(D=n.next();!D.done;D=n.next()){D=D.value; if(f){e=D;break}D.hT()===a.SR&&(f=!0)}n=void 0;e?n=e.hT():f&&(n=(I=a.timeline.G)==null?void 0:I.hT());n?a.finishSegmentByCpn(a.SR,n,2,void 0):a.api.Hs("ssap",{mfnc:1,mfncc:(d=a.timeline.G)==null?void 0:d.hT()})}}}break;case "resize":ztX(this);this.videoData.X&&this.videoData.X.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.EU&&g.v(this.playerState,8)&&!g.v(this.playerState,1024)&&this.getCurrentTime()===0&&g.WQ){YZ(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.Ff()===V){MtU(this.zP,r,this.mK||void 0);this.publish("videoelementevent",r);V=this.playerState;d=this.sR;f=this.mediaElement;e=this.yH.experiments;I=this.videoData.clientPlaybackNonce;D=g.hI(this.videoData)&&this.mK?M8(this.mK):void 0;if(!g.v(V,128)){a=V.state;f=f?f:r.target;n=f.getCurrentTime();if(!g.v(V,64)||r.type!=="ended"&&r.type!=="pause"){D=D||f.getDuration();D=f.isEnded()||n>1&&Math.abs(n-D)<1.1;var x=r.type==="pause"&&f.isEnded();n=r.type=== "ended"||r.type==="waiting"||r.type==="timeupdate"&&!g.v(V,4)&&!FR(d,n);if(x||D&&n)f.lH()>0&&f.Ff()&&(a=14);else switch(r.type){case "error":YX(f)&&(a|=128);break;case "pause":g.v(V,256)?(a^=256)||(a=64):g.v(V,32)||g.v(V,2)||g.v(V,4)||(a=4,g.v(V,1)&&g.v(V,8)&&(a|=1));break;case "playing":e=a;a=(a|8)&-1093;e&4?(a|=1,jr(d,f,!0)):FR(d,f.getCurrentTime())&&(a&=-2);g.v(V,1)&&jr(d,f)&&(a|=1);break;case "seeking":a|=16;g.v(V,8)&&(a|=1);a&=-3;break;case "seeked":a&=-17;jr(d,f,!0);break;case "waiting":g.v(V, 2)||(a|=1);jr(d,f);break;case "timeupdate":e=g.v(V,16);n=g.v(V,4);(g.v(V,8)||e)&&!n&&FR(d,f.getCurrentTime())&&(a=8);jr(d,f)&&(a|=1);break;case "progress":case "suspend":e.uL("html5_track_underruns_on_progress")&&jr(d,f)}}d=a;a=null;d&128&&(a=r.target,f=YX(a),e=1,f?(f==="capability.changed"&&(e=2),n="GENERIC_WITHOUT_LINK",D=a.Qy(),D.mediaElem="1",/AUDIO_RENDERER/.test(a.GY())&&(n="HTML5_AUDIO_RENDERER_ERROR"),a={errorCode:f,errorMessage:g.BD[n]||"",jT:n,Km:A4(D),QC:e,cpn:V.DD?V.DD.cpn:""}):a=null, a&&(a.cpn=I));V=D7(V,d,a)}!g.v(this.playerState,1)&&g.v(V,1)&&NMi(this,"evt"+r.type);this.GP(V)}}}; g.C.THM=function(r){r=r.G.availability==="available";r!==this.iG&&(this.iG=r,this.publish("airplayavailabilitychange"))}; g.C.oNk=function(){var r=(0,g.m)(),V=this.mediaElement.lk();this.Hs("airplay",{ia:V});!V&&!isNaN(this.g9)&&r-this.g9<2E3||(this.g9=r,V!==this.lk()&&(r=this.visibility,r.G!==V&&(r.G=V,r.r$()),this.Hs("airplay",{rbld:V}),this.fR()),this.publish("airplayactivechange"))}; g.C.So=function(r){if(this.loader){var V=this.loader,I=V.S,d=V.getCurrentTime(),a=Date.now()-I.V;I.V=NaN;I.Hs("sdai",{adfetchdone:r,d:a});r&&!isNaN(I.L)&&I.X!==3&&mF(I.loader,d,I.L,I.C);I.policy.W?I.W=NaN:I.Y=NaN;UP(I,4,I.X===3?"adfps":"adf");Cf(V)}}; g.C.dA=function(){g.bd(this.hq);this.Bw.stop();this.videoData.bL=!0;this.yH.Vu=!0;this.yH.rH=0;var r=this.Ik;if(r.videoData.X){var V=r.mM.W,I=r.videoData.X.A0;V.X.has(I)&&(V.X.delete(I),j4(V))}r.G.stop();this.WS();g.v(this.playerState,8)&&this.GP(E7(this.playerState,65));this.oU=!1;M2A(this.jR());g.r3(this.tQ);this.publish("playbackstarted");(r=g.Pr("yt.scheduler.instance.clearPriorityThreshold"))?r():eT(0)}; g.C.WS=function(){var r=this.dh.Hr(),V={},I={};!pq("pbs",this.hI.timerName)&&FM.measure&&FM.getEntriesByName&&(FM.getEntriesByName("mark_nr")[0]?pHA("mark_nr"):pHA());r.videoId&&(V.videoId=r.videoId);r.clientPlaybackNonce&&!this.U("web_player_early_cpn")&&(V.clientPlaybackNonce=r.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(I.isPausedOnLoad=!0);I.itag=r.X?Number(r.X.itag):-1;r.SA&&(I.preloadType=String(this.Df?2:1));V.liveStreamMode=YD9[$a(r)];V.playerInfo=I;this.hI.infoGel(V); if(this.loader){r=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(r.S&&(V=window.performance.getEntriesByName(r.S),V.length&&(V=V[0],r.tick("vri",V.fetchStart),r.tick("vdns",V.domainLookupEnd),r.tick("vreq",V.requestStart),r.tick("vrc",V.responseEnd))),r.X&&(V=window.performance.getEntriesByName(r.X),V.length&&(V=V[0],r.tick("ari",V.fetchStart),r.tick("adns",V.domainLookupEnd),r.tick("areq",V.requestStart),r.tick("arc",V.responseEnd))));r=r.ticks;for(var d in r)r.hasOwnProperty(d)&& this.hI.tick(d,r[d])}}; g.C.Uk=function(r){var V=this;r=r===void 0?!1:r;if(this.mediaElement&&this.videoData){YkA(this.zP,this.isPlaying());var I=this.getCurrentTime();!this.loader||g.v(this.playerState,4)&&g.GV(this.videoData)||g.v(this.playerState,32)&&xa(this.videoData)||R2i(this.loader,I);I>5&&(this.zP.S=I);var d=g.fH();d?g.Qa.hR(this.Tj):g.wB(this.Tj);var a=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!a||r1(this.videoData))&&!g.v(this.playerState,128)){var f=function(){if(V.mediaElement&&!g.v(V.playerState, 128)){V.yH.Ko()&&s7A(V,"pfx");var e=V.getCurrentTime();V.U("html5_buffer_underrun_transition_fix")&&(e-=V.N2());var n=fP(V.mediaElement),D=g.v(V.playerState,8),x=FR(V.sR,e),E=JtZ(V.sR,e,(0,g.m)(),n);D&&x?V.GP(E7(V.playerState,1)):D&&E?(D=V.getDuration(),x=cx(V.videoData),D&&Math.abs(D-e)<1.1?(V.Hs("setended",{ct:e,bh:n,dur:D,live:x}),V.mediaElement.H1()?(V.logger.debug("seek to 0 because of looping"),V.seekTo(0,{YX:"videoplayer_loop",seekSource:37})):V.pT()):(V.playerState.isBuffering()||NMi(V,"progress_fix"), V.GP(xX(V.playerState,1)))):(D&&!x&&!E&&e>0&&(D=(Date.now()-V.FG)/1E3,x=V.getDuration(),e>x-1&&V.Hs("misspg",{t:e.toFixed(2),d:x.toFixed(2),r:D.toFixed(2),bh:n.toFixed(2)})),V.playerState.isPaused()&&V.playerState.isBuffering()&&fP(V.mediaElement)>5&&V.GP(E7(V.playerState,1)));V.Uk()}}; this.mediaElement.wj().length===0?this.Tj=d?g.Qa.Dm(f,100):g.Td(f,100):this.Tj=d?g.Qa.Dm(f,500):g.Td(f,500)}this.videoData.TQ=I;this.mK&&this.mK.nY();!r&&this.isPlaying()&&n1r(this);avr(this.gU,this.AP,this.Sx(),this.isBackground())&&VR(this);this.publish("progresssync",r);a&&r1(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.C.ZP=function(){this.Ut("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.C.tG=function(){return this.jR().tG()}; g.C.P0=function(){return this.loader?this.loader.P0():$g(this.yH.schedule,!0)}; g.C.GP=function(r){if(!g.s7(this.playerState,r)){this.logger.debug(function(){return"Setting state "+r.toString()}); var V=new g.M5(r,this.playerState);this.playerState=r;cuX(this);var I=!this.oW.length;this.oW.push(V);var d=this.mediaElement&&this.mediaElement.isSeeking();d=V.oldState.state===8&&!d;g.TQ(V,1)&&d&&g.v(this.playerState,8)&&!g.v(this.playerState,64)&&this.loader&&(pxp(this.loader),this.mediaElement&&fP(this.mediaElement)>=5&&Ivj(this.gU,this.AP)&&VR(this));(d=g.zM(this.yH.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.v(r,1)&&(g.v(r,8)||g.v(r,16))?this.eD.start(d):this.eD.stop();(CW(V, 8)<0||g.TQ(V,1024))&&this.Bw.stop();!g.TQ(V,8)||this.videoData.bL||g.v(V.state,1024)||this.Bw.start();g.v(V.state,8)&&CW(V,16)<0&&!g.v(V.state,32)&&!g.v(V.state,2)&&this.playVideo();g.v(V.state,2)&&F8(this.videoData)&&(this.pR(this.getCurrentTime()),this.Uk(!0));g.TQ(V,2)&&(this.O3(!0),this.yH.Ko()&&this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&xa(this.videoData)&&this.videoData.G&&(d={minst:""+this.videoData.G.H9,cminst:""+(this.videoData.G.Wy()+this.N2()),maxst:""+this.videoData.G.tW, hts:""+this.videoData.G.kc,cmaxst:""+(this.videoData.G.zd()+this.N2())},this.Hs("sabrSeekableBoundaries",d)));g.TQ(V,128)&&this.Q6();this.videoData.G&&this.videoData.isLivePlayback&&!this.c5&&(CW(V,8)<0?Nmg(this.videoData.G):g.TQ(V,8)&&this.videoData.G.resume());fwZ(this.zP,V);Tnp(this.jR(),V);if(I&&!this.h0())try{for(var a=g.H(this.oW),f=a.next();!f.done;f=a.next()){var e=f.value;L5A(this.k9,e);this.publish("statechange",e)}}finally{this.oW.length=0}}}; g.C.d1=function(){this.hI.tick("qoes")}; g.C.M6=function(){this.zP.M6()}; g.C.gX=function(r,V,I,d){a:{var a=this.Ik;d=d===void 0?"LICENSE":d;I=I.substring(0,256);var f=Fa(V);r==="drm.keyerror"&&this.Pr&&this.Pr.X.keys.length>1&&a.Y<96&&(r="drm.sessionlimitexhausted",f=!1);var e=a.mM.experiments.uL("html5_retry_on_drm_unavailable"),n=a.mM.experiments.uL("html5_retry_on_drm_key_error"),D=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(e&&r==="drm.unavailable"||n&&r==="drm.keyerror"&&!I.match(D))a.vy("qoe.restart",{retryOnDrmError:1,e:r,detail:I}),a.lL.X3(!0);else{if(f)if(a.videoData.X&& a.videoData.X.video.isHdr())U8r(a,r);else{if(a.lL.Ut(r,V,d,I),lxZ(a,{detail:I}))break a}else a.vy(r,{detail:I});r==="drm.sessionlimitexhausted"&&(a.Hs("retrydrm",{sessionLimitExhausted:1}),a.Y++,E1Z(a.lL))}}}; g.C.qks=function(){var r=this,V=g.zM(this.yH.experiments,"html5_license_constraint_delay"),I=fo();V&&I?(V=new g.hz(function(){r.Uw();fS(r)},V),g.S(this,V),V.start()):(this.Uw(),fS(this))}; g.C.hN=function(r){this.publish("heartbeatparams",r)}; g.C.P9=function(r){this.Hs("keystatuses",eCi(r));var V="auto",I=!1;this.videoData.X&&(V=this.videoData.X.video.quality,I=this.videoData.X.video.isHdr());a:{switch(V){case "highres":case "hd2880":V="UHD2";break;case "hd2160":case "hd1440":V="UHD1";break;case "hd1080":case "hd720":V="HD";break;case "large":case "medium":case "small":case "light":case "tiny":V="SD";break;default:V="";break a}I&&(V+="HDR")}V=Gz(r)?F0(r,V):r.Y.includes(V);this.videoData.tR=r.tR;if(this.U("html5_enable_vp9_fairplay")){if(I)if(r.L){var d; if((d=this.Pr)==null?0:qY(d.G))if((I=this.Pr)==null)I=0;else{for(var a=d=void 0,f=g.H(I.X.values()),e=f.next();!e.done;e=f.next())e=e.value,d||(d=nUi(e,"SD")),a||(a=nUi(e,"AUDIO"));I.T0({sd:d,audio:a});I=d==="output-restricted"||a==="output-restricted"}else I=!V;if(I){this.Hs("drm",{dshdr:1});U8r(this.Ik);return}}else{this.videoData.Di||(this.videoData.Di=!0,this.Hs("drm",{dphdr:1}),this.X3(!0));return}var n;if((n=this.Pr)==null?0:qY(n.G))return}else if(n=r.L&&V,I&&!n){U8r(this.Ik);return}V||F0(r, "AUDIO")&&F0(r,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),r=eCi(r),this.Z2?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.U("html5_report_fatal_drm_restricted_error_killswitch")||this.Ut("drm.keyerror",2,void 0,"info."+r)):(this.Z2=!0,this.vy(new Gk("qoe.restart",Object.assign({},{retrydrm:1},r))),VR(this),E1Z(this)))}; g.C.nX7=function(){if(!this.videoData.bL&&this.mediaElement&&!this.isBackground()){var r="0";this.mediaElement.TK()>0&&fP(this.mediaElement)>=5&&this.videoData.S&&this.videoData.S.G&&(this.GP(xX(this.playerState,1)),NMi(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),r="1");cuX(this);var V=this.videoData.S;r={restartmsg:r,mfmt:!Ya(this.videoData),mdrm:!(!(V&&V.videoInfos&&V.videoInfos.length&&V.videoInfos[0].Cq)||this.Pr),mfmtinfo:!this.videoData.X,prerolls:this.Kl()?this.e8.join(","): "0"};if(this.Pr){V=this.Pr;if(V.X.size<=0){var I="ns;";V.V||(I+="nr;");V=I+="ql."+V.S.length}else V=eCi(V.X.values().next().value),V=A4(V);r.drmp=V}var d;Object.assign(r,((d=this.loader)==null?void 0:d.Qy())||{});var a;Object.assign(r,((a=this.mediaElement)==null?void 0:a.Qy())||{});this.jR().vy("qoe.start15s",A4(r));this.publish("loadsofttimeout")}}; g.C.pR=function(r){this.videoData.lengthSeconds!==r&&(this.videoData.lengthSeconds=r,fS(this))}; g.C.O3=function(r,V){var I=this;r=r===void 0?!1:r;if(!this.u$)if(pq("att_s","player_att")||qM("att_s",void 0,"player_att"),this.U("use_rta_for_player"))(function(){var a,f,e,n;return g.L(function(D){switch(D.X){case 1:if(!(a=r)){D.qk(2);break}return g.G(D,g.wZX(),3);case 3:a=!D.G;case 2:if(a)return D.return();g.wA(D,4);f=bSA(I.jR());if(!f)throw Error();e={};return g.G(D,g.HVX((e.cpn=I.videoData.clientPlaybackNonce,e.encryptedVideoId=I.videoData.videoId||"",e),3E4),6);case 6:n=D.G;if(I.u$)throw Error(); if(!n.challenge)throw g.gj(Error("Not sending attestation ping; no attestation challenge string")),Error();I.u$=!0;var x=[n.challenge];n.error?x.push("r1c="+n.error):n.webResponse&&x.push("r1a="+n.webResponse);var E;((E=n.adblockReporting)==null?void 0:E.reportingStatus)!==void 0&&x.push("r6a="+n.adblockReporting.reportingStatus);var N;((N=n.adblockReporting)==null?void 0:N.broadSpectrumDetectionResult)!==void 0&&x.push("r6b="+n.adblockReporting.broadSpectrumDetectionResult);f(x.join("&"));qM("att_f", void 0,"player_att");g.$v(D,0);break;case 4:g.th(D),qM("att_e",void 0,"player_att"),g.Hr(D)}})})().then(function(){V==null||V()}); else{var d=new g.GMg(this.videoData);if("c1a"in d.Z9&&!g.mB.isInitialized()){qM("att_wb",void 0,"player_att");this.JQ===2&&Math.random()<.01&&g.gj(Error("Botguard not available after 2 attempts"));if(r)return;if(this.JQ<5){g.r3(this.hQ);this.JQ++;return}}(d=g.F1i(d))?(qM("att_f",void 0,"player_att"),wXO(this.jR(),d),this.u$=!0):qM("att_e",void 0,"player_att")}}; g.C.Qu=function(r){r=r===void 0?!1:r;if(cx(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Ei()||g.GV(this.videoData)))r=this.getCurrentTime();else if(g.hI(this.videoData)&&this.mK){r=this.mK;var V=this.getCurrentTime();r=(r=yPZ(r,V*1E3))?(r.rU()-r.RB())/1E3:0}else r=this.zd(r);return r}; g.C.TU=function(){return g.hI(this.videoData)?this.videoData.Wy():this.Wy()}; g.C.zd=function(r){return this.zP.zd(r===void 0?!1:r)}; g.C.Wy=function(){return this.zP.Wy()}; g.C.N2=function(){return this.zP?this.zP.N2():0}; g.C.getStreamTimeOffset=function(){return this.zP?this.zP.getStreamTimeOffset():0}; g.C.Ll=function(){var r=0;this.yH.U("web_player_ss_media_time_offset")&&(r=this.getStreamTimeOffset()===0?this.N2():this.getStreamTimeOffset());return r}; g.C.setPlaybackRate=function(r){var V;this.playbackRate!==r&&vUU(this.gU,(V=this.videoData.S)==null?void 0:V.videoInfos)&&(this.playbackRate=r,VR(this));this.playbackRate=r;this.mediaElement&&this.mediaElement.setPlaybackRate(r)}; g.C.getPlaybackRate=function(){return this.playbackRate}; g.C.getPlaybackQuality=function(){var r="unknown";if(this.videoData.X&&(r=this.videoData.X.video.quality,r==="auto"&&this.mediaElement)){var V=this.nU();V&&V.videoHeight>0&&(r=UU(V.videoWidth,V.videoHeight))}return r}; g.C.isHdr=function(){return!!(this.videoData.X&&this.videoData.X.video&&this.videoData.X.video.isHdr())}; g.C.JO=function(){this.jR().JO()}; g.C.sendVideoStatsEngageEvent=function(r,V){var I=this.jR();I.G?(I=b8(I.G,"engage"),I.bL=r,I.send(V)):V&&V()}; g.C.SI=function(r){return this.jR().SI(r)}; g.C.isAtLiveHead=function(r,V){V=V===void 0?!1:V;return cx(this.videoData)&&(this.c_||V)?this.zP.isAtLiveHead(r):!1}; g.C.cL=function(){var r=this.zd(),V=this.getCurrentTime(),I;(I=!cx(this.videoData))||(I=this.zP,I=!(I.G&&I.G.S));return I||this.Ei()||isNaN(r)||isNaN(V)?0:Math.max(0,r-V)}; g.C.y3=function(r){(this.c_=r)||this.Bw.stop();this.videoData.G&&(r?this.videoData.G.resume():Nmg(this.videoData.G));if(this.loader){var V=this.videoData.U("html5_disable_preload_for_ssdai_with_preroll")&&this.q$()&&this.videoData.isLivePlayback;r&&!V?this.loader.resume():Do(this,!0)}g.v(this.playerState,2)||r?g.v(this.playerState,512)&&r&&this.GP(E7(this.playerState,512)):this.GP(xX(this.playerState,512));V=this.jR();V.qoe&&(V=V.qoe,g.Dv(V,g.$U(V.provider),"stream",[r?"A":"I"]))}; g.C.vB=function(r){r={n:r.name,m:r.message};this.jR().vy("player.exception",A4(r))}; g.C.G0=VZ(28);g.C.Oc=VZ(57);g.C.lV=function(r){this.jR().lV(r)}; g.C.UY=function(r){this.jR().UY(r)}; g.C.Kk=function(r){this.jR().Kk(r)}; g.C.OI=VZ(34);g.C.AZ=VZ(40);g.C.Ry=function(r){this.jR().Ry(r)}; g.C.wX=function(){this.Hs("hidden",{},!0)}; g.C.jS=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.C.oG=function(){return this.loader?this.loader.oG():!0}; g.C.setLoop=function(r){this.loop=r;this.mediaElement&&!g.Ai(this.yH)&&this.mediaElement.setLoop(r)}; g.C.H1=function(){return this.mediaElement&&!g.Ai(this.yH)?this.mediaElement.H1():this.loop}; g.C.Mx=function(r){this.Hs("timestamp",{o:r.toString()});this.zP.Mx(r)}; g.C.DR=function(r){this.hI.tick(r)}; g.C.zY=function(r){return this.hI.zY(r)}; g.C.KT=function(r){this.hI.KT(r)}; g.C.Hs=function(r,V,I){I=I===void 0?!1:I;this.jR().Hs(r,V,I)}; g.C.fk=function(r,V,I){I=I===void 0?!1:I;this.jR().Hs(r,V,I)}; g.C.vy=function(r){this.jR().vy(r.errorCode,A4(r.details));r=r.errorCode;if(this.videoData.isLivePlayback&&(r==="qoe.longrebuffer"||r==="qoe.slowseek")||r==="qoe.restart"){r=this.loader?khA(this.loader.videoTrack):{};var V,I;this.Hs("lasoe",Object.assign(this.loader?khA(this.loader.audioTrack):{},(V=this.f8)==null?void 0:(I=V.G)==null?void 0:I.Du()));var d,a;this.Hs("lvsoe",Object.assign(r,(d=this.f8)==null?void 0:(a=d.X)==null?void 0:a.Du()))}}; g.C.Fw=function(r,V,I){this.jR().Fw(r,V,I)}; g.C.Xw=function(r,V,I,d,a,f,e,n){var D;if((D=this.videoData.G)!=null&&D.isLive){var x=V.playerType===2?V:r,E=r.videoData.videoId,N=V.videoData.videoId;if(E&&N){D=this.jR();if(D.qoe){var c=D.qoe,z=r.cpn,M=V.cpn,w=x.videoData.dH,b=c.provider.videoData.clientPlaybackNonce,W=c.provider.videoData.videoId,K=M!==b&&N!==W;b=z!==b&&E!==W;c.reportStats();c.adCpn&&c.adCpn!==z||(c.adCpn=b?z:"",c.zG=b?E:"",c.adFormat=b?w:void 0,z_(c,2,f?4:a?2:0,M,N,d),c.reportStats(),c.adCpn=K?M:"",c.zG=K?N:"",c.adFormat=K?w: void 0,z_(c,2,f?5:a?3:1,z,E,I),c.reportStats())}I=r.cpn;if(D.S.has(I)){if(a=g.J(D.S.get(I)),$4(a,!0).send(),Wi(a),I!==D.provider.videoData.clientPlaybackNonce){j4r(a);var F;(F=D.G)==null||aoi(F);D.S.delete(I)}}else D.g$=D.provider.videoData.clientPlaybackNonce,D.g$&&D.G&&(D.S.set(D.g$,D.G),$4(D.G).send(),Wi(D.G));F=V.cpn;x=x.videoData;d-=this.Ll();if(D.S.has(F)){d=g.J(D.S.get(F));var l=d.S&&isNaN(d.W)?Ol(d):NaN;d=nZj(d,!1);isNaN(l)||(d.L=l);d.send()}else d=OSi(D,D.provider,x,d),D.S.set(F,d),D2r(d, new g.M5(xX(new g.nP,8),new g.nP)),d2j(d),(l=D.G)==null||Wi(l);D.g$=F;this.U("html5_unify_csi_server_stitched_transition_logging")?YWX(this.hI,r.cpn,V.cpn,this.videoData.clientPlaybackNonce,V.videoData,e,void 0,n):(D=this.hI,d=this.videoData.clientPlaybackNonce,l=V.videoData,r=(r.cpn===d?"video":"ad")+"_to_"+(V.cpn===d?"video":"ad"),d={},l.C&&(d.cttAuthInfo={token:l.C,videoId:l.videoId}),e&&(d.startTime=e),uC(r,d),g.mI({targetVideoId:l.videoId,targetCpn:V.cpn,isSsdai:!0},r),D.yH.U("html5_enable_ssdai_transition_with_only_enter_cuerange")? e||xB(D,n,r):xB(D,n,r))}}else this.logger.G(360717806,"SSTEvent for nonSS")}; g.C.V1=function(){var r=this.dh,V=r.c8;r.c8=[];return V}; g.C.T3=function(r){this.videoData.l2=!0;this.vy(new Gk("sabr.fallback",r));this.X3(!0)}; g.C.YU=function(r,V){this.videoData.b9=!0;if(V===void 0||V)this.vy(new Gk("qoe.restart",r)),this.X3(!0);this.videoData.uJ()&&this.U("html5_reload_caption_on_ssdai_fallback")&&this.dh.ZB()}; g.C.ND=function(r){this.Hs("sdai",{aftimeout:r});this.vy(new Gk("ad.fetchtimeout",{timeout:r}))}; g.C.Eg=function(r,V){this.Hs("timelineerror",r);r=new Gk("dai.timelineerror",r);V?this.Ut("dai.timelineerror",1,"RETRYABLE_ERROR",A4(r.details)):this.vy(r)}; g.C.vL=function(){return tb(this.jR())}; g.C.getPlayerSize=function(){return this.zZ.getPlayerSize()}; g.C.Xf=function(){return this.zZ.Xf()}; g.C.nw=function(){return this.hI}; g.C.qv=function(){return this.dh.qv()}; g.C.getVolume=function(){return this.dh.getVolume()}; g.C.NR=function(){return this.dh.NR()}; g.C.isMuted=function(){return this.dh.isMuted()}; g.C.F1=function(){return this.dh.F1()}; g.C.b0=function(){this.c5=!0}; g.C.U=function(r){return this.yH.U(r)}; g.C.hm=function(r,V,I,d,a){this.Hs("xvt",{m:r,g:V?1:0,tt:I?1:0,np:d?1:0,c:a})}; g.C.PF=function(){var r;(r=this.loader)==null||r.resume()}; g.C.q$=function(){return g.CG(this.e8,"ad")}; g.C.XQ=function(){var r=this.getCurrentTime(),V=r-this.N2();var I=this.mediaElement?cT(this.mediaElement.VX()):0;I=Math.floor(Math.max(I-V,0))+100;var d;return((d=this.loader)==null?0:d.XQ(V,I))?(this.Hs("sdai",{skipad:1,ct:V.toFixed(3),adj:I.toFixed(3)}),xa(this.videoData)&&this.loader.seek(V+I,{seekSource:89,YX:"videoplayer_skipServerStitchedAd"}),TzA(this.zP,r),!0):!1}; g.C.Ko=function(){return this.yH.Ko()}; g.C.e6=function(){if(this.U("html5_generate_content_po_token"))return this.videoData.Wd||"";this.dh.DS();return this.yH.uZ||""}; g.C.kf=function(){if(this.videoData.videoId)return this.videoData.vU}; g.C.Ty=function(){return this.videoData.videoId}; g.C.oi=function(){return this.dh.Jc}; g.C.lD=function(){return this.oU}; g.C.Tc=function(){return this.dh.Tc()}; g.C.yU=function(r,V){this.zP.yU(r,V)}; g.C.fz=function(){this.zP.fz()}; g.C.aY=function(r,V){var I=this.U("html5_generate_content_po_token")?this.videoData:void 0;this.dh.aY(r,V,I)}; g.C.OW=function(r,V){var I;(I=this.loader)==null||I.OW(r,V)}; g.C.IN=function(){var r=this.M3();return!!r&&r.IN()}; g.C.Ro=function(){return this.mK}; g.C.tS=function(r,V){this.jR().tS(r,V)}; g.C.mw=function(){return this.jR().mw()}; g.C.GO=function(){return this.videoData.wZ}; g.C.nj=function(){return this.dh.nj()}; g.C.pD=function(){return this.dh.pD(this)}; g.C.xr=function(r){var V;(V=this.loader)==null||V.xr(r)}; g.C.Nc=function(){var r;(r=this.loader)==null||r.Nc()};g.T(CxO,I5);g.T(TMX,I5);g.C=TMX.prototype;g.C.seekToChapterWithAnimation=function(r){var V=this;if(g.w1(this.api)&&!(r<0)){var I=this.api.getVideoData(),d=I.jI;if(d&&r=0)return;V=~V;g.to(this.items,V,0,r);an(this.menuItems.element,r.element,V)}r.subscribe("size-change",this.UC,this);this.menuItems.publish("size-change")}; g.C.ao=function(r){r.unsubscribe("size-change",this.UC,this);this.h0()||(g.H9(this.items,r),this.menuItems.element.removeChild(r.element),this.menuItems.publish("size-change"))}; g.C.UC=function(){this.menuItems.publish("size-change")}; g.C.focus=function(){for(var r=0,V=0;V1&&g.yR(this)}; g.C.Af=function(){v1A(this);this.Hp&&(ulX(this),g.qG(this.element,this.size))}; g.C.q7=function(){var r=this.G.pop();p3O(this,r,this.G[this.G.length-1],!0)}; g.C.Sl=function(r){if(!r.defaultPrevented)switch(r.keyCode){case 27:this.Co();r.preventDefault();break;case 37:this.G.length>1&&this.q7();r.preventDefault();break;case 39:r.preventDefault()}}; g.C.focus=function(){this.G.length&&this.G[this.G.length-1].focus()}; g.C.eC=function(){g.p8.prototype.eC.call(this);this.C&&this.C.dispose();this.L&&this.L.dispose()};g.T(Af,g.R4);Af.prototype.open=function(r,V){this.initialize(r.items)&&this.a8(V,!!V)}; Af.prototype.initialize=function(r){g.KS(this.e7);if(r===void 0||r.length===0)return!1;var V=r.length;r=g.H(r);for(var I=r.next();!I.done;I=r.next())this.LF(I.value,V--);return!0}; Af.prototype.LF=function(r,V){r.menuNavigationItemRenderer?o1Z(this,r.menuNavigationItemRenderer,V):r.menuServiceItemRenderer&&kxj(this,r.menuServiceItemRenderer,V)};g.T(GL,Ot);g.C=GL.prototype;g.C.uc=function(r){r.target!==this.dismissButton.element&&r.target!==this.overflowButton.element&&(this.Dk(),this.onClickCommand&&this.T.Bs("innertubeCommand",this.onClickCommand))}; g.C.iy=function(){this.enabled=!1;this.V.hide()}; g.C.oE=function(){return!!this.G&&this.enabled}; g.C.onVideoDataChange=function(r,V){this.zI(V);if(this.G){this.LV();a:if(!this.isCounterfactual){var I,d,a;this.banner.update({title:(I=this.G)==null?void 0:I.title,subtitle:(d=this.G)==null?void 0:d.subtitle,metadata:(a=this.G)==null?void 0:a.metadataText});var f;this.onClickCommand=g.U((f=this.G)==null?void 0:f.onTap,ic);var e;if(r=g.U((e=this.G)==null?void 0:e.onOverflow,ic))this.L=g.U(r,wzP);var n;if((n=this.G)==null?0:n.thumbnailImage){var D,x;e=((D=this.G)==null?void 0:(x=D.thumbnailImage)== null?void 0:x.sources)||[];if(e.length===0)break a;this.thumbnailImage.update({url:e[0].url})}else{var E;if((E=this.G)==null?0:E.thumbnailIconName){var N;this.thumbnailIcon.update({icon:(N=this.G)==null?void 0:N.thumbnailIconName})}}var c;this.shouldShowOverflowButton=!((c=this.G)==null||!c.shouldShowOverflowButton);var z;this.shouldHideDismissButton=!((z=this.G)==null||!z.shouldHideDismissButton)}var M;this.banner.element.setAttribute("aria-label",((M=this.G)==null?void 0:M.a11yLabel)||"");var w; this.L8=(w=this.G)==null?void 0:w.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;rxv(this)}}; g.C.OF7=function(){this.isVisible=!0;rxv(this)}; g.C.rzE=function(){this.isVisible=!1;rxv(this)}; g.C.nB=function(){Ot.prototype.nB.call(this);this.X&&this.T.logVisibility(this.banner.element,this.isVisible)}; g.C.Dk=function(){Ot.prototype.Dk.call(this,!1);this.X&&this.T.logClick(this.banner.element)}; g.C.YP=function(r){this.C||(this.C=new Af(this.T),g.S(this,this.C));var V,I;if((V=this.L)==null?0:(I=V.menu)==null?0:I.menuRenderer)this.C.open(this.L.menu.menuRenderer,r.target),r.preventDefault()}; g.C.zI=function(){}; g.C.LV=function(){}; g.C.eC=function(){this.T.Zg("suggested_action_view_model");Ot.prototype.eC.call(this)};g.T(FC,GL); FC.prototype.zI=function(r){var V,I,d;this.productUpsellSuggestedActionViewModel=g.U((V=r.getWatchNextResponse())==null?void 0:(I=V.playerOverlays)==null?void 0:(d=I.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,Xze);var a;if((a=this.productUpsellSuggestedActionViewModel)==null?0:a.content){var f;this.G=g.U((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,CbG)}var e,n;if(this.X=!!((e=this.productUpsellSuggestedActionViewModel)==null?0:(n=e.loggingDirectives)==null? 0:n.trackingParams)){var D,x;this.T.setTrackingParams(this.banner.element,((D=this.productUpsellSuggestedActionViewModel)==null?void 0:(x=D.loggingDirectives)==null?void 0:x.trackingParams)||null)}var E;this.isCounterfactual=!((E=this.productUpsellSuggestedActionViewModel)==null||!E.isCounterfactualServing)}; FC.prototype.LV=function(){var r=[],V,I=g.H(((V=this.productUpsellSuggestedActionViewModel)==null?void 0:V.ranges)||[]);for(V=I.next();!V.done;V=I.next()){var d=V.value;d&&(V=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(V)||isNaN(d)||r.push(new g.ex(V,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.T.Dg(r)};g.T(Vei,I5);g.T(ll,I5);ll.prototype.onVideoDataChange=function(r,V){var I=this;if(!pk(V)&&(r==="newdata"&&dfv(this),this.X&&this.S&&r==="dataloaded")){var d;Wp(Db(this.api.N(),(d=this.api.getVideoData())==null?void 0:g.QW(d)),function(a){I.S=!1;DfA(I,a)})}}; ll.prototype.va=function(){var r=this;if(g.Ai(this.api.N())){var V,I=g.jQ(this.api.N(),(V=this.api.getVideoData())==null?void 0:g.QW(V));return Wp(TK(I),function(d){var a=Q_();md(a,d);return r.api.va(a)})}return TK(this.api.va())};g.T(g.Jf,g.k6);g.C=g.Jf.prototype;g.C.open=function(){g.tf(this.F_,this.X)}; g.C.lz=function(r){xfA(this);var V=this.options[r];V&&(V.element.setAttribute("aria-checked","true"),this.ys(this.Ce(r)),this.S=r)}; g.C.WL=function(r){g.KS(this.X);for(var V={},I=!1,d=0;d=0?this.G.playbackRate:1}catch(r){return 1}}; g.C.setPlaybackRate=function(r){this.getPlaybackRate()!==r&&(this.G.playbackRate=r);return r}; g.C.H1=function(){return this.G.loop}; g.C.setLoop=function(r){this.G.loop=r}; g.C.canPlayType=function(r,V){return this.G.canPlayType(r,V)}; g.C.isPaused=function(){return this.G.paused}; g.C.isSeeking=function(){return this.G.seeking}; g.C.isEnded=function(){return this.G.ended}; g.C.yf=function(){return this.G.muted}; g.C.Y1=function(r){gE();this.G.muted=r}; g.C.wj=function(){return this.G.played||D$([],[])}; g.C.VX=function(){try{var r=this.G.buffered}catch(V){}return r||D$([],[])}; g.C.Cr=function(){return this.G.seekable||D$([],[])}; g.C.b$=function(){var r=this.G;return r.getStartDate?r.getStartDate():null}; g.C.getCurrentTime=function(){return this.G.currentTime}; g.C.setCurrentTime=function(r){this.G.currentTime=r}; g.C.getDuration=function(){return this.G.duration}; g.C.load=function(){var r=this.G.playbackRate;try{this.G.load()}catch(V){}this.G.playbackRate=r}; g.C.pause=function(){this.G.pause()}; g.C.play=function(){var r=this.G.play();if(!r||!r.then)return null;r.then(void 0,function(){}); return r}; g.C.TK=function(){return this.G.readyState}; g.C.lH=function(){return this.G.networkState}; g.C.IQ=function(){return this.G.error?this.G.error.code:null}; g.C.GY=function(){return this.G.error?this.G.error.message:""}; g.C.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.G instanceof window.HTMLVideoElement&&this.G.getVideoPlaybackQuality)return this.G.getVideoPlaybackQuality();if(this.G){var r=this.G,V=r.webkitDroppedFrameCount;if(r=r.webkitDecodedFrameCount)return{droppedVideoFrames:V||0,totalVideoFrames:r}}return{}}; g.C.lk=function(){return!!this.G.webkitCurrentPlaybackTargetIsWireless}; g.C.Im=function(){return!!this.G.webkitShowPlaybackTargetPicker()}; g.C.togglePictureInPicture=function(){var r=this.G,V=window.document;window.document.pictureInPictureEnabled?this.G!==V.pictureInPictureElement?r.requestPictureInPicture():V.exitPictureInPicture():Bq()&&r.webkitSetPresentationMode(r.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.C.by=function(){var r=this.G;return new g.Fw(r.offsetLeft,r.offsetTop)}; g.C.getSize=function(){return g.Pe(this.G)}; g.C.setSize=function(r){g.qG(this.G,r)}; g.C.getVolume=function(){return this.G.volume}; g.C.setVolume=function(r){gE();this.G.volume=r}; g.C.Lp=function(r){this.W[r]||(this.G.addEventListener(r,this.listener),this.W[r]=this.listener)}; g.C.setAttribute=function(r,V){this.G.setAttribute(r,V)}; g.C.removeAttribute=function(r){this.G.removeAttribute(r)}; g.C.hasAttribute=function(r){return this.G.hasAttribute(r)}; g.C.pz=VZ(67);g.C.qo=VZ(69);g.C.nE=VZ(71);g.C.aN=VZ(73);g.C.kW=function(){return O3(this.G)}; g.C.Zs=function(r){g.jN(this.G,r)}; g.C.Uf=function(r){return g.SX(this.G,r)}; g.C.XF=function(){return g.eG(document.body,this.G)}; g.C.audioTracks=function(){var r=this.G;if("audioTracks"in r)return r.audioTracks}; g.C.eC=function(){for(var r=g.H(Object.keys(this.W)),V=r.next();!V.done;V=r.next())V=V.value,this.G.removeEventListener(V,this.W[V]);dm.prototype.eC.call(this)}; g.C.B8=function(r){this.G.disableRemotePlayback=r};g.T(vX,g.u);g.T(PX,g.u);PX.prototype.show=function(){g.u.prototype.show.call(this);this.UE();this.zQ.U("html5_enable_moving_s4n_window")&&g.Ai(this.zQ.N())&&this.j()}; PX.prototype.hide=function(){g.u.prototype.hide.call(this);this.delay.stop();this.Y.stop()}; PX.prototype.UE=function(){var r=(0,g.m)(),V=Oep(this.zQ);q2(this.G,V.bandwidth_samples);q2(this.L,V.network_activity_samples);q2(this.S,V.live_latency_samples);q2(this.X,V.buffer_health_samples);var I={};V=g.H(Object.entries(V));for(var d=V.next();!d.done;d=V.next()){var a=g.H(d.value);d=a.next().value;a=a.next().value;this.V[d]!==a&&(I[d]=" "+String(a));this.V[d]=a}this.update(I);r=(0,g.m)()-r>25?5E3:500;this.delay.start(r)}; PX.prototype.j=function(){this.C?(this.position+=1,this.position>15&&(this.C=!1)):(--this.position,this.position<=0&&(this.C=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Y.start(2E4)};g.T(KWi,I5);g.T(o4,g.X);o4.prototype.G=function(){var r=(0,g.m)()-this.startTime;r=rthis.Y[r])&&(this.G=r,hf(this))}; g.C.onCueRangeExit=function(r){var V=gWg(this,r);V&&this.G===r&&this.api.Bs("innertubeCommand",V);this.clearTimeout();this.G=void 0}; g.C.onTimeout=function(r){this.G!==void 0&&(r==null?void 0:r.cueRangeId)===this.G&&(this.C=!1,(r=gWg(this,this.G))&&this.api.Bs("innertubeCommand",r))}; g.C.EC=function(r){this.X=r}; g.C.Nx=function(){hf(this);this.X=void 0}; g.C.setTimeout=function(r){var V=this,I=Number(r==null?void 0:r.maxVisibleDurationMilliseconds);I&&(this.clearTimeout(),this.L=setTimeout(function(){V.onTimeout(r)},I))}; g.C.clearTimeout=function(){this.L&&clearTimeout(this.L);this.L=void 0;this.C=!1}; g.C.eC=function(){this.timelyActions=this.X=this.G=this.videoId=void 0;this.Y={};this.e$();this.clearTimeout();I5.prototype.eC.call(this)};g.T(Ufr,I5);g.T(VX,jW);VX.prototype.C=function(r){this.Y(r?2:1)}; VX.prototype.X=function(){var r=this.T.getPresentingPlayerType();r===2||r===3?(this.G=!1,this.F_.ao(this)):this.G||(r=this.hasVoiceBoostAudioTrack(),this.setEnabled(r),r=this.S()===2&&r,DC(this,r),this.F_.LF(this),this.G=!0)}; VX.prototype.eC=function(){this.F_.ao(this);jW.prototype.eC.call(this)};g.T(I8,I5);I8.prototype.getVoiceBoostUserPreference=function(){return this.G}; I8.prototype.setVoiceBoostUserPreference=function(r){this.api.Hs("vb_set",{pref:r});g.X2("yt-player-voice-boost",r);r!==this.G&&(this.G=r,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.fR())}; I8.prototype.hasVoiceBoostAudioTrack=function(){var r,V,I=(r=this.api.getVideoData())==null?void 0:(V=r.S)==null?void 0:V.G;return I?r6(I,function(d){var a;return((a=d.audio)==null?void 0:a.X)===!0}):!1}; I8.prototype.updateEnvironmentData=function(){this.api.N().WG=this.G};var rqr=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.T(fY,I5);fY.prototype.eC=function(){this.L&&(g.bd(this.L),this.L=void 0);I5.prototype.eC.call(this)}; fY.prototype.DS=function(){(this.X?!this.G:this.S)&&YB(this)}; fY.prototype.Aa=function(r,V,I){var d=this;if(uhj(r)){var a=I||"";if(this.G)V=nY(this,a),pfX(r,V);else{var f=new g.cA;V.push(f.promise);this.W.promise.then(function(){var e=nY(d,a);pfX(r,e);f.resolve()})}}}; fY.prototype.B4=function(r){var V=this;if(this.X||this.S)r.Wd=nY(this,r.videoId),this.G||(this.Y=new IL,this.W.promise.then(function(){V.hI.zY("pot_if");r.Wd=nY(V,r.videoId)}))};g.T(jt,I5);jt.prototype.setFullscreenQuickActions=function(r){this.G&&this.api.getRootNode().removeChild(this.G);r?(g.jN(r,"ytp-fullscreen-quick-actions"),g.jN(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.g1(this.api,r,4)):g.xS(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.G=r;IYh(this,this.api.isFullscreen())}; jt.prototype.setPlayerOverlayVideoDetailsRenderer=function(r){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);r?(g.jN(r,"ytp-fullscreen-metadata"),this.api.U("delhi_modern_web_player_fullscreen_metadata_bottom")?g.jN(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.jN(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.g1(this.api,r,4)):(g.xS(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.xS(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=r;IYh(this,this.api.isFullscreen())};g.T(dhr,I5);g.T(Dw,g.X);Dw.prototype.G=function(){for(var r=g.H(g.ZU.apply(0,arguments)),V=r.next();!V.done;V=r.next())(V=V.value)&&this.features.push(V)}; Dw.prototype.eC=function(){for(var r=this.features.length-1;r>=0;r--)this.features[r].dispose();this.features.length=0;g.X.prototype.eC.call(this)};aYX.prototype.reset=function(){this.G=this.X=NaN};g.C=fYj.prototype;g.C.reset=function(){SK(this.timerName)}; g.C.tick=function(r,V){Q2(r,V,this.timerName)}; g.C.zY=function(r){return vS(r,void 0,this.timerName)}; g.C.KT=function(r){GN(r,void 0,this.timerName)}; g.C.infoGel=function(r){g.mI(r,this.timerName)};g.T(j_i,g.NK);g.C=j_i.prototype;g.C.Dq=function(r){return this.loop||!!r||this.index+1=0}; g.C.setShuffle=function(r){this.shuffle=r;r=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var V=0;V0)||Ff(this,1,!0)}; g.C.Lh=function(){this.C=!0;this.G.pF(this.W);this.W=this.G.K(document,"mouseup",this.Rr)}; g.C.Rr=function(){this.C=!1;Ff(this,8,!1);this.G.pF(this.W);this.W=this.G.K(this.target,"mousedown",this.Lh)}; g.C.Zj=function(r){if(r=(r=r.changedTouches)&&r[0])this.bL=r.identifier,this.G.pF(this.j),this.j=this.G.K(this.target,"touchend",this.s1,void 0,!0),Ff(this,1024,!0)}; g.C.s1=function(r){if(r=r.changedTouches)for(var V=0;V1280||f>720)if(a=I.YG("maxresdefault.jpg"))break;if(d>640||f>480)if(a=I.YG("maxresdefault.jpg"))break; if(d>320||f>180)if(a=I.YG("sddefault.jpg")||I.YG("hqdefault.jpg")||I.YG("mqdefault.jpg"))break;if(a=I.YG("default.jpg"))break}g.dv(V)&&(V=new Image,V.addEventListener("load",function(){kTS()}),V.src=a?a:"",this.api.nw().tick("ftr")); this.Y.style.backgroundImage=a?"url("+a+")":""};g.T(g.Zw,g.u);g.Zw.prototype.resize=function(){}; g.Zw.prototype.X=function(r){var V=this;this.S=!1;dIX(this);var I=r.jT,d=this.api.N();I!=="GENERIC_WITHOUT_LINK"||d.C?I==="TOO_MANY_REQUESTS"?(d=g.J(this.api.getVideoData()),this.ys(gz(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Iv(),void 0,void 0,void 0,!1))):I!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.C?this.api.N().U("html5_enable_bandaid_error_screen")&&I==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.C?(d=d.hostLanguage,r="//support.google.com/youtube?p=videoError",d&&(r=g.Ly(r,{hl:d})),this.ys(gz(this,"HTML5_SPS_UMP_STATUS_REJECTED", r))):this.api.N().U("enable_adb_handling_in_sabr")&&I==="BROWSER_OR_EXTENSION_ERROR"&&!d.C?(d=d.hostLanguage,r="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(r=g.Ly(r,{hl:d})),this.ys(gz(this,"BROWSER_OR_EXTENSION_ERROR",r))):this.ys(g.Xf(r.errorMessage)):this.ys(gz(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(r=d.hostLanguage,I="//support.google.com/youtube/?p=player_error1",r&&(I=g.Ly(I, {hl:r})),this.ys(gz(this,"GENERIC_WITH_LINK_AND_CPN",I,!0)),d.dH&&!d.Y&&IVi(this,function(f){if(g.xu(f,V.api,!kg(V.api.N()))){f={as3:!1,html5:!0,player:!0,cpn:g.J(V.api.getVideoData()).clientPlaybackNonce};var e=V.api;e.k5("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});e.isFullscreen()&&e.toggleFullscreen()}})); if(this.S){var a=this.Fz("ytp-error-link");a&&(this.api.createClientVe(a,this,216104),this.api.logVisibility(a,!0),IVi(this,function(){V.api.logClick(a)}))}}; var VRZ=/([^<>]+)<\/a>/;g.T(aVO,g.u);g.C=aVO.prototype;g.C.onClick=function(r){this.innertubeCommand?(this.T.Bs("innertubeCommand",this.innertubeCommand),r.preventDefault()):g.xu(r,this.T,!0);this.T.logClick(this.element)}; g.C.onVideoDataChange=function(r,V){euv(this,V);this.Lq&&YRi(this,this.Lq)}; g.C.T1=function(r){var V=g.J(this.T.getVideoData());this.videoId!==V.videoId&&euv(this,V);this.G&&YRi(this,r.state);this.Lq=r.state}; g.C.a8=function(){this.fade.show();this.T.publish("paidcontentoverlayvisibilitychange",!0);this.T.logVisibility(this.element,!0)}; g.C.Co=function(){this.fade.hide();this.T.publish("paidcontentoverlayvisibilitychange",!1);this.T.logVisibility(this.element,!1)};g.T(St,g.u);St.prototype.hide=function(){this.G.stop();this.message.style.display="none";g.u.prototype.hide.call(this)}; St.prototype.onStateChange=function(r){this.Az(r.state)}; St.prototype.Az=function(r){(g.v(r,128)||this.api.lD()?0:g.v(r,16)||g.v(r,1))?this.G.start():this.hide()}; St.prototype.X=function(){this.message.style.display="block"};g.T(iD,g.p8);iD.prototype.onMutedAutoplayChange=function(r){this.S&&(r?(ncZ(this),this.a8()):(this.G&&this.logClick(),this.Co()))}; iD.prototype.R1=function(r){this.api.isMutedByMutedAutoplay()&&g.TQ(r,2)&&this.Co()}; iD.prototype.onClick=function(){this.api.unMute();this.logClick()}; iD.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.T(g.Uk,g.Su);g.C=g.Uk.prototype;g.C.init=function(){var r=this.api,V=r.getPlayerStateObject();this.d9=r.getPlayerSize();this.GP(V);this.LR();this.yy();this.api.publish("basechromeinitialized",this);this.Cx()&&this.api.publish("standardControlsInitialized")}; g.C.onVideoDataChange=function(r,V){var I=this.mp!==V.videoId;if(I||r==="newdata"){r=this.api;r.isFullscreen()||(this.d9=r.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.hI(d))&&this.zA()}I&&(this.mp=V.videoId,I=this.Uj,I.GQ=3E3,Ff(I,512,!0),this.LR());this.api.U("web_render_jump_buttons")&&V.showSeekingControls&&(this.BY=572)}; g.C.j8c=function(){this.onVideoDataChange("newdata",g.J(this.api.getVideoData()))}; g.C.W4=function(){var r=this.api.Y_()&&this.api.Fc(),V=this.api.PD();return this.H0||r||this.VR||V}; g.C.zA=function(){var r=!this.W4();g.NA(this.api.getRootNode(),"ytp-menu-shown",!r);var V;((V=this.api.getVideoData(1))==null?0:g.hI(V))&&g.NA(this.api.getRootNode(),"ytp-hide-controls",!r)}; g.C.lw=function(r){try{if(!g.eG(this.api.getRootNode(),r))return!1}catch(V){return!1}for(;r&&!S_r(r);)r=r===this.api.getRootNode()?null:r.parentElement||null;return!!r}; g.C.Zh=function(r){var V=this.api.getRootNode();g.NA(V,"ytp-autohide",r);g.NA(V,"ytp-autohide-active",!0);this.N0.start(r?250:100);r&&(this.u0=!1,g.xS(V,"ytp-touch-mode"));this.Q1=!r;this.api.w6(!r)}; g.C.eb=function(){var r=this.api.getRootNode();g.NA(r,"ytp-autohide-active",!1)}; g.C.u8Q=function(){this.dc=!0}; g.C.NFC=function(r){if(this.api.N().U("player_doubletap_to_seek")||this.api.N().L)this.dc=!1,this.Ia&&this.pF(this.Ia),this.It===0&&m2(this,r)?(this.Ph(),this.J_.start(),this.Ia=this.K(this.api.gs(),"touchmove",this.u8Q,void 0,!0)):this.J_.stop();EcO(this)&&m2(this,r)&&!this.api.N().L&&DIU(this);var V=this.c6.NL();if(!g.FG(this.api.N())&&tK&&NyU(this,r))V&&r.preventDefault();else if(this.u0=!0,g.jN(this.api.getRootNode(),"ytp-touch-mode"),this.Uj.tC(),this.api.N().U("player_doubletap_to_seek")||this.api.N().L)if(V= this.api.getPlayerStateObject(),!(!this.api.RQ()||g.v(V,2)&&g.Fd(this.api)||g.v(V,64))){V=Date.now()-this.K6;this.It+=1;if(V<=350){this.iO=!0;V=this.api.getPlayerSize().width/3;var I=this.api.getRootNode().getBoundingClientRect(),d=r.targetTouches[0].clientX-I.left;I=r.targetTouches[0].clientY-I.top;var a=(this.It-1)*10;d>0&&dV*2&&d=650,d=r.width<528;this.Uj.resize();g.NA(V,"ytp-fullscreen",this.api.isFullscreen());g.NA(V,"ytp-large-width-mode",I);g.NA(V,"ytp-xsmall-width-mode",d);g.NA(V,"ytp-small-mode",this.Qx());g.NA(V,"ytp-tiny-mode",this.vn());g.NA(V,"ytp-big-mode",this.tZ());this.ZD&&this.ZD.resize(r)}; g.C.R1=function(r){this.GP(r.state);this.LR()}; g.C.Jf=VZ(5);g.C.F5=function(){var r=!!this.mp&&!this.api.oB()&&!this.Vr,V=this.api.getPresentingPlayerType()===2,I=this.api.N();if(V){if(NPf&&I.U("enable_visit_advertiser_support_on_ipad_mweb"))return!1;V=R8(this.api.Gz());r&&(V&&V.player?r=(r=V.player.getVideoData(2))?r.isListed&&!g.ti(V.player.N()):!1:(zQ("showInfoBarDuringAd: this is null"),r=!1));return r}return r&&(I.TE||this.api.isFullscreen()||I.VM)}; g.C.LR=function(){var r=this.F5();this.GL!==r&&(this.GL=r,g.NA(this.api.getRootNode(),"ytp-hide-info-bar",!r))}; g.C.GP=function(r){var V=r.isCued()||this.api.Kl()&&this.api.getPresentingPlayerType()!==3;V!==this.isCued&&(this.isCued=V,this.Ny&&this.pF(this.Ny),this.Ny=this.K(this.api.gs(),"touchstart",this.NFC,void 0,V));var I=this.Uj,d=r.isPlaying()&&!g.v(r,32)||this.api.VC();Ff(I,128,!d);I=this.Uj;d=this.api.getPresentingPlayerType()===3;Ff(I,256,d);I=this.api.getRootNode();g.v(r,2)?d=[uB.ENDED]:(d=[],g.v(r,8)?d.push(uB.PLAYING):g.v(r,4)&&d.push(uB.PAUSED),g.v(r,1)&&!g.v(r,32)&&d.push(uB.BUFFERING),g.v(r, 32)&&d.push(uB.SEEKING),g.v(r,64)&&d.push(uB.UNSTARTED));g.Zm(this.Os,d)||(g.E8(I,this.Os),this.Os=d,g.DX(I,d));d=this.api.N();var a=g.v(r,2);a:{var f=this.api.N();var e=f.controlsType;switch(e){case "2":case "0":f=!1;break a}f=e==="3"&&!g.v(r,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:vvo(R8(this.api.Gz())))||this.api.PD()||g.FG(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.NA(I,"ytp-hide-controls",!f);g.NA(I,"ytp-native-controls",d.controlsType==="3"&&!V&&!a&&!this.VR);g.v(r, 128)&&!g.FG(d)?(this.ZD||(this.ZD=new g.Zw(this.api),g.S(this,this.ZD),g.g1(this.api,this.ZD.element,4)),this.ZD.X(r.DD),this.ZD.show()):this.ZD&&(this.ZD.dispose(),this.ZD=null)}; g.C.OZ=function(){return this.api.Y_()&&this.api.Fc()?(this.api.n5(!1,!1),!0):this.api.oB()?(g.l5(this.api,!0),!0):!1}; g.C.onMutedAutoplayChange=function(r){this.VR=r;this.zA()}; g.C.tZ=function(){return!1}; g.C.Qx=function(){return!this.tZ()&&(this.api.getPlayerSize().width=0&&V.left>=0&&V.bottom>V.top&&V.right>V.left?V:null;V=this.size;r=r.clone();V=V.clone();d&&(e=V,a=5,(a&65)==65&&(r.x=d.right)&&(a&=-2),(a&132)==132&&(r.y=d.bottom)&&(a&=-5),r.xd.right&&(e.width=Math.min(d.right-r.x,f+e.width-d.left),e.width=Math.max(e.width,0))),r.x+e.width>d.right&&a&1&&(r.x=Math.max(d.right-e.width,d.left)),r.yd.bottom&&(e.height=Math.min(d.bottom-r.y,f+e.height-d.top),e.height=Math.max(e.height,0))),r.y+e.height>d.bottom&&a&4&&(r.y=Math.max(d.bottom-e.height,d.top)));d=new g.JV(0,0,0,0);d.left=r.x;d.top=r.y;d.width= V.width;d.height=V.height;g.mZ(this.element,new g.Fw(d.left,d.top));g.lQ(this.Y);this.Y.K(vF(this),"contextmenu",this.yzQ);this.Y.K(this.T,"fullscreentoggled",this.onFullscreenToggled);this.Y.K(this.T,"pageTransition",this.La)}; g.C.yzQ=function(r){if(!r.defaultPrevented){var V=yh(r);g.eG(this.element,V)||this.Co();this.T.N().disableNativeContextMenu&&r.preventDefault()}}; g.C.onFullscreenToggled=function(){this.Co();ZKr(this)}; g.C.La=function(){this.Co()};g.T(rM,g.u);rM.prototype.onClick=function(){var r=this,V,I,d,a;return g.L(function(f){if(f.X==1)return V=r.api.N(),I=g.J(r.api.getVideoData()),d=r.api.getPlaylistId(),a=V.getVideoUrl(I.videoId,d,void 0,!0),g.G(f,gcg(r,a),2);f.G&&Byh(r);r.api.logClick(r.element);g.Hr(f)})}; rM.prototype.UE=function(){this.updateValue("icon",{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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=X$v(this);g.NA(this.element,"ytp-copylink-button-visible",this.visible); this.Ok(this.visible);this.tooltip.Q_();this.api.logVisibility(this.element,this.visible&&this.W)}; rM.prototype.IT=function(r){g.u.prototype.IT.call(this,r);this.api.logVisibility(this.element,this.visible&&r)}; rM.prototype.eC=function(){g.u.prototype.eC.call(this);g.xS(this.element,"ytp-copylink-button-visible")};g.T(SRg,g.u);g.C=SRg.prototype;g.C.show=function(){g.u.prototype.show.call(this);g.r3(this.X)}; g.C.hide=function(){this.Y.stop();this.S=0;this.Fz("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.xS(this.element,"ytp-chapter-seek");g.xS(this.element,"ytp-time-seeking");g.u.prototype.hide.call(this)}; g.C.rI=function(r,V,I,d){this.S=r===this.L?this.S+d:d;this.L=r;var a=r===-1?this.V:this.j;a&&this.T.logClick(a);this.C?this.X.stop():g.Is(this.X);this.Y.start();this.element.setAttribute("data-side",r===-1?"back":"forward");var f=3*this.T.gs().getPlayerSize().height;a=this.T.gs().getPlayerSize();a=a.width/3-3*a.height;this.G.style.width=f+"px";this.G.style.height=f+"px";r===1?(this.G.style.left="",this.G.style.right=a+"px"):r===-1&&(this.G.style.right="",this.G.style.left=a+"px");var e=f*2.5;f=e/ 2;var n=this.Fz("ytp-doubletap-ripple");n.style.width=e+"px";n.style.height=e+"px";r===1?(r=this.T.gs().getPlayerSize().width-V+Math.abs(a),n.style.left="",n.style.right=r-f+"px"):r===-1&&(r=Math.abs(a)+V,n.style.right="",n.style.left=r-f+"px");n.style.top="calc((33% + "+Math.round(I)+"px) - "+f+"px)";if(I=this.Fz("ytp-doubletap-ripple"))I.classList.remove("ytp-doubletap-ripple"),I.classList.add("ytp-doubletap-ripple");iKi(this,this.C?this.S:d)}; g.C.Xu=function(r,V,I){if(I=I===void 0?null:I){var d=r===-1?this.V.visualElement:this.j.visualElement;I={seekData:I};var a=g.A8();a&&g.I6(dF)(void 0,a,d,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",I,void 0)}this.S=r===this.L?this.S+V:V;this.L=r;d=this.T.gs().getPlayerSize();this.C?this.X.stop():g.Is(this.X);this.Y.start();this.element.setAttribute("data-side",r===-1?"back":"forward");g.jN(this.element,"ytp-time-seeking");this.G.style.width="110px";this.G.style.height="110px";I=d.width*.1-15;r=== 1?this.QH?(this.G.style.right=I+"px",this.G.style.left=""):(this.G.style.right="",this.G.style.left=d.width*.8-30+"px"):r===-1&&(this.QH?(this.G.style.right="",this.G.style.left=I+"px"):(this.G.style.right="",this.G.style.left=d.width*.1-15+"px"));this.G.style.top=d.height*.5+15+"px";iKi(this,this.C?this.S:V)}; g.C.Wg=function(r,V,I){I=I===void 0?null:I;g.Is(this.X);this.Y.start();switch(r){case -1:r="back";break;case 1:r="forward";break;default:r=""}this.element.setAttribute("data-side",r);this.G.style.width="0";this.G.style.height="0";g.jN(this.element,"ytp-chapter-seek");this.updateValue("seekText",V);this.updateValue("seekTime","");V=this.Fz("ytp-seek-icon");if(I){a:if(I){switch(I){case "PREMIUM_STANDALONE":I={J:"svg",D:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},B:[{J:"path",D:{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"}},{J:"path",D:{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":I={J:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{J:"rect",D:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{J:"rect",D:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{J:"path",D:{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"}},{J:"defs",B:[{J:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},B:[{J:"stop",D:{offset:"0.3","stop-color":"#E1002D"}},{J:"stop",D:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}I=void 0}else I=null;this.updateValue("seekIcon",I);V.style.display="inline-block"}else V.style.display="none"};g.T(UIr,Ot);g.C=UIr.prototype;g.C.Z4=function(r){this.p8||(this.p8=new Af(this.T),g.S(this,this.p8));var V,I;if((V=this.Qa)==null?0:(I=V.menu)==null?0:I.menuRenderer)this.p8.open(this.Qa.menu.menuRenderer,r.target),r.preventDefault()}; g.C.oE=function(){return!!this.G}; g.C.s3=function(){return!!this.G}; g.C.uc=function(r){r.target===this.overflowButton.element?r.preventDefault():(this.Hy&&this.T.Bs("innertubeCommand",this.Hy),this.Dk(!1))}; g.C.iy=function(){this.Dk(!0);var r,V;((r=this.G)==null?0:(V=r.bannerData)==null?0:V.dismissedStatusKey)&&this.dH.push(this.G.bannerData.dismissedStatusKey);this.oy()}; g.C.Wj=function(){this.oy();dM(this)}; g.C.E8Q=function(r){var V=this,I;if(r.id!==((I=this.G)==null?void 0:I.identifier)){this.oy();I=g.H(this.GQ);for(var d=I.next();!d.done;d=I.next()){var a=d.value,f=void 0,e=void 0;if((d=(f=a)==null?void 0:(e=f.bannerData)==null?void 0:e.itemData)&&a.identifier===r.id){e=f=void 0;var n=((f=a)==null?void 0:(e=f.bannerData)==null?void 0:e.dismissedStatusKey)||"";if(this.dH.includes(n))return;this.G=a;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.Y=!0, this.T.setTrackingParams(this.badge.element,d.trackingParams));this.V.show();bl(this);this.n8.Ok(!d.stayInApp);Vmg(this);mIS(this);I7(this);this.Hy=g.U(d.onTapCommand,ic);if(a=g.U(d.menuOnTap,ic))this.Qa=g.U(a,wzP);a=void 0;this.banner.update({thumbnail:(a=(d.thumbnailSources||[])[0])==null?void 0:a.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:vcA(this),priceDropReferencePrice:qRA(this),promotionText:p$i(this),priceA11yText:PNi(this),affiliateDisclaimer:d.affiliateDisclaimer, vendor:oci(this)});n=e=f=a=void 0;((a=d)==null?0:(f=a.hiddenProductOptions)==null?0:f.showDropCountdown)&&((e=d)==null?0:(n=e.hiddenProductOptions)==null?0:n.dropTimestampMs)&&(this.X_=new g.hz(function(){rni(V)},1E3),this.n8.hide(),this.countdownTimer.show(),rni(this)); this.T.U("web_player_enable_featured_product_banner_exclusives_on_desktop")&&QFi(this)&&(this.M2=new g.hz(function(){uBh(V)},1E3),uBh(this))}}this.T.getRootNode()&&g.jN(this.T.getRootNode(),"ytp-featured-product-shown")}}; g.C.oy=function(){this.G&&(this.G=void 0,this.Od(),this.T.getRootNode()&&g.xS(this.T.getRootNode(),"ytp-featured-product-shown"))}; g.C.onVideoDataChange=function(r,V){var I=this;r==="dataloaded"&&dM(this);var d,a,f;r=g.U((d=V.getWatchNextResponse())==null?void 0:(a=d.playerOverlays)==null?void 0:(f=a.playerOverlayRenderer)==null?void 0:f.productsInVideoOverlayRenderer,Tlo);this.overflowButton.show();this.dismissButton.hide();var e=r==null?void 0:r.featuredProductsEntityKey;this.trendingOfferEntityKey=r==null?void 0:r.trendingOfferEntityKey;this.GQ.length||(hui(this,e),I7(this));var n;(n=this.CF)==null||n.call(this);this.CF=g.e3.subscribe(function(){hui(I, e);I7(I)})}; g.C.eC=function(){dM(this);Vmg(this);mIS(this);Ot.prototype.eC.call(this)};g.T(e5X,g.u);e5X.prototype.onClick=function(){this.T.logClick(this.element,this.X)};g.T(Ybv,g.p8);g.C=Ybv.prototype;g.C.show=function(){g.p8.prototype.show.call(this);this.T.publish("infopaneldetailvisibilitychange",!0);this.T.logVisibility(this.element,!0);nHX(this,!0)}; g.C.hide=function(){g.p8.prototype.hide.call(this);this.T.publish("infopaneldetailvisibilitychange",!1);this.T.logVisibility(this.element,!1);nHX(this,!1)}; g.C.getId=function(){return this.Y}; g.C.ou=function(){return this.itemData.length}; g.C.onVideoDataChange=function(r,V){if(V){var I,d,a,f;this.update({title:((I=V.q3)==null?void 0:(d=I.title)==null?void 0:d.content)||"",body:((a=V.q3)==null?void 0:(f=a.bodyText)==null?void 0:f.content)||""});var e;r=((e=V.q3)==null?void 0:e.trackingParams)||null;this.T.setTrackingParams(this.element,r);e=g.H(this.itemData);for(r=e.next();!r.done;r=e.next())r.value.dispose();this.itemData=[];var n;if((n=V.q3)==null?0:n.ctaButtons)for(V=g.H(V.q3.ctaButtons),n=V.next();!n.done;n=V.next())if(n=g.U(n.value, Nle))n=new e5X(this.T,n,this.G),n.IL&&(this.itemData.push(n),n.Xz(this.items))}}; g.C.eC=function(){this.hide();g.p8.prototype.eC.call(this)};g.T(xvi,g.u);g.C=xvi.prototype;g.C.onVideoDataChange=function(r,V){Dvh(this,V);this.Lq&&NaS(this,this.Lq)}; g.C.dg=function(r){var V=g.J(this.T.getVideoData());this.videoId!==V.videoId&&Dvh(this,V);NaS(this,r.state);this.Lq=r.state}; g.C.EQ=function(r){(this.S=r)?this.hide():this.G&&this.show()}; g.C.jl=function(){this.X||this.a8();this.showControls=!0}; g.C.Ka=function(){this.X||this.Co();this.showControls=!1}; g.C.a8=function(){var r,V=(r=this.T)==null?void 0:r.getPlayerSize();r=V.width<380;var I;V=V.height<(((I=this.T)==null?0:I.isEmbedsShortsMode())?400:280);var d,a;(((d=this.T)==null?0:d.getPlayerStateObject().isCued())||((a=this.T)==null?0:g.v(a.getPlayerStateObject(),1024)))&&r&&V||!this.G||this.S||(this.fade.show(),this.T.publish("infopanelpreviewvisibilitychange",!0),this.T.logVisibility(this.element,!0))}; g.C.Co=function(){this.G&&!this.S&&(this.fade.hide(),this.T.publish("infopanelpreviewvisibilitychange",!1),this.T.logVisibility(this.element,!1))}; g.C.ATs=function(){this.X=!1;this.showControls||this.Co()};var $sG={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys($sG).reduce(function(r,V){r[$sG[V]]=V;return r},{}); var Kr6={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Kr6).reduce(function(r,V){r[Kr6[V]]=V;return r},{}); var RFY={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(RFY).reduce(function(r,V){r[RFY[V]]=V;return r},{});var t_e,yAm;t_e=[{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"}];yAm=[{option:0,text:a7(0)},{option:.25,text:a7(.25)},{option:.5,text:a7(.5)},{option:.75,text:a7(.75)},{option:1,text:a7(1)}]; g.nl=[{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:t_e},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:a7(.5)},{option:-1,text:a7(.75)},{option:0,text:a7(1)},{option:1,text:a7(1.5)},{option:2, text:a7(2)},{option:3,text:a7(3)},{option:4,text:a7(4)}]},{option:"background",text:"Background color",options:t_e},{option:"backgroundOpacity",text:"Background opacity",options:yAm},{option:"windowColor",text:"Window color",options:t_e},{option:"windowOpacity",text:"Window opacity",options:yAm},{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:a7(.25)},{option:.5,text:a7(.5)},{option:.75,text:a7(.75)},{option:1,text:a7(1)}]}];var AAK=[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.T(TaX,g.Su);g.C=TaX.prototype; g.C.If=function(r){r.repeat||(this.S.Ef=!1);var V=!1,I=r.keyCode,d=yh(r),a=!r.altKey&&!r.ctrlKey&&!r.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||AAK.includes(I)),f=!1,e=!1,n=this.api.N();r.defaultPrevented?(a=!1,e=!0):n.JP&&!this.api.isMutedByEmbedsMutedAutoplay()&&(a=!1);if(I===9)V=!0;else{if(d)switch(I){case 32:case 13:if(d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT")V=!0,a=!1;else if(a){var D=d.getAttribute("role");!D||D!=="option"&&D!=="button"&&D.indexOf("menuitem")!==0|| (V=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:V=d.getAttribute("role")==="slider";break;case 38:case 40:D=d.getAttribute("role"),d=I===38?d.previousSibling:d.nextSibling,D==="slider"?V=!0:a&&(D==="option"?(d&&d.getAttribute("role")==="option"&&d.focus(),f=V=!0):D&&D.indexOf("menuitem")===0&&(d&&d.hasAttribute("role")&&d.getAttribute("role").indexOf("menuitem")===0&&d.focus(),f=V=!0))}if(a&&!f)switch(I){case 38:f=Math.min(this.api.getVolume()+5,100);vD(this.Kq,f,!1);this.api.setVolume(f); e=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);vD(this.Kq,f,!0);this.api.setVolume(f);e=f=!0;break;case 36:this.api.RQ()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),e=f=!0);break;case 35:this.api.RQ()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),e=f=!0)}}V&&eZ(this,!0);(V||e)&&this.Uj.tC();(f||a&&this.handleGlobalKeyDown(I,r.shiftKey,r.ctrlKey,r.altKey,r.metaKey,r.key,r.code,r.repeat))&&r.preventDefault();n.j&&(r={keyCode:r.keyCode, altKey:r.altKey,ctrlKey:r.ctrlKey,metaKey:r.metaKey,shiftKey:r.shiftKey,handled:r.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.fJ("onKeyPress",r))}; g.C.NV=function(r){var V=r.keyCode;(!this.api.U("web_player_spacebar_control_bugfix")||this.api.U("web_player_spacebar_control_bugfix")&&!this.S.Bn)&&this.handleGlobalKeyUp(V,r.shiftKey,r.ctrlKey,r.altKey,r.metaKey,r.key,r.code)&&r.preventDefault()}; g.C.handleGlobalKeyUp=function(r,V,I,d,a,f,e){this.api.publish("keyboardserviceglobalkeyup",{keyCode:r,shiftKey:V,ctrlKey:I,altKey:d,metaKey:a,key:f,code:e});V=!1;if(this.S.Ef)return V;(a=g.Xd(this.api.Gz()))&&(a=a.zl)&&a.Hp&&(a.jK(r),V=!0);switch(r){case 9:eZ(this,!0);V=!0;break;case 32:if(this.api.U("web_speedmaster_spacebar_control")&&(!this.api.U("web_player_spacebar_control_bugfix")&&!this.S.Bn||this.api.U("web_player_spacebar_control_bugfix"))&&!this.api.N().JP){var n,D;r=(n=this.progressBar)== null?void 0:(D=n.X)==null?void 0:D.isEnabled;V=this.pY(r)}break;case 39:(Yh?d:I)&&this.api.U("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),n=(n=this.api.getVideoData())?n.jI:[],D=cnv(n,this.api.getCurrentTime()*1E3),D!==-1&&this.G!=null&&(this.G.Wg(1,n[D].title),this.api.seekTo(n[D].startTime/1E3,void 0,void 0,void 0,52),V=!0))}return V}; g.C.handleGlobalKeyDown=function(r,V,I,d,a,f,e,n){n||(this.S.Ef=!1);var D=!1,x=this.api.N();if(x.JP&&!this.api.isMutedByEmbedsMutedAutoplay())return D;var E=g.Xd(this.api.Gz());if(E&&(E=E.zl)&&E.Hp)switch(r){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:D=E.K0(r)}x.C||D||(D=f||String.fromCharCode(r).toLowerCase(),this.X+=D,"awesome".indexOf(this.X)===0||this.api.U("web_player_rtr_ctrls")&&"bday".indexOf(this.X)===0?(D=!0,4===this.X.length&&this.X==="bday"&&this.api.U("web_player_rtr_ctrls")&& (DzU(this.W),this.Uj.tC()),7===this.X.length&&this.X==="awesome"&&Kxi(this.api.getRootNode(),"ytp-color-party")):(this.X=D,D="awesome".indexOf(this.X)===0||"bday".indexOf(this.X)===0));if(!D&&(!this.api.isMutedByEmbedsMutedAutoplay()||AAK.includes(r))){var N=this.api.getVideoData(),c,z;E=(c=this.progressBar)==null?void 0:(z=c.X)==null?void 0:z.isEnabled;c=N?N.jI:[];z=Yh?d:I;switch(r){case 80:V&&!x.p8&&(pY(this.Kq,K4h(),"Previous"),this.api.previousVideo(),D=!0);break;case 78:V&&!x.p8&&(pY(this.Kq, t2(),"Next"),this.api.nextVideo(),D=!0);break;case 74:this.api.RQ()&&(this.api.startSeekCsiAction(),this.G?this.api.U("enable_key_press_seek_logging")?(D=Y1(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.G.Xu(-1,10,D)):this.G.Xu(-1,10):pY(this.Kq,{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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),D=!0);break;case 76:this.api.RQ()&&(this.api.startSeekCsiAction(),this.G?this.api.U("enable_key_press_seek_logging")?(D=Y1(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.G.Xu(1,10,D)):this.G.Xu(1,10):pY(this.Kq,{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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),D=!0);break;case 37:this.api.RQ()&&(this.api.startSeekCsiAction(),z?(z=z5v(c,this.api.getCurrentTime()*1E3),z!==-1&&this.G!=null&&(this.G.Wg(-1,c[z].title),this.api.seekTo(c[z].startTime/1E3,void 0,void 0,void 0,53),D=!0)):(this.G?this.api.U("enable_key_press_seek_logging")?(D=Y1(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.G.Xu(-1,5,D)):this.G.Xu(-1,5):pY(this.Kq,{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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),D=!0));break;case 39:this.api.RQ()&&(this.api.startSeekCsiAction(),z?this.api.U("web_enable_keyboard_shortcut_for_timely_actions")||(z=cnv(c,this.api.getCurrentTime()*1E3),z!==-1&&this.G!=null&&(this.G.Wg(1,c[z].title),this.api.seekTo(c[z].startTime/1E3,void 0,void 0,void 0,52),D=!0)):(this.G!=null?this.api.U("enable_key_press_seek_logging")?(D=Y1(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.G.Xu(1,5,D)):this.G.Xu(1, 5):pY(this.Kq,{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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),D=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),vD(this.Kq,this.api.getVolume(),!1)):(this.api.mute(),vD(this.Kq,0,!0));D=!0;break;case 32:D=this.api.U("web_speedmaster_spacebar_control")?!this.api.N().p8:this.pY(E);break;case 75:D=this.pY(E);break;case 190:V?x.enableSpeedOptions&&wjO(this)&&(D=this.api.getPlaybackRate(),this.api.setPlaybackRate(D+.25,!0),cTv(this.Kq,!1),D=!0):this.api.RQ()&&(this.step(1),D=!0);break;case 188:V? x.enableSpeedOptions&&wjO(this)&&(D=this.api.getPlaybackRate(),this.api.setPlaybackRate(D-.25,!0),cTv(this.Kq,!0),D=!0):this.api.RQ()&&(this.step(-1),D=!0);break;case 70:x3S(this.api)&&(this.api.toggleFullscreen().catch(function(){}),D=!0); break;case 27:E?(this.progressBar.y5(),D=!0):this.C()&&(D=!0)}if(x.controlsType!=="3")switch(r){case 67:g.WD(this.api.Gz())&&(x=this.api.getOption("captions","track"),this.api.toggleSubtitles(),zuX(this.Kq,!x||x&&!x.displayName),D=!0);break;case 79:jZ(this,"textOpacity");break;case 87:jZ(this,"windowOpacity");break;case 187:case 61:jZ(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:jZ(this,"fontSizeIncrement",!0,!0)}var M;V||I||d||(r>=48&&r<=57?M=r-48:r>=96&&r<=105&&(M=r-96));M!=null&&this.api.RQ()&& (this.api.startSeekCsiAction(),x=this.api.getProgressState(),this.api.seekTo(M/10*(x.seekableEnd-x.seekableStart)+x.seekableStart,void 0,void 0,void 0,81),D=!0);D&&this.Uj.tC()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:r,shiftKey:V,ctrlKey:I,altKey:d,metaKey:a,key:f,code:e,repeat:n},this.S);return D}; g.C.step=function(r){this.api.RQ();if(this.api.getPlayerStateObject().isPaused()){var V=g.J(this.api.getVideoData()).X;V&&(V=V.video)&&this.api.seekBy(r/(V.fps||30),void 0,void 0,r>0?77:78)}}; g.C.pY=function(r){if(!this.api.N().p8){var V;var I,d=(V=this.api.getVideoData())==null?void 0:(I=V.getPlayerResponse())==null?void 0:I.playabilityStatus;if(d){var a;V=((a=g.U(d.miniplayer,t1p))==null?void 0:a.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else V=!1;V&&this.api.Bs("onExpandMiniplayer");r?this.progressBar.aD():(r=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Kq.Hi(r),r?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.C.eC=function(){g.Is(this.Y);g.Su.prototype.eC.call(this)};g.T(g.Dt,g.u);g.Dt.prototype.bf=VZ(11); g.Dt.prototype.UE=function(){var r=this.T.N(),V=r.S||this.T.U("web_player_hide_overflow_button_if_empty_menu")&&this.TD.isEmpty();r=g.FG(r)&&g.J6(this.T)&&g.v(this.T.getPlayerStateObject(),128);var I=this.T.getPlayerSize();this.visible=this.T.Qx()&&!r&&I.width>=240&&!g.V_(g.J(this.T.getVideoData()))&&!V&&!this.G&&!this.T.isEmbedsShortsMode();g.NA(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.T.Q_();this.T.logVisibility(this.element,this.visible&&this.W)}; g.Dt.prototype.IT=function(r){g.u.prototype.IT.call(this,r);this.T.logVisibility(this.element,this.visible&&r)}; g.Dt.prototype.eC=function(){g.u.prototype.eC.call(this);g.xS(this.element,"ytp-overflow-button-visible")};g.T(bzg,g.p8);g.C=bzg.prototype;g.C.Ir=function(r){r=yh(r);g.eG(this.element,r)&&(g.eG(this.G,r)||g.eG(this.closeButton,r)||qJ(this))}; g.C.Co=function(){g.p8.prototype.Co.call(this);this.T.L_(this.element)}; g.C.show=function(){this.Hp&&this.T.publish("OVERFLOW_PANEL_OPENED");g.p8.prototype.show.call(this);this.element.setAttribute("aria-modal","true");WwU(this,!0)}; g.C.hide=function(){g.p8.prototype.hide.call(this);this.element.removeAttribute("aria-modal");WwU(this,!1)}; g.C.onFullscreenToggled=function(r){!r&&this.NL()&&qJ(this)}; g.C.isEmpty=function(){return this.actionButtons.length===0}; g.C.focus=function(){for(var r=g.H(this.actionButtons),V=r.next();!V.done;V=r.next())if(V=V.value,V.Hp){V.focus();break}};g.T($vU,g.u);$vU.prototype.onClick=function(r){g.xu(r,this.api)&&this.api.playVideoAt(this.index)};g.T(Kwi,g.p8);g.C=Kwi.prototype;g.C.show=function(){g.p8.prototype.show.call(this);this.G.K(this.api,"videodatachange",this.gx);this.G.K(this.api,"onPlaylistUpdate",this.gx);this.gx()}; g.C.hide=function(){g.p8.prototype.hide.call(this);g.lQ(this.G);this.updatePlaylist(null)}; g.C.gx=function(){this.updatePlaylist(this.api.getPlaylist());this.api.N().S&&(this.Fz("ytp-playlist-menu-title-name").removeAttribute("href"),this.S&&(this.pF(this.S),this.S=null))}; g.C.DT=function(){var r=this.playlist,V=r.author,I=V?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(r.index+1),PLAYLIST_LENGTH:String(r.getLength())};V&&(d.AUTHOR=V);this.update({title:r.title,subtitle:g.Tj(I,d),playlisturl:this.api.getVideoUrl(!0)});V=r.X;if(V===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[r.index];else{I=g.H(this.playlistData);for(d=I.next();!d.done;d=I.next())d.value.dispose(); I=r.getLength();this.playlistData=[];for(d=0;d=this.X&&!r.S&&!V.isAd()&&!this.api.isEmbedsShortsMode()}else r=!1;this.visible=r;this.Ok(this.visible);g.NA(this.element,"ytp-search-button-visible",this.visible);g.NA(this.element,"ytp-show-search-title",!this.api.Qx());this.api.logVisibility(this.element,this.visible&&this.W)}; sI.prototype.IT=function(r){g.u.prototype.IT.call(this,r);this.api.logVisibility(this.element,this.visible&&r)};g.T(c3,g.u);c3.prototype.rI=function(r,V,I,d){JnA(this,r,d)}; c3.prototype.Xu=function(r,V){JnA(this,r,V)}; c3.prototype.Wg=function(r){JnA(this,r)}; c3.prototype.hide=function(){g.u.prototype.hide.call(this);this.G=0;this.C=void 0};g.T(g.zx,g.u);g.C=g.zx.prototype;g.C.m6=VZ(8); g.C.onClick=function(){var r=this,V=this.api.N(),I=g.J(this.api.getVideoData(this.api.getPresentingPlayerType())),d=this.api.getPlaylistId();V=this.api.U("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):V.getVideoUrl(I.videoId,d,void 0,!0);if(navigator.share)try{var a=navigator.share({title:I.title,url:V});a instanceof Promise&&a.catch(function(f){Bap(r,f)})}catch(f){f instanceof Error&&Bap(this,f)}else this.G.OZ(),qJ(this.S,this.element,!1); this.api.logClick(this.element)}; g.C.UE=function(){var r=this.api.N(),V=this.api.isEmbedsShortsMode();g.NA(this.element,"ytp-show-share-title",g.FG(r)&&!V);this.G.tZ()&&V?(r=(this.api.gs().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Be(this.element,"right",r+"px")):V&&g.Be(this.element,"right","0px");this.updateValue("icon",{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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=XjX(this);g.NA(this.element,"ytp-share-button-visible",this.visible);this.Ok(this.visible);this.tooltip.Q_();this.api.logVisibility(this.element,XjX(this)&&this.W)}; g.C.IT=function(r){g.u.prototype.IT.call(this,r);this.api.logVisibility(this.element,this.visible&&r)}; g.C.eC=function(){g.u.prototype.eC.call(this);g.xS(this.element,"ytp-share-button-visible")};g.T(SbU,g.p8);g.C=SbU.prototype;g.C.vE=function(r){r=yh(r);g.eG(this.C,r)||g.eG(this.closeButton,r)||qJ(this)}; g.C.Co=function(){g.p8.prototype.Co.call(this);this.tooltip.L_(this.element);this.api.logVisibility(this.G,!1);for(var r=g.H(this.S),V=r.next();!V.done;V=r.next())V=V.value,this.api.hasVe(V.element)&&this.api.logVisibility(V.element,!1)}; g.C.show=function(){var r=this.Hp;g.p8.prototype.show.call(this);this.UE();r||this.api.Bs("onSharePanelOpened")}; g.C.xk8=function(){this.Hp&&this.UE()}; g.C.UE=function(){var r=this;g.jN(this.element,"ytp-share-panel-loading");g.xS(this.element,"ytp-share-panel-fail");var V=g.J(this.api.getVideoData()),I=this.api.getPlaylistId()&&this.Y.checked;V.getSharePanelCommand&&oE(g.J(this.api.va()),V.getSharePanelCommand,{includeListId:I}).then(function(d){r.h0()||(g.xS(r.element,"ytp-share-panel-loading"),Qpi(r,d))}); V=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",V);this.updateValue("linkText",V);this.updateValue("shareLinkWithUrl",g.Tj("Share link $URL",{URL:V}));sH(this.G);this.api.logVisibility(this.G,!0)}; g.C.onFullscreenToggled=function(r){!r&&this.NL()&&qJ(this)}; g.C.focus=function(){this.G.focus()}; g.C.eC=function(){g.p8.prototype.eC.call(this);izA(this)};g.T(pjr,Ot);g.C=pjr.prototype;g.C.eC=function(){kRA(this);Ot.prototype.eC.call(this)}; g.C.uc=function(r){r.target!==this.dismissButton.element&&(this.Dk(!1),this.T.Bs("innertubeCommand",this.onClickCommand))}; g.C.iy=function(){this.EE=!0;this.Dk(!0);this.Od()}; g.C.Gds=function(r){this.L=r;this.Od()}; g.C.onVideoDataChange=function(r,V){if(r=!!V.videoId&&this.videoId!==V.videoId)this.videoId=V.videoId,this.EE=!1,this.bL=!0,this.j=this.kc=!1,kRA(this),oHr(this,!1),this.X=this.G=!1,Cl(this),vHS(this);if(r||!V.videoId)this.QH=this.Y=!1;var I,d;if(V==null?0:(I=V.getPlayerResponse())==null?0:(d=I.videoDetails)==null?0:d.isLiveContent)this.r$(!1);else{var a,f,e;V=g.U((a=V.getWatchNextResponse())==null?void 0:(f=a.playerOverlays)==null?void 0:(e=f.playerOverlayRenderer)==null?void 0:e.productsInVideoOverlayRenderer, Tlo);this.L=this.enabled=!1;if(V){if(a=V==null?void 0:V.featuredProductsEntityKey){f=g.e3.getState().entities;var n;if((n=ad(f,"featuredProductsEntity",a))==null?0:n.productsData){this.r$(!1);return}}this.enabled=!0;if(!this.Y){var D;n=(D=V.badgeInteractionLogging)==null?void 0:D.trackingParams;(this.Y=!!n)&&this.T.setTrackingParams(this.badge.element,n||null)}if(!this.QH){var x;if(this.QH=!((x=V.dismissButton)==null||!x.trackingParams)){var E;this.T.setTrackingParams(this.dismissButton.element,((E= V.dismissButton)==null?void 0:E.trackingParams)||null)}}V.isContentForward&&(D=V.productsData,oHr(this,!0),vHS(this),D=PBA(this,D),x=[],D.length>0&&x.push(D[0]),D.length>1&&(E=new g.u({J:"div",Z:"ytp-suggested-action-more-products-icon"}),g.S(this,E),x.push(E),x.push.apply(x,g.R(D.slice(1)))),this.C=new g.u({J:"div",B:x,Z:"ytp-suggested-action-content-forward-container"}),g.S(this,this.C),this.R7.element.append(this.C.element));this.text=g.wF(V.text);var N;if(D=(N=V.dismissButton)==null?void 0:N.a11yLabel)this.L8= g.wF(D);this.onClickCommand=V.onClickCommand;this.timing=V.timing;this.Dg()}Q7v(this);bl(this);this.Od()}}; g.C.oE=function(){return!this.L&&this.enabled&&!this.EE&&!this.T.Qx()&&!this.rH&&(this.j||this.bL)}; g.C.cB=function(r){Ot.prototype.cB.call(this,r);if(this.G||this.X)this.timing&&M7(this.timing.preview)&&(this.G=!1,Cl(this),this.X=!1,Cl(this),this.T.Zg("shopping_overlay_preview_collapsed"),this.T.Zg("shopping_overlay_preview_expanded"),r=Tx(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),M7(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.T.Zg("shopping_overlay_expanded"),r.end=this.timing.expanded.endSec*1E3),this.T.Dg([r])), this.kc=!0,bl(this);Cl(this)}; g.C.r$=function(r){(this.j=r)?(wn(this),bl(this,!1)):(kRA(this),this.TQ.start());this.Od()}; g.C.Dg=function(r){var V=this.timing;r=(r===void 0?0:r)+this.T.getCurrentTime();var I=[],d=V.visible,a=V.preview;V=V.expanded;M7(d)&&(mvZ(d,r),I.push(Tx(d.startSec,d.endSec,"shopping_overlay_visible")));M7(a)&&(mvZ(a,r),d=a.startSec+1,I.push(Tx(a.startSec,d,"shopping_overlay_preview_collapsed")),I.push(Tx(d,a.endSec,"shopping_overlay_preview_expanded")));M7(V)&&(mvZ(V,r),I.push(Tx(V.startSec,V.endSec,"shopping_overlay_expanded")));this.T.Dg(I)}; g.C.Od=function(){Ot.prototype.Od.call(this);this.T.getRootNode()&&g.NA(this.T.getRootNode(),"ytp-shopping-pill-shown",this.oE())};g.T(Vhi,g.u); Vhi.prototype.UE=function(){var r=this.api.N();this.Ok(g.FG(r)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Hp);var V=g.J(this.api.getVideoData()),I=!1;this.api.getPresentingPlayerType()===2?I=!!V.videoId&&!!V.isListed&&!!V.author&&!!V.Qa&&!!V.profilePicture:g.FG(r)&&(I=!!V.videoId&&!!V.Qa&&!!V.profilePicture&&!g.V_(V)&&!r.S&&!(r.L&&this.api.getPlayerSize().width<200));var d=V.profilePicture;r=g.FG(r)?V.expandedTitle:V.author;d=d=== void 0?"":d;r=r===void 0?"":r;I?(this.X!==d&&(this.G.style.backgroundImage="url("+d+")",this.X=d),this.updateValue("channelLogoLabel",g.Tj("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:r})),g.jN(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.xS(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.G,I&&this.W);this.api.logVisibility(this.channelName,I&&this.W);this.subscribeButton&&(this.subscribeButton.channelId=V.Sz);this.updateValue("expandedTitle",V.expandedTitle)};g.T(H3,g.p8);H3.prototype.show=function(){g.p8.prototype.show.call(this);this.G.start()}; H3.prototype.hide=function(){g.p8.prototype.hide.call(this);this.G.stop()}; H3.prototype.xg=function(r,V){r==="dataloaded"&&((this.wy=V.wy,this.KJ=V.KJ,isNaN(this.wy)||isNaN(this.KJ))?this.S&&(this.T.Zg("intro"),this.T.removeEventListener(g.nv("intro"),this.L),this.T.removeEventListener(g.jx("intro"),this.C),this.T.removeEventListener("onShowControls",this.Y),this.hide(),this.S=!1):(this.T.addEventListener(g.nv("intro"),this.L),this.T.addEventListener(g.jx("intro"),this.C),this.T.addEventListener("onShowControls",this.Y),r=new g.ex(this.wy,this.KJ,{priority:9,namespace:"intro"}), this.T.Dg([r]),this.S=!0))};g.T(wM,g.u);wM.prototype.onClick=function(){this.T.Im()}; wM.prototype.UE=function(){var r=!0;g.FG(this.T.N())&&(r=r&&this.T.gs().getPlayerSize().width>=480);this.Ok(r);this.updateValue("icon",this.T.lk()?{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,D:{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"}}]}: {J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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.T(dtU,g.u);dtU.prototype.eC=function(){this.G=null;g.u.prototype.eC.call(this)};g.T(bx,g.u);bx.prototype.onClick=function(){this.T.Bs("innertubeCommand",this.X)}; bx.prototype.V=function(r){r!==this.C&&(this.update({title:r,ariaLabel:r}),this.C=r);r?this.show():this.hide()}; bx.prototype.j=function(){this.G.disabled=this.X==null;g.NA(this.G,"ytp-chapter-container-disabled",this.G.disabled);this.Uk()};g.T(OI,bx);OI.prototype.onClickCommand=function(r){g.U(r,fk)&&this.Uk()}; OI.prototype.updateVideoData=function(r,V){var I,d,a;r=g.U((I=V.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(a=d.playerOverlayRenderer)==null?void 0:a.decoratedPlayerBarRenderer,AI);I=g.U(r==null?void 0:r.playerBarActionButton,g.Q4);this.T.U("web_player_updated_entrypoint")&&(this.L=GK(I==null?void 0:I.text));this.X=I==null?void 0:I.command;bx.prototype.j.call(this)}; OI.prototype.Uk=function(){var r=this.T.U("web_player_updated_entrypoint")?this.L:"",V=this.Y.G,I,d=((I=this.T.getLoopRange())==null?void 0:I.type)==="clips";if(V.length>1&&!d){r=this.T.getProgressState().current*1E3;I=fl(V,r);r=V[I].title||"Chapters";if(I!==this.currentIndex||this.S)this.T.Bs("innertubeCommand",V[I].onActiveCommand),this.currentIndex=I;this.S=!1}else this.S=!0;bx.prototype.V.call(this,r)};g.T(W3,g.CB);W3.prototype.X=function(){var r;(r=this.element.parentElement)==null||r.classList.contains("ytp-right-controls-left");(this.G=!this.G)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; W3.prototype.isExpanded=function(){return this.G};g.T($1,g.u);$1.prototype.S=function(r){g.v(r.state,32)?fNv(this,this.api.GD()):this.Hp&&(g.v(r.state,16)||g.v(r.state,1))||this.fade.hide()}; $1.prototype.uI=function(){var r=this.api.getPlayerStateObject();(g.v(r,32)||g.v(r,16))&&e7S(this)}; $1.prototype.Y=function(){this.frameIndex=NaN;e7S(this)}; $1.prototype.hide=function(){this.G&&fNv(this,null);g.u.prototype.hide.call(this)};g.T(YZU,g.u);g.C=YZU.prototype;g.C.onClick=function(){var r=this;if(this.T.N().DM||this.T.N().L){this.T.logClick(this.element);try{this.T.toggleFullscreen().catch(function(V){r.dK(V)})}catch(V){this.dK(V)}}else qJ(this.message,this.element,!0)}; g.C.dK=function(r){String(r).includes("fullscreen error")?g.gj(r):g.BG(r);this.tN()}; g.C.tN=function(){this.disable();this.message.a8(this.element,!0)}; g.C.Xx=function(){bQ()===this.T.getRootNode()?this.S.start():(this.S.stop(),this.message&&this.message.hide())}; g.C.Fj=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var r=window.screen.width*.9,V=window.screen.height*.9,I=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(I>d!==r>V){var a=I;I=d;d=a}r>I&&V>d&&this.tN()}}; g.C.disable=function(){var r=this;if(!this.message){var V=(Tc(["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.p8(this.T,{J:"div",Yc:["ytp-popup","ytp-generic-popup"],D:{role:"alert",tabindex:"0"},B:[V[0],{J:"a",D:{href:"https://support.google.com/youtube/answer/6276924", target:this.T.N().V},OE:V[2]},V[4]]},100,!0);this.message.hide();g.S(this,this.message);this.message.subscribe("show",function(I){r.X.PS(r.message,I)}); g.g1(this.T,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.G)();this.G=null}}; g.C.UE=function(){var r=x3S(this.T),V=this.T.N().L&&this.T.getPlayerSize().width<250;this.Ok(r&&!V);var I;((I=this.T.N())==null?0:I.U("embeds_use_parent_visibility_in_ve_logging"))?this.T.logVisibility(this.element,this.Hp&&this.W):this.T.logVisibility(this.element,this.Hp)}; g.C.mV=function(r){if(r){var V={J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"g",Z:"ytp-fullscreen-button-corner-2",B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{J:"g",Z:"ytp-fullscreen-button-corner-3",B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{J:"g",Z:"ytp-fullscreen-button-corner-0",B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{J:"g", Z:"ytp-fullscreen-button-corner-1",B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};r=g.A6(this.T,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.T.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(I){g.gj(I)})}else V={J:"svg", D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"g",Z:"ytp-fullscreen-button-corner-0",B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{J:"g",Z:"ytp-fullscreen-button-corner-1",B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{J:"g",Z:"ytp-fullscreen-button-corner-2",B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{J:"g",Z:"ytp-fullscreen-button-corner-3", B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},r=g.A6(this.T,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});r=this.message?null:r;this.update({title:r,icon:V});this.X.lZ().Q_()}; g.C.eC=function(){this.message||((0,this.G)(),this.G=null);g.u.prototype.eC.call(this)}; g.C.IT=function(r){g.u.prototype.IT.call(this,r);var V;((V=this.T.N())==null?0:V.U("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Hp&&r)};g.T(Kl,g.u);Kl.prototype.onClick=function(){this.T.logClick(this.element);this.T.seekBy(this.G,!0);var r=this.G>0?1:-1,V=Math.abs(this.G),I;(I=this.T.El().xz)&&I.Xu(r,V);this.X.isActive()?this.S=!0:(r=["ytp-jump-spin"],this.G<0&&r.push("backwards"),this.element.classList.add.apply(this.element.classList,g.R(r)),g.r3(this.X))};g.T(R7,bx);R7.prototype.onClickCommand=function(r){g.U(r,M16)&&this.Uk()}; R7.prototype.updateVideoData=function(){var r,V;this.X=(r=jRr(this))==null?void 0:(V=r.onTap)==null?void 0:V.innertubeCommand;bx.prototype.j.call(this)}; R7.prototype.Uk=function(){var r="",V=this.Y.L,I,d=(I=jRr(this))==null?void 0:I.headerTitle;I=d?g.wF(d):"";var a;d=((a=this.T.getLoopRange())==null?void 0:a.type)==="clips";V.length>1&&!d&&(r=this.T.getProgressState().current*1E3,a=spi(V,r),r=a!=null?V[a].title:I,a!=null&&a!==this.currentIndex&&(this.T.Bs("innertubeCommand",V[a].onActiveCommand),this.currentIndex=a));bx.prototype.V.call(this,r)};g.T(tu,g.u);tu.prototype.onClick=function(){this.T.Bs("onCollapseMiniplayer");this.T.logClick(this.element)}; tu.prototype.UE=function(){this.visible=!this.T.isFullscreen();this.Ok(this.visible);this.T.logVisibility(this.element,this.visible&&this.W)}; tu.prototype.IT=function(r){g.u.prototype.IT.call(this,r);this.T.logVisibility(this.element,this.visible&&r)};g.T(y1,g.u);g.C=y1.prototype;g.C.dR=function(r){this.visible=r.width>=300||this.n8;this.Ok(this.visible);this.T.logVisibility(this.element,this.visible&&this.W)}; g.C.oXz=function(){this.T.N().TQ?this.T.isMuted()?this.T.unMute():this.T.mute():qJ(this.message,this.element,!0);this.T.logClick(this.element)}; g.C.onVolumeChange=function(r){this.setVolume(r.volume,r.muted)}; g.C.setVolume=function(r,V){var I=this,d=V?0:r/100,a=this.T.N();r=d===0?1:r>50?1:0;if(this.C!==r){var f=this.kc;isNaN(f)?EFS(this,r):yxj(this.GQ,function(n){EFS(I,f+(I.C-f)*n)},250); this.C=r}d=d===0?1:0;if(this.Y!==d){var e=this.V;isNaN(e)?N9X(this,d):yxj(this.QH,function(n){N9X(I,e+(I.Y-e)*n)},250); this.Y=d}a.TQ&&(a=g.A6(this.T,"Mute","m"),d=g.A6(this.T,"Unmute","m"),this.updateValue("title",V?d:a),this.update({"data-title-no-tooltip":V?"Unmute":"Mute"}),this.tooltip.Q_())}; g.C.IT=function(r){g.u.prototype.IT.call(this,r);this.T.logVisibility(this.element,this.visible&&r)}; var DtX=["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"],xtO=["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.T(g.Au,g.u);g.C=g.Au.prototype;g.C.onStateChange=function(r){this.Az(r.state);var V;((V=this.T.N())==null?0:V.U("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Hp&&this.W)}; g.C.Az=function(r){var V=g.GV(g.J(this.T.getVideoData())),I=!1;r.isOrWillBePlaying()?r=V?4:2:g.v(r,2)?(r=3,I=V):r=1;this.element.disabled=I;if(this.G!==r){V=null;switch(r){case 2:V=g.A6(this.T,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:V="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:V=g.A6(this.T,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:V="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}r=== 3?this.update({title:V,icon:sRi(r)}):(this.update({title:V}),(V=sRi(r))&&this.G&&this.G!==3?GWS(this.transition,this.element,V):this.updateValue("icon",V));this.tooltip.Q_();this.G=r}}; g.C.onVideoDataChange=function(){g.NA(this.element,"ytp-play-button-playlist",g.J6(this.T))}; g.C.pY=function(r){this.T.logClick(this.element);if(this.T.getPlayerStateObject().isOrWillBePlaying())this.T.pauseVideo();else{if(this.T.isMinimized()&&this.T.getPlayerStateObject().isCued()){var V={},I;if((I=this.T.getVideoData())==null?0:I.C)V.cttAuthInfo={token:this.T.getVideoData().C,videoId:this.T.getVideoData().videoId};uC("direct_playback",V);this.T.nw().timerName="direct_playback"}this.T.playVideo()}this.T.isMinimized()&&(r==null?void 0:r.type)==="click"&&this.element.blur()}; g.C.IT=function(r){g.u.prototype.IT.call(this,r);var V;((V=this.T.N())==null?0:V.U("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Hp&&r)};g.T(g.Gx,g.u);g.C=g.Gx.prototype;g.C.onVideoDataChange=function(){z7i(this);this.Y&&(this.pF(this.Y),this.Y=null);this.videoData=this.T.getVideoData(1);if(this.playlist=this.T.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Y=this.K(this.T,"progresssync",this.M_);this.S=MhX(this);c9O(this);this.xO(this.T.gs().getPlayerSize())}; g.C.xO=function(r){r=r===void 0?this.T.gs().getPlayerSize():r;var V,I=((V=this.T.getLoopRange())==null?void 0:V.type)==="clips";r=(g.J6(this.T)||this.G&&g.S$(this.T)&&!this.T.U("web_hide_next_button")||Cqj(this))&&!I&&(this.G||r.width>=400);this.Ok(r);this.T.logVisibility(this.element,r)}; g.C.onClick=function(r){this.T.logClick(this.element);var V=!0;this.L?V=g.xu(r,this.T):r.preventDefault();V&&(this.G&&this.T.getPresentingPlayerType()===5?this.T.publish("ytoprerollinternstitialnext"):this.G?(Ek(this.T.nw()),this.T.publish("playlistnextbuttonclicked",this.element),this.T.nextVideo(!0)):this.S?this.T.seekTo(0):(Ek(this.T.nw()),this.T.publish("playlistprevbuttonclicked",this.element),this.T.previousVideo(!0)))}; g.C.M_=function(){var r=MhX(this);r!==this.S&&(this.S=r,c9O(this))}; g.C.eC=function(){this.X&&(this.X(),this.X=null);z7i(this);g.u.prototype.eC.call(this)};g.T(HCv,g.u);g.C=HCv.prototype;g.C.AY=function(r){this.V3(r.pageX);this.DE(r.pageX+r.deltaX);w0S(this)}; g.C.V3=function(r){this.QH=r-this.p8}; g.C.DE=function(r){r-=this.p8;!isNaN(this.QH)&&this.thumbnails.length>0&&(this.V=r-this.QH,this.thumbnails.length>0&&this.V!==0&&(this.S=this.j+this.V,r=KCU(this,this.S),this.S<=this.G/2&&this.S>=$tO(this)?(this.api.seekTo(r,!1,void 0,void 0,25),g.Be(this.bL,"transform","translateX("+(this.S-this.G/2)+"px)"),T9i(this,r)):this.S=this.j))}; g.C.BE=function(){this.kc&&(this.kc.ME=!0);var r=(0,g.m)()-this.Ws<300;if(Math.abs(this.V)<5&&!r){this.Ws=(0,g.m)();r=this.QH+this.V;var V=this.G/2-r;this.V3(r);this.DE(r+V);w0S(this);this.api.logClick(this.C)}w0S(this)}; g.C.im=function(){Fl(this,this.api.getCurrentTime())}; g.C.play=function(r){this.api.seekTo(KCU(this,this.S),void 0,void 0,void 0,26);this.api.playVideo();r&&this.api.logClick(this.playButton)}; g.C.onExit=function(r){this.api.seekTo(this.TQ,void 0,void 0,void 0,63);this.api.playVideo();r&&this.api.logClick(this.dismissButton)}; g.C.yy=function(r,V){this.p8=r;this.G=V;Fl(this,this.api.getCurrentTime())}; g.C.enable=function(){this.isEnabled||(this.isEnabled=!0,this.TQ=this.api.getCurrentTime(),T9i(this,this.TQ),g.NA(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.R7=this.K(this.element,"wheel",this.AY),this.logVisibility(this.isEnabled))}; g.C.disable=function(){this.isEnabled=!1;this.hide();g.NA(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.R7&&this.pF(this.R7);this.logVisibility(this.isEnabled)}; g.C.reset=function(){this.disable();this.Y=[];this.n8=!1}; g.C.logVisibility=function(r){this.api.logVisibility(this.element,r);this.api.logVisibility(this.C,r);this.api.logVisibility(this.dismissButton,r);this.api.logVisibility(this.playButton,r)}; g.C.eC=function(){for(;this.X.length;){var r=void 0;(r=this.X.pop())==null||r.dispose()}g.u.prototype.eC.call(this)}; g.T(bCp,g.u);g.T(OCO,g.u);g.T(R7i,g.u);g.T(lx,g.u);lx.prototype.YN=function(r){return r==="PLAY_PROGRESS"?this.j:r==="LOAD_PROGRESS"?this.L:r==="LIVE_BUFFER"?this.C:this.S};A9A.prototype.update=function(r,V,I,d){I=I===void 0?0:I;this.width=V;this.Y=I;this.G=V-I-(d===void 0?0:d);this.position=g.yv(r,I,I+this.G);this.S=this.position-I;this.X=this.S/this.G};g.T(G7i,g.u);g.T(g.Zt,g.CB);g.C=g.Zt.prototype; g.C.aX=function(){var r=!1,V=this.api.getVideoData();if(!V)return r;this.api.Zg("timedMarkerCueRange");LCi(this);for(var I=g.H(V.DM),d=I.next();!d.done;d=I.next()){d=d.value;var a=void 0,f=(a=this.L8[d])==null?void 0:a.markerType;a=void 0;var e=(a=this.L8[d])==null?void 0:a.markers;if(!e)break;if(f==="MARKER_TYPE_TIMESTAMPS"){r=g.H(e);for(f=r.next();!f.done;f=r.next()){a=f.value;f=new G7i;e=void 0;f.title=((e=a.title)==null?void 0:e.simpleText)||"";f.timeRangeStartMillis=Number(a.startMillis);f.G= Number(a.durationMillis);var n=e=void 0;f.onActiveCommand=(n=(e=a.onActive)==null?void 0:e.innertubeCommand)!=null?n:void 0;SZi(this,f)}iCA(this,this.L);r=this.L;f=this.uZ;a=[];e=null;for(n=0;nD&&(e.end=D);D=MmX(D,D+E);a.push(D);e=D;f[D.id]=r[n].onActiveCommand}}this.api.Dg(a);this.GR=this.L8[d];r=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.L8[d];E=x=a=D=n=e=void 0;if(d&& d.markers){f=(a=(E=d.markersMetadata)==null?void 0:(x=E.heatmapMetadata)==null?void 0:x.minHeightDp)!=null?a:0;a=(e=(D=d.markersMetadata)==null?void 0:(n=D.heatmapMetadata)==null?void 0:n.maxHeightDp)!=null?e:60;e=this.G.length;n=null;for(D=0;D=E&&M<=N&&x.push(z)}a>0&&(this.kc.style.height= a+"px");E=this.Y[D];N=x;z=f;var w=a,b=D===0;b=b===void 0?!1:b;thO(E,w);c=N;M=E.X;b=b===void 0?!1:b;var W=1E3/c.length,K=[];K.push({x:0,y:100});for(var F=0;F0&&(n=x[x.length-1])}g.Xl(this)}a=void 0;f=[];if(d=(a=d.markersDecoration)==null?void 0:a.timedMarkerDecorations)for(d=g.H(d),a=d.next();!a.done;a=d.next())a=a.value,D=n=e=void 0,f.push({visibleTimeRangeStartMillis:(e=a.visibleTimeRangeStartMillis)!=null?e:-1,visibleTimeRangeEndMillis:(n=a.visibleTimeRangeEndMillis)!=null?n:-1,decorationTimeMillis:(D=a.decorationTimeMillis)!= null?D:NaN,label:a.label?g.wF(a.label):""});d=f;this.heatMarkersDecorations=d}}V.Yq=this.L;g.NA(this.element,"ytp-timed-markers-enabled",r);return r}; g.C.yy=function(){g.Xl(this);SZ(this);iCA(this,this.L);if(this.X){var r=g.pj(this.element).x||0;this.X.yy(r,this.C)}(r=this.api.getVideoData())&&!this.api.U("themed_progress_bar_refresh_on_resize_killswitch")&&h7v(this,r)}; g.C.onClickCommand=function(r){if(r=g.U(r,fk)){var V=r.key;r.isVisible&&V&&uvO(this,V)}}; g.C.wKH=function(r){this.api.Bs("innertubeCommand",this.uZ[r.id])}; g.C.Uk=function(){SZ(this);var r=this.api.getCurrentTime();(rthis.clipEnd)&&this.vF()}; g.C.gg=function(r){if(!r.defaultPrevented){var V=!1;switch(r.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);V=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);V=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);V=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);V=!0;break;case 38:this.api.U("enable_key_press_seek_logging")&&pl(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);V=!0;break;case 40:this.api.U("enable_key_press_seek_logging")&&pl(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),V=!0}V&&r.preventDefault()}}; g.C.xg=function(r,V){this.updateVideoData(V,r==="newdata")}; g.C.cq=function(){this.xg("newdata",g.J(this.api.getVideoData()))}; g.C.updateVideoData=function(r,V){V=V===void 0?!1:V;var I=!!r&&r.IL();I&&(r1(r)||oFr(this)?this.fn=!1:this.fn=r.allowLiveDvr,g.NA(this.api.getRootNode(),"ytp-enable-live-buffer",!(r==null||!r1(r))),this.api.U("enable_custom_playhead_parsing")&&h7v(this,r));EKX(this,this.api.RQ());if(V){if(I){V=r.clipEnd;this.clipStart=r.clipStart;this.clipEnd=V;v3(this);for(Q1(this,this.QH,this.Qa);this.Y.length>0;)this.Y.pop().dispose();this.heatMarkersDecorations=[];this.X_={};var d;(d=this.X)==null||d.reset(); hu(this);g.NA(this.api.getRootNode(),"ytp-fine-scrubbing-exp",Ju(this))}else this.vF();this.qf()}if(r){var a;d=((a=this.tI)==null?void 0:a.type)==="clips";if(a=!r.isLivePlayback){a=g.J(this.api.getVideoData());V=g.Gp(a);I=ZCi(a);var f;a=V!=null||I!=null&&I.length>0||((f=a.Y$)==null?void 0:f.length)>0}if(a&&!d){f=g.J(this.api.getVideoData());d=g.Gp(f);a=!1;if(d==null?0:d.markersMap){a=g.J(this.api.getVideoData());var e;a.Oy=((e=d.visibleOnLoad)==null?void 0:e.key)||a.Oy;e=g.H(d.markersMap);for(d=e.next();!d.done;d= e.next())d=d.value,d.key&&d.value&&(this.X_[d.key]=d.value,d.value.onChapterRepeat&&(a.JTL=d.value.onChapterRepeat));a.Oy!=null&&uvO(this,a.Oy);a=!0}var n;if(((n=f.Y$)==null?void 0:n.length)>0){n=g.e3.getState().entities;e=g.H(f.Y$);for(d=e.next();!d.done;d=e.next()){d=d.value;I=void 0;V=(I=ad(n,"macroMarkersListEntity",d))==null?void 0:I.markersList;var D=I=void 0;if(((I=V)==null?void 0:I.markerType)==="MARKER_TYPE_TIMESTAMPS"||((D=V)==null?void 0:D.markerType)==="MARKER_TYPE_HEATMAP")this.L8[d]= V}a=this.aX()||a}!a&&(n=ZCi(f))&&(B9S(this,n),f.jI=this.G,X0g(this));ryX(this,null);r.AX&&this.Y.length===0&&(r=r.AX,n=r.key,r.isVisible&&n&&uvO(this,n))}else FCp(this),LCi(this)}SZ(this)}; g.C.Ma=function(r){this.j&&!g.v(r.state,32)&&this.api.getPresentingPlayerType()!==3&&this.j.cancel();var V;((V=this.X)==null?0:V.isEnabled)&&g.v(r.state,8)&&this.api.pauseVideo();r=this.api.getPresentingPlayerType()===2||!this.api.RQ()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.NA(this.IB,"ytp-hide-scrubber-button",r)}; g.C.Is=function(r){var V=!!this.tI!==!!r,I=this.tI;this.tI=r;ryX(this,I);(r==null?void 0:r.type)!=="clips"&&r||(r?(this.updateValue("clipstarticon",wQA()),this.updateValue("clipendicon",wQA()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",NCg()),this.updateValue("clipendicon",EwS()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),V&&(this.updateVideoData(this.api.getVideoData(), !0),g.Xl(this)),v3(this));Q1(this,this.QH,this.Qa)}; g.C.n5H=function(r,V,I){var d=g.pj(this.element),a=gM(this).G,f=I?I.getAttribute("data-tooltip"):void 0,e=I?I.getAttribute("data-position"):void 0,n=I?I.getAttribute("data-offset-y"):void 0;n=n?Number(n):0;e&&(r=BC(this.S,Number(I.getAttribute("data-position")),0)*a+g.pj(this.progressBar).x);this.ya.x=r-d.x;this.ya.y=V-d.y;r=gM(this);I=ux(this,r);V=0;var D;if((D=this.api.getVideoData())==null?0:r1(D))(D=this.api.getProgressState().seekableEnd)&&I>D&&(I=D,r.position=BC(this.S,D)*gM(this).G),V=this.S.X; oFr(this)&&(V=this.S.X);D=f||g.tt(this.fn?I-this.S.G:I-V);V=r.position+this.wy;I-=this.api.N2();var x;if((x=this.X)==null||!x.isEnabled)if(this.api.GD()){if(this.G.length>1){x=mu(this,this.ya.x,!0);if(!this.tI)for(d=0;d1)for(d=0;d0)for(x=this.ya.x,d=g.H(this.L),a=d.next();!a.done;a=d.next())a=a.value,e=B3(this,a.timeRangeStartMillis/ (this.S.G*1E3),gM(this)),g.NA(a.element,"ytp-timed-marker-hover",e<=x&&e+6>=x);d=this.tooltip.scale;x=this.api.U("delhi_modern_web_player")?67:45;n=(isNaN(n)?0:n)-x*d;this.api.U("web_key_moments_markers")?this.GR?(x=spi(this.L,I*1E3),x=x!=null?this.L[x].title:""):(x=fl(this.G,I*1E3),x=this.G[x].title):(x=fl(this.G,I*1E3),x=this.G[x].title);x||(n+=16*d);this.tooltip.scale===.6&&(g.VO(this.api.N())?(n=this.api.gs().getPlayerSize().height-225,n=x?n+110:n+110+16):n=x?110:126);d=fl(this.G,I*1E3);this.n8= VEv(this,I,d)?d:VEv(this,I,d+1)?d+1:-1;g.NA(this.api.getRootNode(),"ytp-progress-bar-snap",this.n8!==-1&&this.G.length>1);d=!1;a=g.H(this.heatMarkersDecorations);for(e=a.next();!e.done;e=a.next()){e=e.value;var E=I*1E3;E>=e.visibleTimeRangeStartMillis&&E<=e.visibleTimeRangeEndMillis&&(x=e.label,D=g.tt(e.decorationTimeMillis/1E3),d=!0)}this.LJ!==d&&(this.LJ=d,this.api.logVisibility(this.XN,this.LJ));g.NA(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=160*this.tooltip.scale*2;a=x.length* (this.V?8.55:5.7);a=a<=d?a:d;e=a<160*this.tooltip.scale;d=3;!e&&a/2>r.position&&(d=1);!e&&a/2>this.C-r.position&&(d=2);this.api.N().L&&(n-=10);this.Y.length&&this.Y[0].IL&&(n-=14*(this.V?2:1),this.TQ||(this.TQ=!0,this.api.logVisibility(this.kc,this.TQ)));var N;if(Ju(this)&&(((N=this.X)==null?0:N.isEnabled)||this.a7>0)){var c;n-=((c=this.X)==null?0:c.isEnabled)?P3(this):this.a7}N=void 0;Ju(this)&&!this.api.U("web_player_hide_fine_scrubbing_edu")&&(N="Pull up for precise seeking",this.p8||(this.p8= !0,this.api.logVisibility(this.Gd,this.p8)));this.tooltip.Ci(V,I,D,!!f,n,x,d,N)}else this.tooltip.Ci(V,I,D,!!f,n);g.jN(this.api.getRootNode(),"ytp-progress-bar-hover");Pqj(this)}; g.C.qek=function(){this.qf();g.xS(this.api.getRootNode(),"ytp-progress-bar-hover");this.TQ&&(this.TQ=!1,this.api.logVisibility(this.kc,this.TQ));this.p8&&(this.p8=!1,this.api.logVisibility(this.Gd,this.p8))}; g.C.Xr7=function(r,V){var I=g.pj(this.element);this.Py=r-I.x;Ju(this)&&this.X&&(this.X.n8?Fl(this.X,this.api.getCurrentTime()):WCU(this.X),this.X.show(),g.NA(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.X.isEnabled));this.j7&&(this.j7.dispose(),this.j7=null);this.SA=V;this.KJ=this.api.getCurrentTime();this.G.length>1&&this.n8!==-1?this.api.seekTo(this.G[this.n8].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(ux(this,gM(this)),!1,void 0,void 0,7);g.jN(this.element,"ytp-drag");(this.BH= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.C.SeM=function(){if(Ju(this)&&this.X){var r=P3(this);this.a7>=r*.5?(this.X.enable(),Fl(this.X,this.api.getCurrentTime()),xgr(this,r)):hu(this)}if(g.v(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var V;if((V=this.X)==null?0:V.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.G.length>1&&this.n8!==-1)this.api.U("html5_enable_progress_bar_slide_seek_logging")&&pl(this,this.KJ,this.G[this.n8].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.G[this.n8].startTime/1E3,void 0,void 0,void 0,7);else{r=ux(this,gM(this));this.api.U("html5_enable_progress_bar_slide_seek_logging")&&pl(this,this.KJ,r,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(r,void 0,void 0,void 0,7);V=g.H(this.heatMarkersDecorations);for(var I=V.next();!I.done;I=V.next())I=I.value,r*1E3>=I.visibleTimeRangeStartMillis&&r*1E3<=I.visibleTimeRangeEndMillis&& this.api.logClick(this.XN)}g.xS(this.element,"ytp-drag");this.GQ&&(this.bL.src=this.GQ);this.BH&&!g.v(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.C.Ye0=function(r,V){var I=this,d=gM(this),a=ux(this,d);this.api.U("enable_custom_playhead_parsing")&&!this.api.gs().Kd&&(d.position>this.Py+2?this.Hy&&(this.bL.src=this.Hy):d.position1);this.Ok(r&&this.T.gs().getPlayerSize().width>=400);this.T.logVisibility(this.element,this.Hp);var V=1;r&&this.isActive()&&(V=2);if(this.G!==V){this.G=V;switch(V){case 1:this.updateValue("icon",{J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{J:"path",bJ:!0,D:{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.D9i())}g.NA(this.element,"ytp-remote-button-active",this.isActive())}}; rx.prototype.X=function(){if(this.T.getOption("remote","quickCast"))this.T.setOption("remote","quickCast",!0);else{var r=this.F_,V=this.element;if(r.NL())r.Co();else{r.initialize();a:{var I=g.H(r.e7.items);for(var d=I.next();!d.done;d=I.next())if(d=d.value,d.priority===1){I=d;break a}I=null}I&&(I.open(),r.a8(V));r.a8(V)}}this.T.logClick(this.element)};g.T(V5,g.u);V5.prototype.G=function(r){var V=this.T.N(),I=400;this.T.U("web_player_small_hbp_settings_menu")&&V.C?I=300:V.L&&(I=200);r=this.X&&r.width>=I;this.Ok(r);this.T.U("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,r&&this.W):this.T.logVisibility(this.element,r)}; V5.prototype.S=function(){if(this.F_.Hp)this.F_.Co();else{var r=g.WD(this.T.Gz());r&&!r.loaded&&(r.Ha("tracklist",{includeAsr:!0}).length||r.load());this.T.logClick(this.element);this.F_.a8(this.element)}}; V5.prototype.updateBadge=function(){var r=this.T.isHdr(),V=this.T.getPresentingPlayerType(),I=V!==2&&V!==3,d=g.BF(this.T),a=I&&!!g.Xd(this.T.Gz());V=a&&d.displayMode===1;d=a&&d.displayMode===2;I=(a=V||d)||!I?null:this.T.getPlaybackQuality();g.NA(this.element,"ytp-hdr-quality-badge",r);g.NA(this.element,"ytp-hd-quality-badge",!r&&(I==="hd1080"||I==="hd1440"));g.NA(this.element,"ytp-4k-quality-badge",!r&&I==="hd2160");g.NA(this.element,"ytp-5k-quality-badge",!r&&I==="hd2880");g.NA(this.element,"ytp-8k-quality-badge", !r&&I==="highres");g.NA(this.element,"ytp-3d-badge-grey",!r&&a&&V);g.NA(this.element,"ytp-3d-badge",!r&&a&&d)};g.T(IB,jW);IB.prototype.isLoaded=function(){var r=g.AW(this.T.Gz());return r!==void 0&&r.loaded}; IB.prototype.UE=function(){g.AW(this.T.Gz())!==void 0&&this.T.getPresentingPlayerType()!==3?this.G||(this.F_.LF(this),this.G=!0):this.G&&(this.F_.ao(this),this.G=!1);DC(this,this.isLoaded())}; IB.prototype.onSelect=function(r){this.isLoaded();r?this.T.loadModule("annotations_module"):this.T.unloadModule("annotations_module");this.T.publish("annotationvisibility",r)}; IB.prototype.eC=function(){this.G&&this.F_.ao(this);jW.prototype.eC.call(this)};g.T(dx,g.Jf);dx.prototype.UE=function(){var r=this.T.getAvailableAudioTracks();r.length>1?(this.WL(g.uE(r,this.G)),this.tracks=g.gP(r,this.G,this),this.countLabel.ys(r.length?" ("+r.length+")":""),this.publish("size-change"),this.lz(this.G(this.T.getAudioTrack())),this.enable(!0)):this.enable(!1)}; dx.prototype.FM=function(r){g.Jf.prototype.FM.call(this,r);this.T.setAudioTrack(this.tracks[r]);this.F_.q7()}; dx.prototype.G=function(r){return r.toString()};g.T(aB,jW); aB.prototype.X=function(){var r=this.T.getPresentingPlayerType();if(r!==2&&r!==3&&g.S$(this.T))this.G||(this.F_.LF(this),this.G=!0,this.S.push(this.K(this.T,"videodatachange",this.X)),this.S.push(this.K(this.T,"videoplayerreset",this.X)),this.S.push(this.K(this.T,"onPlaylistUpdate",this.X)),this.S.push(this.K(this.T,"autonavchange",this.Y)),r=g.J(this.T.getVideoData()),this.Y(r.autonavState),this.T.logVisibility(this.element,this.G));else if(this.G){this.F_.ao(this);this.G=!1;r=g.H(this.S);for(var V= r.next();!V.done;V=r.next())this.pF(V.value)}}; aB.prototype.Y=function(r){DC(this,r!==1)}; aB.prototype.onSelect=function(r){this.T.gQ(r?2:1);this.G&&(this.T.logVisibility(this.element,this.G),this.T.logClick(this.element))}; aB.prototype.eC=function(){this.G&&this.F_.ao(this);jW.prototype.eC.call(this)};g.T(ski,g.k6);ski.prototype.onClick=function(r){r.preventDefault();var V,I;(V=g.w1(this.T))==null||(I=V.iV())==null||I.Co();var d,a;(d=g.w1(this.T))==null||(a=d.PN())==null||a.a8(r.target)};g.T(cyr,g.Jf);g.C=cyr.prototype; g.C.us=function(){var r=this.T.getPresentingPlayerType();if(r!==2&&r!==3){this.bL=this.T.BG();var V=this.T.getAvailableQualityLevels();if(this.G){this.Y={};r=g.zm(this.T,"getAvailableQualityData",[]);r=g.H(r);for(var I=r.next();!I.done;I=r.next())I=I.value,this.Y[I.qualityLabel]=I;r=Object.keys(this.Y);V[V.length-1]==="auto"&&r.push("auto");this.GQ=new Set(V)}else if(this.C){I=g.zm(this.T,"getAvailableQualityData",[]);r=[];I=g.H(I);for(var d=I.next();!d.done;d=I.next())d=d.value,this.V[d.quality]= d,d.quality&&r.push(d.quality);V[V.length-1]==="auto"&&r.push("auto")}else r=V;g.P7i(this.T)&&this.T.Gf()&&r.unshift("missing-qualities");V=this.T.app.jC();I=V.getVideoData();if(!I.X||!I.X.video||I.X.video.qualityOrdinal<1080||I.jL)V=!1;else{d=/^qsa/.test(I.clientPlaybackNonce);var a="r";I.X.id.indexOf(";")>=0&&(d=/^[a-p]/.test(I.clientPlaybackNonce),a="x");d?(V.Hs("iqss",{trigger:a},!0),V=!0):V=!1}V&&r.unshift("inline-survey");this.WL(r);V=g.J(this.T.getVideoData()).cotn?!0:!1;I=this.kc.hZ();I=!g.VO(this.T.N())|| !(V===void 0?0:V)||!(I===void 0||I);V=this.X;I=I===void 0?!1:I;V.An&&g.NA(V.Fz("ytp-panel-footer"),"ytp-panel-hide-footer",I===void 0?!1:I);if(r.length){this.Nw();this.enable(!0);return}}this.enable(!1)}; g.C.Nw=function(){if(this.G){var r=this.T.getPreferredQuality();this.GQ.has(r)&&(this.L=this.T.getPlaybackQuality(),this.QH=this.T.getPlaybackQualityLabel(),r==="auto"?(this.lz(r),this.ys(this.Ce(r))):this.lz(this.QH))}else r=this.T.getPreferredQuality(),this.options[r]&&(this.L=this.T.getPlaybackQuality(),this.lz(r),r==="auto"&&this.ys(this.Ce(r)))}; g.C.FM=function(r){if(r!=="missing-qualities"){g.Jf.prototype.FM.call(this,r);var V=this.G?this.Y[r]:this.V[r];var I=V==null?void 0:V.quality,d=V==null?void 0:V.formatId,a=V==null?void 0:V.paygatedQualityDetails;V=a==null?void 0:a.endpoint;if(a){var f;a=(f=this.options[r])==null?void 0:f.element;this.T.logClick(a)}if(this.G){var e,n;if((e=g.U(V,g.xyG))==null?0:(n=e.popup)==null?0:n.notificationActionRenderer)this.T.Bs("innertubeCommand",V);else if(V){this.T.Bs("innertubeCommand",V);return}d?this.T.setPlaybackQuality(I, d):this.T.setPlaybackQuality(I)}else{if(this.C){var D,x;if((D=g.U(V,g.xyG))==null?0:(x=D.popup)==null?0:x.notificationActionRenderer)this.T.Bs("innertubeCommand",V);else if(V){this.T.Bs("innertubeCommand",V);return}}this.T.setPlaybackQuality(r)}this.F_.Co();this.us()}}; g.C.open=function(){for(var r=g.H(Object.values(this.options)),V=r.next();!V.done;V=r.next()){V=V.value;var I=void 0;this.T.hasVe((I=V)==null?void 0:I.element)&&(I=void 0,this.T.logVisibility((I=V)==null?void 0:I.element,!0))}g.Jf.prototype.open.call(this);this.T.logClick(this.element)}; g.C.jO=function(r,V,I){var d=this;if(r==="missing-qualities")return new g.k6({J:"a",Yc:["ytp-menuitem"],D:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.T.N().V,tabindex:"0",role:"menuitemradio"},B:[{J:"div",Yc:["ytp-menuitem-label"],OE:"{{label}}"}]},V,this.Ce(r));if(r!=="inline-survey"){var a,f=(a=this.G?this.Y[r]:this.V[r])==null?void 0:a.paygatedQualityDetails;a=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;V=g.Jf.prototype.jO.call(this,r,V,I);f?(this.T.createServerVe(V.element, this,!0),this.T.setTrackingParams(V.element,f)):a&&this.T.createClientVe(V.element,this,a,!0);return V}r=[{J:"span",OE:"Looks good?"}];I=g.H([!0,!1]);f=I.next();for(a={};!f.done;a={HT:void 0},f=I.next())a.HT=f.value,f=new g.u({J:"span",Z:"ytp-menuitem-inline-survey-response",B:[a.HT?HHS():c1X()],D:{tabindex:"0",role:"button"}}),f.listen("click",function(e){return function(){var n=d.T.app.jC();n.Hs("iqsr",{tu:e.HT});n.getVideoData().jL=!0;d.F_.Co();d.us()}}(a)),r.push(f); return new g.k6({J:"div",Z:"ytp-menuitem",D:{"aria-disabled":"true"},B:[{J:"div",Yc:["ytp-menuitem-label"],B:r}]},V)}; g.C.Ce=function(r,V){V=V===void 0?!1:V;if(r==="missing-qualities")return{J:"div",OE:"Missing options?"};if(r==="inline-survey")return"";var I=this.C||this.G?[CKi(this,r,V,!1)]:[MEi(this,r)];var d=this.T.getPreferredQuality();V||d!=="auto"||r!=="auto"||(I.push(" "),this.G?I.push(CKi(this,this.QH,V,!0,["ytp-menu-label-secondary"])):this.C?I.push(CKi(this,this.L,V,!0,["ytp-menu-label-secondary"])):I.push(MEi(this,this.L,["ytp-menu-label-secondary"])));return{J:"div",B:I}};g.T(fe,g.u);fe.prototype.init=function(){this.updateValue("minvalue",this.C);this.updateValue("maxvalue",this.L);this.updateValue("stepvalue",this.j);this.updateValue("slidervalue",this.G);TOi(this,this.G)}; fe.prototype.Y=function(){ee(this,Number(this.X.value));this.X.focus()}; fe.prototype.S=function(r){if(!r.defaultPrevented){switch(r.code){case "ArrowDown":r=-this.j;break;case "ArrowUp":r=this.j;break;default:return}ee(this,Math.min(this.L,Math.max(Number((this.G+r).toFixed(2)),this.C)))}};g.T(YW,fe);YW.prototype.Y=function(){fe.prototype.Y.call(this);this.V&&H6g(this)}; YW.prototype.bL=function(){this.QH()}; YW.prototype.kc=function(){this.T.setPlaybackRate(this.G,!0)}; YW.prototype.S=function(r){fe.prototype.S.call(this,r);this.QH();H6g(this);r.preventDefault()};g.T(ne,g.u);g.C=ne.prototype;g.C.init=function(){this.aJ(this.G);this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.S)}; g.C.Vt=function(r){if(!r.defaultPrevented){switch(r.keyCode){case 37:case 40:var V=-this.j;break;case 39:case 38:V=this.j;break;default:return}this.aJ(this.G+V);r.preventDefault()}}; g.C.xP=function(r){var V=this.G;V+=(r.deltaX||-r.deltaY)<0?-this.V:this.V;this.aJ(V);r.preventDefault()}; g.C.D4=function(r){r=(r-g.pj(this.Y).x)/this.QH*this.range+this.X;this.aJ(r)}; g.C.aJ=function(r,V){V=V===void 0?"":V;r=g.yv(r,this.X,this.S);V===""&&(V=r.toString());this.updateValue("valuenow",r);this.updateValue("valuetext",V);this.kc.style.left=(r-this.X)/this.range*(this.QH-this.n8)+"px";this.G=r}; g.C.focus=function(){this.R7.focus()};g.T(je,ne);je.prototype.bL=function(){this.T.setPlaybackRate(this.G,!0)}; je.prototype.aJ=function(r){ne.prototype.aJ.call(this,r,b6r(this,r).toString());this.C&&(w2v(this),this.GQ())}; je.prototype.updateValues=function(){var r=this.T.getPlaybackRate();b6r(this,this.G)!==r&&(this.aJ(r),w2v(this))};g.T(O6X,g.CB);O6X.prototype.focus=function(){this.G.focus()};g.T(W8A,WX);g.T($gX,g.Jf);g.C=$gX.prototype;g.C.Ce=function(r){return r==="1"?"Normal":r.toLocaleString()}; g.C.UE=function(){var r,V=(r=this.T.getVideoData())==null?void 0:r.uJ();r=this.T.getPresentingPlayerType(V);this.enable(r!==2&&r!==3);tEX(this)}; g.C.WL=function(r){g.Jf.prototype.WL.call(this,r);this.L&&this.L.X.focus()}; g.C.RN=function(r){g.Jf.prototype.RN.call(this,r);r?(this.QH=this.K(this.T,"onPlaybackRateChange",this.onPlaybackRateChange),tEX(this),K8i(this,this.T.getPlaybackRate())):(this.pF(this.QH),this.QH=null)}; g.C.onPlaybackRateChange=function(r){var V=this.T.getPlaybackRate();!this.Y&&this.V.includes(V)||RIO(this,V);K8i(this,r)}; g.C.jO=function(r,V,I){return r===this.G&&yyX(this.T)?g.Jf.prototype.jO.call(this,r,V,I,{J:"div",Z:"ytp-speed-slider-menu-footer",B:[this.L]}):g.Jf.prototype.jO.call(this,r,V,I)}; g.C.FM=function(r){g.Jf.prototype.FM.call(this,r);r===this.G?this.T.setPlaybackRate(this.C,!0):this.T.setPlaybackRate(Number(r),!0);yyX(this.T)&&r===this.G||this.F_.q7()}; g.C.M4=function(r){var V=r===this.G;this.Y=!1;V&&DW(this.T)&&!yyX(this.T)?(r=new W8A(this.T),g.tf(this.F_,r)):g.Jf.prototype.M4.call(this,r)};g.T(Gai,g.Jf);g.C=Gai.prototype;g.C.lz=function(r){g.Jf.prototype.lz.call(this,r)}; g.C.uN=function(r){return r.option.toString()}; g.C.getOption=function(r){return this.settings[r]}; g.C.Ce=function(r){return this.getOption(r).text||""}; g.C.FM=function(r){g.Jf.prototype.FM.call(this,r);this.publish("settingChange",this.setting,this.settings[r].option)};g.T(EB,g.$Z);EB.prototype.Ul=function(r){for(var V=g.H(Object.keys(r)),I=V.next();!I.done;I=V.next()){var d=I.value;if(I=this.EP[d]){var a=r[d].toString();d=!!r[d+"Override"];I.options[a]&&(I.lz(a),I.Y.element.setAttribute("aria-checked",String(!d)),I.G.element.setAttribute("aria-checked",String(d)))}}}; EB.prototype.x_=function(r,V){this.publish("settingChange",r,V)};g.T(Nf,g.Jf);Nf.prototype.G=function(r){return r.languageCode}; Nf.prototype.Ce=function(r){return this.languages[r].languageName||""}; Nf.prototype.FM=function(r){this.publish("select",r);this.T.logClick(this.element);g.yR(this.F_)};g.T(L8v,g.Jf);g.C=L8v.prototype;g.C.E8=function(r){return g.ho(r)?"__off__":r.displayName}; g.C.Ce=function(r){return r==="__off__"?"Off":r==="__translate__"?"Auto-translate":r==="__contribute__"?"Add subtitles/CC":r==="__correction__"?"Suggest caption corrections":(r==="__off__"?{}:this.tracks[r]).displayName}; g.C.FM=function(r){if(r==="__translate__")this.G.open();else if(r==="__contribute__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var V=g.pw(this.T.N(),g.J(this.T.getVideoData()));g.vC(V)}else if(r==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var I=Jyp(this);sB(this,I);g.Jf.prototype.FM.call(this,this.E8(I));var d,a;I=(V=this.T.getVideoData().getPlayerResponse())==null?void 0:(d=V.captions)==null?void 0:(a=d.playerCaptionsTracklistRenderer)== null?void 0:a.openTranscriptCommand;this.T.Bs("innertubeCommand",I);this.F_.q7();this.Y&&this.T.logClick(this.Y)}else{if(r==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();V=Jyp(this);sB(this,V);g.Jf.prototype.FM.call(this,this.E8(V));var f,e;V=(I=this.T.getVideoData().getPlayerResponse())==null?void 0:(f=I.captions)==null?void 0:(e=f.playerCaptionsTracklistRenderer)==null?void 0:e.openTranscriptCommand;this.T.Bs("innertubeCommand",V)}else this.T.logClick(this.element), sB(this,r==="__off__"?{}:this.tracks[r]),g.Jf.prototype.FM.call(this,r);this.F_.q7()}}; g.C.UE=function(){var r=this.T.getOptions();r=r&&r.indexOf("captions")!==-1;var V=this.T.getVideoData(),I=V&&V.i8,d,a=!((d=this.T.getVideoData())==null||!g.oa(d));d={};if(r||I){var f;if(r){var e=g.J(this.T.getOption("captions","track"));d=Hgr(this.T.getOption("captions","tracklist",{includeAsr:!0}));var n=a?[]:Hgr(this.T.getOption("captions","translationLanguages"));this.tracks=g.gP(d,this.E8,this);a=g.uE(d,this.E8);var D,x;Jyp(this)&&((f=V.getPlayerResponse())==null?0:(D=f.captions)==null?0:(x=D.playerCaptionsTracklistRenderer)== null?0:x.openTranscriptCommand)&&a.push("__correction__");if(n.length&&!g.ho(e)){if((f=e.translationLanguage)&&f.languageName){var E=f.languageName;f=n.findIndex(function(N){return N.languageName===E}); GSi(n,f)}F8i(this.G,n);a.push("__translate__")}f=this.E8(e)}else this.tracks={},a=[],f="__off__";a.unshift("__off__");this.tracks.__off__={};I&&a.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=e,a.push(f));this.WL(a);this.lz(f);e&&e.translationLanguage?this.G.lz(this.G.G(e.translationLanguage)):xfA(this.G);r&&this.C.Ul(g.J(this.T.getSubtitlesUserSettings()));this.countLabel.ys(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.T.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.C.PE=function(r){var V=g.J(this.T.getOption("captions","track"));V=g.IZ(V);V.translationLanguage=this.G.languages[r];sB(this,V)}; g.C.x_=function(r,V){if(r==="reset")this.T.resetSubtitlesUserSettings();else{var I={};I[r]=V;this.T.updateSubtitlesUserSettings(I)}lMi(this,!0);this.L.start();this.C.Ul(g.J(this.T.getSubtitlesUserSettings()))}; g.C.g5z=function(r){r||g.Is(this.L)}; g.C.eC=function(){g.Is(this.L);g.Jf.prototype.eC.call(this)}; g.C.open=function(){g.Jf.prototype.open.call(this);this.options.__correction__&&!this.Y&&(this.Y=this.options.__correction__.element,this.T.createClientVe(this.Y,this,167341),this.T.logVisibility(this.Y,!0))};g.T(Z6Z,g.R4);g.C=Z6Z.prototype; g.C.initialize=function(){if(!this.isInitialized){var r=this.T.N();this.isInitialized=!0;try{this.nK=new cyr(this.T,this)}catch(I){g.gj(Error("QualityMenuItem creation failed"))}g.S(this,this.nK);var V=new L8v(this.T,this);g.S(this,V);r.S||(V=new IB(this.T,this),g.S(this,V));r.enableSpeedOptions&&(V=new $gX(this.T,this),g.S(this,V));(g.FG(r)||r.C)&&(r.X||r.Ws)&&(V=new ski(this.T,this),g.S(this,V));r.Gd&&!r.U("web_player_move_autonav_toggle")&&(r=new aB(this.T,this),g.S(this,r));r=new dx(this.T,this); g.S(this,r);this.T.publish("settingsMenuInitialized");NOv(this.settingsButton,this.e7.ou())}}; g.C.LF=function(r){this.initialize();this.e7.LF(r);NOv(this.settingsButton,this.e7.ou())}; g.C.ao=function(r){this.Hp&&this.e7.ou()<=1&&this.hide();this.e7.ao(r);NOv(this.settingsButton,this.e7.ou())}; g.C.a8=function(r){this.initialize();this.e7.ou()>0&&g.R4.prototype.a8.call(this,r)}; g.C.Co=function(){this.qD?this.qD=!1:g.R4.prototype.Co.call(this)}; g.C.show=function(){g.R4.prototype.show.call(this);g.jN(this.T.getRootNode(),"ytp-settings-shown")}; g.C.hide=function(){g.R4.prototype.hide.call(this);g.xS(this.T.getRootNode(),"ytp-settings-shown")}; g.C.r$=function(r){this.T.logVisibility(this.element,r);this.T.publish("settingsMenuVisibilityChanged",r)};g.T(BOA,g.u);g.C=BOA.prototype;g.C.onClick=function(){if(gKg(this)&&(this.T.toggleSubtitles(),this.T.logClick(this.element),!this.isEnabled())){var r=!1,V=g.uQ(g.mL(),65);g.VO(this.T.N())&&V!=null&&(r=!V);r&&this.T.N().U("web_player_nitrate_promo_tooltip")&&this.T.publish("showpromotooltip",this.element)}}; g.C.mmC=function(r){var V,I;(V=g.w1(this.T))==null||(I=V.iV())==null||I.a8(r)}; g.C.isEnabled=function(){return!!this.T.getOption("captions","track").displayName}; g.C.UE=function(){var r=gKg(this),V=300;this.T.N().L&&(V=480);if(this.T.N().C){this.updateValue("title",g.A6(this.T,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var I=r}else{if(r)(I=this.Fz("ytp-subtitles-button-icon"))==null||I.setAttribute("fill-opacity","1"),this.updateValue("title",g.A6(this.T,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;(d=this.Fz("ytp-subtitles-button-icon"))== null||d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}I=!0}this.tooltip.Q_();I=I&&this.T.gs().getPlayerSize().width>=V;this.Ok(I);this.T.U("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,I&&this.W):this.T.logVisibility(this.element,I);r?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.C.IT=function(r){g.u.prototype.IT.call(this,r);this.T.N().U("embeds_use_parent_visibility_in_ve_logging")&&this.T.logVisibility(this.element,this.Hp&&r)};g.T(g.cf,g.u);g.C=g.cf.prototype; g.C.Uk=function(){var r=this.api.gs().getPlayerSize().width,V=this.V;this.api.N().L&&(V=400);V=r>=V&&(!zW(this)||!g.v(this.api.getPlayerStateObject(),64));this.Ok(V);g.NA(this.element,"ytp-time-display-allow-autohide",V&&r<400);r=this.api.getProgressState();if(V){var I=this.api.getPresentingPlayerType();V=this.api.getCurrentTime(I,!1);this.X&&(V-=r.airingStart);Mf(this)&&(V-=this.tI.startTimeMs/1E3);Mf(this)||zW(this)||!this.S||(V-=this.api.getDuration(I,!1));var d=g.tt(V);this.Y!==d&&(this.updateValue("currenttime", d),this.Y=d);I=Mf(this)?(this.tI.endTimeMs-this.tI.startTimeMs)/1E3:this.api.getDuration(I,!1);d=g.tt(I);this.C!==d&&(this.updateValue("duration",d),this.C=d,V&&(V=g.Tj("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.tt(V,!0),DURATION:g.tt(I,!0)}),this.updateValue("timeDisplayAriaLabel",V)))}S2S(this,r.isAtLiveHead);i6j(this,this.api.getLoopRange())}; g.C.onLoopRangeChange=function(r){var V=this.tI!==r;this.tI=r;V&&(this.Uk(),Ugv(this))}; g.C.St0=function(){this.api.setLoopRange(null)}; g.C.gNs=function(){this.S=!this.S;this.Uk()}; g.C.onVideoDataChange=function(r,V,I){this.updateVideoData((this.api.N().U("enable_topsoil_wta_for_halftime")||this.api.N().U("enable_topsoil_wta_for_halftime_live_infra"))&&I===2?this.api.getVideoData(1):V);this.Uk();Ugv(this)}; g.C.updateVideoData=function(r){this.Dc=r.isLivePlayback&&!r.ya;this.X=r1(r);this.isPremiere=r.isPremiere;g.NA(this.element,"ytp-live",zW(this))}; g.C.onClick=function(r){r.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.C.eC=function(){this.G&&this.G();g.u.prototype.eC.call(this)};g.T(mgj,g.u);g.C=mgj.prototype;g.C.Xx=function(){var r=this.api.tZ();this.S!==r&&(this.S=r,QkS(this,this.api.getVolume(),this.api.isMuted()))}; g.C.ED=function(r){this.Ok(r.width>=350)}; g.C.H7=function(r){if(!r.defaultPrevented){var V=r.keyCode,I=null;V===37?I=this.volume-5:V===39?I=this.volume+5:V===36?I=0:V===35&&(I=100);I!==null&&(I=g.yv(I,0,100),I===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(I)),r.preventDefault())}}; g.C.yB=function(r){var V=r.deltaX||-r.deltaY;r.deltaMode?this.api.setVolume(this.volume+(V<0?-10:10)):this.api.setVolume(this.volume+g.yv(V/10,-10,10));r.preventDefault()}; g.C.yPH=function(){Ce(this,this.G,!0,this.X,this.api.D9());this.V=this.volume;this.api.isMuted()&&this.api.unMute()}; g.C.lK=function(r){var V=this.S?78:52,I=this.S?18:12;r-=g.pj(this.j).x;this.api.setVolume(g.yv((r-I/2)/(V-I),0,1)*100)}; g.C.PlQ=function(){Ce(this,this.G,!1,this.X,this.api.D9());this.volume===0&&(this.api.mute(),this.api.setVolume(this.V))}; g.C.onVolumeChange=function(r){QkS(this,r.volume,r.muted)}; g.C.e9=function(){Ce(this,this.G,this.isDragging,this.X,this.api.D9())}; g.C.eC=function(){g.u.prototype.eC.call(this);g.xS(this.L,"ytp-volume-slider-active")};g.T(TW,fe);TW.prototype.onVolumeChange=function(r){if(this.V)this.V=!1;else{var V=r.volume;V===0||r.muted?ee(this,0):ee(this,V)}}; TW.prototype.Y=function(){fe.prototype.Y.call(this);this.QH(this.G)}; TW.prototype.S=function(r){fe.prototype.S.call(this,r);this.QH(this.G)}; TW.prototype.kc=function(r,V){this.V=!0;r===0||V?this.T.mute():(this.T.isMuted()&&this.T.unMute(),this.T.setVolume(r))};g.T(p2Z,g.u);g.T(Hf,g.u); Hf.prototype.onVideoDataChange=function(){var r=this.api.N();this.yy();this.visible=!!g.J(this.api.getVideoData()).videoId&&!g.V_(g.J(this.api.getVideoData(1)));this.Ok(this.visible);this.api.logVisibility(this.element,this.visible&&this.W);if(this.visible){var V=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",V)}r.S&&(this.G&&(this.pF(this.G),this.G=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.jN(this.element,"no-link")); V=this.api.N();r=g.J(this.api.getVideoData());var I="";V.S||(V=g.P8(V),V.indexOf("www.")===0&&(V=V.substring(4)),I=g.d1(r)?"Watch on YouTube Music":V==="youtube.com"?"Watch on YouTube":g.Tj("Watch on $WEBSITE",{WEBSITE:V}));this.updateValue("title",I)}; Hf.prototype.onClick=function(r){this.api.U("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var V=this.api.N(),I=this.api.getVideoUrl(!g.yY(r),!1,!0,!0);if(g.FG(V)){var d={};g.FG(V)&&g.zm(this.api,"addEmbedsConversionTrackingParams",[d]);I=g.Ly(I,d)}g.EH(I,this.api,r);this.api.U("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Hf.prototype.yy=function(){var r={J:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},B:[{J:"path",bJ:!0,Z:"ytp-svg-fill",D:{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 "}}]}, V=28666,I=g.J(this.api.getVideoData());this.api.isEmbedsShortsMode()?r={J:"svg",D:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},B:[{J:"path",D:{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.d1(I)&&(r={J:"svg",D:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},B:[{J:"path",D:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{J:"path",D:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{J:"path",D:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{J:"path",D:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{J:"path",D:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{J:"path",D:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{J:"path",D:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{J:"path",D:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{J:"path",D:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{J:"path",D:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{J:"path",D:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{J:"path",D:{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"}}]},V=216163);g.d1(I)?g.jN(this.element,"ytp-youtube-music-button"):g.xS(this.element,"ytp-youtube-music-button");r.D=Object.assign({},r.D,{"aria-hidden":"true"});this.updateValue("logoSvg",r);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,V,!0)}; Hf.prototype.IT=function(r){g.u.prototype.IT.call(this,r);this.api.logVisibility(this.element,this.visible&&r)};g.T(q2X,g.Su);g.C=q2X.prototype;g.C.uI=function(){if(this.T.U("web_player_max_seekable_on_ended")||!g.v(this.T.getPlayerStateObject(),2))this.progressBar.Uk(),this.p8.Uk()}; g.C.Zh=function(){this.Vh();if(this.Uj.X)this.uI();else if(this.progressBar.qf(),this.T.U("delhi_modern_web_player")){var r;(r=this.C)==null||uJA(r,!1)}}; g.C.QB=function(){this.uI();this.QH.start()}; g.C.Vh=function(){var r;if(r=!this.T.N().X){r=this.progressBar;var V=2*g.rv()*r.C;r=r.S.getLength()*1E3/r.api.getPlaybackRate()/V<300}r=r&&this.T.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;V=!r;this.Uj.X||(r=V=!1);V?this.GQ||(this.GQ=this.K(this.T,"progresssync",this.uI)):this.GQ&&(this.pF(this.GQ),this.GQ=null);r?this.QH.isActive()||this.QH.start():this.QH.stop()}; g.C.yy=function(){var r=this.T.tZ(),V=this.T.gs().getPlayerSize(),I=this.T.gs().Kd,d=oKp(this),a=kah(this),f=Math.max(V.width-d*2,100);if(this.Qa!==V.width||this.ya!==r||this.T.U("web_player_rtr_ctrls")&&this.G7!==I)this.Qa=V.width,this.ya=r,this.G7=I,this.Y.element.style.width=a+"px",this.Y.element.style.left=d+"px",g.jkj(this.progressBar,d,a,r),this.T.lZ().cj=a;I=this.S;f=Math.min(570*(r?1.5:1),f);r=Math.min(413*(r?1.5:1),Math.round((V.height-hIX(this))*.82));I.maxWidth=f;I.maxHeight=r;I.Af();this.Vh(); this.T.N().U("html5_player_dynamic_bottom_gradient")&&INA(this.DM,V.height)}; g.C.onVideoDataChange=function(){var r=g.J(this.T.getVideoData());this.EE.style.background=r.Mm?r.tL:"";this.bL&&nFA(this.bL,r.showSeekingControls);this.kc&&nFA(this.kc,r.showSeekingControls)}; g.C.YN=function(){return this.Y.element};g.T(rNX,Ot);g.C=rNX.prototype;g.C.uc=function(r){r.target!==this.dismissButton.element&&(this.onClickCommand&&this.T.Bs("innertubeCommand",this.onClickCommand),this.iy())}; g.C.iy=function(){this.enabled=!1;this.V.hide()}; g.C.onVideoDataChange=function(r,V){r==="dataloaded"&&VVj(this);r=[];var I,d,a,f;if(V=(f=g.U((I=V.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(a=d.playerOverlayRenderer)==null?void 0:a.suggestedActionsRenderer,gE_))==null?void 0:f.suggestedActions)for(I=g.H(V),d=I.next();!d.done;d=I.next())(d=g.U(d.value,SmY))&&g.U(d.trigger,Blm)&&r.push(d);if(r.length!==0){I=[];r=g.H(r);for(d=r.next();!d.done;d=r.next())if(d=d.value,a=g.U(d.trigger,Blm))f=(f=d.title)?g.wF(f):"View Chapters", V=a.timeRangeStartMillis,a=a.timeRangeEndMillis,V!=null&&a!=null&&d.tapCommand&&(I.push(new g.ex(V,a,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.T.Dg(I)}}; g.C.oE=function(){return this.enabled}; g.C.r$=function(){this.enabled?this.TQ.start():wn(this);this.Od()}; g.C.eC=function(){VVj(this);Ot.prototype.eC.call(this)};var $F={},Wf=($F.CHANNEL_NAME="ytp-title-channel-name",$F.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",$F.LINK="ytp-title-link",$F.SESSIONLINK="yt-uix-sessionlink",$F.SUBTEXT="ytp-title-subtext",$F.TEXT="ytp-title-text",$F.TITLE="ytp-title",$F);g.T($W,g.u);$W.prototype.onClick=function(r){this.api.logClick(this.element);var V=this.api.N(),I=this.api.getVideoUrl(!g.yY(r),!1,!0);g.FG(V)&&(V={},g.zm(this.api,"addEmbedsConversionTrackingParams",[V]),I=g.Ly(I,V));g.EH(I,this.api,r)}; $W.prototype.UE=function(){var r=g.J(this.api.getVideoData()),V=this.api.N();this.updateValue("title",r.title);var I={J:"a",Z:Wf.CHANNEL_NAME,D:{href:"{{channelLink}}",target:"_blank"},OE:"{{channelName}}"};this.api.N().S&&(I={J:"span",Z:Wf.CHANNEL_NAME,OE:"{{channelName}}",D:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",I);IGi(this);this.api.getPresentingPlayerType()===2&&(I=g.J(this.api.getVideoData()),I.videoId&&I.isListed&&I.author&&I.Qa&&I.profilePicture?(this.updateValue("channelLink", I.Qa),this.updateValue("channelName",I.author),this.updateValue("channelTitleFocusable","0")):IGi(this));I=V.externalFullscreen||!this.api.isFullscreen()&&V.VM;g.NA(this.link,Wf.FULLERSCREEN_LINK,I);V.kc||!r.videoId||I||g.V_(r)||V.S?this.G&&(this.updateValue("url",null),this.pF(this.G),this.G=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.G||(this.G=this.K(this.link,"click",this.onClick)));V.S&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.FG(V)?r.expandedTitle: r.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.T(g.RB,g.u);g.C=g.RB.prototype;g.C.setEnabled=function(r){if(this.type!=null)if(r)switch(this.type){case 3:case 2:aGU(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=r}; g.C.Ci=function(r,V,I,d,a,f,e,n){if(!this.bL||this.env.L){this.type===3&&this.qf();this.type!==1&&(g.YS(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.X&&this.X.dispose(),(this.X=this.api.GD())&&this.X.subscribe("l",this.vP,this));if(n){var D=g.Pe(this.bg).height||141;this.GQ.style.bottom=D+2+"px"}else this.GQ.style.display="none";this.env.U("delhi_modern_web_player")?this.update({pillTimeStamp:I,pillTitle:f!=null?f:"",eduText:n!=null?n:""}):(this.update({text:I, title:f!=null?f:"",eduText:n!=null?n:""}),g.NA(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!f));this.api.isInline()&&g.jN(this.bottomText,"ytp-modern-tooltip-text");g.NA(this.element,"ytp-text-detail",!!d);I=-1;this.X&&(I=SQ(this.X,243*this.scale),this.env.U("web_l3_storyboard")&&this.X.levels.length===4&&(I=this.X.levels.length-1),I=TIj(this.X,I,V));eUi(this,I);if(e)switch(V=g.Pe(this.element).width,e){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right= V+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=V/2+"px",this.title.style.textAlign="center"}fGA(this,!!d,r,a)}}; g.C.yj=function(){this.type===1&&this.qf()}; g.C.Qk=function(r,V){if(this.type)if(this.type===3)this.qf();else return;dVA(this,r,3,V)}; g.C.Q_=function(){this.G&&!this.L&&this.G.hasAttribute("title")&&(this.S=this.G.getAttribute("title")||"",this.G.removeAttribute("title"),this.C&&aGU(this))}; g.C.vP=function(r,V){r<=this.Y&&this.Y<=V&&(r=this.Y,this.Y=NaN,eUi(this,r))}; g.C.NsQ=function(){MyX(this.X,this.Y,243*this.scale)}; g.C.qf=function(){switch(this.type){case 2:var r=this.G;r.removeEventListener("mouseout",this.j);r.addEventListener("mouseover",this.n8);r.removeEventListener("blur",this.j);r.addEventListener("focus",this.n8);YEZ(this);break;case 3:YEZ(this);break;case 1:this.X&&(this.X.unsubscribe("l",this.vP,this),this.X=null),this.api.removeEventListener("videoready",this.V),this.QH.stop()}this.type=null;this.C&&this.fade.hide()}; g.C.L_=function(){if(this.G)for(var r=0;r=0;V--)if(this.Mu[V]===r){this.Mu.splice(V,1);break}Ff(this.Uj,64,this.Mu.length>0)}; g.C.W4=function(){this.api.Y_()&&this.api.Fc();return!!this.ER||NpZ(this)||g.Uk.prototype.W4.call(this)}; g.C.p5=VZ(3);g.C.m6=VZ(7);g.C.bf=VZ(10); g.C.zA=function(){var r=!this.W4(),V=r&&this.api.Y_()&&!g.v(this.api.getPlayerStateObject(),2)&&!g.V_(g.J(this.api.getVideoData()))&&!this.api.N().S&&!this.api.isEmbedsShortsMode(),I=this.sZ&&g.J6(this.api)&&g.v(this.api.getPlayerStateObject(),128);r||I?(this.I5.show(),this.NU.show()):(this.I5.hide(),this.NU.hide(),this.api.L_(this.Lj.element));V?this.qY.a8():this.qY.Co();this.cH&&PKv(this.cH,this.D_||!r);this.api.U("web_player_hide_overflow_button_if_empty_menu")&&slv(this);g.Uk.prototype.zA.call(this)}; g.C.RJ=function(r,V,I,d,a){r.style.left="";r.style.top="";r.style.bottom="";var f=g.Pe(r),e=d||this.cH&&g.eG(this.cH.YN(),V),n=d=null;I!=null&&e||(d=g.Pe(V),n=g.ve(V,this.api.getRootNode()),I==null&&(I=n.x+d.width/2));I-=f.width/2;e?(V=this.cH,d=oKp(V),n=kah(V),e=this.api.gs().getPlayerSize().height,I=g.yv(I,d,d+n-f.width),f=e-hIX(V)-f.height):g.eG(this.Lj.element,V)?(V=this.api.gs().getPlayerSize().width,I=g.yv(I,12,V-f.width-12),f=this.tZ()?this.cI:this.Es,this.api.N().playerStyle==="gvn"&&(f+= 20),this.sZ&&(f-=this.tZ()?26:18)):(V=this.api.gs().getPlayerSize(),I=g.yv(I,12,V.width-f.width-12),f=n.y>(V.height-d.height)/2?n.y-f.height-12:n.y+d.height+12);r.style.top=f+(a||0)+"px";r.style.left=I+"px"}; g.C.Zh=function(r){r&&(this.api.L_(this.Lj.element),this.cH&&this.api.L_(this.cH.YN()));this.E2&&(g.NA(this.contextMenu.element,"ytp-autohide",r),g.NA(this.contextMenu.element,"ytp-autohide-active",!0));g.Uk.prototype.Zh.call(this,r)}; g.C.eb=function(){g.Uk.prototype.eb.call(this);this.E2&&(g.NA(this.contextMenu.element,"ytp-autohide-active",!1),this.E2&&(this.contextMenu.hide(),this.TD&&this.TD.hide()))}; g.C.gL=function(r,V){var I=this.api.gs().getPlayerSize();I=new g.JV(0,0,I.width,I.height);if(r||this.Uj.X&&!this.W4()){if(this.api.N().TE||V)r=this.tZ()?this.cI:this.Es,I.top+=r,I.height-=r;this.cH&&(I.height-=hIX(this.cH))}return I}; g.C.Xx=function(r){var V=this.api.getRootNode();r?V.parentElement?(V.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.N().externalFullscreen||(V.parentElement.insertBefore(this.mq.element,V),V.parentElement.insertBefore(this.bG.element,V.nextSibling))):g.BG(Error("Player not in DOM.")):(V.setAttribute("aria-label","YouTube Video Player"),this.mq.detach(),this.bG.detach());this.yy();this.LR()}; g.C.tZ=function(){var r=this.api.N();return this.api.isFullscreen()&&!r.L||!1}; g.C.showControls=function(r){this.H0=!r;this.zA()}; g.C.yy=function(){var r=this.tZ();this.tooltip.scale=r?1.5:1;this.contextMenu&&g.NA(this.contextMenu.element,"ytp-big-mode",r);this.zA();this.api.U("web_player_hide_overflow_button_if_empty_menu")||slv(this);this.LR();var V=this.api.isEmbedsShortsMode();V&&r?(r=(this.api.gs().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Be(this.Lj.element,"padding-left",r+"px"),g.Be(this.Lj.element,"padding-right",r+"px")):V&&(g.Be(this.Lj.element,"padding-left",""),g.Be(this.Lj.element,"padding-right", ""));g.Uk.prototype.yy.call(this)}; g.C.F5=function(){if(NpZ(this)&&!g.J6(this.api))return!1;var r=g.J(this.api.getVideoData());return!g.FG(this.api.N())||this.api.getPresentingPlayerType()===2||!this.Nf||((r=this.Nf||r.Nf)?(r=r.embedPreview)?(r=r.thumbnailPreviewRenderer,r=r.videoDetails&&g.U(r.videoDetails,dHZ)||null):r=null:r=null,r&&r.collapsedRenderer&&r.expandedRenderer)?g.Uk.prototype.F5.call(this):!1}; g.C.LR=function(){g.Uk.prototype.LR.call(this);this.api.logVisibility(this.title.element,!!this.GL);this.Aj&&this.Aj.IT(!!this.GL);this.channelAvatar.IT(!!this.GL);this.overflowButton&&this.overflowButton.IT(this.Qx()&&!!this.GL);this.shareButton&&this.shareButton.IT(!this.Qx()&&!!this.GL);this.xo&&this.xo.IT(!this.Qx()&&!!this.GL);this.searchButton&&this.searchButton.IT(!this.Qx()&&!!this.GL);this.copyLinkButton&&this.copyLinkButton.IT(!this.Qx()&&!!this.GL);if(!this.GL){this.api.L_(this.Lj.element); for(var r=0;r5&&V.Hs("glrs",{cmt:I});V.seekTo(0,{seekSource:58});V.Hs("glrre",{cmt:I})}}; GW.prototype.eC=function(){this.G=null;g.X.prototype.eC.call(this)};g.T(g.Fh,dm);g.C=g.Fh.prototype;g.C.isView=function(){return!0}; g.C.CK=function(){var r=this.mediaElement.getCurrentTime();if(r1;N$(r.yz(),d-.01)&&!a&&(Le(this,4),I.isActive=!1,I.No=I.No||I.isActive,(this.W===1?this.G:this.X).Hs("sbh",{}),V.isActive=!0,V.No=V.No||V.isActive,this.W!==0&&(this.G.getVideoData().JJ=!0));r=this.Y.X;if(this.Y.G.isActive&&r.isActive&&(Le(this,5),this.W!==0)){r=this.X.Ru();I=this.G.Ru(); this.G.Hs("sbs",{citag:I==null?void 0:I.itag,nitag:r==null?void 0:r.itag});this.X.Hs("gitags",{pitag:I==null?void 0:I.itag,citag:r==null?void 0:r.itag});var f;(f=this.X)==null||f.j_()}}}; g.C.BP=function(){this.Tc()&&this.rY("player-reload-after-handoff")}; g.C.rY=function(r,V){V=V===void 0?{}:V;if(!this.h0()&&this.status.status!==6){var I=this.status.status>=4&&r!=="player-reload-after-handoff";this.status={status:Infinity,error:r};if(this.G&&this.X){var d=this.X.getVideoData().clientPlaybackNonce;this.G.vy(new Gk("dai.transitionfailure",Object.assign(V,{cpn:d,transitionTimeMs:this.Y2,msg:r})));this.G.bE(I)}this.TA.reject(r);this.dispose()}}; g.C.Tc=function(){return this.status.status>=4&&this.status.status<6}; g.C.eC=function(){RUh(this);this.G.unsubscribe("newelementrequired",this.BP,this);if(this.S){var r=this.S.X;this.S.G.ex.unsubscribe("updateend",this.s0,this);r.ex.unsubscribe("updateend",this.s0,this)}g.X.prototype.eC.call(this)}; g.C.vj=function(r){g.TQ(r,128)&&this.rY("player-error-event")};g.T(Jx,g.X);Jx.prototype.clearQueue=function(r,V){r=r===void 0?!1:r;V=V===void 0?!1:V;this.Y&&this.Y.reject("Queue cleared");this.app.N().U("html5_gapless_fallback_on_qoe_restart_v2")||V&&this.X&&this.X.bE(!1);ZW(this,r)}; Jx.prototype.nj=function(){return!this.G}; Jx.prototype.Tc=function(){var r;return((r=this.S)==null?void 0:r.Tc())||!1}; Jx.prototype.eC=function(){ZW(this);g.X.prototype.eC.call(this)};g.T(L9X,g.NK);g.C=L9X.prototype;g.C.getVisibilityState=function(r,V,I,d,a,f,e,n){return r?4:RCi()?3:V?2:I?1:d?5:a?7:f?8:e?9:n?10:0}; g.C.mV=function(r){this.fullscreen!==r&&(this.fullscreen=r,this.r$())}; g.C.setMinimized=function(r){this.X!==r&&(this.X=r,this.r$())}; g.C.setInline=function(r){this.inline!==r&&(this.inline=r,this.r$())}; g.C.JS=function(r){this.pictureInPicture!==r&&(this.pictureInPicture=r,this.r$())}; g.C.setSqueezeback=function(r){this.S!==r&&(this.S=r,this.r$())}; g.C.TZ=function(r){this.Y!==r&&(this.Y=r,this.r$())}; g.C.lk=function(){return this.G}; g.C.NR=function(){return this.fullscreen!==0}; g.C.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.C.JG=function(){return this.fullscreen}; g.C.isMinimized=function(){return this.X}; g.C.isInline=function(){return this.inline}; g.C.isBackground=function(){return RCi()}; g.C.uu=function(){return this.pictureInPicture}; g.C.Db=function(){return!1}; g.C.rM=function(){return this.S}; g.C.uh=function(){return this.Y}; g.C.r$=function(){this.publish("visibilitychange");var r=this.getVisibilityState(this.lk(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.uu(),this.Db(),this.rM(),this.uh());r!==this.C&&this.publish("visibilitystatechange");this.C=r}; g.C.eC=function(){AMX(this.W);g.NK.prototype.eC.call(this)};g.T(g.Xh,g.X);g.C=g.Xh.prototype;g.C.eC=function(){this.videoData=this.playerState=null;g.X.prototype.eC.call(this)}; g.C.addCueRange=function(){}; g.C.xs=function(){}; g.C.WS=function(){}; g.C.IN=function(){return!1}; g.C.Ey=function(){return!1}; g.C.S9=function(){return!1}; g.C.Fk=function(){}; g.C.iq=function(){}; g.C.YU=function(){}; g.C.bj=function(){return[]}; g.C.w3=function(){}; g.C.getAudioTrack=function(){return this.getVideoData().eA}; g.C.b5=function(){return null}; g.C.getAvailableAudioTracks=function(){return[]}; g.C.BG=function(){return[]}; g.C.OP=function(){return[]}; g.C.hT=function(){return""}; g.C.bz=function(){return[]}; g.C.Gi=function(){}; g.C.hP=function(){return 0}; g.C.yb=function(){return""}; g.C.getCurrentTime=function(){return 0}; g.C.X1=function(){}; g.C.Ru=function(){}; g.C.Qy=function(){return{}}; g.C.getDuration=function(){return 0}; g.C.Za=function(){return 0}; g.C.dF=function(){return 0}; g.C.gP=function(){return!1}; g.C.cL=function(){return 0}; g.C.CC=function(){return 0}; g.C.l7=VZ(15);g.C.vL=function(){return 0}; g.C.H1=function(){return!1}; g.C.Qu=function(){return 0}; g.C.Sx=function(){return null}; g.C.M3=function(){return null}; g.C.Wy=function(){return 0}; g.C.TU=function(){return 0}; g.C.X3=function(){return g.L(function(r){g.Hr(r)})}; g.C.W9=VZ(21);g.C.getPlaybackQuality=function(){return"auto"}; g.C.getPlaybackRate=function(){return 1}; g.C.getPlayerState=function(){this.playerState||(this.playerState=new g.nP);return this.playerState}; g.C.getPlayerType=function(){return 0}; g.C.getPlaylistSequenceForTime=function(){return null}; g.C.SI=function(){return function(){}}; g.C.e6=function(){return""}; g.C.getPreferredQuality=function(){return"unknown"}; g.C.mw=function(){}; g.C.getProximaLatencyPreference=function(){return 0}; g.C.GT=function(){return vk}; g.C.GD=function(){return null}; g.C.getStoryboardFormat=function(){return null}; g.C.getStreamTimeOffset=function(){return 0}; g.C.Ll=function(){return 0}; g.C.N2=function(){return 0}; g.C.zi=function(){return{AU:[],Ky:[],currentTime:0,gp:"",droppedVideoFrames:0,isGapless:!1,nj:!0,wM:0,Id:0,N9:0,ES:0,cM:0,BM:[],Tv:[],CH:null,playerState:this.getPlayerState(),a4:null,f$:"",totalVideoFrames:0}}; g.C.getUserAudio51Preference=function(){return 0}; g.C.getUserPlaybackQualityPreference=function(){return""}; g.C.getVideoData=function(){this.videoData||(this.videoData=new g.qC(this.yH),g.S(this,this.videoData));return this.videoData}; g.C.UB=function(){return null}; g.C.nU=function(){return null}; g.C.Ty=function(){}; g.C.getVideoLoadedFraction=function(){return 0}; g.C.So=function(){}; g.C.handleError=function(){}; g.C.bE=function(){}; g.C.TT=function(){}; g.C.MV=function(){return!1}; g.C.LC=VZ(46);g.C.Kl=function(){return!1}; g.C.hasSupportedAudio51Tracks=function(){return!1}; g.C.q$=function(){return!1}; g.C.lk=function(){return!1}; g.C.isAtLiveHead=function(){return!1}; g.C.oG=function(){return!0}; g.C.isGapless=function(){return!1}; g.C.isHdr=function(){return!1}; g.C.TO=function(){return!1}; g.C.Pl=function(){return!1}; g.C.lD=function(){return!1}; g.C.isProximaLatencyEligible=function(){return!1}; g.C.nj=function(){return!0}; g.C.Om=function(){return!1}; g.C.jW=function(){return!1}; g.C.l3=function(){}; g.C.wX=function(){}; g.C.xr=function(){}; g.C.LO=function(){}; g.C.j_=function(){}; g.C.Bt=function(){}; g.C.dA=function(){}; g.C.MH=function(){}; g.C.vB=function(){}; g.C.Oc=VZ(56);g.C.G0=VZ(27);g.C.Nc=function(){}; g.C.Sq=function(){}; g.C.pauseVideo=function(){}; g.C.playVideo=function(){return g.L(function(r){return r.return()})}; g.C.Fu=function(){}; g.C.OI=VZ(33);g.C.AZ=VZ(39);g.C.hm=function(){}; g.C.Hs=function(){}; g.C.lV=function(){}; g.C.b8=function(){}; g.C.Fw=function(){}; g.C.vy=function(){}; g.C.ND=function(){}; g.C.Eg=function(){}; g.C.Xw=function(){}; g.C.QW=function(){}; g.C.aW=function(){}; g.C.Q6=function(){}; g.C.OW=function(){}; g.C.removeCueRange=function(){}; g.C.q8=function(){}; g.C.Zg=function(){return[]}; g.C.GA=function(){}; g.C.Cj=function(){}; g.C.ea=function(){}; g.C.GI=function(){}; g.C.PF=function(){}; g.C.yU=function(){}; g.C.seekTo=function(){}; g.C.sendAbandonmentPing=function(){}; g.C.sendVideoStatsEngageEvent=function(){}; g.C.Z8=function(){}; g.C.pT=function(){}; g.C.setLoop=function(){}; g.C.b0=function(){}; g.C.setMediaElement=function(){}; g.C.Sa=function(){}; g.C.setPlaybackRate=function(){}; g.C.Ut=function(){}; g.C.tS=function(){}; g.C.bI=function(){}; g.C.setProximaLatencyPreference=function(){}; g.C.hf=function(){}; g.C.R3=function(){}; g.C.hS=function(){}; g.C.o3=function(){}; g.C.Xd=function(){}; g.C.setUserAudio51Preference=function(){}; g.C.VV=function(){}; g.C.YQ=function(){return!1}; g.C.Im=function(){}; g.C.XQ=function(){return!1}; g.C.qZ=function(){}; g.C.UW=function(){}; g.C.ZO=function(){}; g.C.stopVideo=function(){}; g.C.subscribe=function(){return NaN}; g.C.SU=function(){}; g.C.togglePictureInPicture=function(){}; g.C.oF=function(){return 0}; g.C.unsubscribe=function(){return!1}; g.C.N8=function(){}; g.C.Qi=function(){return!1}; g.C.JO=function(){}; g.C.Uw=function(){}; g.C.y3=function(){}; g.C.fR=function(){};g.T(g.Bf,g.X);g.C=g.Bf.prototype;g.C.eR=function(){return this.L}; g.C.r6=function(r){this.L=r}; g.C.jC=function(){return this.X}; g.C.FZ=function(r){this.X=r}; g.C.xM=VZ(52);g.C.CG=VZ(54);g.C.xN=function(r){return r?r===1?this.L:this.X.getVideoData().enableServerStitchedDai&&r===2?this.X.getVideoData().m0?this.S[2]||this.X:this.X:g.hI(this.X.getVideoData())&&r===2?this.S[2]||this.X:this.S[r]||null:this.X}; g.C.eC=function(){for(var r=g.H(Object.values(this.S)),V=r.next();!V.done;V=r.next())V.value.dispose();JNX(this);this.G.dispose();g.X.prototype.eC.call(this)};g.T(gx,g.X);g.C=gx.prototype;g.C.enqueue=function(r,V){if(r.Y!==this)return!1;if(this.segments.length===0||(V===void 0?0:V))this.G=r;this.segments.push(r);return!0}; g.C.RB=function(){return this.ZV||0}; g.C.rU=function(){return this.Y||0}; g.C.removeAll=function(){for(;this.segments.length;){var r=void 0;(r=this.segments.pop())==null||r.dispose()}this.X.clear();this.S=void 0}; g.C.eC=function(){this.removeAll();g.X.prototype.eC.call(this)}; g.T(pOp,g.X);g.C=pOp.prototype;g.C.RB=function(){return this.ZV}; g.C.rU=function(){return this.X}; g.C.getType=function(){return this.type}; g.C.getVideoData=function(){return this.videoData}; g.C.hT=function(){return this.videoData.clientPlaybackNonce}; g.C.qU=function(r){tR(r);this.videoData=r}; g.C.eC=function(){v3h(this);g.X.prototype.eC.call(this)};g.T(UB,g.u5);UB.prototype.Zl=function(){}; UB.prototype.getVideoData=function(){return this.videoData}; UB.prototype.getCurrentTime=function(){var r=this.j4,V=g.u5.prototype.getCurrentTime.call(this);return(r=IlZ(r,V*1E3))?V-r.start/1E3:V};g.Q5.prototype.WD=function(r,V){if(V===1)return this.G.get(r);if(V===2)return this.S.get(r);if(V===3)return this.X.get(r)}; g.Q5.prototype.u8=VZ(64);g.Q5.prototype.yY=function(r,V,I,d){I={x$:d,Cy:I};V?this.S.set(r,I):this.G.set(r,I)}; g.Q5.prototype.clearAll=function(){this.G.clear();this.S.clear();this.X.clear()}; g.T(g.mW,g.X);g.C=g.mW.prototype;g.C.Nz=function(r,V,I){return new g.ex(r,V,{id:I,namespace:"serverstitchedcuerange",priority:9})}; g.C.J6=function(r){var V=r.UX?r.UX*1E3:r.ZV,I=this.X.get(r.cpn);I&&this.playback.removeCueRange(I);this.X.delete(r.cpn);this.Y.delete(r.cpn);I=this.W.indexOf(r);I>=0&&this.W.splice(I,1);I=[];for(var d=g.H(this.C),a=d.next();!a.done;a=d.next())a=a.value,a.end<=V?this.playback.removeCueRange(a):I.push(a);this.C=I;xRA(this,0,V+r.durationMs)}; g.C.onCueRangeEnter=function(r){this.Ws.push(r);var V=r.getId();this.Ps({oncueEnter:1,cpn:V,start:r.start,end:r.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.hP()||0).toFixed(3)});var I=V==="";this.a7.add(r.X);var d=this.Y.get(V);if(I){var a;if(this.playback.getVideoData().uJ()&&((a=this.G)==null?0:a.uK)&&this.S){this.Uo=0;this.G=void 0;this.kc&&(this.events.pF(this.kc),this.kc=null);this.S="";this.L8=!0;return}}else if(this.Ps({enterAdCueRange:1}),this.playback.getVideoData().uJ()&& (d==null?0:d.QJ))return;if(this.L8&&!this.G)this.L8=!1,!I&&d&&(I=this.playback.getCurrentTime(),kW(this,{Wr:r,isAd:!0,ut:!0,Kw:I,adCpn:V},{isAd:!1,ut:!1,Kw:I}),this.SR=d.cpn,qf(this,d.videoData),Pf(this,d),r=vf(this,"midab",d),this.Ps(r),this.Uo=1),this.j=!1;else if(this.G){if(this.G.ut)this.Ps({a_pair_of_same_transition_occurs_enter:1,acpn:this.G.adCpn,transitionTime:this.G.Kw,cpn:V,currentTime:this.playback.getCurrentTime()}),d=this.playback.getCurrentTime(),r={Wr:r,isAd:!I,ut:!0,Kw:d,adCpn:V}, V={Wr:this.G.Wr,isAd:this.G.isAd,ut:!1,Kw:d,adCpn:this.G.adCpn},this.G.Wr&&this.a7.delete(this.G.Wr.X),kW(this,r,V);else{if(this.G.Wr===r){this.Ps({same_cue_range_pair_enter:1,acpn:this.G.adCpn,transitionTime:this.G.Kw,cpn:V,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:r.start,cueRangeEndTime:r.end});this.G=void 0;return}if(this.G.adCpn===V){V&&this.Ps({dchtsc:V});this.G=void 0;return}r={Wr:r,isAd:!I,ut:!0,Kw:this.playback.getCurrentTime(),adCpn:V};kW(this,r,this.G)}this.G=void 0; this.j=!1}else this.G={Wr:r,isAd:!I,ut:!0,Kw:this.playback.getCurrentTime(),adCpn:V}}; g.C.onCueRangeExit=function(r){var V=r.getId();this.Ps({oncueExit:1,cpn:V,start:r.start,end:r.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.hP()||0).toFixed(3)});var I=V==="",d=this.Y.get(V);if(this.playback.getVideoData().uJ()&&!I&&d){if(d.QJ)return;d.QJ=!0;this.V.clear();if(this.yH.U("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.IN()){var a=d.ZV;this.playback.OW(a/1E3,(a+d.durationMs)/1E3)}else this.playback.Hs("lifa",{remove:0})}if(this.a7.has(r.X))if(this.a7.delete(r.X), this.Ws=this.Ws.filter(function(f){return f!==r}),this.L8&&(this.j=this.L8=!1,this.Ps({cref:1})),this.G){if(this.G.ut){if(this.G.Wr===r){this.Ps({same_cue_range_pair_exit:1, acpn:this.G.adCpn,transitionTime:this.G.Kw,cpn:V,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:r.start,cueRangeEndTime:r.end});this.G=void 0;return}if(this.G.adCpn===V){V&&this.Ps({dchtsc:V});this.G=void 0;return}V={Wr:r,isAd:!I,ut:!1,Kw:this.playback.getCurrentTime(),adCpn:V};kW(this,this.G,V)}else if(this.Ps({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.G.adCpn,transitionTime:this.G.Kw,upcomingCpn:V,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.G.adCpn===V)return;this.G=void 0;this.j=!1}else this.G={Wr:r,isAd:!I,ut:!1,Kw:this.playback.getCurrentTime(),adCpn:V};else this.Ps({ignore_single_exit:1})}; g.C.AO=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,ZV:0,playerType:1,bl:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.C.XE=function(){if(this.dB)return!1;var r=void 0;this.SR&&(r=this.Y.get(this.SR));return this.playback.getVideoData().uJ()?!!r&&!r.QJ:!!r}; g.C.seekTo=function(r,V,I,d){r=r===void 0?0:r;V=V===void 0?{}:V;I=I===void 0?!1:I;d=d===void 0?null:d;if(this.playback.getVideoData().uJ()&&r<=this.GQ/1E3)this.playback.pauseVideo(),this.GQ=0,this.j=!0,this.playback.X3(),this.playback.seekTo(r),this.playback.playVideo();else if(this.j=!0,I)PuX(this,r,V);else{I=this.app.jC();var a=I===this.EE?this.X_:null;r5(this,!1);this.M2=r;this.dH=V;d!=null&&this.gH.start(d);I&&(this.X_=a||I.getPlayerState(),I.ZO(V),this.EE=I)}}; g.C.eC=function(){r5(this,!1);alX(this);flZ(this);g.X.prototype.eC.call(this)}; g.C.yh=function(r){this.CF=r;this.Ps({swebm:r})}; g.C.ZN=function(r,V,I){if(I&&V){var d=this.V.get(r);if(d){d.locations||(d.locations=new Map);var a=Number(V.split(";")[0]);I=new g.lY(I);this.Ps({hdlredir:1,itag:V,seg:r,hostport:Jj(I)});d.locations.set(a,I)}}}; g.C.Sp=function(r,V,I,d,a,f){var e=d===3,n=Y0i(this,r,V,d,I,f);if(!n){I_(this,V,e);var D=g.ebA(this,V)?"undec":"ncp";this.Ps({gvprp:D,mt:r,seg:V,tt:d,itag:I,ce:f});return null}e||this.V.set(V,n);f=n.ov;var x;d=((x=this.WD(V-1,d,a))==null?void 0:x.x$)||"";d===""&&this.Ps({eds:1});x=jWA(this,n.ssdaiAdsConfig);a=this.playback.getVideoData();var E;e=((E=a.X)==null?void 0:E.containerType)||0;E=a.hh[e];n=n.tp&&V>=n.tp?n.tp:void 0;E={WJ:f?N0A(this,f):[],Wc:x,x$:d,SG:n,DJ:bb(E.split(";")[0]),Vo:E.split(";")[1]|| ""};n={bT:E};this.ya&&(r={gvprpro:"v",sq:V,mt:r.toFixed(3),itag:I,acpns:((D=E.WJ)==null?void 0:D.join("_"))||"none",abid:f},this.Ps(r));return n}; g.C.bH=function(r){a:{if(!this.dB){var V=nLh(this,r);if(!(this.playback.getVideoData().uJ()&&(V==null?0:V.QJ)))break a}V=void 0}var I=V;if(!I)return this.Ps({gvprp:"ncp",mt:r}),null;V=I.ov;var d=jWA(this,I.ssdaiAdsConfig);I=I.tp&&I.zs&&r>=I.zs?I.tp:void 0;var a=this.playback.getVideoData(),f,e=((f=a.X)==null?void 0:f.containerType)||0;f=a.hh[e];f={WJ:V?N0A(this,V):[],Wc:d,SG:I,DJ:bb(f.split(";")[0]),Vo:f.split(";")[1]||""};var n;r={gvprpro:"v",mt:r.toFixed(3),acpns:((n=f.WJ)==null?void 0:n.join("_"))|| "none",abid:V};this.Ps(r);return f}; g.C.qE=function(r,V,I,d,a,f){var e=Number(I.split(";")[0]),n=d===3;r=Y0i(this,r,V,d,I,f);this.Ps({gdu:1,seg:V,itag:e,pb:""+!!r});if(!r)return I_(this,V,n),null;r.locations||(r.locations=new Map);if(!r.locations.has(e)){var D,x;f=(D=r.videoData.getPlayerResponse())==null?void 0:(x=D.streamingData)==null?void 0:x.adaptiveFormats;if(!f)return this.Ps({gdu:"noadpfmts",seg:V,itag:e}),I_(this,V,n),null;D=f.find(function(c){return c.itag===e}); if(!D||!D.url){var E=r.videoData.videoId;r=[];var N=g.H(f);for(d=N.next();!d.done;d=N.next())r.push(d.value.itag);this.Ps({gdu:"nofmt",seg:V,vid:E,itag:e,fullitag:I,itags:r.join(",")});I_(this,V,n);return null}r.locations.set(e,new g.lY(D.url,!0))}f=r.locations.get(e);if(!f)return this.Ps({gdu:"nourl",seg:V,itag:e}),I_(this,V,n),null;f=new Kh(f);this.CF&&(f.get("dvc")?this.Ps({dvc:f.get("dvc")||""}):f.set("dvc","webm"));(d=(N=this.WD(V-1,d,a))==null?void 0:N.x$)&&f.set("daistate",d);r.tp&&V>=r.tp&& f.set("skipsq",""+r.tp);(N=this.playback.getVideoData().clientPlaybackNonce)&&f.set("cpn",N);N=[];r.ov&&(N=N0A(this,r.ov),N.length>0&&f.set("acpns",N.join(",")));n||this.V.set(V,r);n=null;n=f.get("aids");d=f.fq();(d==null?void 0:d.length)>2048&&this.Ps({urltoolong:1,sq:V,itag:e,len:d.length});this.ya&&(d&&(f=r.cpn,a=r.ov,zbA(this,f,a),a&&!this.ll.has(a)&&(f=sWS(this,f,a),D=cPS(this,a),this.Ps({iofa:f}),this.Ps({noawnzd:D-f}),this.Ps({acpns:N.join("."),aids:(E=n)==null?void 0:E.replace(/,/g,".")}), this.ll.add(a))),this.Ps({gdu:"v",seg:V,itag:I,ast:r.ZV.toFixed(3),alen:r.durationMs.toFixed(3),acpn:r.cpn,avid:r.videoData.videoId}));return d}; g.C.CT=function(r,V,I){I=I===void 0?!1:I;var d=V6(this,r,V);if(d){var a=void 0,f=d.ov;if(f){this.Ps({skipadonsq:V,sts:I,abid:f,acpn:d.cpn,avid:d.videoData.videoId});I=this.L.get(f);if(!I)return;I=g.H(I);for(f=I.next();!f.done;f=I.next())f=f.value,f.tp=V,f.zs=r,f.ZV>d.ZV&&(a=f)}this.S=d.cpn;DRr(this);r=this.playback.getCurrentTime();oB(this,d,a,r,r,!1,!0)}}; g.C.fK=function(){for(var r=g.H(this.W),V=r.next();!V.done;V=r.next())V=V.value,V.tp=NaN,V.zs=NaN;DRr(this);this.Ps({rsac:"resetSkipAd",sac:this.S});this.S=""}; g.C.WD=function(r,V,I){return this.p8.WD(r,V,I)}; g.C.u8=VZ(63); g.C.yY=function(r,V,I,d,a,f,e,n,D){d.length>0&&this.Ps({onssinfo:1,sq:r,start:V.toFixed(3),cpns:d.join(","),ds:a.join(","),isVideo:e?1:0});D&&this.p8.yY(r,e,n,D);if(e){if(d.length&&a.length)for(this.S&&this.S===d[0]&&this.Ps({skipfail:1,sq:r,acpn:this.S}),r=V+this.Ll(),e=0;e0&&(this.Uo=0,this.SR="",this.api.publish("serverstitchedvideochange"));this.playback.YU(I,d);return!0}; g.C.FL=function(){this.Ps({rstdaist:1});this.p8.clearAll()}; g.C.VT=function(r){var V;if(r!==((V=this.bL)==null?void 0:V.identifier))this.Ps({ignorenoad:r});else{this.rH.add(r);this.Ps({noadrcv:r});var I;((I=this.bL)==null?void 0:I.identifier)===r&&pe(this)}}; g.C.kA=function(){return this.Uo}; g.C.iT=function(){return this.SR}; g.C.xC=function(r){if(this.dB)return this.Ps({dai_disabled:r.event}),!1;if(this.playback.getVideoData().uJ()&&(this.yH.U("html5_lifa_no_gab_on_predict_start")&&r.event==="predictStart"||r.event==="continue"||r.event==="stop"))return this.Ps({cuepoint_skipped:r.event}),!1;var V=R8(this.api.Gz());if(V=V?V.xC(r):!1)this.QH={j0:r.identifier,UG:r.startSecs};else if(this.QH&&this.QH.j0===r.identifier&&r.startSecs>this.QH.UG+1){this.Ps({cueStChg:r.identifier,oldSt:this.QH.UG.toFixed(3),newSt:r.startSecs.toFixed(3), abid:this.QH.fg});if(this.QH.fg){var I=r.startSecs-this.QH.UG,d=this.L.get(this.QH.fg);if(d){d=g.H(d);for(var a=d.next();!a.done;a=d.next())a=a.value,a.ZV>=0&&(a.ZV+=I*1E3,this.yH.U("html5_ssdai_update_timeline_on_start_time_change")&&(a.bl+=I*1E3),this.Ps({newApEt:a.ZV,newApPrt:a.bl,acpn:a.cpn}))}}this.QH.UG=r.startSecs}return V}; g.C.Cp=function(r){return this.dB?!1:!!nLh(this,r)}; g.C.Wx=function(r){var V=this;if(this.yH.U("html5_lifa_ignore_multiple_skips")&&this.kc)return this.Ps({unfinished_skip:this.SR}),!1;this.playback.pauseVideo();var I=this.playback.getCurrentTime(),d=this.yH.U("html5_lifa_reset_segment_index_on_skip"),a=d?I+this.playback.Ll():I,f=this.Y.get(this.SR),e=this.X.get(this.SR);if(f){this.S=this.SR;this.j=!1;f.QJ=!0;I=this.playback.getCurrentTime();this.G={Wr:e,isAd:!0,ut:!1,Kw:I,adCpn:this.SR,uK:f,Mjs:r};this.playback.Xw(f,this.AO(),I,this.playback.getCurrentTime(), !1,!0,r,(0,g.m)());d&&this.playback.Nc();if(e==null?0:e.start)this.GQ=I*1E3-e.start;this.V.clear();this.playback.X3();this.SR=this.AO().cpn;qf(this,this.playback.getVideoData());this.api.publish("serverstitchedvideochange");this.playback.seekTo(a,{seekSource:89,YX:"lifa_skip"});this.playback.playVideo();this.kc||(this.kc=this.events.K(this.api,"progresssync",function(){V.J6(f)})); return!0}this.Ps({skipFail:I},!0);return!1}; g.C.Ps=function(r,V){((V===void 0?0:V)||this.ya||this.playback.getVideoData().uJ())&&this.playback.Hs("sdai",r)}; var rPj=0;g.T(MYO,g.mW);g.C=MYO.prototype;g.C.onCueRangeEnter=function(r){var V=r.getId();this.playback.Hs("sdai",{oncueEnter:1,cpn:V,start:r.start,end:r.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.hP()||0).toFixed(3)});r=this.Y.get(V);this.playback.Hs("sdai",{enterAdCueRange:1});V=this.SR||this.AO().cpn;var I;V=(I=this.Y.get(V))!=null?I:this.AO();r&&(I={ID:V,Z6:r,Kp:this.playback.getCurrentTime()},this.Ae(I))}; g.C.onCueRangeExit=function(r){var V=this.playback.getCurrentTime()*1E3;r=r.getId();for(var I=g.H(this.X.values()),d=I.next();!d.done;d=I.next())if(d=d.value,d.getId()!==r&&V>=d.start&&V<=d.end)return;if(V=this.Y.get(r))V={ID:V,Z6:this.AO(),Kp:this.playback.getCurrentTime()},this.Ae(V)}; g.C.Ae=function(r){this.S||this.j||this.nY(this.SR);var V=r.ID,I=r.Z6;if(I.cpn===this.SR)this.playback.Hs("sdai",{igtranssame:1,enter:I.cpn,exit:V.cpn});else{var d=this.j,a=!!this.S;this.S="";var f=r.Kp,e=V.playerType===2?V.ZV/1E3+V.videoData.TQ:this.AO().videoData.TQ;if(V.playerType===2&&I.playerType===2)a?this.playback.Hs("sdai",{igtransskip:1,enter:I.cpn,exit:V.cpn,seek:d,skip:this.S}):oB(this,V,I,e,f,d,a);else{this.SR=I.cpn;qf(this,I.videoData);r=r.QQ0;if(V.playerType===1&&I.playerType===2){this.GQ= 0;Pf(this,I);var n=vf(this,"c2a",I);this.playback.Hs("sdai",n);this.Uo++}else if(V.playerType===2&&I.playerType===1){n=V.videoData.TQ;this.api.publish("serverstitchedvideochange");var D=vf(this,"a2c");this.playback.Hs("sdai",D);this.Uo=0;this.GQ=n*1E3;this.Gd=e;H7Z(this,V.ov)}this.playback.Xw(V,I,e,f,d,a,r)}this.S="";this.j=!1}}; g.C.seekTo=function(r,V,I,d){r=r===void 0?0:r;V=V===void 0?{}:V;I=I===void 0?!1:I;d=d===void 0?null:d;this.nY(this.SR);this.playback.getVideoData().uJ()&&r<=this.Gd?(this.playback.pauseVideo(),this.Gd=this.GQ=0,CJh(this,r)):g.mW.prototype.seekTo.call(this,r,V,I,d)}; g.C.CT=function(r,V,I){I=I===void 0?!1:I;var d=V6(this,r,V);if(d){var a=void 0,f=d.ov;if(f){this.playback.Hs("sdai",{skipadonsq:V,sts:I,abid:f,acpn:d.cpn,avid:d.videoData.videoId});I=this.L.get(f);if(!I)return;I=g.H(I);for(f=I.next();!f.done;f=I.next())f=f.value,f.tp=V,f.zs=r,f.ZV>d.ZV&&(a=f)}this.nY(this.SR);this.S=d.cpn;DRr(this);r=this.playback.getCurrentTime();oB(this,d,a,r,r,!1,!0);this.S="";this.j=!1}}; g.C.yY=function(r,V,I,d,a,f,e,n,D){d.length>0&&this.playback.Hs("sdai",{onssinfo:1,sq:r,start:V.toFixed(3),cpns:d.join(","),ds:a.join(","),isVideo:e?1:0});D&&this.p8.yY(r,e,n,D);if(e){if(d.length&&a.length)for(this.S&&this.S===d[0]&&this.playback.Hs("sdai",{skipfail:1,sq:r,acpn:this.S}),r=V+this.Ll(),I=0;I=0&&this.W.splice(r,1)}; g.C.nY=function(r){var V=r||this.SR,I=this.Y.get(V);if(I){r=I.videoData;var d,a;V=I.UX||((a=(d=this.X.get(V))==null?void 0:d.start)!=null?a:0)/1E3;d=this.playback.getCurrentTime()-V;r.TQ=d>0?d:0}else this.AO().videoData.TQ=this.playback.getCurrentTime()};g.T(WzS,g.X);g.C=WzS.prototype; g.C.X7=function(r,V){V=V===void 0?"":V;if(this.timeline.S===V)return!0;var I=this.timeline.G,d=I==null?void 0:I.getVideoData();if(!I||!d)return this.api.Hs("ssap",{htsm:I?0:1}),!1;if(this.api.U("html5_ssap_clear_timeline_before_update")){var a=this.timeline,f;(f=a.G)==null||v3h(f);a.X.clear()}a=I.hT();var e=!1;f=[];var n=new Map;I=[];var D=[],x=0,E=0,N=0,c=[];r=g.H(r);for(var z=r.next();!z.done;z=r.next())a:{var M=void 0,w=void 0,b=z.value,W=b.clipId;if(W){if(b.hC){N=b.hC.V4||0;z=b.hC.PM||1;var K= Number(((b.hC.ue||0)/(b.hC.Ex||1)*1E3).toFixed(0));N=z=K+Number((N/z*1E3).toFixed(0))}else z=K=N,this.On.has(W)||this.gq.add(W);var F=(w=n.get(W))!=null?w:0,l=this.timeline.S;w=!1;if(l&&this.api.U("html5_ssap_clear_timeline_before_update")){if(l=this.T6.get(W))l.start=K,l.end=z,w=!0}else{if(l){var B=W;l=K;var P=z,p=F,dA=HP(this.timeline,B);if(dA!=null&&dA.length){p=n){this.EW.set(r,I);KzX(this,r,V);this.E3.set(r,(0,g.m)());if(I=this.T6.get(V))for(I=I.getId().split(","),I=g.H(I),e=I.next();!e.done;e=I.next())e=e.value,e!==V&&this.gq.has(e)&&(this.gq.delete(e),this.On.add(e));this.nY();this.playback.seekTo(f.RB()/1E3);this.C5?(this.api.Hs("ssap",{gpfreload:this.SR}),O7U(this)||(this.C5=!1),this.playback.X3(!1,!1)):d&&this.playback.X3(!1,!1);a&&this.api.playVideo(1); return[r]}}}return[]}; g.C.X5=function(){var r=this.timeline.G;if(!r)return 0;var V=r.rU();r=g.H(r.G.values());for(var I=r.next();!I.done;I=r.next()){I=g.H(I.value);for(var d=I.next();!d.done;d=I.next())d=d.value,d.rU()>V&&(V=d.rU())}return V/1E3}; g.C.Wy=function(){var r=this.playback.getCurrentTime()*1E3;var V=APv(this,r);if(!V){var I=HP(this.timeline,this.SR);if(I){I=g.H(I);for(var d=I.next();!d.done;d=I.next())d=d.value,d.RB()>r&&(V=d)}}return V&&V.getType()===1?V.RB()/1E3:0}; g.C.getVideoData=function(r){if(r===2&&!this.XE()){if(this.Vf&&this.Sg.has(this.Vf))return this.Sg.get(this.Vf);this.api.Hs("ssap",{lpanf:""+AF(this)});return null}return llA(this)}; g.C.XE=function(){var r=HP(this.timeline,this.SR);return(r==null?0:r.length)?r[0].getType()===2:!1}; g.C.PD=function(){var r=HP(this.timeline,this.SR);return(r==null?0:r.length)?r[0].S:!1}; g.C.seekTo=function(r,V){V=V===void 0?{}:V;var I=G8j(this,this.playback.getCurrentTime());this.playback.seekTo(r+I/1E3,V)}; g.C.Nz=function(r,V,I){return new g.ex(r,V,{id:I,namespace:"ssap",priority:9})}; g.C.onCueRangeEnter=function(r){if(!this.RW.has(r.getId())){this.api.Hs("ssap",{oce:1,cpn:r.getId(),st:r.start,et:r.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.hP()||0).toFixed(3)});for(var V=r.getId().split(","),I=0;II+1)for(d=I+1;d0?V:0}; g.C.eC=function(){this.api.N().Ko()&&this.api.Hs("ssap",{di:""+this.SR,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.Sg.clear();this.gq.clear();this.RW.clear();this.EW.clear();this.E3.clear();this.On.clear();this.wb=[];b7p(this);this.MK="";g.lQ(this.events);g.X.prototype.eC.call(this)};g.T(B0Z,g.X);g.C=B0Z.prototype;g.C.onCueRangeEnter=function(r){if(this.G===this.app.jC()){var V=this.W.get(r);V?mRA(this,V.target,V.Y2,r):this.vy("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:r.toString()})}else if(V=this.X.find(function(a){return a.Pk.Wr===r})){var I=V.Pk,d=I.target; I=I.Y2;d?mRA(this,d,I,r):QWO(this,V.bl,I,r)}}; g.C.onQueuedVideoLoaded=function(){var r=this.L;nd(this);if(r){if(!YJ(this,r)){var V=this.app.jC();this.vy("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:V==null?void 0:V.getVideoData().clientPlaybackNonce,ccpn:""+r.playerVars.cpn})}this.app.jC().addCueRange(r.Pk.Wr)}}; g.C.seekTo=function(r,V,I,d){r=r===void 0?0:r;V=V===void 0?{}:V;d=d===void 0?null:d;if(I===void 0?0:I)XKv(this,r,V);else{I=this.app.jC()||null;var a=I===this.Y?this.C:null;jd(this,!1);this.QH=r;this.V=V;d!=null&&this.j.start(d);I&&(this.C=a||I.getPlayerState(),I.ZO(),this.Y=I)}}; g.C.R1=function(r){g.TQ(r,128)&&PJO(this)}; g.C.isManifestless=function(){return zV(this.G.getVideoData())}; g.C.eC=function(){jd(this,!1);k8p(this);g.X.prototype.eC.call(this)}; g.C.vy=function(r,V){this.G.vy(new Gk(r,V))}; var gLr=0;var hbZ="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.T(EW,g.X);g.C=EW.prototype;g.C.get=function(r){DY(this);var V=this.data.find(function(I){return I.key===r}); return V?V.value:null}; g.C.set=function(r,V,I){this.remove(r,!0);DY(this);r={key:r,value:V,expire:Infinity};I&&isFinite(I)&&(I*=1E3,r.expire=(0,g.m)()+I);for(this.data.push(r);this.data.length>this.S;)(I=this.data.shift())&&Nh(this,I,!0);xJ(this)}; g.C.remove=function(r,V){V=V===void 0?!1:V;var I=this.data.find(function(d){return d.key===r}); I&&(Nh(this,I,V),g.wP(this.data,function(d){return d.key===r}),xJ(this))}; g.C.removeAll=function(r){if(r=r===void 0?!1:r)for(var V=g.H(this.data),I=V.next();!I.done;I=V.next())Nh(this,I.value,r);this.data=[];xJ(this)}; g.C.eC=function(){var r=this;g.X.prototype.eC.call(this);this.data.forEach(function(V){Nh(r,V,!0)}); this.data=[]};g.T(sW,g.X);sW.prototype.Mh=function(r){if(r)return this.X.get(r)}; sW.prototype.eC=function(){this.G.removeAll();this.X.removeAll();g.X.prototype.eC.call(this)};g.GB6=zI(function(){var r=window.AudioContext||window.webkitAudioContext;try{return new r}catch(V){return V.name}});g.T(aaX,g.u);g.C=aaX.prototype;g.C.Zs=function(){g.DX(this.element,g.ZU.apply(0,arguments))}; g.C.Cj=function(){this.e4&&(this.e4.removeEventListener("focus",this.pZ),g.fy(this.e4),this.e4=null)}; g.C.tv=function(){this.h0();var r=this.app.N();r.Tw||this.Zs("tag-pool-enabled");r.C&&this.Zs(g.IC.HOUSE_BRAND);r.playerStyle==="gvn"&&(this.Zs("ytp-gvn"),this.element.style.backgroundColor="transparent");r.dH&&(this.VO=g.jl("yt-dom-content-change",this.resize,this));this.K(window,"orientationchange",this.resize,this);this.K(window,"resize",this.resize,this)}; g.C.w6=function(r){g.XG(this.app.N());this.L4=!r;cW(this)}; g.C.resize=function(){if(this.e4){var r=this.Xf();if(!r.isEmpty()){var V=!g.JS(r,this.gM.getSize()),I=jKU(this);V&&(this.gM.width=r.width,this.gM.height=r.height);r=this.app.N();(I||V||this.U$||r.dH)&&this.app.zQ.publish("resize",this.getPlayerSize())}}}; g.C.xg=function(r,V){this.updateVideoData(V)}; g.C.updateVideoData=function(r){if(this.e4){var V=this.app.N();oY&&(this.e4.setAttribute("x-webkit-airplay","allow"),r.title?this.e4.setAttribute("title",r.title):this.e4.removeAttribute("title"));this.e4.setAttribute("controlslist","nodownload");V.vR&&r.videoId&&(this.e4.poster=r.YG("default.jpg"))}V=g.Kk(r,"yt:bgcolor");this.g_.style.backgroundColor=V?V:"";this.BT=xm(g.Kk(r,"yt:stretch"));this.A5=xm(g.Kk(r,"yt:crop"),!0);g.NA(this.element,"ytp-dni",r.Mm);this.resize()}; g.C.setGlobalCrop=function(r){this.Z0=xm(r,!0);this.resize()}; g.C.setCenterCrop=function(r){this.HN=r;this.resize()}; g.C.mV=function(){}; g.C.getPlayerSize=function(){var r=this.app.N(),V=this.app.zQ.isFullscreen(),I=r.externalFullscreen&&g.FG(r);if(V&&vR()&&!I)return new g.LJ(window.outerWidth,window.outerHeight);I=!isNaN(this.wK.width)&&!isNaN(this.wK.height);var d=this.app.N().U("kevlar_player_enable_squeezeback_fullscreen_sizing");if(V&&!I&&d)return new g.LJ(this.element.clientWidth,this.element.clientHeight);if(V||r.au){if(window.matchMedia){r="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.T7&&this.T7.media=== r||(this.T7=window.matchMedia(r));var a=this.T7&&this.T7.matches}if(a)return new g.LJ(window.innerWidth,window.innerHeight)}else if(I)return this.wK.clone();return new g.LJ(this.element.clientWidth,this.element.clientHeight)}; g.C.Xf=function(){var r=this.app.N().U("enable_desktop_player_underlay"),V=this.getPlayerSize(),I=g.zM(this.app.N().experiments,"player_underlay_min_player_width");return r&&this.mN&&V.width>I?(r=g.zM(this.app.N().experiments,"player_underlay_video_width_fraction"),new g.LJ(Math.min(V.height*this.getVideoAspectRatio(),V.width*r),Math.min(V.height,V.width*r/this.getVideoAspectRatio()))):V}; g.C.getVideoAspectRatio=function(){return isNaN(this.BT)?eeX(this):this.BT}; g.C.getVideoContentRect=function(r){var V=this.Xf();r=Y4X(this,V,this.getVideoAspectRatio(),r);return new g.JV((V.width-r.width)/2,(V.height-r.height)/2,r.width,r.height)}; g.C.Jp=function(r){this.mN=r;this.resize()}; g.C.HW=function(){return this.Cm}; g.C.onMutedAutoplayChange=function(){cW(this)}; g.C.setInternalSize=function(r){g.JS(this.wK,r)||(this.wK=r,this.resize())}; g.C.eC=function(){this.VO&&g.Dj(this.VO);this.Cj();g.u.prototype.eC.call(this)};g.C=xzA.prototype;g.C.click=function(r,V){this.elements.has(r);this.G.has(r);var I=g.A8();I&&r.visualElement&&g.Du(I,r.visualElement,V)}; g.C.createClientVe=function(r,V,I,d){var a=this;d=d===void 0?!1:d;this.elements.has(r);this.elements.add(r);I=CQX(I);r.visualElement=I;var f=g.A8(),e=g.yo();f&&e&&(g.WR("combine_ve_grafts")?gD(Xc(),I,e):g.I6(g.kR)(void 0,f,e,I));V.addOnDisposeCallback(function(){a.elements.has(r)&&a.destroyVe(r)}); d&&this.X.add(r)}; g.C.createServerVe=function(r,V,I){var d=this;I=I===void 0?!1:I;this.elements.has(r);this.elements.add(r);V.addOnDisposeCallback(function(){d.destroyVe(r)}); I&&this.X.add(r)}; g.C.destroyVe=function(r){this.elements.has(r);this.elements.delete(r);this.S.delete(r);this.G.delete(r);this.X.delete(r)}; g.C.hw=function(r,V){this.clientPlaybackNonce!==V&&(this.clientPlaybackNonce=V,Bp(Xc(),r),E2i(this))}; g.C.setTrackingParams=function(r,V){this.elements.has(r);V&&(r.visualElement=g.R9(V))}; g.C.Ok=function(r,V,I){this.elements.has(r);V?this.G.add(r):this.G.delete(r);var d=g.A8(),a=r.visualElement;this.X.has(r)?d&&a&&(V?g.nB(d,[a]):g.jA(d,[a])):V&&!this.S.has(r)&&(d&&a&&g.Y5(d,a,void 0,I),this.S.add(r))}; g.C.hasVe=function(r){return this.elements.has(r)};g.T(g.Mh,g.X);g.Mh.create=function(r,V,I,d){try{var a=typeof r==="string"?r:"player"+g.dP(r),f=KC[a];if(f){try{f.dispose()}catch(n){g.BG(n)}KC[a]=null}var e=new g.Mh(r,V,I,d);e.addOnDisposeCallback(function(){KC[a]=null;e.jH&&e.jH()}); return KC[a]=e}catch(n){throw g.BG(n),(n&&n instanceof Error?n:Error(String(n))).stack;}}; g.C=g.Mh.prototype;g.C.dU=function(){return this.visibility}; g.C.r6=function(r){var V=this.eR();if(r!==V){r.getVideoData().autonavState=V.getVideoData().autonavState;V.N8(this.p7,this);var I=V.getPlaybackRate();V.dispose();this.Ek.r6(r);r.setPlaybackRate(I);r.SU(this.p7,this);TdZ(this)}}; g.C.va=function(){this.mJ||(this.mJ=g.DR(Q_(),wEO()));return this.mJ}; g.C.Cj=function(r){if(this.mediaElement){this.Vq&&(this.events.pF(this.Vq),this.Vq=null);g.lQ(this.Nu);this.jC().Cj(!0,!1,r);this.template.Cj();try{this.U("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.MD()}catch(V){g.gj(V)}this.mediaElement=null}}; g.C.FZ=function(r,V,I){I=I===void 0?!1:I;if(r!==this.jC()){this.logger.debug(function(){return"start set presenting player, type "+r.getPlayerType()+", vid "+r.getVideoData().videoId}); var d=null;I||(I=this.jC(),d=I.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),KY(this.HK,3),Sd(this,"cuerangesremoved",I.bz()),this.wq&&!r.isGapless()&&I.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),I=r.YQ()&&I.YQ(),this.hI.KT("iv_s"),ydS(this,I));r.getPlayerType()===1&&this.r6(r);t5p(this,r);this.Ek.FZ(r);this.mediaElement&&r.setMediaElement(this.mediaElement);r.SU(this.Bz,this);r.jW()?ddA(this,"setPresenting",!1):(this.xg("newdata",r,r.getVideoData()), d&&!g.s7(d,r.getPlayerState())&&this.Hz(new g.M5(r.getPlayerState(),d)),V=V&&this.U("html5_player_preload_ad_fix")&&r.getPlayerType()===1,r.Pl()&&!V&&this.xg("dataloaded",r,r.getVideoData()),(V=(V=r.getVideoData().X)&&V.video)&&this.zQ.fJ("onPlaybackQualityChange",V.quality),Sd(this,"cuerangesadded",r.bz()),V=r.getPlayerState(),g.v(V,2)?Rej(this):g.v(V,8)?r.playVideo():r.TO()&&r.pauseVideo(),V=this.eR(),r.getPlayerType()===2&&(r.getVideoData().qC=V.getVideoData().clientPlaybackNonce),r.getPlayerType()!== 2||this.QX()||(d=r.getVideoData(),V.Fu(d.clientPlaybackNonce,d.dH||"",d.breakType||0,d.xQ,d.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.C.Qq=function(){if(this.eR()!==this.jC()){var r=this.jC();this.logger.debug(function(){return"release presenting player, type "+r.getPlayerType()+", vid "+r.getVideoData().videoId}); this.FZ(this.eR())}}; g.C.OO=function(){return this.Ek}; g.C.xN=function(r){return this.Ek.xN(r)}; g.C.eR=function(){return this.Ek.eR()}; g.C.jC=function(){return this.Ek.jC()}; g.C.uO=VZ(50);g.C.fV0=function(){OW(this)||(this.logger.debug("application playback ready"),this.Ys(5))}; g.C.V4k=function(){if(!OW(this)){this.logger.debug("playback ready");heX(this);var r=this.jC(),V=r.getPlayerState();r.TO()?this.pauseVideo():V.isOrWillBePlaying()&&this.playVideo()}}; g.C.canPlayType=function(r){return J4(r)}; g.C.N=function(){return this.yH}; g.C.getVideoData=function(){return this.jC().getVideoData()}; g.C.Zc=VZ(19);g.C.Hr=function(){return this.eR().getVideoData()}; g.C.getVideoLoadedFraction=function(r){return(r=this.xN(r))?r.getVideoLoadedFraction():this.Ek.G.getVideoLoadedFraction()}; g.C.gs=function(){return this.template}; g.C.Gz=function(){return this.HK}; g.C.nw=function(){return this.hI}; g.C.tf=function(r){var V=this.xN(1);V&&V.pT(r)}; g.C.qv=function(){var r=this.HK.qv();this.zQ.publish("videoStatsPingCreated",r);return r}; g.C.getVolume=function(){return Math.round(this.zQ.getVolume())}; g.C.isMuted=function(){return this.zQ.isMuted()}; g.C.F1=function(){if(this.eR()===this.jC()&&this.tI)return this.tI.postId}; g.C.lDL=function(){var r=this;this.U("use_rta_for_player")||(g.Ai(this.yH)?g.jQ(this.yH,g.QW(this.getVideoData())).then(function(V){md(Q_(),V);LOi(r.getVideoData(),r.yH,r.va())}):LOi(this.getVideoData(),this.yH,this.va()))}; g.C.B4=function(r){this.zQ.publish("poTokenVideoBindingChange",r)}; g.C.oM=function(r){this.zQ.publish("d6de4videobindingchange",r)}; g.C.DS=function(){this.cz&&this.cz.DS()}; g.C.xS=function(r){this.cz=r}; g.C.YM=function(r){if(r===1){this.hI.tick("vr");var V=this.jC();V.WS();exX(this.hI,V.getVideoData(),kyi(this));Q_U(this.HK)}V=this.yH;if(eQ(V)&&V.j||g.g$(V)){var I;(((I=this.jC().getVideoData())==null?0:I.enableServerStitchedDai)||!this.QX())&&this.zQ.fJ("onAdStateChange",r)}}; g.C.setLoopVideo=function(r){var V=this.jC();V===this.eR()&&V.H1()!==r&&(V.setLoop(r),this.zQ.Bs("onLoopChange",r))}; g.C.getLoopVideo=function(){return this.jC().H1()}; g.C.setLoopRange=function(r){var V=!1;!!this.tI!==!!r?V=!0:this.tI&&r&&(V=this.tI.startTimeMs!==r.startTimeMs||this.tI.endTimeMs!==r.endTimeMs||this.tI.postId!==r.postId||this.tI.type!==r.type);if(V){V=this.jC();nk(V.getVideoData())&&V.Hs("slr",{et:(r==null?void 0:r.endTimeMs)||-1});V=this.eR();V.Zg("applooprange");if(r){var I=new g.ex(r.startTimeMs,r.endTimeMs,{id:"looprange",namespace:"applooprange"});V.addCueRange(I)}else{this.Hr().clipConfig=void 0;var d;((I=this.tI)==null?void 0:I.type)!=="repeatChapter"|| isNaN(Number((d=this.tI)==null?void 0:d.loopCount))||(I={loopCount:String(this.tI.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.N9("repeatChapterLoopEvent",I))}this.tI=r;this.zQ.Bs("onLoopRangeChange",r||void 0);this.eR()===this.jC()&&(this.QK(),V.iq())}}; g.C.getLoopRange=function(){return this.tI}; g.C.QK=function(){var r="",V=this.eR();this.tI?V!==this.jC()?r="pnea":Xgj(this,V.getCurrentTime())&&(this.tI.loopCount=0,r="ilr"):r="nlr";var I=this.jC();if(nk(I.getVideoData()))if(this.U("html5_gapless_log_loop_range_info")){var d,a;I.Hs("slrre",{rej:r,ct:V.getCurrentTime(),lst:(d=this.tI)==null?void 0:d.startTimeMs,let:(a=this.tI)==null?void 0:a.endTimeMs})}else I.Hs("slrre",{});r||g2Z(this)}; g.C.setPlaybackRate=function(r,V){if(!isNaN(r)){r=Osh(this,r);var I=this.eR();I.getPlaybackRate()!==r&&(I.setPlaybackRate(r),V&&!this.yH.Y&&g.X2("yt-player-playback-rate",r),this.zQ.fJ("onPlaybackRateChange",r))}}; g.C.getCurrentTime=function(r,V,I){V=V===void 0?!0:V;if(this.getPresentingPlayerType()===3)return this.Ek.BO.getCurrentTime();var d=r===2&&this.getVideoData().enableServerStitchedDai,a=g.hI(this.getVideoData()),f=null;d||a?f=this.jC():f=this.xN(r);if(!f)return this.Ek.G.getCurrentTime();r=this.Ek.C;if(a&&this.mK)return V=this.mK,f=f.getCurrentTime(),I?I=a_(V,I):(I=G8j(V,f),I=f-I/1E3),I;if(V){if(d&&this.gF&&(I=this.gF.GQ/1E3,I!==0))return I;I=by(this,f);return ly(this,I.getCurrentTime(),I)}return d&& r?(r.hT(),r.getCurrentTime()):f.getCurrentTime()}; g.C.CC=function(){var r=this.xN();if(!r)return this.Ek.G.CC();r=by(this,r);return ly(this,r.CC(),r)}; g.C.getDuration=function(r,V){V=V===void 0?!0:V;var I=this.getVideoData(),d=r===2&&I.enableServerStitchedDai,a=g.hI(I),f=null;d||a?f=this.jC():f=this.xN(r);if(!f)return this.Ek.G.getDuration();if(I.hasProgressBarBoundaries()&&!d&&!a){var e,n=Number((e=I.progressBarStartPosition)==null?void 0:e.utcTimeMillis),D;e=Number((D=I.progressBarEndPosition)==null?void 0:D.utcTimeMillis);if(!isNaN(n)&&!isNaN(e))return(e-n)/1E3}if(this.U("html5_gapless_duration_use_max_seekable_time")&&nk(I)&&!I.isLivePlayback)return Gw(this, r);if(a&&this.mK)return V=FzA(this.mK,this.mK.iT()),r===1&&V===0?f.getDuration():V;if(V)return f=w5(this,f),ly(this,f.getDuration(),f);d&&this.gF?(r=this.gF,f=f.getCurrentTime(),f=(f=dRZ(r,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f}; g.C.dF=function(r){var V=this.xN(r);return V?this.QX(V)?(V=w5(this,V),V.dF()-V.getCurrentTime()+this.getCurrentTime(r)):V.dF():this.Ek.G.dF()}; g.C.J7=function(){return this.r5}; g.C.addPlayerResponseForAssociation=function(r){this.mK&&this.mK.addPlayerResponseForAssociation(r)}; g.C.finishSegmentByCpn=function(r,V,I){return this.mK?this.mK.finishSegmentByCpn(r,V,I):[]}; g.C.tv=function(){this.template.tv();var r=this.zQ;r.state.element=this.template.element;var V=r.state.element,I;for(I in r.state.G)r.state.G.hasOwnProperty(I)&&(V[I]=r.state.G[I]);(r=JzX(this.template.element))&&this.events.K(this.template,r,this.onFullscreenChange)}; g.C.getDebugText=function(r){var V=this.eR().Qy(r),I=this.jC();if(I!==this.eR()){I=I.Qy(r);for(var d=g.H(Object.keys(I)),a=d.next();!a.done;a=d.next())a=a.value,V["ad"+a]=I[a];if(r){I=V;d={};if(a=Qv(document,"movie_player"))d.bounds=a.getBoundingClientRect(),d["class"]=a.className;a={};var f=g.vz("video-ads");f?(eXr(f,a),a.html=f.outerHTML):a.missing=1;f={};var e=g.vz("videoAdUiSkipContainer"),n=g.vz("ytp-ad-skip-button-container"),D=g.vz("ytp-skip-ad-button"),x=e||n||D;x?(eXr(x,f),f.ima=e?1:0,f.bulleit= n?1:0,f.component=D?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:a,skipButton:f});I.ad_skipBtnDbgInfo=d}}r&&this.mediaElement&&(V["0sz"]=""+(+Zh(this.mediaElement.getSize())===0),V.op=this.mediaElement.Uf("opacity"),I=this.mediaElement.by().y+this.mediaElement.getSize().height,V.yof=""+(+I<=0),V.dis=this.mediaElement.Uf("display"));r&&((r=(0,g.ci)())&&(V.gpu=r),(r=this.yH.playerStyle)&&(V.ps=r),this.yH.Ws&&(V.webview=1));V.debug_playbackQuality=this.zQ.getPlaybackQuality(1);V.debug_date=(new Date).toString(); V.origin=window.origin;V.timestamp=Date.now();delete V.uga;delete V.q;return JSON.stringify(V,null,2)}; g.C.getFeedbackProductData=function(){var r={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.N().experiments.experimentIds.join(", "),player_release:Y[85]},V;if(V=this.getPlayerStateObject().DD)r.player_error_code=V.errorCode,r.player_error_details=JSON.stringify(V.errorDetail);return r}; g.C.getPresentingPlayerType=function(r){if(this.appState===1)return 1;if(OW(this))return 3;var V;if(r&&((V=this.gF)==null?0:V.XE(this.getCurrentTime())))return 2;var I;return g.hI(this.getVideoData())&&((I=this.mK)==null?0:I.XE())?2:this.jC().getPlayerType()}; g.C.PD=function(){return g.hI(this.getVideoData())&&this.mK?this.mK.PD():!1}; g.C.getPlayerStateObject=function(r){return this.getPresentingPlayerType()===3?this.Ek.BO.getPlayerState():this.xN(r).getPlayerState()}; g.C.getAppState=function(){return this.appState}; g.C.bqC=function(r){switch(r.type){case "loadedmetadata":this.VA.start();r=g.H(this.Ft);for(var V=r.next();!V.done;V=r.next())V=V.value,PWU(this,V.id,V.Q1E,V.Hj0,void 0,!1);this.Ft=[];break;case "loadstart":this.hI.KT("gv");break;case "progress":case "timeupdate":cT(r.target.VX())>=2&&this.hI.KT("l2s");break;case "playing":g.aU&&this.VA.start();if(g.Ai(this.yH))r=!1;else{V=g.Xd(this.Gz());r=this.mediaElement.Uf("display")==="none"||Zh(this.mediaElement.getSize())===0;var I=zw(this.template),d=this.jC().getVideoData(), a=g.ih(this.yH);d=j3(d);V=!I||V||a||d||this.yH.a7;r=r&&!V}r&&(r=this.jC(),r.wX(),this.getVideoData().M2||(this.getVideoData().M2=1,this.le(),r.playVideo()))}}; g.C.iFC=function(r){this.zQ.k5("onLoadProgress",r)}; g.C.r9M=function(){this.zQ.publish("playbackstalledatstart")}; g.C.Hqz=function(r,V){this.zQ.publish("sabrCaptionsDataLoaded",r,V)}; g.C.agc=function(r){this.jC().R3(r)}; g.C.E5C=function(r){this.jC().hf(r)}; g.C.Ftz=function(r){r=by(this,this.jC());r=ly(this,r.getCurrentTime(),r);this.zQ.fJ("onVideoProgress",r);this.yH.Le&&u4S(this,this.visibility.uu())&&this.pauseVideo()}; g.C.EXz=function(){this.zQ.fJ("onAutoplayBlocked");var r=this.jC().getVideoData();r&&(r.hJ=!0);this.U("embeds_enable_autoplay_and_visibility_signals")&&g.FG(this.yH)&&(r={autoplayBrowserPolicy:dV(),autoplayIntended:aC(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.N9("embedsAutoplayStatusChanged",r))}; g.C.y98=function(){this.zQ.publish("progresssync")}; g.C.DJE=function(){this.zQ.k5("onPlaybackPauseAtStart")}; g.C.LKC=function(r){if(this.getPresentingPlayerType()===1){g.TQ(r,1)&&!g.v(r.state,64)&&this.Hr().isLivePlayback&&this.eR().isAtLiveHead()&&this.zQ.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.TQ(r,2)){if(this.tI&&this.tI.endTimeMs>=(this.getDuration()-1)*1E3){g2Z(this);return}Rej(this)}if(g.v(r.state,128)){var V=r.state;this.cancelPlayback(5);V=V.DD;JSON.stringify({errorData:V,debugInfo:this.getDebugText(!0)});this.zQ.fJ("onError",pcA(V.errorCode));this.zQ.k5("onDetailedError",{errorCode:V.errorCode, errorDetail:V.errorDetail,message:V.errorMessage,messageKey:V.jT,cpn:V.cpn});(0,g.m)()-this.yH.IB>6048E5&&this.zQ.k5("onReloadRequired")}V={};if(r.state.isPlaying()&&!r.state.isBuffering()&&!pq("pbresume","ad_to_video")&&pq("_start","ad_to_video")){var I=this.getVideoData();V.clientPlaybackNonce=I.clientPlaybackNonce;I.videoId&&(V.videoId=I.videoId);g.mI(V,"ad_to_video");Q2("pbresume",void 0,"ad_to_video");Q_U(this.HK)}this.zQ.publish("applicationplayerstatechange",r)}}; g.C.Hz=function(r){this.getPresentingPlayerType()!==3&&this.zQ.publish("presentingplayerstatechange",r)}; g.C.R1=function(r){HW(this,zN(r.state));g.v(r.state,1024)&&this.zQ.isMutedByMutedAutoplay()&&(y6(this,{muted:!1,volume:this.x9.volume},!1),Aq(this,!1))}; g.C.Zoz=function(r,V){r==="newdata"&&TdZ(this);this.zQ.publish("applicationvideodatachange",r,V)}; g.C.uhz=function(r,V){this.zQ.k5("onPlaybackAudioChange",this.zQ.getAudioTrack().uo.name);this.zQ.publish("internalaudioformatchange",this.zQ.getAudioTrack().uo.id,V)}; g.C.mGs=function(r){var V=this.jC().getVideoData();r===V&&this.zQ.fJ("onPlaybackQualityChange",r.X.video.quality)}; g.C.NP=function(){var r=this.Ek.S[2]||null;r&&(r=r.getVideoData(),this.jC().Hs("ssdai",{cleanaply:1,acpn:r==null?void 0:r.clientPlaybackNonce,avid:r.videoId,isDai:this.Hr().enableServerStitchedDai?1:0}),delete this.Ek.S[2])}; g.C.wrM=function(r,V){this.xg(r,this.jC(),V)}; g.C.xg=function(r,V,I){this.logger.debug(function(){return"on video data change "+r+", player type "+V.getPlayerType()+", vid "+I.videoId}); this.yH.Ko()&&V.Hs("vdc",{type:r,vid:I.videoId||"",cpn:I.clientPlaybackNonce||""});V===this.eR()&&(this.yH.wy=I.oauthToken);if(V===this.eR()){this.getVideoData().enableServerStitchedDai&&!this.gF?(this.eR().Hs("sdai",{initSstm:1}),this.gF=this.U("html5_enable_ssdai_transition_with_only_enter_cuerange")?new MYO(this.zQ,this.yH,this.eR(),this):new g.mW(this.zQ,this.yH,this.eR(),this)):!this.getVideoData().enableServerStitchedDai&&this.gF&&(this.gF.dispose(),this.gF=null,JNX(this.Ek));var d,a;!g.hI(this.getVideoData())|| r!=="newdata"&&r!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((d=this.r5.G)==null?void 0:(a=d.getVideoData())==null?void 0:a.clientPlaybackNonce)?!g.hI(this.getVideoData())&&this.mK&&(this.mK.dispose(),this.mK=null):(mVA(this.r5),this.NP(),d=iM(this.r5,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.r5.enqueue(d,!0),Se(this.r5,0,this.getDuration(1)*1E3,[d]),uZS(this.r5,this.getVideoData().clientPlaybackNonce,[d]),this.mK&&(this.mK.dispose(),this.mK=null),this.mK=new WzS(this.zQ, this.r5,this.eR()),this.Ek.eR().hS(this.mK))}if(r==="newdata")this.logger.debug("new video data, destroy modules"),KY(this.HK,2),this.zQ.publish("videoplayerreset",V);else{if(!this.mediaElement)return;r==="dataloaded"&&(this.eR()===this.jC()?(un(I.mM,I.SY),laA(this)):Gyg(this));V.getPlayerType()===1&&(this.yH.TQ&&f0O(this),this.getVideoData().isLivePlayback&&!this.yH.u_&&this.rY("html5.unsupportedlive",2,"DEVICE_FALLBACK"),I.isLoaded()&&((Vnp(I)||this.getVideoData().cR)&&this.zQ.publish("legacyadtrackingpingchange", this.getVideoData()),I.hasProgressBarBoundaries()&&isr(this)));this.zQ.publish("videodatachange",r,I,V.getPlayerType())}this.zQ.fJ("onVideoDataChange",{type:r,playertype:V.getPlayerType()});this.QK();(d=I.NI)?this.RZ.hw(d,I.clientPlaybackNonce):E2i(this.RZ)}; g.C.MM=function(){$J(this,null);this.zQ.k5("onPlaylistUpdate")}; g.C.prC=function(r){delete this.Lm[r.getId()];this.eR().removeCueRange(r);a:{r=this.getVideoData();var V,I,d,a,f,e,n,D,x,E,N=((V=r.p8)==null?void 0:(I=V.contents)==null?void 0:(d=I.singleColumnWatchNextResults)==null?void 0:(a=d.autoplay)==null?void 0:(f=a.autoplay)==null?void 0:f.sets)||((e=r.p8)==null?void 0:(n=e.contents)==null?void 0:(D=n.twoColumnWatchNextResults)==null?void 0:(x=D.autoplay)==null?void 0:(E=x.autoplay)==null?void 0:E.sets);if(N)for(V=g.H(N),I=V.next();!I.done;I=V.next())if(I= I.value,a=d=void 0,I=I.autoplayVideo||((d=I.autoplayVideoRenderer)==null?void 0:(a=d.autoplayEndpointRenderer)==null?void 0:a.endpoint),d=g.U(I,g.dt),f=a=void 0,I!=null&&((a=d)==null?void 0:a.videoId)===r.videoId&&((f=d)==null?0:f.continuePlayback)){r=I;break a}r=null}(V=g.U(r,g.dt))&&this.zQ.Bs("onPlayVideo",{sessionData:{autonav:"1",itct:r==null?void 0:r.clickTrackingParams},videoId:V.videoId,watchEndpoint:V})}; g.C.Ys=function(r){var V=this;r!==this.appState&&(this.logger.debug(function(){return"app state change "+V.appState+" -> "+r}),r===2&&this.getPresentingPlayerType()===1&&(HW(this,-1),HW(this,5)),this.appState=r,this.zQ.publish("appstatechange",r))}; g.C.rY=function(r,V,I,d,a){this.eR().Ut(r,V,I,d,a)}; g.C.GC=function(r,V){this.eR().handleError(new Gk(r,V))}; g.C.isAtLiveHead=function(r,V){V=V===void 0?!1:V;var I=this.xN(r);if(!I)return this.Ek.G.isAtLiveHead();r=w5(this,I);I=by(this,I);return r!==I?r.isAtLiveHead(ly(this,I.getCurrentTime(),I),!0):r.isAtLiveHead(void 0,V)}; g.C.cL=function(){var r=this.xN();return r?w5(this,r).cL():this.Ek.G.cL()}; g.C.seekTo=function(r,V,I,d,a){V=V!==!1;if(d=this.xN(d))this.appState===2&&R_(this),this.QX(d)?Ld(this)?this.gF.seekTo(r,{seekSource:a},V,I):this.j4.seekTo(r,{seekSource:a},V,I):g.hI(this.getVideoData())&&this.mK?this.mK.seekTo(r,{HJ:!V,Ay:I,YX:"application",seekSource:a}):d.seekTo(r,{HJ:!V,Ay:I,YX:"application",seekSource:a})}; g.C.seekBy=function(r,V,I,d){this.seekTo(this.getCurrentTime()+r,V,I,d)}; g.C.QL0=function(){this.zQ.fJ("SEEK_COMPLETE")}; g.C.dJC=function(){this.zQ.Bs("onAbnormalityDetected")}; g.C.e17=function(r){this.zQ.Bs("onSnackbarMessage",r)}; g.C.kdC=function(r){var V=this.jC(),I=V.getVideoData();if(this.appState===1||this.appState===2)I.startSeconds=r;this.appState===2?g.v(V.getPlayerState(),512)||R_(this):this.zQ.fJ("SEEK_TO",r)}; g.C.IRM=function(){this.zQ.publish("airplayactivechange");this.yH.U("html5_external_airplay_events")&&this.zQ.k5("onAirPlayActiveChange",this.zQ.lk())}; g.C.NhM=function(){this.zQ.publish("airplayavailabilitychange");this.yH.U("html5_external_airplay_events")&&this.zQ.k5("onAirPlayAvailabilityChange",this.zQ.iG())}; g.C.showAirplayPicker=function(){this.jC().Im()}; g.C.aRM=function(){this.zQ.publish("beginseeking")}; g.C.vXH=function(){this.zQ.publish("endseeking")}; g.C.getStoryboardFormat=function(r){return(r=this.xN(r))?w5(this,r).getStoryboardFormat():this.Ek.G.getStoryboardFormat()}; g.C.GD=function(r){return(r=this.xN(r))?w5(this,r).getVideoData().GD():this.Ek.G.GD()}; g.C.QX=function(r){r=(r||this.jC()).getVideoData();if(Ld(this))r=r===this.gF.playback.getVideoData();else a:{var V=this.j4;if(r===V.G.getVideoData()&&V.X.length)r=!0;else{V=g.H(V.X);for(var I=V.next();!I.done;I=V.next())if(r.Vy===I.value.Vy){r=!0;break a}r=!1}}return r}; g.C.YI=function(r,V,I,d,a,f,e,n){this.logger.debug(function(){return"Adding video to timeline id="+r.video_id+"\n lengthMs="+d+" enterTimeMs="+a}); var D="",x=Ld(this);this.jC().Hs("appattl",{sstm:this.gF?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:x});D=x?VYX(this.gF,r,V,I,d,a,f,e,n):URr(this.j4,r,I,d,a,f);this.logger.debug(function(){return"Video added to timeline id="+r.video_id+" timelinePlaybackId="+D}); return D}; g.C.vl=function(r,V,I,d,a,f,e,n){if(Ld(this)){var D=VYX(this.gF,r,V,I,d,a,f,e,n);this.logger.debug(function(){return"Remaining video added to timeline id="+r.video_id+" timelinePlaybackId="+D})}return""}; g.C.VT=function(r){var V;(V=this.gF)==null||V.VT(r)}; g.C.un=function(r,V){r=r===void 0?-1:r;V=V===void 0?Infinity:V;Ld(this)||k8p(this.j4,r,V)}; g.C.CE=function(r,V,I){if(Ld(this)){var d=this.gF,a=d.Bp.get(r);a?(I===void 0&&(I=a.bl),a.durationMs=V,a.bl=I):d.ML("Invalid_timelinePlaybackId_"+r+"_specified")}else{d=this.j4;a=null;for(var f=g.H(d.X),e=f.next();!e.done;e=f.next())if(e=e.value,e.Vy===r){a=e;break}a?(I===void 0&&(I=a.bl),oLX(d,a,V,I)):fd(d,"InvalidTimelinePlaybackId timelinePlaybackId="+r)}}; g.C.enqueueVideoByPlayerVars=function(r,V,I,d){I=I===void 0?Infinity:I;d=d===void 0?"":d;this.QX();r=new g.qC(this.yH,r);d&&(r.Vy=d);UzX(this,r,V,I)}; g.C.queueNextVideo=function(r,V,I,d,a){I=I===void 0?NaN:I;r=this.preloadVideoByPlayerVars(r,V===void 0?1:V,I,d===void 0?"":d,a===void 0?"":a);V=this.jC();r&&(this.U("html5_check_queue_on_data_loaded")?this.N().supportsGaplessShorts()&&V.getVideoData().j&&(I=this.Oa,d=this.wq.L,I.Y!==r&&(I.X=V,I.Y=r,I.S=1,I.G=r.getVideoData(),I.W=d,I.G.isLoaded()?I.C():I.G.subscribe("dataloaded",I.C,I))):(I=TpS(V,r,this.wq.L),I!=null?(V.Hs("sgap",I),V.getVideoData().j&&V.bE(!1)):(r=r.getVideoData(),V=this.Oa,V.G!== r&&(V.G=r,V.S=1,r.isLoaded()?V.L():V.G.subscribe("dataloaded",V.L,V)))))}; g.C.WA=function(r,V,I,d){var a=this;I=I===void 0?0:I;d=d===void 0?0:d;w5(this,this.jC()).b0();Gfi(this.wq,r,V,I,d).then(function(){a.zQ.k5("onQueuedVideoLoaded")},function(){})}; g.C.nj=function(){return this.wq.nj()}; g.C.pD=function(r){var V=this.wq.G;return V?V.S9(r):!1}; g.C.clearQueue=function(r,V){r=r===void 0?!1:r;V=V===void 0?!1:V;this.logger.debug("Clearing queue");this.wq.clearQueue(r,V)}; g.C.loadVideoByPlayerVars=function(r,V,I,d,a,f){V=V===void 0?1:V;var e=this.eR();if(V===2&&this.Hr().enableServerStitchedDai&&e&&!e.q$())return e.Hs("lvonss",{vid:(r==null?void 0:r.videoId)||"",ptype:V}),!1;var n=!1;e=new g.qC(this.yH,r);e.reloadPlaybackParams=f;g.dv(this.yH)&&!e.iz&&Ek(this.hI);var D;f=this.hI;var x=(D=e.QH)!=null?D:"";f.timerName=x;this.hI.zY("pl_i");this.U("web_player_early_cpn")&&e.clientPlaybackNonce&&this.hI.infoGel({clientPlaybackNonce:e.clientPlaybackNonce});AJh(e).supportsVp9Encoding=== !1&&this.jC().Hs("noVp9enc",{});if(this.N().supportsGaplessShorts()){D=lGi(this.wq,e,V);if(D==null){HW(this,-1);r=this.wq;r.app.N().U("html5_gapless_new_slr")?FP(r.app,"gaplessshortslooprange"):r.app.setLoopRange(null);r.app.getVideoData().PU=!0;var E;(E=r.G)==null||E.PF();var N;(N=r.G)==null||N.QW();I={YX:"gapless_to_next_video",seekSource:60};d=g.zM(r.app.N().experiments,"html5_gapless_seek_offset");var c;(c=r.app.jC())==null||c.seekTo(F9i(r)+d,I);if(!r.app.getPlayerStateObject(V).isPlaying()){var z; (z=r.app.jC())==null||z.playVideo(!0)}if(r.app.N().U("html5_short_gapless_unlisten_after_seek")){var M;(M=r.app.jC())==null||M.ea()}r.C();return!0}c=this.U("html5_shorts_gapless_preload_fallback");z=this.wq.G;c&&z&&!z.h0()&&(M=z.getVideoData(),M=this.yH.U("html5_autonav_autoplay_in_preload_key")?ZY(this,V,M):XP(this,V,M.videoId,M.Vy),this.Ek.Y.set(M,z,3600));this.wq.clearQueue(c);this.jC().Hs("sgap",{f:D})}if(a){for(;e.Pu.length&&e.Pu[0].isExpired();)e.Pu.shift();n=e.Pu.length-1;n=n>0&&a.X(e.Pu[n])&& a.X(e.Pu[n-1]);e.Pu.push(a)}I||(r&&DhX(r)?(kg(this.yH)&&!this.LM&&(r.fetch=0),$J(this,r)):this.playlist&&$J(this,null),r&&(this.LM=Ym(!1,r.external_list)));this.zQ.publish("loadvideo");V=this.jo(e,V,d);n&&this.rY("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+e.Pu.join()).replace(/[;:,]/g,"_"));return V}; g.C.preloadVideoByPlayerVars=function(r,V,I,d,a){V=V===void 0?1:V;I=I===void 0?NaN:I;d=d===void 0?"":d;a=a===void 0?"":a;var f="";if(this.yH.U("html5_autonav_autoplay_in_preload_key"))f=mzS(this,V,r,a);else{var e=E3(r);f=XP(this,V,e,a)}if(this.Ek.Y.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null; r=new g.qC(this.yH,r);a&&(r.Vy=a);return QKX(this,r,V,I,d)}; g.C.setMinimized=function(r){this.visibility.setMinimized(r);(r=pWO(this.HK))&&(this.isMinimized()?r.load():r.unload());this.zQ.publish("minimized")}; g.C.setInline=function(r){this.visibility.setInline(r)}; g.C.setInlinePreview=function(r){this.visibility.setInline(r)}; g.C.JS=function(r){pgX(this,r)||this.visibility.JS(r)}; g.C.setSqueezeback=function(r){this.visibility.setSqueezeback(r)}; g.C.Vw=function(){var r,V=(r=this.mediaElement)==null?void 0:r.YN();V&&(this.yH.KR&&$N(bZ(function(){return document.exitFullscreen()}),function(){}),$N(bZ(function(){return O3(V)}),function(){}))}; g.C.v5k=function(){this.mediaElement.YN();this.mediaElement.YN().webkitPresentationMode==="picture-in-picture"?this.JS(!0):this.JS(!1)}; g.C.togglePictureInPicture=function(){this.jC().togglePictureInPicture()}; g.C.jo=function(r,V,I){V=V===void 0?1:V;this.logger.debug(function(){return"start load video, id "+r.videoId+", type "+V}); pq("_start",this.hI.timerName)||g.I6(ZP)(void 0,this.hI.timerName);var d=!1,a=ZsA(this,V,r,!1);a?(d=!0,r.dispose()):(a=Cd(this,V,r,!0,I),(this.U("html5_onesie")||this.U("html5_load_before_stop"))&&a.Ey()&&a.qZ(),this.VA.stop(),V===1&&V!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,V),this.FZ(a));a===this.eR()&&(this.yH.wy=r.oauthToken);if(!a.Ey())return!1;if(a===this.eR())return this.Ys(1),I=R_(this),d&&this.U("html5_player_preload_ad_fix")&&a.getPlayerType()===1&& a.Pl()&&this.xg("dataloaded",a,a.getVideoData()),I;a.UW();return!0}; g.C.cueVideoByPlayerVars=function(r,V){var I=this;V=V===void 0?1:V;var d=this.eR();if(this.Hr().enableServerStitchedDai&&d&&!d.q$()&&r&&Object.keys(r).length>0)d.Hs("qvonss",{vid:(r==null?void 0:r.videoId)||"",ptype:V});else if(r&&DhX(r))if(this.L1=!0,$J(this,r),(r=g.NZ(this.playlist))&&r.IL())g5(this,r,V);else this.playlist.onReady(function(){Kd(I)}); else{V||(V=this.getPresentingPlayerType());V===1&&this.MM();d=new g.qC(this.yH,r);var a=g.FG(this.yH)&&!this.yH.kc&&V===1&&!d.isAd()&&!d.dH;this.zQ.publish("cuevideo");a?(this.jC().getVideoData().loading=!0,MdZ(d,r?r:{}).then(function(f){g5(I,f,V)}),d.dispose()):g5(this,d,V)}}; g.C.hO=function(r,V,I,d,a,f,e){if(!r&&!I)throw Error("Playback source is invalid");if(Lx(this.yH)||g.ti(this.yH))return V=V||{},V.lact=Gg(),V.vis=this.zQ.getVisibilityState(),this.zQ.Bs("onPlayVideo",{videoId:r,watchEndpoint:f,sessionData:V,listId:I}),!1;nJh(this.hI);this.hI.reset();r={video_id:r};d&&(r.autoplay="1");d&&(r.autonav="1");f&&(r.player_params=f.playerParams);e&&(r.oauth_token=e);I?(r.list=I,this.loadPlaylist(r)):this.loadVideoByPlayerVars(r,1);return!0}; g.C.cuePlaylist=function(r,V,I,d){this.L1=!0;v2X(this,r,V,I,d)}; g.C.loadPlaylist=function(r,V,I,d){this.L1=!1;v2X(this,r,V,I,d)}; g.C.qA=function(){return this.zQ.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Dq())}; g.C.QT=VZ(13); g.C.nextVideo=function(r,V){var I=g.aa(this.eR().getVideoData());g.S$(this.zQ)&&I?this.hO(I.videoId,V?I.lG:I.sessionData,I.playlistId,V,void 0,I.uQ||void 0):this.LM?this.zQ.k5("onPlaylistNext"):this.getPresentingPlayerType()===3?g.J(L8(this.HK)).nextVideo():!this.playlist||kg(this.yH)&&!this.zQ.isFullscreen()||(this.playlist.Dq(r)&&N5X(this.playlist,xhS(this.playlist)),this.playlist.loaded?(r=V&&this.yH.U("html5_player_autonav_logging"),V&&this.zQ.publish("playlistautonextvideo"),this.jo(g.J(g.NZ(this.playlist,void 0, V,r)),1)):this.L1=!1)}; g.C.previousVideo=function(r){this.LM?this.zQ.k5("onPlaylistPrevious"):this.getPresentingPlayerType()===3?g.J(L8(this.HK)).zW():!this.playlist||kg(this.yH)&&!this.zQ.isFullscreen()||(this.playlist.Zr(r)&&N5X(this.playlist,EJO(this.playlist)),this.playlist.loaded?this.jo(g.J(g.NZ(this.playlist)),1):this.L1=!1)}; g.C.playVideoAt=function(r){this.LM?this.zQ.k5("onPlaylistIndex",r):this.playlist&&(this.playlist.loaded?this.jo(g.J(g.NZ(this.playlist,r)),1):this.L1=!1,N5X(this.playlist,r))}; g.C.getPlaylist=function(){return this.playlist}; g.C.o9=VZ(25);g.C.Co0=function(r){this.zQ.fJ("onCueRangeEnter",r.getId())}; g.C.WKE=function(r){this.zQ.fJ("onCueRangeExit",r.getId())}; g.C.ZB=function(){var r=g.WD(this.Gz());r&&r.ZB()}; g.C.xs=function(r,V,I){var d=this.xN(V);if(d){var a=this.Hr();if(g.hI(a)){if(this.mK)if(this.U("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.mK.XE()&&(d=this.eR()),V===1)for(var f=XX(this.mK,a.clientPlaybackNonce),e=g.H(r),n=e.next();!n.done;n=e.next())n=n.value,n.start+=f,n.end+=f,n.kD=f,n.S=a.clientPlaybackNonce;else if(this.U("html5_ssap_enable_cpn_triggered_media_end")&&V===2)for(this.getPresentingPlayerType(),a=g.H(r),f=a.next();!f.done;f=a.next())f.value.S=this.mK.iT(); a=g.H(r);for(f=a.next();!f.done;f=a.next())e=void 0,f.value.playerType=(e=V)!=null?e:1}d.xs(r,I);V&&this.getPresentingPlayerType()!==V||Sd(this,"cuerangesadded",r)}}; g.C.q8=function(r,V){var I=this.xN(V);I&&(I.q8(r),V&&this.getPresentingPlayerType()!==V||Sd(this,"cuerangesremoved",r))}; g.C.oF=function(r){var V=this.jC(),I=this.getPresentingPlayerType();return this.U("html5_ssap_enable_cpn_triggered_media_end")?V.oF(I,r):V.oF(I)}; g.C.U2k=function(){function r(){var d=V.screenLayer||(V.isMinimized()?3:0),a=g.A8(d);if(a&&a!=="UNDEFINED_CSN"){var f=V.yH.U("web_player_attach_player_response_ve"),e=V.yH.U("web_playback_associated_ve");d={cpn:V.getVideoData().clientPlaybackNonce,csn:a};V.getVideoData().EE&&(f||e)&&(f=g.R9(V.getVideoData().EE),g.Y5(a,f),e&&(d.playbackVe=f.getAsJson()));V.getVideoData().queueInfo&&(d.queueInfo=V.getVideoData().queueInfo);a={};V.U("web_playback_associated_log_ctt")&&V.getVideoData().C&&(a.cttAuthInfo= {token:V.getVideoData().C,videoId:V.getVideoData().videoId});g.N9("playbackAssociated",d,a)}else g.gj(new g.ox("CSN Missing or undefined during playback association"))} var V=this,I=this.jC();this.getPresentingPlayerType();exX(this.hI,I.getVideoData(),kyi(this));WW(this)&&this.yH.Y&>(this.Hr())==="embedded"&&this.ye&&Math.random()<.01&&g.N9("autoplayTriggered",{intentional:this.intentionalPlayback});this.ye=!1;Q_U(this.HK);this.U("web_player_defer_ad")&&FJi(this);this.zQ.k5("onPlaybackStartExternal");(this.yH.U("mweb_client_log_screen_associated"),px(this.yH))||r();I={};this.getVideoData().C&&(I.cttAuthInfo={token:this.getVideoData().C,videoId:this.getVideoData().videoId}); I.sampleRate=20;uC("player_att",I);if(this.getVideoData().botguardData||this.U("fetch_att_independently"))g.VO(this.yH)||d$(this.yH)==="MWEB"?g.IY(g.aY(),function(){tq(V)}):tq(this); this.QK();Bdg(this);this.U("embeds_enable_autoplay_and_visibility_signals")&&g.FG(this.yH)&&(I={autoplayBrowserPolicy:dV(),autoplayIntended:aC(this.getVideoData()),autoplayStatus:urZ(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.N9("embedsAutoplayStatusChanged",I))}; g.C.Bhz=function(){this.zQ.publish("internalAbandon");Jq(this)}; g.C.onApiChange=function(){var r=this.jC();this.yH.j?this.zQ.fJ("onApiChange",r.getPlayerType()):this.zQ.fJ("onApiChange")}; g.C.RpC=function(){var r=this.mediaElement;r={volume:g.yv(Math.floor(r.getVolume()*100),0,100),muted:r.yf()};r.muted||Aq(this,!1);this.x9=g.IZ(r);this.zQ.fJ("onVolumeChange",r)}; g.C.mutedAutoplay=function(r){var V=this.getVideoData().videoId;isNaN(this.Vj)&&(this.Vj=this.getVideoData().startSeconds);if((r==null?0:r.videoId)||V)this.loadVideoByPlayerVars({video_id:(r==null?0:r.videoId)?r==null?void 0:r.videoId:V,playmuted:!0,start:this.Vj,muted_autoplay_duration_mode:r==null?void 0:r.durationMode}),this.zQ.k5("onMutedAutoplayStarts")}; g.C.onFullscreenChange=function(){var r=rcv(this);this.mV(r?1:0);I0i(this,!!r)}; g.C.mV=function(r){var V=!!r,I=!!this.JG()!==V;this.visibility.mV(r);this.template.mV(V);this.U("html5_media_fullscreen")&&!V&&this.mediaElement&&rcv(this)===this.mediaElement.YN()&&this.mediaElement.kW();this.template.resize();I&&this.hI.tick("fsc");I&&(this.zQ.publish("fullscreentoggled",V),r=this.Hr(),V={fullscreen:V,videoId:r.Vn||r.videoId,time:this.getCurrentTime()},this.zQ.getPlaylistId()&&(V.listId=this.zQ.getPlaylistId()),this.zQ.fJ("onFullscreenChange",V))}; g.C.NR=function(){return this.visibility.NR()}; g.C.isFullscreen=function(){return this.visibility.isFullscreen()}; g.C.JG=function(){return this.visibility.JG()}; g.C.LtE=function(){var r=this.JG();r!==0&&r!==1||this.mV(rcv(this)?1:0);r=window.screen.width*window.screen.height;var V=window.outerHeight*window.outerWidth;this.yH.IF?(this.NN=Math.max(this.NN,r,V),r=V/this.NN0&&(D=Math.floor(x/1E3))}D=V?V.aB:D;var E={AD_BLOCK:this.G++,AD_BREAK_LENGTH:D,AUTONAV_STATE:UW(this.player.N()),CA_TYPE:"image",CPN:n.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.cL()*1E3,LACT:Gg(),LIVE_INDEX:V?this.S++:1,LIVE_TARGETING_CONTEXT:V&&V.context?V.context:"",MIDROLL_POS:f? Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.gs().Xf().height,P_W:this.player.gs().Xf().width,YT_REMOTE:a?a.join(","):""},N=cR(sh);Object.keys(N).forEach(function(z){N[z]!=null&&(E[z.toUpperCase()]=N[z].toString())}); I!==""&&(E.BISCOTTI_ID=I);I={};NL(r)&&(I.sts="20199",(V=this.player.N().forcedExperiments)&&(I.forced_experiments=V));var c=DJ(g.Lm(r,E),I);return c.split("?").length!==2?A_(Error("Invalid AdBreakInfo URL")):g.jQ(this.player.N(),n==null?void 0:n.oauthToken).then(function(z){if(z&&Eh()){var M=Q_();md(M,z)}z=g.J(d.player.va(M));M=RXA(d,c,E,n.isMdxPlayback,e);return g.k_(z,M,"/youtubei/v1/player/ad_break").then(function(w){return w})})}; Q6.prototype.reset=function(){this.S=this.G=1};g.T(tLX,Q6); tLX.prototype.X=function(r,V,I){V=V===void 0?{}:V;var d=V.At;var a=V.Wr;var f=V.cueProcessedMs;I=I===void 0?"":I;V=this.G;this.G++;var e=this.player.N().U("h5_disable_macro_substitution_in_get_ad_break")?r:ycv(this,r,{At:d,Wr:a,cueProcessedMs:f},I,V);if(e.split("?").length!==2)return Math.random()<.1&&g.gj(Error("Invalid AdBreakInfo URL")),A_(Error("Invalid AdBreakInfo URL"));var n=this.player.getVideoData(1).isMdxPlayback,D=I;I=HaX.exec(e);I=I!=null&&I.length>=2?I[1]:"";r=w6g.test(e);var x=baA.exec(e); x=x!=null&&x.length>=2?x[1]:"";var E=Oag.exec(e);E=E!=null&&E.length>=2&&!Number.isNaN(Number(E[1]))?Number(E[1]):1;var N=Woj.exec(e);N=N!=null&&N.length>=2?N[1]:"0";var c=mD(this.player.N().Kj),z=g.V2(this.player.getVideoData(1).EE,!0);szA(this,z,e,D===""?"":D,this.player.N(),this.player.getVideoData(1));D={splay:!1,lactMilliseconds:String(Gg()),playerHeightPixels:Math.trunc(this.player.gs().Xf().height),playerWidthPixels:Math.trunc(this.player.gs().Xf().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20199,autonavState:UW(this.player.N())};if(n){n={};var M=this.player.N().SA;MLS(n,M?M.join(","):"")&&(D.mdxContext=n)}if(n=$dv.includes(c)?void 0:g.SJ("PREF")){M=n.split(RegExp("[:&]"));for(var w=0,b=M.length;w1&&W[1].toUpperCase()==="TRUE"){z.user.lockedSafetyMode=!0;break}}D.autoCaptionsDefaultOn=TeS(n)}e=Koi.exec(e);(e=e!=null&&e.length>=2?e[1]:"")&&x&&(z.user.credentialTransferTokens= [{token:e,scope:"VIDEO"}]);e={contentPlaybackContext:D};D=this.player.getVideoData(1).getGetAdBreakContext();n=this.player.getVideoData(1).clientPlaybackNonce;M=f!==void 0?Math.round(f).toString():void 0;w=(d==null?0:d.context)?d.context:void 0;b=0;f&&a&&!d&&(a=a.end-a.start,a>0&&(b=Math.floor(a/1E3)));d=(d=Math.trunc((d?d.aB:b)*1E3))?String(d):void 0;a=this.player.cL()*1E3;a=Number.isNaN(a)?0:Math.trunc(a);V={adBlock:V,params:I,breakIndex:E,breakPositionMs:N,clientPlaybackNonce:n,topLevelDomain:c, isProxyAdTagRequest:r,context:z,overridePlaybackContext:e,cueProcessedMs:M,videoId:x?x:void 0,liveTargetingParams:w,breakLengthMs:d,driftFromHeadMs:a?String(a):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:D?D:void 0};return Acr(this,V)};var lg6={XGC:"replaceUrlMacros",Z_7:"onAboutThisAdPopupClosed",zsM:"executeCommand"};GDS.prototype.F6=function(){return"adPingingEndpoint"}; GDS.prototype.YC=function(r,V,I){zki(this.sE.get(),r,V,I)};FoX.prototype.F6=function(){return"changeEngagementPanelVisibilityAction"}; FoX.prototype.YC=function(r){this.T.Bs("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:r})};l0j.prototype.F6=function(){return"loggingUrls"}; l0j.prototype.YC=function(r,V,I){r=g.H(r);for(var d=r.next();!d.done;d=r.next())d=d.value,zki(this.sE.get(),d.baseUrl,V,I,d.attributionSrcMode)};g.T(JcS,g.X);g.T(uy,g.X);g.C=uy.prototype;g.C.addListener=function(r){this.listeners.push(r)}; g.C.removeListener=function(r){this.listeners=this.listeners.filter(function(V){return V!==r})}; g.C.vZ=function(r,V,I,d,a,f,e,n){if(r==="")zQ("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(r!==this.G||I){this.G=r;this.SC.get().vZ(r,V,I,d,a,f,e,n);this.C8.get().vZ(r,V,I,d,a,f,e,n);var D;(D=this.Br)==null||D.get().vZ(r,V,I,d,a,f,e,n);this.X.vZ(r,V,I,d,a,f,e,n);D=g.H(this.listeners);for(var x=D.next();!x.done;x=D.next())x.value.vZ(r,V,I,d,a,f,e,n)}else zQ("Duplicate content video loaded signal")}; g.C.sC=function(){this.G&&this.yg(this.G)}; g.C.yg=function(r){this.G=void 0;for(var V=g.H(this.listeners),I=V.next();!I.done;I=V.next())I.value.yg(r)};pd.prototype.aj=function(r,V,I,d,a){ZaA(this);this.W=!V&&I===0;var f=this.T.getVideoData(1),e=this.T.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.G=f.C);e&&(this.adCpn=e.clientPlaybackNonce,this.adVideoId=e.videoId,this.adFormat=e.adFormat);this.Y=r;d<=0?(ZaA(this),this.W=!V&&I===0):(this.actionType=this.W?V?"unknown_type":"video_to_ad":V?"ad_to_video":"ad_to_ad",this.videoStreamType=a?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.S=!0,pq("_start",this.actionType)&&gzO(this)))}; pd.prototype.reset=function(){return new pd(this.T)};g.T(vW,g.X);vW.prototype.addCueRange=function(r,V,I,d,a,f,e){f=f===void 0?3:f;e=e===void 0?1:e;this.G.has(r)?zQ("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:r}):(r=new Sgv(r,V,I,d,f),this.G.set(r.id,{Wr:r,listener:a,i7:e}),this.T.Dg([r],e))}; vW.prototype.removeCueRange=function(r){var V=this.G.get(r);V?(this.T.e$([V.Wr],V.i7),this.G.delete(V.Wr.id)):zQ("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:r})}; vW.prototype.onCueRangeEnter=function(r){if(this.G.has(r.id))g.J(this.G.get(r.id)).listener.onCueRangeEnter(r.id)}; vW.prototype.onCueRangeExit=function(r){if(this.G.has(r.id))g.J(this.G.get(r.id)).listener.onCueRangeExit(r.id)}; g.T(Sgv,g.ex);qh.prototype.addPlayerResponseForAssociation=function(r){this.T.addPlayerResponseForAssociation(r)};PW.prototype.YM=function(r){this.T.YM(r)}; PW.prototype.Ov=function(r){var V=g.ZU.apply(1,arguments);r==="onAdStart"||r==="onAdEnd"?this.T.fJ.apply(this.T,[r].concat(g.R(V))):this.T.Bs.apply(this.T,[r].concat(g.R(V)))};o_.prototype.pJ=function(r){return r&&kJ(this)};var rlv=null;g.T(hXi,g.NK);hXi.prototype.bC=function(r){return this.G.hasOwnProperty(r)?this.G[r].bC():{}}; g.qp("ytads.bulleit.getVideoMetadata",function(r){return hq().bC(r)}); g.qp("ytads.bulleit.triggerExternalActivityEvent",function(r,V,I){var d=hq();I=kDp(I);I!==null&&d.publish(I,{queryId:r,viewabilityString:V})});g.C=ry.prototype;g.C.xG=function(r,V){if(!this.G.has(r))return{};if(V==="seek"){V=!1;V=V===void 0?!1:V;var I=qQ(Iu).n4(r,{});I?om(I):V&&(r=qQ(Iu).Tu(null,bg(),!1,r),r.AR=3,bEU([r]));return{}}V=I6r(V);if(V===null)return{};var d=this.T.nU();if(!d)return{};var a=this.T.getPresentingPlayerType(!0);if((I=this.T.getVideoData(a))==null||!I.isAd())return{};I={opt_adElement:d,opt_fullscreen:this.SC.get().isFullscreen()};return bjA(V,r,I)}; g.C.Ev=function(r,V,I,d,a){this.G.has(r)&&(d<=0||a<=0||qQ(Iu).Ev(r,V,I,d,a))}; g.C.m8=function(r){var V;(V=this.G.get(r.queryId))==null||V.m8()}; g.C.wV=function(r){var V;(V=this.G.get(r.queryId))==null||V.wV()}; g.C.Fx=function(r){var V;(V=this.G.get(r.queryId))==null||V.Fx()}; g.C.eE=function(r){var V;(V=this.G.get(r.queryId))==null||V.eE()}; g.C.rV=function(r){var V;(V=this.G.get(r.queryId))==null||V.rV()};xNg.prototype.send=function(r,V,I,d){try{Ebv(this,r,V,I,d===void 0?!1:d)}catch(a){}};g.T(NGi,xNg);sPv.prototype.send=function(r,V,I,d){var a=!1;try{if(d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")a=!0,r=nQi(r);d=a;var f=g.Ky(r);if(f[1]==="https")var e=r;else f[1]="https",e=$x("https",f[2],f[3],f[4],f[5],f[6],f[7]);var n=aiO(e);f=[];var D;if(D=v0U(e))D=this.ws.get().T.N().experiments.uL("add_auth_headers_to_remarketing_google_dot_com_ping");if(NL(e)||D)f.push({headerType:"USER_AUTH"}),f.push({headerType:"PLUS_PAGE_ID"}),f.push({headerType:"VISITOR_ID"}),f.push({headerType:"EOM_VISITOR_ID"}), f.push({headerType:"AUTH_USER"}),f.push({headerType:"DATASYNC_ID"});this.G.send({baseUrl:e,scrubReferrer:n,headers:f},V,I,d)}catch(x){}};fK.prototype.SI=function(){return this.T.SI(1)};g.T(eR,g.X);g.C=eR.prototype;g.C.E6=function(){return this.T.getVideoData(1).clientPlaybackNonce}; g.C.addListener=function(r){this.listeners.push(r)}; g.C.removeListener=function(r){this.listeners=this.listeners.filter(function(V){return V!==r})}; g.C.vZ=function(){this.G9.clear();this.dG=null;this.Sj.get().clear()}; g.C.yg=function(){}; g.C.qtQ=function(r,V,I,d,a){V.videoId==="nPpU29QrbiU"&&this.T.Hs("ads_ssm_vdc_s",{pt:I,dvt:r});AJ(this.ws.get())&&r!=="dataloaded"||O4X(this,V,I);if(kJ(this.ws.get())&&r==="newdata"&&a!==void 0){r=this.E6();var f=V.clientPlaybackNonce,e={};KN(this,"rte",(e.ec=f,e.xc=d==null?void 0:d.clientPlaybackNonce,e.tr=a,e.pt=I,e.ia=f!==r,e.ctp=$d(f),e));V=V.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;a=Wai(a);if(a!==1)if(d!==void 0)for(I=g.H(this.listeners),r=I.next();!r.done;r=I.next())r.value.v$(d, V,a);else zQ("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:V,transitionReason:String(a)});a=g.H(this.listeners);for(d=a.next();!d.done;d=a.next())d.value.c$(V)}}; g.C.A9M=function(r,V){r!==void 0&&(this.dG=r,V===void 0?zQ("Expected ad video start time on SS video changed"):this.G9.set(r,V));var I=this.T.getPresentingPlayerType(!0),d=this.T.getVideoData(I);this.T.getVideoData(1).Hs("ads_ssvc",{pt:I,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.T.getCurrentTime(1,!1),atlh:this.T.isAtLiveHead(),adstt:V});d?O4X(this,d,I):zQ("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.T.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:r})}; g.C.MC=function(r,V){var I=r.author,d=r.clientPlaybackNonce,a=r.isListed,f=r.Vy,e=r.title,n=r.Si,D=r.O6,x=r.isMdxPlayback,E=r.tO,N=r.mdxEnvironment,c=r.isAutonav,z=r.S8,M=r.iz,w=r.Gr,b=r.videoId||"",W=r.profilePicture||"",K=r.Sz||"",F=r.bu()||!1,l=r.uJ()||!1;r=r.Lz||void 0;f=this.Sj.get().G.get(f)||{layoutId:null,slotId:null};var B=this.T.getVideoData(1),P=B.Tz();B=B.getPlayerResponse();V=1E3*this.T.getDuration(V);var p=1E3*this.T.getDuration(1),dA,fg,rA=(B==null?void 0:(dA=B.playerConfig)==null? void 0:(fg=dA.daiConfig)==null?void 0:fg.enableDai)||!1,ji,k;dA=(B==null?void 0:(ji=B.playerConfig)==null?void 0:(k=ji.daiConfig)==null?void 0:k.enablePreroll)||!1;return Object.assign({},f,{videoId:b,author:I,clientPlaybackNonce:d,KH:V,HZ:p,daiEnabled:rA,TM:dA,isListed:a,Tz:P,profilePicture:W,title:e,Sz:K,Si:n,O6:D,Lz:r,isMdxPlayback:x,tO:E,mdxEnvironment:N,isAutonav:c,S8:z,iz:M,Gr:w,bu:F,uJ:l})}; g.C.eC=function(){this.listeners.length=0;this.pp=null;g.X.prototype.eC.call(this)};g.T(Yc,g.X);g.C=Yc.prototype;g.C.vZ=function(){var r=this;kJ(this.ws.get())||(this.G=MQ(function(){r.T.h0()||r.T.bI("ad",1)}))}; g.C.yg=function(){}; g.C.addListener=function(r){this.listeners.push(r)}; g.C.removeListener=function(r){this.listeners=this.listeners.filter(function(V){return V!==r})}; g.C.Fs=function(){}; g.C.playVideo=function(){this.T.playVideo()}; g.C.pauseVideo=function(){this.T.pauseVideo()}; g.C.resumeVideo=function(r){this.JV(r)&&this.T.playVideo()}; g.C.JV=function(r){return this.T.getPlayerState(r)===2}; g.C.getCurrentTimeSec=function(r,V,I){var d=this.C8.get().dG;if(r===2&&!V&&d!==null)return Kav(this,d);kp(this.ws.get(),"html5_ssap_use_cpn_to_get_time")||(I=void 0);return I!==void 0?this.T.getCurrentTime(r,V,I):this.T.getCurrentTime(r,V)}; g.C.getVolume=function(){return this.T.getVolume()}; g.C.isMuted=function(){return this.T.isMuted()}; g.C.getPresentingPlayerType=function(){return this.T.getPresentingPlayerType(!0)}; g.C.getPlayerState=function(r){return this.T.getPlayerState(r)}; g.C.isFullscreen=function(){return this.T.isFullscreen()}; g.C.isAtLiveHead=function(){return this.T.isAtLiveHead()}; g.C.Jp=function(r){this.T.Jp(r)}; g.C.J9Q=function(){var r=this.T.getPresentingPlayerType(!0),V=this.getCurrentTimeSec(r,!1);if(r===2){r=g.H(this.listeners);for(var I=r.next();!I.done;I=r.next())I.value.Mf(V)}else if(r===1)for(r=g.H(this.jJ),I=r.next();!I.done;I=r.next())I.value.Fs(V)}; g.C.PJ0=function(r){for(var V=g.H(this.listeners),I=V.next();!I.done;I=V.next())I.value.Np(r,this.getPresentingPlayerType())}; g.C.onFullscreenToggled=function(r){for(var V=g.H(this.listeners),I=V.next();!I.done;I=V.next())I.value.onFullscreenToggled(r)}; g.C.onVolumeChange=function(){for(var r=g.H(this.listeners),V=r.next();!V.done;V=r.next())V.value.onVolumeChange()}; g.C.TR=function(){for(var r=this.T.isMinimized(),V=g.H(this.listeners),I=V.next();!I.done;I=V.next())I.value.TR(r)}; g.C.M7=function(r){for(var V=g.H(this.listeners),I=V.next();!I.done;I=V.next())I.value.M7(r)}; g.C.yy=function(){for(var r=this.T.gs().Xf(),V=g.H(this.listeners),I=V.next();!I.done;I=V.next())I.value.Fl(r)}; g.C.cZ=function(r){for(var V=g.H(this.listeners),I=V.next();!I.done;I=V.next())I.value.cZ(r)}; g.C.AK=function(){for(var r=g.H(this.listeners),V=r.next();!V.done;V=r.next())V.value.AK()};g.T(Alr,g.X);g.T(ER,g.X);ER.prototype.eC=function(){this.Rm.h0()||this.Rm.get().removeListener(this);g.X.prototype.eC.call(this)};NI.prototype.fetch=function(r){var V=r.ST;return this.G.fetch(r.yD,{At:r.At===void 0?void 0:r.At,Wr:V,cueProcessedMs:r.cueProcessedMs===void 0?0:r.cueProcessedMs}).then(function(I){return GEv(I,V)})};g.T(sR,g.X);g.C=sR.prototype;g.C.addListener=function(r){this.listeners.push(r)}; g.C.removeListener=function(r){this.listeners=this.listeners.filter(function(V){return V!==r})}; g.C.o5=function(r){FaO(this,r,1)}; g.C.onAdUxClicked=function(r,V){c$(this,function(I){I.qp(r,V)})}; g.C.OC=function(r){c$(this,function(V){V.IP(r)})}; g.C.kV=function(r){c$(this,function(V){V.j5(r)})}; g.C.sTQ=function(r){c$(this,function(V){V.Rq(r)})};z5.prototype.reduce=function(r){switch(r.event){case "unknown":return}var V=r.identifier;var I=this.G[V];I?V=I:(I={ax:null,uF:-Infinity},V=this.G[V]=I);I=r.startSecs+r.G/1E3;if(!(I=this.G.startSecs&&I.startSecs<=this.G.startSecs+this.G.aB;if(d){d=void 0;if(GJ(this.ws.get())&&I.identifier!==((d=this.G)==null?void 0:d.identifier)){var a=d=void 0,f=void 0,e=void 0;jo(this.sE.get(),"ocud","ccpi."+I.identifier+";ccpe."+I.event+";ccps."+I.startSecs+";\n ccpd."+I.aB+";pcpi."+((d=this.G)==null?void 0: d.identifier)+";pcpe."+((a=this.G)==null?void 0:a.event)+";\n pcps."+((f=this.G)==null?void 0:f.startSecs)+";pcpd."+((e=this.G)==null?void 0:e.aB)+";")}d=void 0;I.identifier!==((d=this.G)==null?void 0:d.identifier)&&zQ("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.G=I,Z4X(this,I)}}}; g.C.eC=function(){this.X!=null&&(this.X.unsubscribe("cuepointupdated",this.Xs,this),this.X=null);this.listeners.length=0;this.Y.length=0;g.X.prototype.eC.call(this)};g.C=T5.prototype;g.C.YI=function(r,V,I,d,a,f,e){return this.T.YI(r,V,I,d,a,f,e)}; g.C.un=function(r,V){this.T.un(r,V)}; g.C.CE=function(r,V,I){this.T.CE(r,V,I)}; g.C.VT=function(r){this.T.VT(r)}; g.C.vl=function(r,V,I,d,a,f,e){this.T.vl(r,V,I,d,a,f,e)}; g.C.XQ=function(r){return this.T.XQ(r)}; g.C.finishSegmentByCpn=function(r,V,I){I=gbi(I);this.T.finishSegmentByCpn(r,V,I)};g.T(H$,g.X);g.T(i4i,g.X);g.T(UNj,g.X);g.T(QPA,g.X);g.T(mNA,g.X);g.T(uHO,g.X);g.T(vbh,g.X);vbh.prototype.S=function(){return this.X};g.T(qxj,qK); qxj.prototype.Y=function(r){var V=r.content;if(V.componentType==="shopping-companion")switch(r.actionType){case 1:case 2:r=this.G.getVideoData(1);this.G.Bs("updateKevlarOrC3Companion",{contentVideoId:r&&r.videoId,shoppingCompanionCarouselRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.G,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:this.G.Bs("updateKevlarOrC3Companion",{})}else if(V.componentType==="action-companion")switch(r.actionType){case 1:case 2:r=this.G.getVideoData(1); this.G.Bs("updateKevlarOrC3Companion",{contentVideoId:r&&r.videoId,actionCompanionAdRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.G,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V.renderer&&(V=this.G.getVideoData(1),this.G.Bs("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId})),this.G.Bs("updateKevlarOrC3Companion",{})}else if(V.componentType==="image-companion")switch(r.actionType){case 1:case 2:r=this.G.getVideoData(1);this.G.Bs("updateKevlarOrC3Companion", {contentVideoId:r&&r.videoId,imageCompanionAdRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.G,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V=this.G.getVideoData(1),this.G.Bs("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId}),this.G.Bs("updateKevlarOrC3Companion",{})}else if(V.componentType==="top-banner-image-text-icon-buttoned")switch(r.actionType){case 1:case 2:r=this.G.getVideoData(1);this.G.Bs("updateKevlarOrC3Companion", {contentVideoId:r&&r.videoId,topBannerImageTextIconButtonedLayoutViewModel:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.G,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V.renderer&&(V=this.G.getVideoData(1),this.G.Bs("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId})),this.G.Bs("updateKevlarOrC3Companion",{})}else if(V.componentType==="banner-image")switch(r.actionType){case 1:case 2:r=this.G.getVideoData(1);this.G.Bs("updateKevlarOrC3Companion", {contentVideoId:r&&r.videoId,bannerImageLayoutViewModel:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.G,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V=this.G.getVideoData(1),this.G.Bs("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId}),this.G.Bs("updateKevlarOrC3Companion",{})}else if(V.componentType==="ads-engagement-panel")switch(V=V.renderer,r.actionType){case 1:case 2:this.G.Bs("updateEngagementPanelAction",V.addAction);this.G.Bs("changeEngagementPanelVisibility", V.expandAction);break;case 3:this.G.Bs("changeEngagementPanelVisibility",V.hideAction),this.G.Bs("updateEngagementPanelAction",V.removeAction)}else if(V.componentType==="ads-engagement-panel-layout"){var I=V.renderer;switch(r.actionType){case 1:case 2:this.G.Bs("updateEngagementPanelAction",{action:Qo(I.addAction),layoutId:V.layoutId,onLayoutVisibleCallback:V.G,interactionLoggingClientData:V.interactionLoggingClientData});this.G.Bs("changeEngagementPanelVisibility",Qo(I.expandAction));break;case 3:this.G.Bs("changeEngagementPanelVisibility", Qo(I.hideAction)),this.G.Bs("updateEngagementPanelAction",{action:Qo(I.removeAction)})}}};g.T(PVi,dU);g.C=PVi.prototype;g.C.init=function(r,V,I){dU.prototype.init.call(this,r,V,I);g.Be(this.S,"stroke-dasharray","0 "+this.X);this.S.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.Y.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){fW(this);dU.prototype.hide.call(this)}; g.C.show=function(){ao(this);dU.prototype.show.call(this)}; g.C.OX=function(){this.hide()}; g.C.wB=function(){if(this.G){var r=this.G.getProgressState();r!=null&&r.current!=null&&g.Be(this.S,"stroke-dasharray",r.current/r.seekableEnd*this.X+" "+this.X)}};g.T(obX,Ti);g.C=obX.prototype; g.C.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);if(V.image&&V.image.thumbnail)if(V.headline)if(V.description)if(V.backgroundImage&&V.backgroundImage.thumbnail)if(V.actionButton&&g.U(V.actionButton,g.Q4))if(r=V.durationMilliseconds||0,typeof r!=="number"||r<=0)g.BG(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+r));else if(V.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null){var a=V.image.thumbnail.thumbnails;a!=null&& a.length>0&&g.CD(g.Hz(a[0].url))&&(a[0].url=d.profilePicture,g.CD(g.Hz(d.profilePicture))&&bcA("VideoPlayer",239976093,"Expected non-empty profile picture."));a=V.backgroundImage.thumbnail.thumbnails;a!=null&&a.length>0&&g.CD(g.Hz(a[0].url))&&(a[0].url=d.YG());a=V.headline;a!=null&&g.CD(g.Hz(a.text))&&(a.text=d.author)}this.V.init(x5("ad-image"),V.image,I);this.C.init(x5("ad-text"),V.headline,I);this.S.init(x5("ad-text"),V.description,I);this.Ws.init(x5("ad-image"),V.backgroundImage,I);d=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.C.element.classList.add("ytp-ad-action-interstitial-headline-light");this.S.element.classList.add("ytp-ad-action-interstitial-description-light");d.push("ytp-ad-action-interstitial-action-button-dark");this.api.N().X&&(d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.N().U("enable_unified_action_endcap_on_web")&& !this.api.N().X&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.a7.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.V.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Mk.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.DQ.classList.add("ytp-ad-action-interstitial-card-unified"),this.kc.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.n8.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.p8.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.TQ.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new XU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,d);g.S(this,this.actionButton);this.actionButton.Xz(this.a7); this.actionButton.init(x5("button"),g.U(V.actionButton,g.Q4),I);uP(this.actionButton.element);d=qc(this.actionButton.element);v4(this.actionButton.element,d+" This link opens in new tab");this.navigationEndpoint=V.navigationEndpoint;this.Y.K(this.p8,"click",this.dW,this);this.Y.K(this.kc,"click",this.dW,this);!this.api.N().U("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.N().X||this.Y.K(this.n8,"click",this.dW,this);this.G=this.wc?new KW(this.api,r):new Ro(r);g.S(this,this.G);if(V.skipButton){(r= g.U(V.skipButton,qze))&&this.G&&(this.skipButton=new HC(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.G,this.R5),g.S(this,this.skipButton),this.skipButton.Xz(this.element),this.skipButton.init(x5("skip-button"),r,I));if(I=V.adBadgeRenderer)if(I=g.U(I,vrK))r=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,!0,!0),r.Xz(this.TQ),r.init(x5("simple-ad-badge"),I,this.macros),g.S(this,r);if(I=V.adInfoRenderer)if(I=g.U(I,ip))r=new rU(this.api,this.layoutId,this.interactionLoggingClientData, this.I7,this.element,void 0,!0),r.Xz(this.TQ),r.init(x5("ad-info-hover-text-button"),I,this.macros),g.S(this,r)}else V.nonskippableOverlayRenderer&&(r=g.U(V.nonskippableOverlayRenderer,Uo))&&this.G&&(this.X=new nW(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.G,!1),g.S(this,this.X),this.X.Xz(this.element),this.X.init(x5("ad-preview"),r,I));V.countdownRenderer&&(V=V.countdownRenderer,g.U(V,P_o)&&this.G&&(I=new PVi(this.api,this.layoutId,this.interactionLoggingClientData,this.I7, this.G),g.S(this,I),I.Xz(this.element),I.init(x5("timed-pie-countdown"),g.U(V,P_o),this.macros)));this.show();this.element.focus()}else g.BG(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.BG(Error("AdActionInterstitialRenderer has no button."));else g.BG(Error("AdActionInterstitialRenderer has no background AdImage."));else g.BG(Error("AdActionInterstitialRenderer has no description AdText."));else g.BG(Error("AdActionInterstitialRenderer has no headline AdText."));else g.BG(Error("AdActionInterstitialRenderer has no image."))}; g.C.clear=function(){g.lQ(this.Y);this.hide()}; g.C.show=function(){kEh(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.X&&this.X.show();Ti.prototype.show.call(this)}; g.C.hide=function(){kEh(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.X&&this.X.hide();Ti.prototype.hide.call(this)}; g.C.dW=function(){this.navigationEndpoint&&(this.layoutId?this.I7.executeCommand(this.navigationEndpoint,this.layoutId):g.BG(Error("Missing layoutId for ad action interstitial.")))};var dpc={iconType:"CLOSE"},W$=new g.LJ(320,63);g.T(IU_,Ti);g.C=IU_.prototype; g.C.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);this.Y=V;this.V=g.W9(this.Y.onClickCommands||[]);this.TQ=this.Y.onErrorCommand||null;if(r=this.Y.contentSupportedRenderer)r=this.Y.contentSupportedRenderer,V=this.Y.adInfoRenderer||null,g.U(r,mim)?(this.C=g.vz("ytp-ad-overlay-ad-info-button-container",this.S.element),aUY(this,V),r=eOP(this,g.U(r,mim))):g.U(r,uym)?(this.C=g.vz("ytp-ad-overlay-ad-info-button-container",this.X.element),aUY(this,V),r=Yic(this,g.U(r,uym))):g.U(r,ptf)?(this.C= g.vz("ytp-ad-overlay-ad-info-button-container",this.G.element),aUY(this,V),r=nvf(this,g.U(r,ptf))):(g.BG(Error("InvideoOverlayAdRenderer content could not be initialized.")),r=!1);r&&(this.show(),jXG(this,!0))}; g.C.clear=function(){jXG(this,!1);this.p8.reset();this.kc=0;this.S.hide();this.logVisibility(this.S.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.hide();this.dispose()}; g.C.ehk=function(){this.a7&&(this.layoutId?this.I7.executeCommand(this.a7,this.layoutId):g.BG(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.C.Pv=function(){a:{if(this.Y&&this.Y.closeButton&&this.Y.closeButton.buttonRenderer){var r=this.Y.closeButton.buttonRenderer;if(r.serviceEndpoint){r=[r.serviceEndpoint];break a}}r=[]}r=g.H(r);for(var V=r.next();!V.done;V=r.next())V=V.value,this.layoutId?this.I7.executeCommand(V,this.layoutId):g.BG(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.C.haE=function(){this.Ws||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.C.LZ=function(){this.Ws||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.LZ("invideo-overlay")}; g.C.RaM=function(r){r.target===this.C&&g.vz("ytp-ad-button",this.Mk.element).click()};g.T(Dp6,dU);g.C=Dp6.prototype;g.C.init=function(r,V,I){dU.prototype.init.call(this,r,V,I);r=V.durationMs;this.S=r==null||r===0?0:r+this.G.getProgressState().current*1E3;if(V.text)var d=V.text.templatedAdText;else V.staticMessage&&(d=V.staticMessage);this.messageText.init(x5("ad-text"),d,I);this.messageText.Xz(this.X.element);this.Y.show(100);this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){xp_(this,!1);dU.prototype.hide.call(this);this.X.hide();this.messageText.hide();fW(this)}; g.C.show=function(){xp_(this,!0);dU.prototype.show.call(this);ao(this);this.X.show();this.messageText.show()}; g.C.OX=function(){this.hide()}; g.C.wB=function(){if(this.G!=null){var r=this.G.getProgressState();r!=null&&r.current!=null&&(r=1E3*r.current,!this.kc&&r>=this.S?(this.Y.hide(),this.kc=!0):this.messageText&&this.messageText.isTemplated()&&(r=Math.max(0,Math.ceil((this.S-r)/1E3)),r!==this.C&&(Io(this.messageText,{TIME_REMAINING:String(r)}),this.C=r)))}};g.T(EvG,Ti);g.C=EvG.prototype; g.C.init=function(r,V,I){Ti.prototype.init.call(this,r,V,{});V.image&&V.image.thumbnail?V.headline?V.description?V.actionButton&&g.U(V.actionButton,g.Q4)?(this.S.init(x5("ad-image"),V.image,I),this.X.init(x5("ad-text"),V.headline,I),this.Y.init(x5("ad-text"),V.description,I),r=["ytp-ad-underlay-action-button"],this.api.N().U("use_blue_buttons_for_desktop_player_underlay")&&r.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new XU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7, r),V.backgroundColor&&g.Be(this.element,"background-color",g.QY(V.backgroundColor)),g.S(this,this.actionButton),this.actionButton.Xz(this.C),this.actionButton.init(x5("button"),g.U(V.actionButton,g.Q4),I),V=g.zM(this.api.N().experiments,"player_underlay_video_width_fraction"),this.api.N().U("place_shrunken_video_on_left_of_player")?(I=this.G,g.xS(I,"ytp-ad-underlay-left-container"),g.jN(I,"ytp-ad-underlay-right-container"),g.Be(this.G,"margin-left",Math.round((V+.02)*100)+"%")):(I=this.G,g.xS(I,"ytp-ad-underlay-right-container"), g.jN(I,"ytp-ad-underlay-left-container")),g.Be(this.G,"width",Math.round((1-V-.04)*100)+"%"),this.api.HW()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Bj.bind(this)),this.api.addEventListener("resize",this.Mw.bind(this))):g.BG(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.BG(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.BG(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.BG(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.C.show=function(){NAf(!0);this.actionButton&&this.actionButton.show();Ti.prototype.show.call(this)}; g.C.hide=function(){NAf(!1);this.actionButton&&this.actionButton.hide();Ti.prototype.hide.call(this)}; g.C.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Bj.bind(this));this.api.removeEventListener("resize",this.Mw.bind(this));this.hide()}; g.C.onClick=function(r){Ti.prototype.onClick.call(this,r);this.actionButton&&g.eG(this.actionButton.element,r.target)&&this.api.pauseVideo()}; g.C.Bj=function(r){r==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):r==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):r==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))}; g.C.Mw=function(r){r.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):r.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.Be(this.X.element,"font-size",r.width/40+"px")};g.T($c,Ti); $c.prototype.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);V.toggledLoggingParams&&(this.toggledLoggingParams=V.toggledLoggingParams);V.answer&&g.U(V.answer,g.Q4)?(r=new XU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),r.Xz(this.answer),r.init(x5("ytp-ad-survey-answer-button"),g.U(V.answer,g.Q4),I),r.show()):V.answer&&g.U(V.answer,wa)&&(this.G=new pB(this.api,this.layoutId,this.interactionLoggingClientData,this.I7, ["ytp-ad-survey-answer-toggle-button"]),this.G.Xz(this.answer),g.S(this,this.G),this.G.init(x5("survey-answer-button"),g.U(V.answer,wa),I));this.show()}; $c.prototype.EV=function(r){this.layoutId?q_(this.I7,r,this.layoutId,this.macros):(r=new g.ox("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.BG(r))}; $c.prototype.onClick=function(r){Ti.prototype.onClick.call(this,r);if(this.api.N().U("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; $c.prototype.clear=function(){this.hide()};g.T(sX_,Ti);sX_.prototype.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);V.answer&&g.U(V.answer,wa)&&(this.button=new pB(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Xz(this.G),this.button.init(x5("survey-none-of-the-above-button"),g.U(V.answer,wa),I));this.show()};g.T(KK,XU);KK.prototype.init=function(r,V,I){XU.prototype.init.call(this,r,V,I);r=!1;V.text&&(V=g.wF(V.text),r=!g.CD(V));r||g.gj(Error("No submit text was present in the renderer."))}; KK.prototype.onClick=function(r){this.publish("l");XU.prototype.onClick.call(this,r)};g.T(RF,Ti); RF.prototype.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);if(r=V.skipOrPreviewRenderer)g.U(r,Nj)?(r=g.U(r,Nj),I=new bh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.Y,!0),I.Xz(this.skipOrPreview),I.init(x5("skip-button"),r,this.macros),g.S(this,I),this.G=I):g.U(r,Uo)&&(r=g.U(r,Uo),I=new nW(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.Y,!1),I.Xz(this.skipOrPreview),I.init(x5("ad-preview"),r,this.macros),I.kc.show(100),I.show(),g.S(this,I), this.G=I);this.G==null&&(r=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(V)),g.BG(r));V.submitButton&&(r=V.submitButton,g.U(r,g.Q4)&&(r=g.U(r,g.Q4),I=new KK(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),I.Xz(this.submitButton),I.init(x5("survey-submit"),r,this.macros),g.S(this,I),this.X=I));if(r=V.adBadgeRenderer)r=g.U(r,vrK),I=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,!0,!0,!0),I.Xz(this.S),I.init(x5("simple-ad-badge"), r,this.macros),this.adBadge=I.element,g.S(this,I);if(r=V.adDurationRemaining)r=g.U(r,iDK),I=new At(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.Y,void 0,!0),I.Xz(this.S),I.init(x5("ad-duration-remaining"),r,this.macros),g.S(this,I);(V=V.adInfoRenderer)&&g.U(V,ip)&&(r=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.element,void 0,!0),g.S(this,r),this.adBadge!==void 0?this.S.insertBefore(r.element,this.adBadge.nextSibling):r.Xz(this.S),r.init(x5("ad-info-hover-text-button"), g.U(V,ip),this.macros));this.show()}; RF.prototype.clear=function(){this.hide()};g.T(tT,Ti);tT.prototype.init=function(r,V,I){Ti.prototype.init.call(this,r,V,I);TAm(this)}; tT.prototype.show=function(){this.S=Date.now();Ti.prototype.show.call(this)}; tT.prototype.OH=function(){};g.T(Hg9,tT);g.C=Hg9.prototype;g.C.init=function(r,V,I){var d=this;tT.prototype.init.call(this,r,V,I);V.questionText&&cho(this,V.questionText);V.answers&&V.answers.forEach(function(a,f){g.U(a,TR)&&zO_(d,g.U(a,TR),I,f)}); this.C=new Set(this.X.map(function(a){return a.G.G})); (r=V.noneOfTheAbove)&&(r=g.U(r,QZe))&&wrK(this,r,I);V.surveyAdQuestionCommon&&CXe(this,V.surveyAdQuestionCommon);V.submitEndpoints&&(this.submitEndpoints=V.submitEndpoints);this.K(this.element,"change",this.onChange);this.show()}; g.C.OH=function(){bgm(this,!1);this.Y.X.subscribe("l",this.kyC,this)}; g.C.onChange=function(r){r.target===this.noneOfTheAbove.button.G?Ogf(this):this.C.has(r.target)&&(this.noneOfTheAbove.button.toggleButton(!1),bgm(this,!0))}; g.C.kyC=function(){var r=[],V=this.X.reduce(function(a,f,e){var n=f.toggledLoggingParams;f.G&&f.G.isToggled()&&n&&(a.push(n),r.push(e));return a},[]).join("&"),I=this.submitEndpoints.map(function(a){if(!a.loggingUrls)return a; a=g.aZ(a);a.loggingUrls=a.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Jg(f.baseUrl,V));return f}); return a}); if(I){I=g.H(I);for(var d=I.next();!d.done;d=I.next())d=d.value,this.layoutId?q_(this.I7,d,this.layoutId,this.macros):g.BG(Error("Missing layoutId for multi_select_question."))}this.api.N().U("supports_multi_step_on_desktop")&&this.kc(r)}; g.C.clear=function(){this.api.N().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.T(yM,tT);yM.prototype.init=function(r,V,I){var d=this;tT.prototype.init.call(this,r,V,I);V.questionText&&cho(this,V.questionText);V.answers&&V.answers.forEach(function(a,f){g.U(a,TR)&&zO_(d,g.U(a,TR),I,f)}); V.surveyAdQuestionCommon?CXe(this,V.surveyAdQuestionCommon):Es(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(V)));this.show()}; yM.prototype.clear=function(){this.api.N().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.T(AT,Ti);AT.prototype.init=function(r,V,I){var d=this;Ti.prototype.init.call(this,r,V,I);if(this.api.N().U("supports_multi_step_on_desktop")){var a;this.conditioningRules=(a=V.conditioningRules)!=null?a:[];var f;this.X=(f=V.questions)!=null?f:[];var e;((e=V.questions)==null?0:e.length)&&ROm(this,0)}else(V.questions||[]).forEach(function(n){g.U(n,gI)?$p$(d,g.U(n,gI),I):g.U(n,B_)&&KAm(d,g.U(n,B_),I)}); this.show()}; AT.prototype.clear=function(){this.api.N().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; AT.prototype.Y=function(r){var V=this;if(this.api.N().U("supports_multi_step_on_desktop")){var I;if((I=this.conditioningRules)==null?0:I.length){var d;if(r.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(a){return a.questionIndex===V.G})==null)g.BG(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(a){if(a.questionIndex===V.G)switch(a.condition){case "CONDITION_ALL_OF":var f;if((f=a.answerIndices)==null?0:f.every(function(n){return r.includes(n)}))d=a.nextQuestionIndex; break;case "CONDITION_ANY_OF":var e;if((e=a.answerIndices)==null?0:e.some(function(n){return r.includes(n)}))d=a.nextQuestionIndex; break;default:g.BG(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)ROm(this,d); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.BG(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.T(G5,Ti); G5.prototype.init=function(r,V,I){var d=this;Ti.prototype.init.call(this,r,V,I);r=V.timeoutSeconds||0;if(typeof r!=="number"||r<0)g.BG(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+r));else if(V.timeoutCommands)if(V.text)if(V.ctaButton&&g.U(V.ctaButton,g.Q4))if(V.brandImage)if(V.backgroundImage&&g.U(V.backgroundImage,mE)&&g.U(V.backgroundImage,mE).landscape){this.layoutId||g.BG(Error("Missing layoutId for survey interstitial."));tiK(this.interstitial,g.U(V.backgroundImage, mE).landscape);tiK(this.logoImage,V.brandImage);g.Yx(this.text,g.wF(V.text));var a=["ytp-ad-survey-interstitial-action-button"];a.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new XU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,a);g.S(this,this.actionButton);this.actionButton.Xz(this.X);this.actionButton.init(x5("button"),g.U(V.ctaButton,g.Q4),I);this.actionButton.show();this.G=new KW(this.api,r*1E3);this.G.subscribe("g",function(){d.transition.hide()}); g.S(this,this.G);this.K(this.element,"click",function(f){var e=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(e||f)if(d.transition.hide(),e)d.api.onAdUxClicked(d.componentType,d.layoutId)}); this.transition.show(100)}else g.BG(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.BG(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.BG(Error("SurveyTextInterstitialRenderer has no button."));else g.BG(Error("SurveyTextInterstitialRenderer has no text."));else g.BG(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; G5.prototype.clear=function(){this.hide()}; G5.prototype.show=function(){yho(!0);Ti.prototype.show.call(this)}; G5.prototype.hide=function(){yho(!1);Ti.prototype.hide.call(this)};g.T(FB,dU);g.C=FB.prototype; g.C.init=function(r,V){dU.prototype.init.call(this,r,V,{});if(V.durationMilliseconds){if(V.durationMilliseconds<0){g.BG(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+V.durationMilliseconds));return}this.X=V.durationMilliseconds}else this.X=this.G.ag();var I;if((I=V.previewText)==null||!I.text||g.CD(V.previewText.text))g.BG(Error("No text is returned for AdPreview."));else{this.C=V.previewText;V.previewText.isTemplated||g.Yx(this.S,V.previewText.text);var d; if(((d=this.api.getVideoData(1))==null?0:d.hW)&&V.previewImage){var a,f;(r=((f=Ak(((a=V.previewImage)==null?void 0:a.sources)||[],52,!1))==null?void 0:f.url)||"")&&r.length?(this.previewImage=new g.CB({J:"img",Z:"ytp-preview-ad__image",D:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",r),g.S(this,this.previewImage),this.previewImage.Xz(this.element)):g.BG(Error("Failed to get imageUrl in AdPreview."))}else this.S.classList.add("ytp-preview-ad__text--padding--wide")}}; g.C.clear=function(){this.hide()}; g.C.hide=function(){fW(this);dU.prototype.hide.call(this)}; g.C.show=function(){ao(this);dU.prototype.show.call(this)}; g.C.OX=function(){this.hide()}; g.C.wB=function(){if(this.G){var r=this.G.getProgressState();if(r!=null&&r.current)if(r=1E3*r.current,r>=this.X)this.transition.hide();else{var V;if((V=this.C)==null?0:V.isTemplated)if(V=Math.max(0,Math.ceil((this.X-r)/1E3)),V!==this.Y){var I,d;(r=(I=this.C)==null?void 0:(d=I.text)==null?void 0:d.replace("{TIME_REMAINING}",String(V)))&&g.Yx(this.S,r);this.Y=V}}}};g.T(lN,Ti); lN.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});var I,d;if((r=((d=Ak(((I=V.image)==null?void 0:I.sources)||[],Ahc(V),!0))==null?void 0:d.url)||"")&&r.length){I=this.Fz("ytp-ad-avatar");I.src=r;var a,f;if(d=(a=V.interaction)==null?void 0:(f=a.accessibility)==null?void 0:f.label)I.alt=d;switch(V.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(V.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.BG(Error("Failed to get imageUrl in AdAvatar."))}; lN.prototype.clear=function(){this.hide()}; lN.prototype.onClick=function(r){Ti.prototype.onClick.call(this,r)};g.T(LK,Ti); LK.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});var I;r=(I=V.label)==null?void 0:I.content;if((I=r!=null&&!g.CD(r))||V.iconImage){I&&(this.buttonText=new g.CB({J:"span",Z:"ytp-ad-button-vm__text",OE:r}),g.S(this,this.buttonText),this.buttonText.Xz(this.element));var d,a,f=((d=V.interaction)==null?0:(a=d.accessibility)==null?0:a.label)||I?r:"";f&&v4(this.element,f+" This link opens in new tab");uP(this.element);if(V.iconImage){d=void 0;if(V.iconImage){a:{a=V.iconImage;if(a.sources)for(a= g.H(a.sources),r=a.next();!r.done;r=a.next())if(r=r.value,f=void 0,(f=r.clientResource)==null?0:f.imageName){a=r;break a}a=void 0}if(a){var e;d={iconType:(e=a.clientResource)==null?void 0:e.imageName}}}e=Zu(d,!1,this.X);e!=null&&(this.buttonIcon=new g.CB({J:"span",Z:"ytp-ad-button-vm__icon",B:[e]}),g.S(this,this.buttonIcon),V.iconLeading?(an(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):I?(this.buttonIcon.Xz(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Xz(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(V.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.G?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(V.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.gj(Error("AdButton does not have label or an icon."))}; LK.prototype.clear=function(){this.hide()}; LK.prototype.onClick=function(r){Ti.prototype.onClick.call(this,r)};g.T(GS_,dU);g.C=GS_.prototype; g.C.init=function(r,V){dU.prototype.init.call(this,r,V,{});this.api.N().U("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Fz("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),an(this.Fz("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(r=g.U(V.avatar,QM)){var I=V.headline;if(I){var d=V.description;if(d){var a=g.U(V.button,uN);a?(this.adAvatar.init(x5("ad-avatar"),r),this.headline.init(x5("ad-simple-attributed-string"),new FI(I)),this.description.init(x5("ad-simple-attributed-string"),new FI(d)),I.content&&I.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(x5("ad-button"),a),this.startMilliseconds=V.startMs||0,this.api.HW()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.pA.bind(this)),ao(this)):g.BG(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.BG(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.BG(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.BG(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.C.wB=function(){if(this.G){var r=this.G.getProgressState();r&&r.current&&1E3*r.current>=this.startMilliseconds&&(fW(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.C.OX=function(){this.clear()}; g.C.onClick=function(r){this.api.pauseVideo();dU.prototype.onClick.call(this,r)}; g.C.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.pA.bind(this))}; g.C.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();dU.prototype.show.call(this)}; g.C.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();dU.prototype.hide.call(this)}; g.C.pA=function(r){r==="hidden"?this.show():this.hide()};g.T(JT,Ti);g.C=JT.prototype; g.C.init=function(r,V){Ti.prototype.init.call(this,r,V,{});if(!V.label||g.CD(V.label))g.BG(Error("No label is returned for SkipAdButton."));else if(g.Yx(this.Y,V.label),r=Zu({iconType:"SKIP_NEXT_NEW"}),r==null)g.BG(Error("Unable to retrieve icon for SkipAdButton"));else if(this.S=new g.CB({J:"span",Z:"ytp-skip-ad-button__icon",B:[r]}),g.S(this,this.S),this.S.Xz(this.element),this.api.N().experiments.uL("enable_skip_to_next_messaging")&&(V=g.Hz(V.targetId)))this.X=!0,this.element.setAttribute("data-tooltip-target-id",V), this.element.setAttribute("data-tooltip-target-fixed","")}; g.C.onClick=function(r){r&&r.preventDefault();var V,I;qsi(r,{contentCpn:(I=(V=this.api.getVideoData(1))==null?void 0:V.clientPlaybackNonce)!=null?I:""})===0?this.api.Bs("onAbnormalityDetected"):(Ti.prototype.onClick.call(this,r),this.api.Bs("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.C.clear=function(){this.G.reset();this.hide()}; g.C.hide=function(){Ti.prototype.hide.call(this)}; g.C.show=function(){this.G.start();Ti.prototype.show.call(this);this.X&&this.api.N().experiments.uL("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.T(FA_,dU);g.C=FA_.prototype; g.C.init=function(r,V){dU.prototype.init.call(this,r,V,{});r=g.U(V.preskipState,dym);var I;if((I=this.api.getVideoData())==null?0:I.isDaiEnabled()){if(!r){g.BG(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.X=new FB(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.G);g.S(this,this.X);this.X.Xz(this.element);var d;(d=this.X)==null||d.init(x5("preview-ad"),r);(I=this.X)!=null&&(I.transition.show(100),I.show())}(I=g.U(V.skippableState,fh9))?(V.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=V.skipOffsetMilliseconds:(g.gj(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.S.init(x5("skip-button"),I),this.show()):g.BG(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.C.show=function(){ao(this);dU.prototype.show.call(this)}; g.C.hide=function(){!this.isSkippable&&this.X?this.X.hide():this.S&&this.S.hide();fW(this);dU.prototype.hide.call(this)}; g.C.clear=function(){var r;(r=this.X)==null||r.clear();this.S&&this.S.clear();fW(this);dU.prototype.hide.call(this)}; g.C.OX=function(){this.hide()}; g.C.wB=function(){if(1E3*this.G.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var r;(r=this.X)!=null&&r.transition.hide();(r=this.S)!=null&&(r.transition.show(),r.show())}};g.T(ZV,Ti); ZV.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});if(V.label){var I;((I=V.label)==null?0:I.content)&&!g.CD(V.label.content)&&(this.linkText=new g.CB({J:"span",Z:"ytp-visit-advertiser-link__text",OE:V.label.content}),g.S(this,this.linkText),this.linkText.Xz(this.element));var d,a;if((d=V.interaction)==null?0:(a=d.accessibility)==null?0:a.label)v4(this.element,V.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=V.label)==null?0:f.content)&&!g.CD(V.label.content)&&v4(this.element, V.label.content+" This link opens in new tab")}uP(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.BG(Error("No label found in VisitAdvertiserLink."))}; ZV.prototype.onClick=function(r){Ti.prototype.onClick.call(this,r);this.api.onAdUxClicked(this.componentType,this.layoutId)}; ZV.prototype.clear=function(){this.hide()};g.T(XB,Ti); XB.prototype.init=function(r,V,I,d){Ti.prototype.init.call(this,r,V,{});if(V.skipOrPreview){I=V.skipOrPreview;r=g.U(I,efo);I=g.U(I,dym);if(r)this.CT=new FA_(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.X),g.S(this,this.CT),this.CT.Xz(this.V),this.CT.init(x5("skip-ad"),r);else{var a;I&&((a=this.api.getVideoData())==null?0:a.isDaiEnabled())&&(this.Y=new FB(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.X,1),g.S(this,this.Y),this.Y.Xz(this.V),this.Y.init(x5("ad-preview"), I),a=this.Y,a.transition.show(100),a.show())}if(a=g.U(V.skipOrPreview,efo))var f=a.skipOffsetMilliseconds}V.playerAdCard&&(a=g.U(V.playerAdCard,ahf))&&(this.playerAdCard=new GS_(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.X),g.S(this,this.playerAdCard),this.playerAdCard.Xz(this.n8),this.playerAdCard.init(x5("ad-avatar-lockup-card"),a));V.adBadgeRenderer&&((a=g.U(V.adBadgeRenderer,mX))?(this.S=new LW(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,!0),g.S(this, this.S),this.S.Xz(this.G),this.S.init(x5("ad-badge"),a)):g.BG(Error("AdBadgeViewModel is not found in player overlay layout.")));V.adPodIndex&&(a=g.U(V.adPodIndex,hJG))&&(this.adPodIndex=new Jt(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.adPodIndex),this.adPodIndex.Xz(this.G),this.adPodIndex.init(x5("ad-pod-index"),a));V.adInfoRenderer&&((a=g.U(V.adInfoRenderer,ip))?(this.adInfoButton=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.element, void 0,!0),g.S(this,this.adInfoButton),this.S!==void 0?this.G.insertBefore(this.adInfoButton.element,this.S.element.nextSibling):this.adInfoButton.Xz(this.G),this.adInfoButton.init(x5("ad-info-hover-text-button"),a,this.macros)):g.gj(Error("AdInfoRenderer is not found in player overlay layout.")));var e;a=(e=this.api.getVideoData())==null?void 0:e.isDaiEnabled();V.adDurationRemaining&&a&&(e=g.U(V.adDurationRemaining,iDK))&&(this.adDurationRemaining=new At(this.api,this.layoutId,this.interactionLoggingClientData, this.I7,this.X,d.videoAdDurationSeconds,!0),g.S(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.G.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.Xz(this.G),this.adDurationRemaining.init(x5("ad-duration-remaining"),e,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));V.visitAdvertiserLink&&(d=g.U(V.visitAdvertiserLink,nE_))&&(this.visitAdvertiserLink=new ZV(this.api,this.layoutId, this.interactionLoggingClientData,this.I7),g.S(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Xz(this.G),this.visitAdvertiserLink.init(x5("visit-advertiser-link"),d));V.adDisclosureBanner&&(V=g.U(V.adDisclosureBanner,kF_))&&(this.adDisclosureBanner=new Zf(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.adDisclosureBanner),this.adDisclosureBanner.Xz(this.kc),this.adDisclosureBanner.init(x5("ad-disclosure-banner"),V));this.C=new gU(this.api,this.X,f,!0);g.S(this, this.C);g.g1(this.api,this.C.element,4);this.show()}; XB.prototype.clear=function(){this.hide()};g.T(lUP,Ti);g.C=lUP.prototype; g.C.init=function(r,V){Ti.prototype.init.call(this,r,V,{});if(V!=null&&V.title)if(r=V.title)if(this.headline.init(x5("ad-simple-attributed-string"),new FI(r)),r=g.U(V.moreInfoButton,uN)){if(this.moreInfoButton.init(x5("ad-button"),r),V.descriptions)V.descriptions.length>0&&(r=V.descriptions[0])&&(this.G=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.G),this.G.Xz(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.G.init(x5("ad-simple-attributed-string"), new FI(r))),V.descriptions.length>1&&(V=V.descriptions[1])&&(this.X=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.X),this.X.Xz(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.X.init(x5("ad-simple-attributed-string"),new FI(V)))}else g.BG(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.BG(Error("No headline found in AdGridCardText."));else g.BG(Error("No headline found in AdGridCardText."))}; g.C.onClick=function(r){Ti.prototype.onClick.call(this,r);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.C.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var r;(r=this.G)==null||r.clear();var V;(V=this.X)==null||V.clear()}; g.C.hide=function(){this.headline.hide();this.moreInfoButton.hide();var r;(r=this.G)==null||r.hide();var V;(V=this.X)==null||V.hide();Ti.prototype.hide.call(this)}; g.C.show=function(){Ti.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var r;(r=this.G)==null||r.show();var V;(V=this.X)==null||V.show()};g.T(B$,Ti);B$.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});if(V!=null&&V.gridCards)if(V.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.BG(Error("Only single column style is currently supported in AdGridCardCollection."));else for(r=g.H(V.gridCards),V=r.next();!V.done;V=r.next()){if(V=g.U(V.value,IhK)){var I=new lUP(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,I);I.Xz(this.element);I.init(x5("ad-grid-card-text"),V);this.G.push(I)}}else g.BG(Error("No grid cards found in AdGridCardCollection."))}; B$.prototype.show=function(){for(var r=g.H(this.G),V=r.next();!V.done;V=r.next())V.value.show();Ti.prototype.show.call(this)}; B$.prototype.clear=function(){this.hide();for(var r=g.H(this.G),V=r.next();!V.done;V=r.next())V.value.clear()}; B$.prototype.hide=function(){for(var r=g.H(this.G),V=r.next();!V.done;V=r.next())V.value.hide();Ti.prototype.hide.call(this)};g.T(gy,dU);g.C=gy.prototype;g.C.init=function(r,V,I,d,a){a=a===void 0?0:a;dU.prototype.init.call(this,r,V,I,d);this.playerProgressOffsetMs=a;ao(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.uS.bind(this));this.api.addEventListener("resize",this.JA.bind(this));this.api.HW()?(this.X=!0,this.api.Jp(!0),this.show()):this.hide()}; g.C.wB=function(){if(this.G){var r=this.G.getProgressState();r&&r.current&&!this.X&&1E3*r.current>=this.playerProgressOffsetMs&&(this.X=!0,this.api.Jp(!0),this.show())}}; g.C.OX=function(){this.X&&this.api.Jp(!1);this.hide()}; g.C.clear=function(){this.api.Jp(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.uS.bind(this));this.api.removeEventListener("resize",this.JA.bind(this));fW(this);this.hide()}; g.C.hide=function(){LA9(!1);dU.prototype.hide.call(this)}; g.C.show=function(){LA9(!0);dU.prototype.show.call(this)};g.T(JhP,gy);g.C=JhP.prototype; g.C.init=function(r,V,I,d){if(V!=null&&V.adGridCardCollection)if(V!=null&&V.adButton){var a=Number(V.playerProgressOffsetMs||"0");isNaN(a)?gy.prototype.init.call(this,r,V,I,d):gy.prototype.init.call(this,r,V,I,d,a);r=V.headline;I=g.U(V.adAvatar,QM);r&&I?(this.headline=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.headline),this.headline.Xz(this.Fz("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(x5("ad-simple-attributed-string"),new FI(r)), this.adAvatar=new lN(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.adAvatar),this.adAvatar.Xz(this.Fz("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(x5("ad-avatar"),I)):this.Y.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");r=g.U(V.adGridCardCollection,V1p);this.adGridCardCollection.init(x5("ad-grid-card-collection"),r);V=g.U(V.adButton,uN);this.adButton.init(x5("ad-button"),V); this.hide()}else g.BG(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.BG(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.C.onClick=function(r){(this.adButton&&g.eG(this.adButton.element,r.target)||this.adAvatar&&g.eG(this.adAvatar.element,r.target))&&this.api.pauseVideo();gy.prototype.onClick.call(this,r);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.C.JA=function(){}; g.C.clear=function(){this.hide();var r;(r=this.headline)==null||r.clear();var V;(V=this.adAvatar)==null||V.clear();this.adGridCardCollection.clear();this.adButton.clear();gy.prototype.clear.call(this)}; g.C.show=function(){var r;(r=this.headline)==null||r.show();var V;(V=this.adAvatar)==null||V.show();this.adGridCardCollection.show();this.adButton.show();gy.prototype.show.call(this)}; g.C.hide=function(){var r;(r=this.headline)==null||r.hide();var V;(V=this.adAvatar)==null||V.hide();this.adGridCardCollection.hide();this.adButton.hide();gy.prototype.hide.call(this)}; g.C.uS=function(r){r==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):r==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):r==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))};g.T(SR,Ti); SR.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});if(V.attributes===void 0)g.BG(Error("No attributes found in AdDetailsLineViewModel."));else if(V.style===void 0)g.BG(Error("No style found in AdDetailsLineViewModel."));else{r=g.H(V.attributes);for(var I=r.next();!I.done;I=r.next())if(I=I.value,I.text!==void 0){I=I.text;var d=V.style,a=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,a);a.Xz(this.element);a:switch(d){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":d="ytp-ad-details-line__text--style-responsive"; break a;default:d="ytp-ad-details-line__text--style-standard"}a.element.classList.add(d);a.init(x5("ad-simple-attributed-string"),new FI(I));this.G.push(a)}this.show()}}; SR.prototype.show=function(){this.G.forEach(function(r){r.show()}); Ti.prototype.show.call(this)}; SR.prototype.clear=function(){this.hide()}; SR.prototype.hide=function(){this.G.forEach(function(r){r.hide()}); Ti.prototype.hide.call(this)};g.T(iN,Ti);iN.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});var I,d;(r=((d=Ak(((I=V.image)==null?void 0:I.sources)||[]))==null?void 0:d.url)||"")&&r.length?(I=this.Fz("ytp-image-background-image"),g.Be(I,"backgroundImage","url("+r+")"),V.blurLevel!==void 0&&g.Be(I,"filter","blur("+V.blurLevel+"px)"),V.gradient!==void 0&&(V=new g.u({J:"div",Yc:["ytp-image-background--gradient-vertical"]}),g.S(this,V),V.Xz(this.element)),this.show()):g.BG(Error("Failed to get imageUrl in ImageBackground."))}; iN.prototype.clear=function(){this.hide()};g.T(ZgY,dU);g.C=ZgY.prototype;g.C.init=function(r,V){dU.prototype.init.call(this,r,V,{});g.Be(this.S,"stroke-dasharray","0 "+this.X);this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){fW(this);dU.prototype.hide.call(this)}; g.C.show=function(){ao(this);dU.prototype.show.call(this)}; g.C.OX=function(){this.hide()}; g.C.wB=function(){if(this.G){var r=this.G.getProgressState();r!=null&&r.current!=null&&g.Be(this.S,"stroke-dasharray",r.current/r.seekableEnd*this.X+" "+this.X)}};g.T(UR,Ti); UR.prototype.init=function(r,V){Ti.prototype.init.call(this,r,V,{});if(BAp(V)){this.adAvatar=new lN(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,this.adAvatar);this.adAvatar.Xz(this.Fz("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(x5("ad-avatar"),g.U(V.adAvatar,QM));this.headline=new lh(this.api,this.layoutId,this.interactionLoggingClientData,this.I7);g.S(this,this.headline);this.headline.Xz(this.Fz("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(x5("ad-simple-attributed-string"),new FI(V.headline));if(r=g.U(V.adDetailsLine,orP))this.detailsLine=new SR(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.detailsLine),this.detailsLine.Xz(this.Fz("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(x5("ad-details-line"),r);this.adButton=new LK(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,!0);g.S(this,this.adButton); this.adButton.Xz(this.Fz("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(x5("ad-button"),g.U(V.adButton,uN));this.adBadge=new LW(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,!0);g.S(this,this.adBadge);this.adBadge.Xz(this.Y);this.adBadge.init(x5("ad-badge"),g.U(V.adBadge,mX));this.adInfoButton=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.element,void 0,!0);g.S(this,this.adInfoButton);this.adInfoButton.Xz(this.Y); this.adInfoButton.init(x5("ad-info-hover-text-button"),g.U(V.adInfoRenderer,ip),this.macros);if(r=g.U(V.skipAdButton,fh9))this.skipAdButton=new JT(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.skipAdButton),this.skipAdButton.Xz(this.element),this.skipAdButton.init(x5("skip-button"),r);this.X=new Ro(V.durationMilliseconds);g.S(this,this.X);if(r=g.U(V.countdownViewModel,YmG))this.G=new ZgY(this.api,this.layoutId,this.interactionLoggingClientData,this.I7,this.X),g.S(this, this.G),this.G.Xz(this.Fz("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.G.init(x5("timed-pie-countdown"),r);if(V=g.U(V.imageBackground,rSe))this.imageBackground=new iN(this.api,this.layoutId,this.interactionLoggingClientData,this.I7),g.S(this,this.imageBackground),this.imageBackground.Xz(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(x5("image-background"), V);this.show();this.element.focus()}}; UR.prototype.clear=function(){g.lQ(this.S);this.hide()}; UR.prototype.show=function(){XrG(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Ti.prototype.show.call(this)}; UR.prototype.hide=function(){XrG(!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.G&&this.G.hide();this.imageBackground&&this.imageBackground.hide();Ti.prototype.hide.call(this)};g.T(pK,g.NK);g.C=pK.prototype;g.C.ag=function(){return 1E3*this.api.getDuration(this.i7,!1)}; g.C.stop=function(){this.G&&this.wF.pF(this.G)}; g.C.Uk=function(){var r=this.api.getProgressState(this.i7);this.X={seekableStart:r.seekableStart,seekableEnd:r.seekableEnd,current:this.api.getCurrentTime(this.i7,!1)};this.publish("h")}; g.C.getProgressState=function(){return this.X}; g.C.jX=function(r){g.TQ(r,2)&&this.publish("g")};var Lrm="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.T(v$,qK); v$.prototype.Y=function(r){var V=r.id,I=r.content,d=I.componentType;if(!Lrm.includes(d))switch(r.actionType){case 1:r=this.api;var a=this.I7,f=I.layoutId,e=I.interactionLoggingClientData,n=I instanceof kj?I.wc:!1,D=I instanceof kj||I instanceof $8?I.R5:!1;e=e===void 0?{}:e;n=n===void 0?!1:n;D=D===void 0?!1:D;switch(d){case "invideo-overlay":r=new IU_(r,f,e,a);break;case "player-overlay":r=new SO(r,f,e,a,new pK(r),D);break;case "player-overlay-layout":r=new XB(r,f,e,a,new pK(r));break;case "survey":r= new AT(r,f,e,a);break;case "ad-action-interstitial":r=new obX(r,f,e,a,n,D);break;case "video-interstitial-buttoned-centered":r=new UR(r,f,e,a);break;case "survey-interstitial":r=new G5(r,f,e,a);break;case "ad-message":r=new Dp6(r,f,e,a,new pK(r,1));break;case "player-underlay":r=new EvG(r,f,e,a);break;case "display-underlay-text-grid-cards":r=new JhP(r,f,e,a,new pK(r));break;default:r=null}if(!r){g.gj(Error("No UI component returned from ComponentFactory for type: "+d));break}g.P9(this.X,V)?g.gj(Error("Ad UI component already registered: "+ V)):this.X[V]=r;r.bind(I);I instanceof Ps?this.S?this.S.append(r.KK):g.gj(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(r.KK);break;case 2:V=gv_(this,r);if(V==null)break;V.bind(I);break;case 3:I=gv_(this,r),I!=null&&(g.NS(I),g.P9(this.X,V)?(I=this.X,V in I&&delete I[V]):g.gj(Error("Ad UI component does not exist: "+V)))}}; v$.prototype.eC=function(){g.cn(Object.values(this.X));this.X={};qK.prototype.eC.call(this)};g.T(Sie,g.zu);g.C=Sie.prototype;g.C.create=function(){try{igG(this),this.load(),this.created=!0,igG(this)}catch(r){zQ(r instanceof Error?r:String(r))}}; g.C.load=function(){try{mpc(this)}finally{kJ(bN(this.G).N3)&&this.player.bI("ad",1)}}; g.C.destroy=function(){var r=this.player.getVideoData(1);this.G.G.Gj.yg(r&&r.clientPlaybackNonce||"");this.unload();this.created=!1}; g.C.unload=function(){g.zu.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(V){zQ(V instanceof Error?V:String(V))}if(this.X!=null){var r=this.X;this.X=null;r.dispose()}this.S.reset()}; g.C.Gw=function(){return!1}; g.C.getAdState=function(){return-1}; g.C.getOptions=function(){return Object.values(lg6)}; g.C.Ha=function(r,V){V=V===void 0?{}:V;switch(r){case "replaceUrlMacros":return r=V,r.url?(V=ekg(this.player),Object.assign(V,r.R6L),r=g.Lm(r.url,V)):r=null,r;case "onAboutThisAdPopupClosed":this.Vp(V);break;case "executeCommand":r=V;r.command&&r.layoutId&&this.executeCommand(r);break;default:return null}}; g.C.xC=function(r){var V;return!((V=this.G.G.Br)==null||!V.get().xC(r))}; g.C.Vp=function(r){r.isMuted&&ERA(bN(this.G).yF,bN(this.G).TL,r.layoutId);this.UL&&this.UL.Vp()}; g.C.executeCommand=function(r){bN(this.G).I7.executeCommand(r.command,r.layoutId)};g.qp("yt.player.Application.create",g.Mh.create);g.qp("yt.player.Application.createAlternate",g.Mh.create);LLv(LO(),FrY);var JA_=g.Pr("ytcsi.tick");JA_&&JA_("pe");g.cD("ad",Sie);g.T(g.oF,g.X);g.oF.prototype.start=function(r,V,I){this.config={from:r,to:V,duration:I,startTime:(0,g.m)()};this.next()}; g.oF.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.oF.prototype.next=function(){if(this.config){var r=this.config,V=r.from,I=r.to,d=r.duration;r=r.startTime;var a=(0,g.m)()-r;r=this.G;d=U4X(r,a/d);if(d==0)r=r.L;else if(d==1)r=r.j;else{a=GP(r.L,r.W,d);var f=GP(r.W,r.C,d);r=GP(r.C,r.j,d);a=GP(a,f,d);f=GP(f,r,d);r=GP(a,f,d)}r=g.yv(r,0,1);this.callback(V+(I-V)*r);r<1&&this.delay.start()}};g.T(g.kc,g.u);g.C=g.kc.prototype;g.C.hasSuggestions=function(){return this.suggestionData.length>0}; g.C.dT=function(){this.X&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.C.show=function(){g.u.prototype.show.call(this);ovG(this)}; g.C.Ie=function(){this.X&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.C.Xx=function(){this.yy(this.api.gs().getPlayerSize())}; g.C.yy=function(r){var V=this.api.isEmbedsShortsMode()?.5625:16/9,I=this.api.tZ();r=r.width-(I?112:58);I=Math.ceil(r/(I?320:192));var d=(r-I*8)/I;V=Math.floor(d/V);for(var a=g.H(this.G),f=a.next();!f.done;f=a.next())f=f.value.Fz("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=V+"px";this.suggestions.element.style.height=V+"px";this.Y=d;this.j=V;this.containerWidth=r;this.columns=I;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.hT(this)}; g.C.onVideoDataChange=function(){var r=this.api.N(),V=g.J(this.api.getVideoData());this.C=V.Mm?!1:r.Y;this.suggestionData=V.suggestions?g.Z_(V.suggestions,function(I){return I&&!I.playlistId}):[]; hOG(this);V.Mm?this.title.update({title:g.Tj("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:V.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.C.scrollTo=function(r){r=g.yv(r,this.containerWidth-this.suggestionData.length*(this.Y+8),0);this.L.start(this.scrollPosition,r,1E3);this.scrollPosition=r;g.hT(this);ovG(this)};})(_yt_player);