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). */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var C=";dR;replace;split;local;K;length;j;call;1;get;scheme;sp;n;cmo=;path;slice;file;s;indexOf;\\.googlevideo\\.com$;D;reverse;join;fallback_count;/videoplayback;clone;push;url;toString;=;startsWith;/file/index.m3u8;nn;set;1970-01-01T07:00:59.000+07:00;1970-01-01T03:00:17.000+03:00;cmo=td;1970-01-01T10:45:04.000+10:45;mn;U;rr?[1-9].*\\.c\\.youtube\\.com$;:;rr;splice;Untrusted URL;unshift;---;/initplayback;cmo=pf;uA;http://local;/;fromCharCode;a1.googlevideo.com;forEach;1970-01-01T04:15:09.000+04:15;undefined;9mQSFCqooO0gKAB_9_-_w8_;,;//;1970-01-01T11:46:11.000+11:45;://;Cv;&;%3D;pop;1969-12-31T13:45:15.000-10:15;cmo;r;prototype;W;youtube.player.web_20260127_01_RC00;fvip;jL;?;/api/manifest;1969-12-31T19:31:00.000-04:30;signatureCipher;https://local;BF;match;redirector.googlevideo.com;www.youtube.com;d9;assign;1970-01-01T07:15:34.000+07:15;index.m3u8;1969-12-31T15:00:05.000-09:00;,/],]\\};\\.a1\\.googlevideo\\.com$;/[\\[};playerfallback;pow".split(";"), Uo,Jro,ch,ZU,Ip,so,bnY,zr,ap,phn,$Y,Eo,d5,oYH,Gr,Kn,vY7,MV1,LdX,nYp,kY,Xhd,SV,DU,Oz,Vs,EYU,dlh,mC,$E,gYh,Hn,qoY,Cd,QpV,Fz,GrU,NW,Wn,KdY,TD,eF,u15,Arr,rrh,Ld,ino,RHr,Xz,B5d,PXo,dV,Sod,DlV,D1,OdU,l2,VFd,JIr,VU,yI5,l1Y,mW7,$WU,Nk,Wt,HdX,jzh,zv,ew,Cml,od,vt,Lu,nu,XC,E2,xWl,dT,gT,qk,WCU,Zd5,Gv,zyU,u2,Rd,OD,Vt,Ja,lw,cI7,szd,mj,j1,$r,TV1,ey7,I1r,Yzl,bd7,FB,Ng,xr,WZ,UD,zk,cZ,oEr,Tk,IG,Yr,aG,bw,fa,ha,vE1,oG,vZ,Mg,MFX,LCo,nEo,La,XB,ED,gO,qg,Gk,Ka,KCU,tFX,uzX,AIH,ta,rIU,uw,Aa,rO,idn,iw,Ryr,PmV,kr,D6,J8,lB,mQ, DWr,SzH,lZr,J0p,Co,FY,Z5,jdX,F$X,C2U,cp,eg,NTn,sp,po,jg,vp,xkn,MY,wc,Hp,W$7,Lo,XY,no,Uk5,dc,Zun,Qx,G5,Ko,t8,uB,A8,rc,R1,Bp,D5,OA,lA,c0r,TT5,sdr,eYl,VI,IZr,FO,N_,xK,aZX,WA,bu7,ptY,UA,fZr,wtr,Zy,vmr,hYh,zT,L$Y,cA,sA,nm1,TT,XtV,eR,dkn,EmX,gmY,fD,GvV,q2p,K$7,hU,oa,twH,uCd,A07,vA,wN,r0Y,P2n,M_,kvH,S2r,ya7,EA,Jar,Dkh,mg1,jGh,gN,QI,KD,GT,CwV,tU,uA,iA,Ra,kK,SR,OG,Za5,VD,zQd,yD,$2,TOo,CK,Nh,UG,ZF,cR,WR,eQ7,z4,sG,FW,T4,e$,I6h,I$,a$,a6o,b4,pK,fK,f61,dR,hQX,Mh,wR,o$,bad,pZo,or5,G4,vrd,M1r,LjV,nrp,KK,tc,u4,XZX, i4,BR,PR,k2,Err,grp,DF,qDd,Va,Of,uBr,Jt,ya,AaY,ia5,BO5,$_,ls,PwX,HU,jf,C_,ms,NH,FV,WU,x_,sf,kko,Uf,z1,T1,SDd,ef,Dgp,It,at,ht,ot,vU,bs,f_,p_,MH,Oop,L_,n_,XV,J87,Ef,y8o,da,cU,qH,G1,mYo,K_,tt,At,ra,is,Rt,BU,PU,k_,Sf,Oi,DI,W8,Ui,Ze,zt,c8,si,$Y7,j1r,ei,CBd,FQr,NcH,Y1,ab,f5,WQU,UY1,Zo1,ob,c8d,v8,Tcr,wg,M1,L5,edd,n5,I5Y,XX,Ypo,a55,Ei,bo1,dg,gg,q1,ppd,Gt,K5,hdU,A4,wpU,f5X,rg,Rb,B8,na7,MgH,k1,De,Xp1,dYH,gaY,Od,VT,JZ,yT,lp,mh,$I,G51,KQY,tg1,A8V,ioH,Rdr,BcU,jH,Cp,PBd,FT,k5h,Sp7,JUH,xI,yUr,lyY,m_r,$_H,HD1,Ud, jaU,zu,FMo,Tu,eH,x_p,IL,YI,aL,WMh,U_X,fp,hZ,v$,wb,z$d,cUr,sar,db,Ed,XT,TNp,e$X,Iyo,gb,qB,QT,ayh,AZ,rb,pAn,fyV,h$d,ip,RL,oKl,vKr,B$,wAl,MRn,LMo,nKl,DL,kI,OL,V0,J6,XAH,EKp,d_H,y0,lI,gKn,mK,qAn,QaX,GTd,$u,KMo,Hl,jD,tRr,uOY,AUY,rUX,iDd,R$p,Nx,xu,Zq,cl,kTr,sL,TO,SAU,PAH,zO,D_o,eD,Ih,Yu,bI,ah,OKn,V$7,Jcr,p1,lF7,f1,$h1,HKr,j$X,C4o,FZU,NRU,xhr,WZH,vl,wf,Mx,ZKh,Uh7,z0l,cch,n1,s$Y,XM,TRn,e0p,EL,df,gf,IFo,qx,Q0,YGY,GO,K1,t6,uI,A6,rf,iI,Rh,aFr,bKh,pRn,fFl,Bl,h0h,v2p,o27,ku,SD,M$h,wRH,XRd,g27,dhh,Dq,qGV,Q$Y,G4d, t$r,KZo,uW5,O6,Ach,rcY,Jb,iKV,R0l,BRl,P4H,y$,k4Y,lD,SGU,mz,$Q,O_5,Ha,Vfr,Ci,F3,Jt7,yt1,N$,Wa,mHU,U6,lIr,$Hn,H_V,jtl,Fs1,ZB,Nar,s6,T7,Wsd,UHH,cth,stX,ea,IV,YQ,aV,bD,pi,fi,Li,ni,X3,E6,d2,g2,Yfr,IIr,aIh,pU7,b_p,hTd,eT1,fIn,TaX,q$,Q$,v_U,wUH,Mfl,uD,Ab,r2,G7,n_7,iD,o_1,E_V,dH7,XUd,RV,Ba,Pa,kQ,g_1,Ls1,qfd,Sa,Qtr,G1d,Ksr,tfl,uV5,i_r,RT1,Bal,PsH,DB,OW,k1r,Sf7,Vir,J45,VC,yC,led,lT,JB,$1p,m1V,H5X,jbY,Cyh,$9,HG,F7l,Ngo,x1V,W7V,U1l,Z5p,z4o,c4V,sb5,Tgr,Cq,Fu,Nq,x9,WG,UW,e4o,ae1,b5n,p8o,h47,fer,o17,cG,sW,v1d,w8p, Mil,Tp,eI,I_,Y9,a_,pq,fq,L7r,o_,X8Y,wq,E17,d1Y,Mq,Lq,nq,EW,Xu,g1U,Qbo,dq,H$,r8n,Kq,Gtl,K7l,tB,tid,Gp,A4X,uXr,QC,uT,AB,r4Y,i51,R4l,Bg5,rq,Pyp,iT,Yi7,Ieo,R_,BG,k9,SI,D1n,Dl,VL,yL,Opl,VHX,lF,$Br,C3,yZ1,mBr,Hu,$S,Wu,UT,cu,Hpr,sT,TF,jL7,Fhl,xB1,p3,hF,zNr,cZd,sLr,aLd,w4,n3,Xk,hNn,oIX,vIr,w$r,MHh,ET,Lhn,g4,nIV,dB1,gIY,qU,QLr,KhY,Guh,tH1,GF,uF,R8,Pu,kS,ST,DW,O9,rZ1,ip5,RNr,Vv,JX,Bu,yv,lN,ma,mU,$U,Bb1,jJ,Sd5,CM,FP,O1r,DBl,VDH,J65,y6h,NE,lqn,mx7,$x1,xU,WP,jhH,Nfr,xx7,U9,c6h,Z17,shh,Tfp,e35,ZN,Iq7,WKo,zl,cP, YL7,z3n,s9,aqY,Tl,pll,fqo,h37,ouY,vuH,I5,wlH,MD7,LKV,nuU,dxl,Xlo,YU,a5,bN,pM,fM,hX,o5,vP,gup,ME,wP,qLo,nM,KKn,LM,tDH,uMh,BfY,A67,r6o,i1r,R3r,XP,PIp,kOl,dP,SL7,gP,qE,Qv,Gl,KM,tX,ybo,Dxd,iN,JbX,R5,VaX,rP,uN,OiX,AX,PP,m$d,SJ,kU,$$Y,Hio,jVU,J_,yX,mE,N2d,lL,Hy,x$h,jL,CD5,ZiX,zjU,cbh,Nn,x6,Wy,sVh,U7,Z0,zz,cy,T25,s7,Tz,eL,ejo,IBl,IZ,Y6Y,FKp,biV,paH,fBV,hjn,vQp,aBd,wad,Y6,aZ,Mao,Lzl,EQH,gQo,q6X,pZ,fZ,QV1,tap,Abd,h_,vy,rbl,iiX,RjV,PDl,k75,B27,Mn,VI7,OqX,LZ,Xy,yB7,nZ,ll5,d7,mqY,g7,QX,Gz,$qV,Hq1,RZ,j_V,Py,CTo, FU7,mr,Nqp,WUh,$F,Uqr,Zqd,eL1,zLh,FK,N2,xF,Ug,ZD,pGU,fl7,zh,cM,sg,o97,If,v9Y,wGU,YF,LU5,bk,pv,fv,hn,n9o,of,wC,M2,Lv,nv,XGV,E9r,dqn,Eg,dC,gC,q2,Qf,Gh,g9r,qWV,Q_U,Gpr,KUp,tIn,Kv,uur,BM,ABr,rB5,iqn,PM,Sr,DD,On,yW,li,mm,Bq5,jB,CV,Fv,PTX,kpl,N4,SW1,Dqp,Ww,H3p,j8Y,CFh,sn,FSY,N41,UUr,eB,zhr,Z3r,cFh,s85,a4,bi,T4Y,pV,fV,hs,o4,vw,wG,M4,LV,nV,Xv,En,dG,gG,q4,ehl,IWU,KV,ui,YTV,R4,Bw,Pw,y7,kC,DS,Ot,fWH,Vd,Jy,yd,oS1,hhr,aW5,$g,mt,LSU,Hv,Z3,z8,Wv,cv,T8,Xu7,IN,qTd,dU5,gSo,GFp,rFn,KSU,uk1,AFh,nS5,aN,Yg,RhH,pW,fW,hy, B4V,nW,PF1,Et,dr,gr,qz,G8,ty,uM,kFo,Ay,rr,DUr,Bv,kg,S8,D3,O$,VV,JG,yV,lj,m2,VJl,$O,Cz,jd,yXH,HMn,mEo,$En,j5l,CNX,NPY,xEo,FaH,UEo,xO,WC,zb,ZM7,z1n,Zi,cC,s5V,TPV,aNh,Y9d,IH,YO,aH,bj,pz,pP7,fNY,Lz,nz,h1X,oU7,vUU,gE,qv,QV,wPU,MJl,nUo,EUd,tG,dEY,gU5,rE,uj,BC,PC,Sd,JD,yn,lH,mN,HH,jA,Fh,tJd,uP5,xP,AXX,rXp,UN,iMX,R1h,ZV,zf,BPd,PNV,S9r,sN,Ij,OZ7,VLH,Tf,J_Y,y_5,mn1,l01,YP,DEX,HZ1,jZ7,vH,hD,CLl,FEh,w9,MV,N7d,xn7,Xh,WEl,Un1,ZZ5,zGh,Qn,c_h,sZX,T7r,eGX,I0V,Y7l,a0o,bZo,KH,pyn,uH,hGo,o6o,v6d,wy1,MLr,Rj,O8,n61,dnd, Vz,g6V,QZ1,LE5,Gz1,KE1,tLX,XyV,E6r,BH,PH,DV,q7r,SA,kP,uyl,A_5,r_7,iZX,RGV,B7r,Ov7,PL5,m4,$R,jY,yn5,$2r,m2l,Hk,Nc,HvU,U8,jfo,FrH,TS,CkX,sfY,NCn,zU1,aF,TC5,Yg7,b0,YR,eUV,ID1,aDV,fO,pMX,fDo,hUl,oFh,vFH,wMd,Mrl,bv7,nFd,XMr,EFr,gFU,d21,QfU,wS,Ghl,Mc,Krr,LO,trp,uKr,E8,dS,rno,An7,gS,RUr,Pkp,BCU,khd,OVX,SgY,Bk,SY,kR,VB7,Pk,Dj,OZ,V2,J7,Js7,l9,m4h,lSr,H5,$t,C2,Fm,ND,xt,$4l,W5,Zm,HVX,c5,Cir,T$,et,Fmd,NGo,x47,Wmd,Im,am,U4X,b9,p2,f2,zuX,h7,om,cs5,wk,n2,L2,MD,Xm,EZ,euY,fSU,oCY,pwp,bVl,huo,qD,K2,LmH,vCd,wwd,MBo, TG1,KmU,St,G2U,AsV,Q45,gk,Dm,rk,P5,tB5,u9,YnH,ISY,aSH,G$,qnr,yy,Sn7,mV,HF,OWn,V8d,jn,Jyl,yyX,l3Y,$zY,HWn,Nb,CMX,xb,Ft1,Nr1,Wt5,UzX,ZWd,Uk,z7V,sNh,ZH,Tro,zK,cF,TK,pvl,Yb,pY,M8o,XvH,hP,dzr,ggU,qtr,qb,QNp,G81,dd,lDX,Xe,gd,Ek,oe,rd,Re,i6,PF,Sn,t81,DH,Vb,JV,uR5,Ayh,mw,iWd,R7V,Br1,PM7,CI,k8l,StH,DzU,Fa,Ozr,Vdn,JGX,No,yGp,lih,xN,mv7,Hzr,WB,jHr,CjY,F2h,UF,ZJ,zs,NE5,xvV,W2o,UvY,Zzl,zKr,cGH,ee,IC,YN,sH1,aC,TEY,pI,Iir,eKH,hV,oC,vB,wW,Y$p,Mo,LI,aiH,bzn,nI,Xa,oOX,pCr,hK5,fiX,EF,dW,gW,vOY,wCr,Md7,qo,nOH,dvl,EO1, Qb,Gs,KI,tV,uo,rW,io,RC,BB,PB,kN,gOp,q$Y,QH1,Se,DJ,Vk,yk,td7,K2V,mp,uQ1,$o,HS,jo,CJ,F6,WS,UK,Zf,zE,cS,sK,TE,eo,izd,I0,Yo,b1,RKo,hg,BEr,kbn,vS,S$1,w_,Mw,VAd,JDV,yDn,mVd,HHr,g_,jjX,Qk,qw,N9p,xVr,WNV,KJ,UVp,tg,z5Y,Ag,r_,i1,R0,sjd,BS,PS,ko,T9o,So,cDo,Df,OB,IVo,e5p,V6,Jd,y6,ln,$z,aVH,bHr,j4,CU,NF,xz,pH5,F$,oP7,vP7,wHp,MAH,LNp,nPV,XHo,UB,W7,h57,gPX,Za,Qjh,GfV,e4,KNn,c7,sB,tAp,Ic,ADp,iHr,Yz,ac,R57,bn,PH7,pU,VYX,hd,OOn,kfo,DVl,SNX,oc,v7,w6,MF,LU,nU,X$,EB,d6,yS1,g6,$cX,HO5,jFH,lj1,C0X,F4r,qF,Q6,KU,NSH,P7, Ucr,y4Y,kz,S4,ZOU,sFH,Ox,yK,TSo,lc,Jo,Y8Y,m_,ajH,eBn,VK,bOp,Ijr,pk1,fj1,wkn,L4h,MYH,nRn,dcn,q8p,ERd,QFo,GSo,tYr,$L,Hf,ASX,ufH,jm,CR,FS,iOU,N9,xL,Wf,BSU,P0n,Ux,RBr,ZK,DcU,zU,cf,sx,TU,em,IS,YL,aS,bc,pR,fR,ho,oS,vf,wF,M9,LR,nR,XS,Ex,dF,gF,q9,QK,GU,KR,to,uc,Ao,rF,ic,RS,Bf,Pf,kL,Sm,DK,Os,V5,JA,y5,l_,mJ,$s,H0,jq,CF,F7,Nd,xs,W0,Us,ZP,z_,c0,T_,eq,Iy,Ys,ay,b_,pF,fF,hA,oy,v0,wu,Md,LF,nF,X7,du,gu,Vtl,qd,P,Q5,Es,G_,KF,tA,y7r,AA,mD1,u_,$DU,i_,H25,B0,ru,P0,ks,Sq,V9,C9X,FRl,Nkd,xDh,WRX,UDY,Hb,NM,c75,smX,Tko,exX, jm1,Iml,O5,YZU,am5,U5,Td,ZQ,y9,b2r,Ju,xv,zd,eS,fmX,m9,$v,s5,cb,hxo,In,Yv,an,bY,otn,pm,fm,hu,on,vb,vtp,w5d,LRY,ntY,Lm,nm,Et7,Wh,QmH,KRp,umn,VV1,E5,r71,i21,Km,Rx7,tu,uY,Au,rz,iY,Rn,Bko,k$r,SZo,P9V,DDh,OY7,SS,DQ,VH,yH,l3,mY,Vnl,$p,JPH,HE,jP,OI,NL,xp,WE,UI,yP7,Fj,mbH,ZO,$bh,HYX,zN,jeX,cE,sI,C6V,FVV,TN,Ndd,xb7,eP,WV5,Ubd,ZYp,IE,Yp,aE,zm5,cPr,b3,pE,fE,seU,hY,oE,vE,wL,Td7,ML,LE,emd,nE,IHr,Xj,Ykd,aHV,bY5,pFr,fHr,hmd,EI,obX,vbr,wFh,dL,Mn1,gL,LV1,qL,nbX,QH,XFn,EbY,GN,rL,dbd,i3,RE,BE,PE,gbV,qk5,SP,OS,Vj,Qel, Jq,yj,mg,GKn,$7,Hg,KV7,CN,APY,iYh,Rm7,rP1,Z$,eX,cg,Ik,Bdn,kKX,P6d,NI,Skn,Db7,OI7,Veo,Wg,mop,$on,HId,lJY,yVn,JVo,jC1,pN,tn5,Cor,uep,FwV,NW1,xod,ZIh,WwU,hq,Uol,zr1,cV5,erU,sC1,TWY,YFV,IJV,aJo,bIV,LN,pBX,oNl,fJV,vNn,hrY,wBX,MeV,Lwh,nNY,XBo,ENX,dor,gN5,qFl,QCl,GsV,Kwo,ES,teh,uaV,AVr,rVo,iIn,Rrr,BW7,Po1,SFU,qI,d3,tq,u$,DoY,Aq,OJY,i$,Rk,Vod,Jgo,Pg,ygo,SX,D$,O4,GR,Vr,JN,lfY,yr,l7,mT,mw5,$f,Hs,jC,Cr,FU,N8,Ws,U4,Zr,zM,$w7,HJh,j0X,eC,cs,Iw,Yf,C1h,Fp1,hN,ow,vs,N_1,xwY,TM,WpX,Uwr,wQ,ZJl,M8,Lr,XU,E4,dQ,gQ,q8, GM,Kr,u7,tN,s05,T_p,el7,IfV,YK7,afn,rQ,pSd,Rw,ffV,Bs,SC,hlr,ooX,vo7,wSV,Dr,Ou,J2,Vp,le,MoH,Lp7,yp,no5,XS1,HT,Eol,jy,go1,FD,NN,Q0d,qKo,GEY,Kpr,toh,WT,Uu,ZM,u6d,Agp,rgV,iJp,Rlr,B_p,P1X,kEr,SKp,DwV,cT,TC,OU1,V4l,ey,II,Jdr,YW,aI,px,ydr,fx,h2,oI,lad,vT,mF5,wo,$FY,MN,HUr,jcr,Lx,Cnl,FAo,N6o,nx,XD,Eu,go,xFX,WAr,qN,Qp,GC,UF1,Kx,t2,ue,A2,ro,ZU5,z6o,ie,RI,cdX,BT,PT,kW,Sy,MtU,sc7,T6U,DM,e6l,IaY,YBl,Ol,VQ,JE,yQ,lf,m3,$T,H3,jx,C6,FG,aaX,bUV,c3,sl,far,Tw,hE,IM,wh,M4d,gzH,LAh,qBr,Qcr,KAl,t4H,GJl,u$5,AdV,rd5,AE,B61, SBY,kJl,ORV,Vmn,JoU,B3,P3,lK5,m9X,Cc1,kT,F_V,$97,Sx,Dp,OE,VN,x97,ZRX,W_p,sSo,pfp,bRo,TF5,fKl,yN,IKY,eXh,vLd,L_l,Mmp,d9n,nLr,lz,m8,K_Y,jE,tmH,kUr,Pc5,BFn,iRh,RX5,Aon,OFp,D9o,ro5,mdo,lPp,$dY,WY,C_U,HFh,jyr,uSn,Ck,Ns,JAo,VqH,yAU,Nup,Fq,Sxl,FJo,WJd,ZFn,cAV,TuU,YsH,aPr,p0r,fPH,osr,hCX,nsr,w0r,vs7,X0n,gsd,qsV,QyV,G_5,eE,rh,u7n,KJX,a6,fk,hm,iFV,RCV,rAr,o6,Bu7,vY,wj,Bb,Ms,R6X,Lk,nk,Xq,P_r,EE,k_r,Ssh,Ddd,dj,gj,qs,QN,Gj,Kk,tm,uz,Am,OmY,VS1,rj,JuX,iz,$W,R6,BY,mMr,lQ1,PY,$Mr,Hmd,jn5,k8,yur,SE,CYr,Dg,AN,F9V,Nz5, DFX,xMV,OM,Pb,MM,UE,W9h,UMo,JJ,GUU,$8,Zm1,I6,Y8,zj,Zg,Jm,eCV,bF7,cY,gLh,Esh,zMY,hXo,Yx5,y8,AAd,RM,snp,cuX,NFV,IPY,Tz5,ddd,qx1,QSX,wfY,sy5,zCo,coh,U9d,jSh,HR5,yon,xd1,aKV,MqH,Xfd,EL1,sE,LJH,Udp,IQU,eM5,lO,m6,j4h,$H,Wb,lY,Z2o,DP,Y5h,H_,jl,C9,FL,aQd,W_,UM,ZA,pbH,c_,sM,fQ1,zI,bm1,TI,el,hMl,Ii,wbd,vvr,ovn,YH,oi,nvY,MP,L9,Xb1,EM,Evp,gvo,dMn,q5U,Qn1,Gdh,K95,tSY,u0n,Aud,rul,gX,Q8,RMr,GI,K9,tJ,uO,Bzr,PYV,AJ,rX,iO,kdV,S5Y,B_,DA,OC,Vh,Jh,yh,sS,w3,nN,fN,TR,vg,MI,XE,lV,DM5,OE5,b$,ak,zR,Y7,x7,US,VPV,JYr,FE,jk, HE7,jEn,Ce,Ni,C35,FYp,Wq,UC,Z9,zX,cq,sC,TX,ek,ULY,Yy,ZEU,IY,ztX,cYl,xLn,WY1,sEh,aY,bV,TLo,etY,pe,IOo,fe,aOU,YIU,pEp,htr,opV,fOY,MPo,npY,XEr,Mi,Le,EpH,dLr,ne,Xp,gpo,qIo,QEo,dl,GN1,KYX,qi,Qh,ujX,AYX,rY5,BLh,Ke,Ah,iV,P3U,RY,Bq,VXY,yqU,Jqh,N3p,Ow,mIr,UIh,HNh,yA,SIh,ky,l$V,ONV,DLr,kN7,JC,Sk,VA,$4,cqX,js,Cf,F2,NO,x4,WX,Uw,sko,T31,Z7,zP,TP,I$o,YSr,cX,a$l,f$5,hAl,es,o71,aW,v7V,bE,ff,wgH,pf,hC,MXd,vX,n7d,Xg1,MO,Lf,gI,dIX,X2,qO,GP,g7X,tC,dI,QA,qSo,uE,Qkr,AC,GRp,nf,Ew,E7p,Kf,rI,KgX,tXV,iE,uEo,RW,BX,PX,k4,AqU, D7,Ss,OO,VB,rqh,iNX,Ji,yB,lQ,mB,$3,HK,RAd,j3,Ch,B3X,P$p,Fr,NT,x3,SS1,kRd,WK,DIU,OrX,VCY,UO,JNX,yNV,lrY,m8n,$8X,Zd,zQ,cK,sO,Hr7,jw7,C7H,e3,FTn,Io,Y3,NQr,x87,ao,WT1,U8h,swl,TQH,Zrd,zDh,cNr,ph,fh,hi,oo,eDr,Irr,arX,Y4p,frp,MT,ofd,wsr,vfn,dw,EO,LTr,nfX,Xsl,gw,Efo,QB,GQ,d8r,q45,Qwl,ti,iQ,uUl,xIh,D9,rNX,irV,RD7,BQo,P7o,Pq,uQ,PK,k3,Oxr,VyV,J2o,S3,$N7,y2r,lMV,jI7,CeV,Dd,Hx5,FoX,O_,VY,JT,Nop,xNn,yY,l8,Wo1,mc,UN1,Zx7,$A,Ro,FZ,c2V,WgY,$IH,NS,xA,U_,Zb,zA,cj,s_,Wj,I2,Tor,a2,IMY,b8,aMV,Yu1,eqU,bxd,hT,oWY,pT1,hq1, fMU,o2,vj,vWU,wTX,Lod,w$,zAY,MS,XTY,dN1,lE,gWn,qu7,jk1,Fgr,nWY,ns,XZ,d$,QId,GCY,KoV,tyY,uDX,A25,r2X,ix5,RqY,Bon,SuX,kCX,DNU,O6X,Vxr,g$,JEr,GA,yEY,Ks,lpY,m3o,tT,$3X,jM1,H6n,jN,$$,CT,NA,x$,fs,WJ,CfU,zsU,Cm,HJ,z0,es7,Ylo,Pj,Ix,Bj,Y$,pT,b6h,p3H,mq,fT,vTh,hO,ox,w3l,Mxd,L3X,nTo,vJ,X3d,ET7,wU,d37,K3V,GwV,gTp,QMV,ql1,MA,tx7,LT,uGr,AEl,i61,RsX,Bh1,PfY,VEY,gU,qA,lgr,Qw,G0,$sp,Hkp,Czh,F8V,Njn,Usd,Zkr,znn,cmr,enr,IgU,agY,bkr,pYh,fgh,o8X,MEo,n8Y,AO,rU,id,Rx,XY1,ds7,g8V,y1,ikh,K8o,tEX,BjV,lb,Pzd,SEo,kjH,Ds7,$Z, C7,O97,ml,Fd,Nu,VlV,JJU,mPY,jiV,cL,F61,Z2,lAn,eb5,T9,bb,IA1,hz,YMX,aAo,b9Y,Mu,w0,Ey,d0,p_5,hb7,oHh,g0,Xd,vHr,Ml1,L6H,X_d,G9,nHX,EH1,dPX,tz,qMH,ub,QiY,Uy,n7,xPY,yJd,zb5,PL,L7,w_H,y_,p7,mf,$D,SMd,Oel,DPU,f7,oT,Vko,ju,Cj,yhr,Fb,N7,l9l,tO,We,Q1,fAn,Zk,AJr,zc,H9p,hnV,j6X,ce,$iX,HeV,Tc,jYU,chr,zJr,Tlr,eJ1,YD,bJ,pj,a9,h1,o9,I9Y,ve,a95,wA,pqn,Xb,be5,dA,gA,vyH,LH5,nyo,Gc,XqY,gyU,Dk,Vc,J9,qC5,lg,me,$G,QYH,HI,j9,xG,WI,Uc,Zs,ze,GXV,cI,sc,Ah7,Te,e9,rhH,iel,I3,YG,RJp,BlU,PVo,fc,h9,vI,kXh,My,Ofn,Vsp,SCV,JC1,yC1, l75,Ec,nc,Lc,mOn,Xt,ds,$Oh,gs,HfX,qy,jWd,CEH,FWh,Ge,Kc,NI7,xOr,t9,UOr,WW5,ug,A9,rs,zfr,cCd,ig,sWr,TI1,R3,I7Y,efr,BI,Ywl,PI,bfX,a7n,pX5,kG,S9,f7X,o4d,v4X,Ds,O0,VR,wXH,J$,Msp,$X,LWY,lv,Hd,jK,C8,E4r,g47,n4n,dO7,qwn,XX1,QWH,GPH,FH,KWV,u2h,ifp,BI7,Rfp,s0,cd,YX,bv,Sw1,p8,Oh5,f8,Jih,oO,yin,V37,vd,$Tr,wJ,MR,Hho,L8,jor,GjU,rmH,CQp,Nw7,FBV,xT5,n8,XH,E0,dJ,WB7,z2H,QR,Gn,K8,ciV,gJ,sor,Twl,e2X,YOX,t$,M3X,g3V,RO,qOl,xX,GQr,KBH,t3p,ur7,Pd,Ai5,kX,SK,rir,Dz,ihp,JK,R2o,Bwp,yG,lC,PQ5,kQo,SOY,DTY,m0,VG,Osr,$l,JTX,yTY, lbd,mSl,H6,$Sp,Hs1,j2h,jz,Fcr,C4,xSV,N$o,z8Y,U1,US1,C8r,FF,ZT,cTY,T$r,z6,e8o,s2o,Ibn,c6,s1,T6,ez,IB,Yl,Y_5,aB,p4,h8H,vA7,wjH,MUl,v6,Lcn,fbo,nAX,f4,XjX,dSn,bC,hK,bsn,M5,pjh,oB,gAl,q_Y,oAn,abd,n4,Q2r,XF,GAd,Kc1,E1,dn,gn,tU1,q5,rT7,uZr,ATh,QG,ish,G6,K4,tK,uC,R8p,B$X,P8o,AK,S_h,DSl,rn,OTr,iC,RB,VNh,JOo,yOh,lGo,mAd,$An,NUV,jxd,ACV,B6,WqX,Cd7,FqH,HTh,Sz,sx5,kl,P6,xAr,ewn,cOo,zwH,ZTV,UA1,OR,IGo,NR,VO,Je,yO,Yjh,lW,aGU,mk,bTo,eK,pJr,$x,U0,zn,tsH,Fg,xx,hwo,WN,Z_,Ne,CL,zx,HN,fGd,j7,cN,o$V,W6,Zs5,Wd,sR,UR,v$1, wJX,MNl,Tx,Lqp,n$H,XJr,E$H,dA1,EAp,iv,Yx,aq,e7,Kq5,ldr,mTp,bW,pL,tN7,ui7,AOH,fL,iTX,he,Rwl,Pdh,oq,nL,k07,Me,qe,DAU,SjV,Jzp,VWX,O7U,QO,yzr,Gx,l27,$u1,mup,KL,VUd,H77,te,uW,jTd,Ae,FlX,N0d,xul,Wln,ri,Cbn,iW,Zhn,Rq,zFr,BN,Z7V,PN,czX,UTo,qR,sTr,kx,D_,Yyl,I2h,$e,j5,HW,CC,pL7,Fl,vZH,f27,oZ1,hF7,xe,WW,wLV,MWo,LlY,nZ1,XLd,EZ7,duX,gZ5,Zt,qy7,QT1,G9o,cW,S7,tWo,udh,Uq,rzo,Klr,zY,i7p,sq,PbV,B07,TY,e5,Sy5,Ye,RFH,ar,Ir,k9r,fC,pC,lkY,y11,m7p,J1h,$7l,Hjr,Du1,Ojr,j9p,CJr,hQ,x7n,Wfd,NAY,Ffp,or,zIl,TAU,c1p,U7d,Zj1,s9p, vW,eIn,IkY,bj5,ak5,YJr,wM,peV,fko,Mm,hIX,oDr,weV,LC,nC,Mup,LfX,nD7,Xl,Xe7,Eq,ED7,d7X,gDX,qJY,Q9r,Gcp,KfH,tuU,ubr,r15,ijp,QS,GY,ul,PJH,tQ,kc1,SJh,D7l,Ocr,J9r,V9r,$yd,Hcn,Cgn,myH,j35,AQ,il,y9n,lsn,xyp,WeU,Nsr,Uyr,Zc5,zSY,c9H,s3n,N5,Tsn,eS7,Is5,YcU,bcd,bl,gi,pIY,wIU,hSU,vGV,TUV,Rr,fso,oGo,Tn,Zz,XIh,dyl,EGp,gG5,Q3U,GeY,FeX,di,BW,LL,LeV,Kep,nGd,t91,wi,utY,A9d,BU5,Vur,Xg,PW,ke,S5,r9d,Dt,ic5,RSp,Bsn,PgX,keX,Scn,O8H,VK5,y$7,J$V,H85,$Rr,jOr,Vm,xRd,FDr,NJr,c$n,sOH,TJr,JH,ec7,OH,Izr,zcH,CvX,ym,Y0V,lzr,azp,lh, pdo,b8r,hcr,oX1,vX7,fzp,mL,nXp,LDh,dR7,EX1,XdY,gXV,q0r,$B,QOX,Hm,KDU,tKH,Gno,A$l,i8V,Rcr,DRh,PvH,kn5,S0o,O4p,Vzd,JK7,lT7,yKp,$55,H4n,jBr,jp,CCH,F0H,x55,Nnr,W0U,U5h,zar,cKH,eaV,sBX,ITn,Y1V,aTY,Z4X,b4n,Tnl,FI,p6H,fTn,hao,olo,xB,Mzr,w6n,L0r,nlU,X6H,gl1,Elr,G6Y,Wm,d5o,K05,tzn,UH,uFY,ZR,zB,AK5,cm,rK5,TB,sH,Rad,PCY,k6o,S1H,D5V,OLn,BnY,V7d,ep,JeU,i4V,BAV,NJ,l_h,meV,$eV,HLo,jqh,CWr,Fk7,xe5,YB,Wkn,Nid,Ue7,ZL5,zRY,cer,eRh,TiY,sqV,I_o,bh,cg1,YRo,a_7,pg,bLd,pNn,hH,ox1,vxX,vm,wNY,M7n,oR,hR7,wt,fg,f_X,ng,MJ,Lkp, XI,Lg,deX,QqH,Kkr,ugH,XNr,Gxn,Aen,Exr,red,iLX,RR5,qJ,EH,kx1,SRn,Bi5,gt,OCH,V51,qR5,gxn,Der,JQU,t7d,PWU,nxl,Qm,GB,Kg,yQU,tH,FPh,HCY,NMV,jrY,mmV,xmY,ltr,ZCo,WPp,uh,zWU,$mU,srY,eWo,Yq7,atn,bCl,hWr,Bm,oen,pWH,RR,M5l,LPh,Vo,Azd,AH,ned,XW7,ge1,qqh,Eer,GYU,wW7,rt,Sp,ulp,AQr,rQV,iC5,ash,kB,RW5,Plr,BMh,SqH,kY7,Itl,OgY,Dmp,DR,Pm,F5,bgl,pm1,N0,fRY,oB5,vBY,xi,h9Y,W9,UX,wm5,Mpp,LLY,nBp,Xmn,EBp,dJV,c9,Zw,zW,gB5,sX,qHU,QRH,GBr,KLh,uI1,tpr,ba,rHr,ign,AHd,R9n,py,Btl,fy,Ph7,hw,kB1,DJo,m0H,Oyh,Jwl,ywd,V0V,SHl,lwh,$0r, HyV,jg1,CaV,Fy1,NeY,v9,x0p,Ly,we,Wy7,ny,X5,Zyd,z_n,de,ge,cwh,EX,Ter,sgo,q0,IwX,e_o,GW,Ky,tw,byh,YXH,awd,ua,p9X,vi5,h_X,fw7,oiX,Aw,M0U,Eih,d0r,re,gin,Lyr,qXd,ia,nin,AwV,rwp,Rg,B9,iyl,R_H,Bed,PaX,kWU,ki,D05,JjY,yj7,l8n,Dw,OGX,$XU,S0,Oe,Vl,SXo,VhV,Jj,HGn,CZ1,F1o,xXp,N8h,W1r,zip,Hi,m1,CG,$n,ZGh,UXh,jh,cjX,F_,slY,T81,ein,NX,xn,I87,Yer,a8Y,bGp,pih,f8p,hi5,wiY,on5,Mhp,L1r,dXH,gnh,u_n,bZ,iG7,PZ1,pG,B8l,RiV,K1V,thH,qel,Qlo,AjH,fG,hj,DXY,rA,f9r,Otl,vi,MX,Vjn,JpV,al,rj7,mp7,$pX,HtV,nG,LG,Gm,Cuo,Fi7,Np7,KG,xpo, Uph,Wih,Zth,tj,uZ,zEr,Tpr,eEl,r8,Iup,sQH,auV,YQ7,btd,cpn,Bi,pVH,fuY,Rl,hEd,o5o,v5l,wVh,LiV,Mjh,E5V,dp7,n57,qQ7,QQr,XVU,Sh,D8,G3p,rpn,OQ,Ki7,tjV,Ap7,unV,itX,Bpn,REr,Pup,Vq,k35,SQH,Dpr,OBH,V_Y,yx1,lY1,$QX,mQd,HBo,jsh,CKV,FGX,NyU,WGr,yq,Jp,Jxr,lu,UQl,ZB7,xQo,YaV,IYr,aYX,bBX,hVp,fY1,pz1,oJV,vJp,mi,$5,wz5,M_o,LGU,nJr,EJH,dQh,jj,gJU,HV,Fn,Xz1,Np,qaV,Qsd,GiH,KGn,t_1,x5,u4r,AxV,RVd,WV,Byr,iBd,UQ,Zu,z3,kio,SaH,DQH,PKY,VZr,ObU,J3r,cV,y35,lvo,$jh,CRr,mjn,Hbd,sQ,F5r,xj7,W5U,Zb1,zpr,T3,ej,c31,N1r,eph,T1h,sup, IQ,Y5,Y3p,Iv1,aQ,bu,pt,avh,ft,bbh,pOl,fvr,hpd,hp,ocV,oQ,vcd,vV,wOh,wp,Mp,L5d,MZU,nc7,Lt,EcH,nt,Xn,gcn,GLn,K5V,dj5,tZH,r3h,ibV,RpV,A37,usd,PRr,B1Y,kLp,OPY,gp,JWl,VQh,S3U,DjY,yWH,lEr,qp,Qq,maV,$a5,HPr,jJh,CS7,FvX,xar,Wv5,IEH,zOo,cW7,Ua1,aEo,rp,RQ,oqU,vqn,k5,wQ5,Sj,MQo,bPd,Ap,BV,nqH,XQX,Oa,dan,qhd,gqh,VF,PV,uu,Eq1,Du,pQ7,LvH,GgH,G3,Jx,KvX,tQr,iu,fEd,yF,lK,uoh,mG,AW1,$J,rWd,iPd,BBn,PSY,ROU,Hz,j_,CB,kgr,ShV,Da5,VcU,JMY,lnn,yMd,m6o,NQ,F4,O0r,$61,j77,H0r,xJ,Wz,Crr,NZr,x6o,Ua,FxU,ZY,zi,Wx1,U6p,zoV,cz,Z0o, cMU,s75,TZ7,Ti,e_,YPH,anl,eoU,Inp,b0X,Is,YJ,fn7,pc5,hor,vMd,oM1,wcp,pB,as,Lxl,Mcp,nMo,hx,XcH,d65,EMH,vz,gMX,qPl,Q7Y,KxV,tcr,uNr,GHn,AMX,rMU,i0r,Rod,BZ1,Prr,SPH,D6X,OA7,LB,Vvn,JRU,yRU,mZr,jPp,$ZH,lx7,Ea,X4,HAn,dy,Fbr,CUY,qQ,gy,UZp,ZA1,zkV,cRr,BJn,tx,diV,Gi,uK,KB,ry,sPY,iK,ax7,njU,Xxn,Rs,t5l,Ejh,h$,kP5,DOl,Bz,Pz,yR,dZU,gjU,mD,aO,vN,qVh,QPd,GGX,Kbo,tvr,uwH,rRr,iAo,Rkh,Bvn,ARH,l47,J5r,mtX,$tH,y5n,H$1,jDY,V4,PUr,J3,NHp,xtH,FOn,CGr,Z$r,UtH,xl,zgY,sDr,egU,y4,I4d,VG1,DY,c5h,Ymp,a47,b$p,kG1,O$l,Wc5,ER,O3, p27,m5,hgd,oVY,vVY,lR,f4Y,THU,MGd,EVr,HO,dtU,gV1,nV5,Cb,qm7,QDd,w2Y,GoH,X25,KOh,Fs,jZ,tGn,A5X,uAn,$c,i$d,Nj,vel,RgV,ko5,PGX,Dtp,Ow5,SmH,WO,xc,JLo,yLU,lh5,mr7,U3,$rH,Hwr,jAd,CxH,FXY,Nmn,Tm5,Zwr,zPV,WX1,xrn,cO,hP7,prV,EJ,zL,eZ,Iu,vhr,wrd,au,sAU,h3,LX5,fb,Yc,Xrp,EhH,drH,bwp,w1,Lb,qUX,cLl,M2d,bR,s3,QAV,E3,GVl,nhV,t21,uxp,d1,g1,ALp,pb,fhh,rLo,iwd,Mj,RPr,ou,Bm7,vO,nj,Pxd,SUp,qj,Q4,Drh,OQp,Vb1,Xs,nb,Jvh,BH1,yvd,Uro,lCV,mGh,$GU,HQo,GL,Kb,FFl,WFd,ZQn,Cq1,aC7,bQl,p1l,t3,fCo,hv5,ow7,vwH,MbV,w1d,LFl,uR,A3,r1, nw5,X1l,Ewr,mo,dGn,iR,gwV,Ru,qYd,BO,PO,wz,Qvr,bz,tqn,GaV,HY,KF5,Ps,kf,tbh,V8,u8r,Av7,rv1,iQY,pk,PnU,Rvh,BKp,Pq1,kc,SYo,DGd,SZ,Oh,Ve,OXY,yk5,lX5,JW,mfd,VMX,$fr,Jkp,HXY,jXp,Ct7,Fnh,ye,xfd,lH1,JY,Cx,Wno,Ufh,xW,NYY,CE,ZX1,zeX,ck7,lS,kp,TYr,mv,eep,$q,HQ,Dv,IXU,YbY,aXp,jQ,CP,bXn,Fo,Na,pD7,xq,fXY,WQ,Uh,hep,okY,dwn,ZE,vko,MM5,wDl,zg,cQ,Lnl,sh,nk5,XDl,Ekn,dfY,gkH,qbp,Gyn,eQ,QXd,Knn,tM1,u9V,AkH,BYl,rk7,iXd,Re1,kyV,Dfd,OlH,VO5,SbU,IJ,Jfr,yfn,lc5,mCl,$Cr,aJ,Hlp,bS,pP,fP,jKU,C55,NDd,xCX,Wuh,UCn,zZ7,Zlr,cfp,hW, oJ,eZn,sKr,TDU,vQ,Icr,Yr5,wB,Ma,acp,LP,blh,nP,p4r,Xo,Eh,fcn,dB,gB,hZ5,o0r,qa,Qe,v0U,Gg,w45,MOl,AW,rB,LuU,n0X,X4h,g01,dCp,iS,qro,QKX,GZX,iUn,E01,tOh,uJ5,rfX,hHd,whV,Ar,ql; Uo=function(O,V,J){if((O&105)==O)a:{var y=g.e(V,Onn)||V[C[78]],l={BF:!1,dR:C[0],jL:C[0],s:C[0]};if(!y){var m=l;break a}y=y7(y);l[C[80]]=!0;l[C[1]]=y[C[28]];l[C[74]]=y[C[12]];l[C[18]]=y[C[18]];m=l}(O|24)==O&&(V=(V%J[C[6]]+J[C[6]])%J[C[6]],J[C[44]](V,1));O-5<<1>=O&&(O+1^3)1&&F[1]){y=l[C[5]];var N=y[C[2]](/^[^.]*/,C[0]);g.F1(l,(y[C[19]](C[43])===0?C[43]:C[69])+H+C[47]+F[1]+N);l=new g.Nl(l[C[29]]());l[C[34]](C[24],C[9]);m=l;break a}if(J){l=V[C[26]]();l[C[34]](C[24],C[9]);m=l;break a}H=l[C[5]][C[81]](C[90]);l[C[5]][C[81]](C[20])?(g.F1(l,C[82]),y=l[C[29]]()):l[C[5]][C[81]](C[41])?(g.F1(l,C[83]),y=l[C[29]]()):(l=VV1(y),Wh(l)&&(y=l));l=new g.Nl(y);l[C[34]](C[49],C[9]);H&&l[C[34]](C[37],C[54]);m=l}O- 4>>3==1&&(V[54]>-5&&(V[37]==-7?(((0,V[85])(V[87]),(0,V[85])(V[74]),V[30])((0,V[30])(((0,V[39])(V[73],V[33]),V[39])(V[10],V[87]),V[new J(C[67])/1E3],V[59],V[0],(0,V[2])()),V[1],V[87],V[84]),V[27])(V[6],V[74]):(0,V[36])((0,V[81])(V[33]),(0,V[4])(V[-6804+Math[C[93]](6,new J(C[38])/1E3)- -5510]),V[82],(0,V[5])(V[77],V[33])&(0,V[47])(V[20],V[70]),V[74],(0,V[72])((0,V[33])(V[42]),V[69],V[76],V[42]),V[39],V[77])),V[82]!=new J(C[56])/1E3&&(0,V[46])((0,V[43])(V[26],V[61]),V[72],(0,V[72])((0,V[74])(V[70],V[65]), V[33],V[70]),V[new J(C[86])/1E3*66-1+-2196],V[71],V[75]),(V[54]<6||((0,V[60])(V[66],V[83]),null))&&(0,V[46])(V[55]),V[76]!=-1&&((0,V[87])(V[55],V[63]),V[46])(V[52]),V[46]!==-9&&(V[86]>=-2||(((0,V[4])((0,V[7])(V[79],V[1]),V[7],V[new J(C[61])/1E3],V[37]),(0,V[19])(V[65],V[6],(0,V[32])()),V[19])(V[65],V[34],(0,V[68])()),C[0]))&&((0,V[85])(V[53],V[6]),V[4])((0,V[29])(V[18],V[50])!==(0,V[29])(V[66],V[50]),V[33],V[50],V[61]),(V[45]!==-2||((0,V[4])((0,V[30])((0,V[19])(V[65],V[50],(0,V[55])()),V[4],((0,V[2])(V[1], V[63]),V[7])(V[20],V[50]),V[7],V[16],V[34]),V[19],V[65],V[34],(0,V[55])()),0))&&(0,V[67])(V[12],(0,V[8])(V[72],V[1]),V[19],(0,V[39])(V[1]),(0,V[5])(V[68],V[56]),(0,V[new J(C[88])/1E3])(V[42],V[53]),V[25],V[56],(0,V[22])()),V[29]!=-5&&(0,V[88])(V[33],V[3]),V[50]!=9&&(V[49]!=-6?(0,V[86])((0,V[5])(V[26],V[40]),V[88],V[33],V[20]):(0,V[86])((0,V[61])(V[new J(C[36])/1E3],V[40]),V[61],V[6],V[40])),V[8]!==7?(((((0,V[88])(V[53],V[14]),V[57])(V[56],V[31]),V[57])(V[56],V[76]),((0,V[47])(V[56]),V[88])(V[56], V[30]),((0,V[88])(V[40],V[81]),V[51])(V[33]),V[4])((0,V[85])(V[69],V[1]),V[33],V[57],V[31]),(0,V[1])(V[56],V[16]),(0,V[3])((0,V[32])(V[83],V[48]),V[89],V[53],V[70])):((((((0,V[28])((0,V[3])(V[82],V[46]),V[25],V[71],V[53]),(0,V[3])(V[48],V[46]),V[15])(V[77],V[30],(0,V[64])()),(0,V[28])((0,V[3])(V[21],V[46]),V[89],V[80],V[41]),V[38])((0,V[81])(V[9],V[2]),V[35],(0,V[29])(V[80],V[23]),V[2]),V[89])(V[53],V[78]),V[89])(V[53],V[37]),V[3])(V[40],V[2]),V[65]!=2&&(0,V[8])(V[81],(0,V[4])(V[new J(C[35])/1E3], V[53]),(0,V[81])(V[34],V[30]),(0,V[89])(V[80],V[42]),V[54],V[53]),m=[]);return m}; Jro=function(O,V,J,y,l,m){if(!((O|2)>>4)){for(var H=64,F=[];++H-F[C[6]]-32;)switch(H){case 58:H=96;continue;case 91:H=44;break;case 65:H=47;continue;case 46:H=153;case 123:H-=58;default:F[C[27]](String[C[53]](H))}var N=F}(O&62)==O&&(N=J(y,l,m));return N}; ch=function(O,V,J,y,l,m,H,F,N,x){if((O|56)==O)a:{var W=V[C[3]](C[0]),U=[W,yr1,lU5,2069769610,mll,$l7,141567516,80134410,-514427822,68321597,1571695163,-1896598840,72580542,-574949554,1142991916,Hn5,1873615864,329014314,1666363146,1832023042,-278967315,1203846527,-1621524714,1318136440,-140304034,421863297,jpr,CX1,W,-1225306877,Fdh,-1246016294,N5p,null,-230064026,-1130015906,xlH,1901117621,362202418,Wdr,133052801,C[91],1195913731,C[89],-569648184,7106448,-834488931,-1403582073,Ulp,-867551056,1863433327, -185835629,-1504138918,-2144218159,1049346323,1958270933,Znl,zHr,-1658903136,C[19],-1675963816,760567602,cr1,2067192438,-1398112038,1551862676,1602268288,null,207959783,spV,/[/[[]({)(])}/,-569648184,1924650261,375345694,W,-834488931,605425583,-872651928,889474343,1316306895,665846980,T57,eH1,-402715160,895686249,IUo,-931628194,null,1863433327,1203846527];U[33]=U;U[67]=U;U[87]=U;if(typeof Yop===C[57]){var Z=V;break a}try{try{var z=Uo(12,U,Date)}catch(c){U=ZU(23,U,Date)}}catch(c){Z=C[58]+V;break a}Z= W[C[23]](C[0])}((O^32)&15)==2&&J[C[6]]!=0&&(W=zr(36,V,J),V=W[0]);(O|72)==O&&(Z=y(l,m,H,F,N,x));(O&124)==O&&V[C[22]]();return Z}; ZU=function(O,V,J,y){if(!(O+7>>4)){var l=V[J],m=l[C[19]](C[30]);m>0?so(27,y,l[C[16]](0,m),l[C[16]](m+1)):l&&(y[l]=C[0]);var H=[]}(O|16)==O&&((0,V[38])((0,V[81])(V[6],V[30]),V[new J(C[77])/1E3],(0,V[60])(V[53]),V[80]),(0,V[25])(V[17],V[80]),(0,V[15])(V[77],V[30],(0,V[58])()),(0,V[3])(V[51],V[2]),(0,V[25])(V[90],V[33]),(0,V[28])((0,V[15])(V[77],V[2],(0,V[58])()),V[3],V[73],V[46])^(0,V[60])(V[80]),H=[]);(O-1|31)>=O&&(O+9^18)0&&m>0?(J[C[15]]=V[C[16]](0, m),V=V[C[16]](m+1)):(J[C[15]]=V,V=C[0]),H=[V]);return H}; Ip=function(O,V){if(O-7>>3==2){$Y(40,V);var J=g.eV(V[C[5]],aUH)}if((O|6)<15&&O<<1>=3){$Y(56,V);var y=V[C[11]]+(V[C[11]]?C[62]:C[60])+V[C[40]]+V[C[15]];if(Ip(23,V)){var l=[];g.YY(V[C[5]],function(F,N){F!==null&&l[C[27]](N+C[30]+F)}); y+=C[75]+l[C[23]](C[64])}J=y}(O-1&6)==2&&(J=V[C[7]]?V[C[7]][C[31]](C[4]):V[C[11]]===C[4]);if(((O^75)&19)==2){y=V[C[3]](C[52]);var m=0;y[0]||m++;for(var H={};m=12&&((O^43)&15)<7&&($Y(43,V),y=decodeURIComponent(V[C[10]](C[39])||C[0])[C[3]](C[59]),J=V[C[15]]===C[25]&&y[C[6]]>1&&!!y[1]);return J}; so=function(O,V,J,y,l,m,H,F){var N;if((O+9^31)>=O&&(O-3|9)=0?(J=C[14]+y[C[16]](0,x),y=y[C[16]](x+1)):(x=y[C[19]](C[65]))>=0&&(J=C[14]+y[C[16]](0,x),y=y[C[16]](x+3))}V[J]=y}O<<2&6||(J=(J%V[C[6]]+V[C[6]])%V[C[6]],V[C[44]](-J)[C[22]]()[C[55]](function(W){V[C[46]](W)})); O-7<12&&((O^54)&7)>=1&&(N=V(m,H,F));return N}; bnY=function(O){if((O+6&5)==1){for(var V=64,J=[];++V-J[C[6]]-32;){switch(V){case 91:V=44;continue;case 123:V=65;break;case 65:V-=18;continue;case 58:V=96;continue;case 46:V=95}J[C[27]](String[C[53]](V))}var y=J}if((O>>2&4)<1&&O-9>=15){V=64;for(J=[];++V-J[C[6]]-32;){switch(V){case 58:V-=14;case 91:case 92:case 93:continue;case 123:V=47;case 94:case 95:case 96:continue;case 46:V=95}J[C[27]](String[C[53]](V))}y=J}return y}; zr=function(O,V,J){if((O-1&6)>=5&&(O|1)>>5<4)for(var y=V[C[6]];y;)V[C[27]](V[C[44]](--y,1)[0]);if((O^46)<11&&(O>>2&15)>=3){V=(V%J[C[6]]+J[C[6]])%J[C[6]];y=J[0];J[0]=J[V];J[V]=y;var l=[V]}O+7<13&&O<<2>=3&&(l=V!==null);return l}; ap=function(O,V,J,y,l,m,H,F,N,x,W,U){var Z;(O>>1&14)==2&&(Z=V(y,l,m,H,F,N,x,W,U));if((O|88)==O){for(var z=V[C[3]](C[64]),c={},Y=0;Y=O&&(x=J(y,l,m,H,F,N));if(!(O+1&3)){var W=y[C[6]];J[C[55]](function(U,Z,z){this[C[27]](z[Z]=y[(y[C[19]](U)-y[C[19]](this[Z])+Z+W--)%y[C[6]]])},V[C[3]](C[0]))}return x}; $Y=function(O,V,J){O+4&15||(this[C[7]]=V,this[C[21]]=J===void 0?!1:J,this[C[40]]=this[C[15]]=this[C[11]]=C[0],this[C[5]]={},this[C[28]]=C[0]);if((O-8&7)>=0&&O+1<14){if(!(Wh(V[C[7]])||V[C[7]][C[31]](C[4])||V[C[7]][C[31]](C[79])||V[C[7]][C[31]](C[51])))throw new g.pn(C[45],V[C[7]]);var y=g.fn(V[C[7]]);V[C[11]]=y[C[71]];V[C[40]]=y[C[5]]+(y[C[40]]!=null?C[42]+y[C[40]]:C[0]);var l=y[C[7]];l[C[31]](C[25])?(V[C[15]]=C[25],l=l[C[16]](14)):l[C[31]](C[48])?(V[C[15]]=C[48],l=l[C[16]](13)):l[C[31]](C[76])?(l= ZU(9,l,V),l=l[0]):(V[C[15]]=l,l=C[0]);var m=V[C[5]];V[C[5]]=Ip(9,l);Object[C[85]](V[C[5]],ap(88,y[C[21]][C[29]]()));Object[C[85]](V[C[5]],m);V[C[5]][C[17]]===C[87]&&(delete V[C[5]][C[17]],V[C[15]]+=C[32]);V[C[7]]=C[0];V[C[28]]=C[0];V[C[21]]&&(y=$Y(13,V));var H=[]}if((O<<1&7)==2){$Y(50,V);if(y=V[C[5]][C[13]]||null)y=fUr[0](y),V[C[34]](C[13],y);H=[]}O-6>>4>=2&&(O<<1&8)<4&&V[C[7]]&&(y=$Y(2,V));if((O>>2&15)>=0&&(O-3&12)<3){y=64;for(l=[];++y-l[C[6]]-32;)switch(y){case 46:y=95;default:l[C[27]](String[C[53]](y)); case 94:case 95:case 96:break;case 123:y-=76;case 92:case 93:continue;case 58:y=44;case 91:}H=l}return H}; Eo=function(O,V,J,y,l,m,H){if((O+3&79)=O){var F=V[C[3]](C[0]);Ln[C[33]](F,38);Ln[C[50]](F,1);Ln[C[84]](F,1);var N=F[C[23]](C[0])}(O&125)==O&&(N=J(l,m,H));return N}; d5=function(O){return function(){return hHd[O].apply(this,arguments)}}; g.g5=function(O,V){return hHd[O]=V}; oYH=function(O){O=["object"==typeof globalThis&&globalThis,O,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var V=0;V=this.length))return this[O]}; KdY=function(O,V,J){O instanceof String&&(O=String(O));for(var y=O.length-1;y>=0;y--){var l=O[y];if(V.call(J,l,y,O))return{ea:y,Sh:l}}return{ea:-1,Sh:void 0}}; g.zD=function(O,V,J){O=O.split(".");J=J||g.Z1;for(var y;O.length&&(y=O.shift());)O.length||V===void 0?J[y]&&J[y]!==Object.prototype[y]?J=J[y]:J=J[y]={}:J[y]=V}; TD=function(O,V){var J=g.cn("CLOSURE_FLAGS");O=J&&J[O];return O!=null?O:V}; g.cn=function(O,V){O=O.split(".");V=V||g.Z1;for(var J=0;J2){var y=Array.prototype.slice.call(arguments,2);return function(){var l=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(l,y);return O.apply(V,l)}}return function(){return O.apply(V,arguments)}}; g.hI=function(O,V,J){g.hI=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?u15:Arr;return g.hI.apply(null,arguments)}; g.oz=function(O,V){var J=Array.prototype.slice.call(arguments,1);return function(){var y=J.slice();y.push.apply(y,arguments);return O.apply(this,y)}}; g.vn=function(){return Date.now()}; rrh=function(O){g.zD("yt.abuse.playerAttLoaderRun",O)}; Ld=function(O){return O}; g.nd=function(O,V){function J(){} J.prototype=V.prototype;O.EE=V.prototype;O.prototype=new J;O.prototype.constructor=O;O.ZK=function(y,l,m){for(var H=Array(arguments.length-2),F=2;F=0;--J)J in y&&V.call(void 0,y[J],J,O)}; g.Qs=function(O,V,J){V=dV(O,V,J);return V<0?null:typeof O==="string"?O.charAt(V):O[V]}; dV=function(O,V,J){for(var y=O.length,l=typeof O==="string"?O.split(""):O,m=0;m=0;y--)if(y in l&&V.call(J,l[y],y,O))return y;return-1}; g.Kd=function(O,V){return krh(O,V)>=0}; Sod=function(O){if(!Array.isArray(O))for(var V=O.length-1;V>=0;V--)delete O[V];O.length=0}; g.um=function(O,V){V=krh(O,V);var J;(J=V>=0)&&g.tI(O,V);return J}; g.tI=function(O,V){return Array.prototype.splice.call(O,V,1).length==1}; g.rV=function(O,V){V=dV(O,V);V>=0&&g.tI(O,V)}; DlV=function(O,V){var J=0;PXo(O,function(y,l){V.call(void 0,y,l,O)&&g.tI(O,l)&&J++})}; g.Bn=function(O){return Array.prototype.concat.apply([],arguments)}; g.kE=function(O){var V=O.length;if(V>0){for(var J=Array(V),y=0;y>>1),N=void 0;J?N=V.call(void 0,O[F],F,O):N=V(y,O[F]);N>0?l=F+1:(m=F,H=!N)}return H?l:-l-1}; g.m$=function(O,V){O.sort(V||VU)}; JIr=function(O,V){var J=VU;g.m$(O,function(y,l){return J(V(y),V(l))})}; var aUH=function(O){return zr[C[8]](this,1,O)}; g.$m=function(O,V,J){if(!g.Iz(O)||!g.Iz(V)||O.length!=V.length)return!1;var y=O.length;J=J||yI5;for(var l=0;lV?1:O0&&(V[l]=y)},O); return V}; WCU=function(O){O=qk(O);var V=[];g.YY(O,function(J,y){y in Object.prototype||typeof J!="undefined"&&V.push([y,":",J].join(""))}); return V}; Zd5=function(O){E2(O,"od",UW1);E2(O,"opac",QU).K=!0;E2(O,"sbeos",QU).K=!0;E2(O,"prf",QU).K=!0;E2(O,"mwt",QU).K=!0;E2(O,"iogeo",QU)}; Gv=function(O,V){return O.lastIndexOf(V,0)==0}; zyU=function(O,V){var J=O.length-V.length;return J>=0&&O.indexOf(V,J)==J}; g.Ku=function(O){return/^[\s\xa0]*$/.test(O)}; g.t0=function(O,V){return O.indexOf(V)!=-1}; u2=function(O,V){return g.t0(O.toLowerCase(),V.toLowerCase())}; g.Bt=function(O,V){var J=0;O=A0(String(O)).split(".");V=A0(String(V)).split(".");for(var y=Math.max(O.length,V.length),l=0;J==0&&lV?1:0}; g.Pt=function(){var O=g.Z1.navigator;return O&&(O=O.userAgent)?O:""}; OD=function(O){if(!km&&!Sw||!DZ)return!1;for(var V=0;V0:!1}; lw=function(){return Ja()?!1:Vt("Opera")}; cI7=function(){return Ja()?!1:Vt("Trident")||Vt("MSIE")}; szd=function(){return Ja()?OD("Microsoft Edge"):Vt("Edg/")}; mj=function(){return Vt("Firefox")||Vt("FxiOS")}; j1=function(){return Vt("Safari")&&!($r()||(Ja()?0:Vt("Coast"))||lw()||(Ja()?0:Vt("Edge"))||szd()||(Ja()?OD("Opera"):Vt("OPR"))||mj()||Vt("Silk")||Vt("Android"))}; $r=function(){return Ja()?OD("Chromium"):(Vt("Chrome")||Vt("CriOS"))&&!(Ja()?0:Vt("Edge"))||Vt("Silk")}; TV1=function(){return Vt("Android")&&!($r()||mj()||lw()||Vt("Silk"))}; ey7=function(O){var V={};O.forEach(function(J){V[J[0]]=J[1]}); return function(J){return V[J.find(function(y){return y in V})]||""}}; I1r=function(O){var V=g.Pt();if(O==="Internet Explorer"){if(cI7())if((O=/rv: *([\d\.]*)/.exec(V))&&O[1])V=O[1];else{O="";var J=/MSIE +([\d\.]+)/.exec(V);if(J&&J[1])if(V=/Trident\/(\d.\d)/.exec(V),J[1]=="7.0")if(V&&V[1])switch(V[1]){case "4.0":O="8.0";break;case "5.0":O="9.0";break;case "6.0":O="10.0";break;case "7.0":O="11.0"}else O="7.0";else O=J[1];V=O}else V="";return V}var y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");J=[];for(var l;l=y.exec(V);)J.push([l[1],l[2],l[3]||void 0]); V=ey7(J);switch(O){case "Opera":if(lw())return V(["Version","Opera"]);if(Ja()?OD("Opera"):Vt("OPR"))return V(["OPR"]);break;case "Microsoft Edge":if(Ja()?0:Vt("Edge"))return V(["Edge"]);if(szd())return V(["Edg"]);break;case "Chromium":if($r())return V(["Chrome","CriOS","HeadlessChrome"])}return O==="Firefox"&&mj()||O==="Safari"&&j1()||O==="Android Browser"&&TV1()||O==="Silk"&&Vt("Silk")?(V=J[2])&&V[1]||"":""}; Yzl=function(O){if(Ja()&&O!=="Silk"){var V=DZ.brands.find(function(J){return J.brand===O}); if(!V||!V.version)return NaN;V=V.version.split(".")}else{V=I1r(O);if(V==="")return NaN;V=V.split(".")}return V.length===0?NaN:Number(V[0])}; bd7=function(){var O=null;if(!a1V)return O;try{var V=function(J){return J}; O=a1V.createPolicy("goog#html",{createHTML:V,createScript:V,createScriptURL:V})}catch(J){}return O}; FB=function(){Ca===void 0&&(Ca=bd7());return Ca}; var N5p=function(O,V){return Uo[C[8]](this,10,O,V)}; Ng=function(O){this.K=O}; xr=function(O){var V=FB();O=V?V.createScriptURL(O):O;return new Ng(O)}; WZ=function(O){if(O instanceof Ng)return O.K;throw Error("");}; UD=function(O){this.K=O}; g.Z6=function(O){if(O instanceof UD)return O.K;throw Error("");}; zk=function(O){this.wN=O}; cZ=function(O){return new zk(function(V){return V.substr(0,O.length+1).toLowerCase()===O+":"})}; g.sD=function(O,V){V=V===void 0?pnX:V;a:if(V=V===void 0?pnX:V,!(O instanceof UD)){for(var J=0;J4);l++)V[XB(O[l])]||(J+="\nInner error "+y++ +": ",O[l].stack&&O[l].stack.indexOf(O[l].toString())==0||(J+=typeof O[l]==="string"?O[l]:O[l].message+"\n"),J+=La(O[l],V));l")!=-1&&(O=O.replace(gEo,">")),O.indexOf('"')!=-1&&(O=O.replace(qz1,""")),O.indexOf("'")!=-1&&(O=O.replace(QzU,"'")),O.indexOf("\x00")!=-1&&(O=O.replace(GDr,"�")));return O}; g.Qt=function(O){return O==null?"":String(O)}; Gk=function(O){for(var V=0,J=0;J>>0;return V}; Ka=function(O){var V=Number(O);return V==0&&g.Ku(O)?NaN:V}; KCU=function(O){return String(O).replace(/\-([a-z])/g,function(V,J){return J.toUpperCase()})}; tFX=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; uzX=function(O){return O.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(V,J,y){return J+y.toUpperCase()})}; AIH=function(O){var V=1;O=O.split(":");for(var J=[];V>0&&O.length;)J.push(O.shift()),V--;O.length&&J.push(O.join(":"));return J}; ta=function(){return km||Sw?!!DZ&&!!DZ.platform:!1}; rIU=function(){return ta()?DZ.platform==="Android":Vt("Android")}; uw=function(){return Vt("iPhone")&&!Vt("iPod")&&!Vt("iPad")}; Aa=function(){return uw()||Vt("iPad")||Vt("iPod")}; rO=function(){return ta()?DZ.platform==="macOS":Vt("Macintosh")}; idn=function(){return ta()?DZ.platform==="Windows":Vt("Windows")}; iw=function(O){iw[" "](O);return O}; Ryr=function(O,V){try{return iw(O[V]),!0}catch(J){}return!1}; PmV=function(O,V){var J=BVV;return Object.prototype.hasOwnProperty.call(J,O)?J[O]:J[O]=V(O)}; g.RG=function(O){return PmV(O,function(){return g.Bt(kDl,O)>=0})}; g.BZ=function(O,V,J){return Math.min(Math.max(O,V),J)}; g.PZ=function(O,V){O%=V;return O*V<0?O+V:O}; kr=function(O,V,J){return O+J*(V-O)}; g.S1=function(O,V){this.x=O!==void 0?O:0;this.y=V!==void 0?V:0}; D6=function(O,V){return O==V?!0:O&&V?O.x==V.x&&O.y==V.y:!1}; g.Op=function(O,V){this.width=O;this.height=V}; g.Vx=function(O,V){return O==V?!0:O&&V?O.width==V.width&&O.height==V.height:!1}; J8=function(O){return O.width*O.height}; lB=function(O,V){this.K=O===yx&&V||""}; mQ=function(O){if(O instanceof Yr)return O;O=String(O).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return aG(O)}; DWr=function(O){return SzH(O)}; SzH=function(O){var V=mQ("");return aG(O.map(function(J){return bw(mQ(J))}).join(bw(V).toString()))}; lZr=function(O){var V;if(!Ou5.test("div"))throw Error("");if(VwH.indexOf("DIV")!==-1)throw Error("");var J="":(O=DWr(V.map(function(y){return y instanceof Yr?y:mQ(String(y))})),J+=">"+O.toString()+""); return aG(J)}; J0p=function(O){for(var V="",J=Object.keys(O),y=0;y2&&NTn(l,H,y,2);return H}; NTn=function(O,V,J,y){function l(F){F&&V.appendChild(typeof F==="string"?O.createTextNode(F):F)} for(;y0)l(m);else{a:{if(m&&typeof m.length=="number"){if(g.YE(m)){var H=typeof m.item=="function"||typeof m.item=="string";break a}if(typeof m==="function"){H=typeof m.item=="function";break a}}H=!1}g.Cu(H?g.kE(m):m,l)}}}; g.I1=function(O){return sp(document,O)}; sp=function(O,V){V=String(V);O.contentType==="application/xhtml+xml"&&(V=V.toLowerCase());return O.createElement(V)}; g.Ya=function(O){return document.createTextNode(String(O))}; g.a1=function(O,V){O.appendChild(V)}; g.bB=function(O){for(var V;V=O.firstChild;)O.removeChild(V)}; po=function(O,V,J){O.insertBefore(V,O.childNodes[J]||null)}; g.fo=function(O){return O&&O.parentNode?O.parentNode.removeChild(O):null}; g.h8=function(O,V){if(!O||!V)return!1;if(O.contains&&V.nodeType==1)return O==V||O.contains(V);if(typeof O.compareDocumentPosition!="undefined")return O==V||!!(O.compareDocumentPosition(V)&16);for(;V&&O!=V;)V=V.parentNode;return V==O}; jg=function(O){return O.nodeType==9?O:O.ownerDocument||O.document}; g.o1=function(O,V){if("textContent"in O)O.textContent=V;else if(O.nodeType==3)O.data=String(V);else if(O.firstChild&&O.firstChild.nodeType==3){for(;O.lastChild!=O.firstChild;)O.removeChild(O.lastChild);O.firstChild.data=String(V)}else g.bB(O),O.appendChild(jg(O).createTextNode(String(V)))}; vp=function(O){return O.tagName=="A"&&O.hasAttribute("href")||O.tagName=="INPUT"||O.tagName=="TEXTAREA"||O.tagName=="SELECT"||O.tagName=="BUTTON"?!O.disabled&&(!O.hasAttribute("tabindex")||xkn(O)):O.hasAttribute("tabindex")&&xkn(O)}; xkn=function(O){O=O.tabIndex;return typeof O==="number"&&O>=0&&O<32768}; MY=function(O,V,J){if(!V&&!J)return null;var y=V?String(V).toUpperCase():null;return wc(O,function(l){return(!y||l.nodeName==y)&&(!J||typeof l.className==="string"&&g.Kd(l.className.split(/\s+/),J))},!0)}; wc=function(O,V,J){O&&!J&&(O=O.parentNode);for(J=0;O;){if(V(O))return O;O=O.parentNode;J++}return null}; Hp=function(O){this.K=O||g.Z1.document||document}; W$7=function(){this.K=this.XM=null}; Lo=function(){}; XY=function(){if(!no())throw Error();}; no=function(){return!(!Ep||!Ep.performance)}; Uk5=function(O){return g.z5?"webkit"+O:O.toLowerCase()}; dc=function(O){return function(){return O}}; g.qY=function(){}; Zun=function(O){var V=V||0;return function(){return O.apply(this,Array.prototype.slice.call(arguments,0,V))}}; Qx=function(O){var V=!1,J;return function(){V||(J=O(),V=!0);return J}}; G5=function(O){var V=O;return function(){if(V){var J=V;V=null;J()}}}; Ko=function(O,V,J){var y=0;return function(l){g.Z1.clearTimeout(y);var m=arguments;y=g.Z1.setTimeout(function(){O.apply(J,m)},V)}}; t8=function(O,V,J,y){this.top=O;this.right=V;this.bottom=J;this.left=y}; uB=function(O){return O.right-O.left}; A8=function(O,V){return O==V?!0:O&&V?O.top==V.top&&O.right==V.right&&O.bottom==V.bottom&&O.left==V.left:!1}; rc=function(O,V,J){V instanceof g.S1?(O.left+=V.x,O.right+=V.x,O.top+=V.y,O.bottom+=V.y):(O.left+=V,O.right+=V,typeof J==="number"&&(O.top+=J,O.bottom+=J));return O}; g.iB=function(O,V,J,y){this.left=O;this.top=V;this.width=J;this.height=y}; R1=function(O,V){return O==V?!0:O&&V?O.left==V.left&&O.width==V.width&&O.top==V.top&&O.height==V.height:!1}; g.Pp=function(O,V,J){if(typeof V==="string")(V=Bp(O,V))&&(O.style[V]=J);else for(var y in V){J=O;var l=V[y],m=Bp(J,y);m&&(J.style[m]=l)}}; Bp=function(O,V){var J=zYr[V];if(!J){var y=KCU(V);J=y;O.style[y]===void 0&&(y=(g.z5?"Webkit":ka?"Moz":null)+uzX(y),O.style[y]!==void 0&&(J=y));zYr[V]=J}return J}; g.Sg=function(O,V){var J=O.style[KCU(V)];return typeof J!=="undefined"?J:O.style[Bp(O,V)]||""}; D5=function(O,V){var J=jg(O);return J.defaultView&&J.defaultView.getComputedStyle&&(O=J.defaultView.getComputedStyle(O,null))?O[V]||O.getPropertyValue(V)||"":""}; OA=function(O,V){return D5(O,V)||(O.currentStyle?O.currentStyle[V]:null)||O.style&&O.style[V]}; g.JU=function(O,V,J){if(V instanceof g.S1){var y=V.x;V=V.y}else y=V,V=J;O.style.left=VI(y,!1);O.style.top=VI(V,!1)}; lA=function(O){try{return O.getBoundingClientRect()}catch(V){return{left:0,top:0,right:0,bottom:0}}}; c0r=function(O){var V=jg(O),J=OA(O,"position"),y=J=="fixed"||J=="absolute";for(O=O.parentNode;O&&O!=V;O=O.parentNode)if(O.nodeType==11&&O.host&&(O=O.host),J=OA(O,"position"),y=y&&J=="static"&&O!=V.documentElement&&O!=V.body,!y&&(O.scrollWidth>O.clientWidth||O.scrollHeight>O.clientHeight||J=="fixed"||J=="absolute"||J=="relative"))return O;return null}; g.mM=function(O){var V=jg(O),J=new g.S1(0,0);if(O==(V?jg(V):document).documentElement)return J;O=lA(O);V=Co(V);V=F$X(V.K);J.x=O.left+V.x;J.y=O.top+V.y;return J}; TT5=function(O,V){var J=new g.S1(0,0),y=cp(jg(O));if(!Ryr(y,"parent"))return J;do{var l=y==V?g.mM(O):sdr(O);J.x+=l.x;J.y+=l.y}while(y&&y!=V&&y!=y.parent&&(O=y.frameElement)&&(y=y.parent));return J}; g.$K=function(O,V){O=eYl(O);V=eYl(V);return new g.S1(O.x-V.x,O.y-V.y)}; sdr=function(O){O=lA(O);return new g.S1(O.left,O.top)}; eYl=function(O){if(O.nodeType==1)return sdr(O);O=O.changedTouches?O.changedTouches[0]:O;return new g.S1(O.clientX,O.clientY)}; g.HA=function(O,V,J){if(V instanceof g.Op)J=V.height,V=V.width;else if(J==void 0)throw Error("missing height argument");O.style.width=VI(V,!0);O.style.height=VI(J,!0)}; VI=function(O,V){typeof O=="number"&&(O=(V?Math.round(O):O)+"px");return O}; g.jR=function(O){var V=IZr;if(OA(O,"display")!="none")return V(O);var J=O.style,y=J.display,l=J.visibility,m=J.position;J.visibility="hidden";J.position="absolute";J.display="inline";O=V(O);J.display=y;J.position=m;J.visibility=l;return O}; IZr=function(O){var V=O.offsetWidth,J=O.offsetHeight,y=g.z5&&!V&&!J;return(V===void 0||y)&&O.getBoundingClientRect?(O=lA(O),new g.Op(O.right-O.left,O.bottom-O.top)):new g.Op(V,J)}; g.CD=function(O,V){O.style.display=V?"":"none"}; FO=function(O){return O?O.passive&&Y2d()?O:O.capture||!1:!1}; N_=function(O,V,J,y){return typeof O.addEventListener==="function"?(O.addEventListener(V,J,FO(y)),!0):!1}; xK=function(O){if(O.prerendering)return 3;var V;return(V={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[O.visibilityState||O.webkitVisibilityState||O.mozVisibilityState||""])!=null?V:0}; aZX=function(){}; WA=function(O){try{return!!O&&O.location.href!=null&&Ryr(O,"foo")}catch(V){return!1}}; bu7=function(O){for(var V=O;O&&O!=O.parent;)O=O.parent,WA(O)&&(V=O);return V}; ptY=function(){return(km||Sw)&&DZ?DZ.mobile:!UA()&&(Vt("iPod")||Vt("iPhone")||Vt("Android")||Vt("IEMobile"))}; UA=function(){return(km||Sw)&&DZ?!DZ.mobile&&(Vt("iPad")||Vt("Android")||Vt("Silk")):Vt("iPad")||Vt("Android")&&!Vt("Mobile")||Vt("Silk")}; fZr=function(O){var V,J;return(J=(V=/https?:\/\/[^\/]+/.exec(O))==null?void 0:V[0])!=null?J:""}; wtr=function(O){O=O||Zy();for(var V=new hYh(g.Z1.location.href,!1),J=null,y=O.length-1,l=y;l>=0;--l){var m=O[l];!J&&omH.test(m.url)&&(J=m);if(m.url&&!m.K){V=m;break}}l=null;m=O.length&&O[y].url;V.depth!==0&&m&&(l=O[y]);return new vmr(V,l,J)}; Zy=function(){var O=g.Z1,V=[],J=null;do{var y=O;if(WA(y)){var l=y.location.href;J=y.document&&y.document.referrer||null}else l=J,J=null;V.push(new hYh(l||""));try{O=y.parent}catch(m){O=null}}while(O&&y!==O);y=0;for(O=V.length-1;y<=O;++y)V[y].depth=O-y;y=g.Z1;if(y.location&&y.location.ancestorOrigins&&y.location.ancestorOrigins.length===V.length-1)for(O=1;OV&&(V=J.length);return 3997-V-O.U.length-1}; eR=function(O,V){this.K=O;this.depth=V}; dkn=function(){function O(F,N){return F==null?N:F} var V=Zy(),J=Math.max(V.length-1,0),y=wtr(V);V=y.K;var l=y.j,m=y.U,H=[];m&&H.push(new eR([m.url,m.K?2:0],O(m.depth,1)));l&&l!=m&&H.push(new eR([l.url,2],0));V.url&&V!=m&&H.push(new eR([V.url,0],O(V.depth,J)));y=g.Ia(H,function(F,N){return H.slice(0,H.length-N)}); !V.url||(m||l)&&V!=m||(l=fZr(V.url))&&y.push([new eR([l,1],O(V.depth,J))]);y.push([]);return g.Ia(y,function(F){return EmX(J,F)})}; EmX=function(O,V){g.bA(V,function(l){return l.depth>=0}); var J=pD(V,function(l,m){return Math.max(l,m.depth)},-1),y=l1Y(J+2); y[0]=O;g.Cu(V,function(l){return y[l.depth+1]=l.K}); return y}; gmY=function(){var O=O===void 0?dkn():O;return O.map(function(V){return TT(V)})}; fD=function(O){O.G$z=!0;return O}; GvV=function(){var O=q2p("IFRAME"),V={};g.Cu(Qdd(),function(J){O.sandbox&&O.sandbox.supports&&O.sandbox.supports(J)&&(V[J]=!0)}); return V}; q2p=function(O,V){V=V===void 0?document:V;return V.createElement(String(O).toLowerCase())}; K$7=function(O){var V=!1;V=V===void 0?!1:V;Ep.google_image_requests||(Ep.google_image_requests=[]);var J=q2p("IMG",Ep.document);V&&(J.attributionSrc="");J.src=O;Ep.google_image_requests.push(J)}; hU=function(O){var V="lB";if(O.lB&&O.hasOwnProperty(V))return O.lB;var J=new O;O.lB=J;O.hasOwnProperty(V);return J}; oa=function(){this.j=new aZX;this.K=no()?new XY:new Lo}; twH=function(){vA();var O=Ep.document;return!!(O&&O.body&&O.body.getBoundingClientRect&&typeof Ep.setInterval==="function"&&typeof Ep.clearInterval==="function"&&typeof Ep.setTimeout==="function"&&typeof Ep.clearTimeout==="function")}; var Hn5=function(O,V,J){return phn[C[8]](this,3,O,V,J)}; uCd=function(){vA();return gmY()}; A07=function(){}; vA=function(){var O=hU(A07);if(!O.K){if(!Ep)throw Error("Context has not been set and window is undefined.");O.K=hU(oa)}return O.K}; wN=function(){throw Error("Invalid UTF8");}; r0Y=function(O,V){V=String.fromCharCode.apply(null,V);return O==null?V:O+V}; P2n=function(O){var V=!1;V=V===void 0?!1:V;if(iur){if(V&&(RYo?!O.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(O)))throw Error("Found an unpaired surrogate");O=(BTn||(BTn=new TextEncoder)).encode(O)}else{for(var J=0,y=new Uint8Array(3*O.length),l=0;l>6|192;else{if(m>=55296&&m<=57343){if(m<=56319&&l=56320&&H<=57343){m=(m-55296)*1024+ H-56320+65536;y[J++]=m>>18|240;y[J++]=m>>12&63|128;y[J++]=m>>6&63|128;y[J++]=m&63|128;continue}else l--}if(V)throw Error("Found an unpaired surrogate");m=65533}y[J++]=m>>12|224;y[J++]=m>>6&63|128}y[J++]=m&63|128}}O=J===y.length?y:y.subarray(0,J)}return O}; M_=function(O){g.Z1.setTimeout(function(){throw O;},0)}; kvH=function(O){return Array.prototype.map.call(O,function(V){V=V.toString(16);return V.length>1?V:"0"+V}).join("")}; S2r=function(O){for(var V=[],J=0;J>6|192:((l&64512)==55296&&y+1>18|240,V[J++]=l>>12&63|128):V[J++]=l>>12|224,V[J++]=l>>6&63|128),V[J++]=l&63|128)}return V}; g.nD=function(O,V){V===void 0&&(V=0);Dkh();V=Oan[V];for(var J=Array(Math.floor(O.length/3)),y=V[64]||"",l=0,m=0;l>2];H=V[(H&3)<<4|F>>4];F=V[(F&15)<<2|N>>6];N=V[N&63];J[m++]=""+x+H+F+N}x=0;N=y;switch(O.length-l){case 2:x=O[l+1],N=V[(x&15)<<2]||y;case 1:O=O[l],J[m]=""+V[O>>2]+V[(O&3)<<4|x>>4]+N+y}return J.join("")}; g.XO=function(O,V,J){if(V1V&&!V)O=g.Z1.btoa(O);else{for(var y=[],l=0,m=0;m255){var F=Error("go/unicode-to-byte-error");if(J)throw F;y[l++]=H&255;H>>=8}y[l++]=H}O=g.nD(y,V)}return O}; ya7=function(O){var V=[];Jar(O,function(J){V.push(J)}); return V}; EA=function(O){var V=O.length,J=V*3/4;J%3?J=Math.floor(J):g.t0("=.",O[V-1])&&(J=g.t0("=.",O[V-2])?J-2:J-1);var y=new Uint8Array(J),l=0;Jar(O,function(m){y[l++]=m}); return l!==J?y.subarray(0,l):y}; Jar=function(O,V){function J(N){for(;y>4);H!=64&&(V(m<<4&240|H>>2),F!=64&&V(H<<6&192|F))}}; Dkh=function(){if(!dN){dN={};for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),V=["+/=","+/","-_=","-_.","-_"],J=0;J<5;J++){var y=O.concat(V[J].split(""));Oan[J]=y;for(var l=0;l=V||(y[O]=J+1,O=Error(),LCo(O,"incident"),M_(O))}}; iA=function(){return typeof BigInt==="function"}; Ra=function(O,V,J){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(J===void 0?0:J)&&Symbol.for&&O?Symbol.for(O):O!=null?Symbol(O):Symbol():V}; kK=function(O,V){BA||PA in O||Wjh(O,UgY);O[PA]|=V}; SR=function(O,V){BA||PA in O||Wjh(O,UgY);O[PA]=V}; OG=function(O,V){return V===void 0?O.K!==Dy&&!!(2&(O.qH[PA]|0)):!!(2&V)&&O.K!==Dy}; Za5=function(O,V){if(O!=null)if(typeof O==="string")O=O?new gN(O,q_):QI();else if(O.constructor!==gN)if(NOY&&O!=null&&O instanceof Uint8Array)O=O.length?new gN(new Uint8Array(O),q_):QI();else{if(!V)throw Error();O=void 0}return O}; VD=function(O,V){if(typeof V!=="number"||V<0||V>=O.length)throw Error();}; zQd=function(O,V,J){var y=V&128?0:-1,l=O.length,m;if(m=!!l)m=O[l-1],m=m!=null&&typeof m==="object"&&m.constructor===Object;var H=l+(m?-1:0);for(V=V&128?1:0;VV.length)return!1;if(O.lengthl)return!1;if(y>>0;HR=V;j$=(O-V)/4294967296>>>0}; Nh=function(O){if(O<0){CK(0-O);var V=g.n(FW(HR,j$));O=V.next().value;V=V.next().value;HR=O>>>0;j$=V>>>0}else CK(O)}; UG=function(O,V){var J=V*4294967296+(O>>>0);return Number.isSafeInteger(J)?J:WR(O,V)}; ZF=function(O,V){var J=V&2147483648;J&&(O=~O+1>>>0,V=~V>>>0,O==0&&(V=V+1>>>0));O=UG(O,V);return typeof O==="number"?J?-O:O:J?"-"+O:O}; cR=function(O,V){return iA()?$2(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(V))<>>=0;O>>>=0;if(V<=2097151)var J=""+(4294967296*V+O);else iA()?J=""+(BigInt(V)<>>24|V<<8)&16777215,V=V>>16&65535,O=(O&16777215)+J*6777216+V*6710656,J+=V*8147497,V*=2,O>=1E7&&(J+=O/1E7>>>0,O%=1E7),J>=1E7&&(V+=J/1E7>>>0,J%=1E7),J=V+eQ7(J)+eQ7(O));return J}; eQ7=function(O){O=String(O);return"0000000".slice(O.length)+O}; z4=function(O,V){V&2147483648?iA()?O=""+(BigInt(V|0)<>>0)):(V=g.n(FW(O,V)),O=V.next().value,V=V.next().value,O="-"+WR(O,V)):O=WR(O,V);return O}; sG=function(O){if(O.length<16)Nh(Number(O));else if(iA())O=BigInt(O),HR=Number(O&BigInt(4294967295))>>>0,j$=Number(O>>BigInt(32)&BigInt(4294967295));else{var V=+(O[0]==="-");j$=HR=0;for(var J=O.length,y=0+V,l=(J-V)%6+V;l<=J;y=l,l+=6)y=Number(O.slice(y,l)),j$*=1E6,HR=HR*1E6+y,HR>=4294967296&&(j$+=Math.trunc(HR/4294967296),j$>>>=0,HR>>>=0);V&&(V=g.n(FW(HR,j$)),O=V.next().value,V=V.next().value,HR=O,j$=V)}}; FW=function(O,V){V=~V;O?O=~O+1:V+=1;return[O,V]}; T4=function(O){return Array.prototype.slice.call(O)}; e$=function(O){if(O!=null&&typeof O!=="number")throw Error("Value of float/double field must be a number, found "+typeof O+": "+O);return O}; I6h=function(O){return O.displayName||O.name||"unknown type name"}; I$=function(O){if(O!=null&&typeof O!=="boolean")throw Error("Expected boolean but got "+eF(O)+": "+O);return O}; a$=function(O){switch(typeof O){case "bigint":return!0;case "number":return Y2(O);case "string":return YDh.test(O);default:return!1}}; a6o=function(O){if(typeof O!=="number")throw tU("int32");if(!Y2(O))throw tU("int32");return O|0}; b4=function(O){return O==null?O:a6o(O)}; pK=function(O){if(O==null)return O;if(typeof O==="string"&&O)O=+O;else if(typeof O!=="number")return;return Y2(O)?O|0:void 0}; fK=function(O){if(O==null)return O;if(typeof O==="string"&&O)O=+O;else if(typeof O!=="number")return;return Y2(O)?O>>>0:void 0}; f61=function(O){var V=void 0;V!=null||(V=hc?1024:0);if(!a$(O))throw tU("int64");var J=typeof O;switch(V){case 512:switch(J){case "string":return o$(O);case "bigint":return String(vR(64,O));default:return wR(O)}case 1024:switch(J){case "string":return bad(O);case "bigint":return $2(vR(64,O));default:return pZo(O)}case 0:switch(J){case "string":return o$(O);case "bigint":return $2(vR(64,O));default:return Mh(O)}default:return IG(V,"Unknown format requested type for int64")}}; dR=function(O){return O==null?O:f61(O)}; hQX=function(O){var V=O.length;if(O[0]==="-"?V<20||V===20&&O<="-9223372036854775808":V<19||V===19&&O<="9223372036854775807")return O;sG(O);return z4(HR,j$)}; Mh=function(O){a$(O);O=gR(O);qh(O)||(Nh(O),O=ZF(HR,j$));return O}; wR=function(O){a$(O);O=gR(O);qh(O)?O=String(O):(Nh(O),O=z4(HR,j$));return O}; o$=function(O){a$(O);var V=gR(Number(O));if(qh(V))return String(V);V=O.indexOf(".");V!==-1&&(O=O.substring(0,V));return hQX(O)}; bad=function(O){var V=gR(Number(O));if(qh(V))return $2(V);V=O.indexOf(".");V!==-1&&(O=O.substring(0,V));return iA()?$2(vR(64,BigInt(O))):$2(hQX(O))}; pZo=function(O){return qh(O)?$2(Mh(O)):$2(wR(O))}; or5=function(O){if(O==null)return O;if(typeof O==="bigint")return QD(O)?O=Number(O):(O=vR(64,O),O=QD(O)?Number(O):String(O)),O;if(a$(O))return typeof O==="number"?Mh(O):o$(O)}; G4=function(O){var V=typeof O;if(O==null)return O;if(V==="bigint")return $2(vR(64,O));if(a$(O))return V==="string"?bad(O):pZo(O)}; vrd=function(O){if(O==null)return O;var V=typeof O;if(V==="bigint")return String(vR(64,O));if(a$(O)){if(V==="string")return o$(O);if(V==="number")return Mh(O)}}; M1r=function(O){if(O==null)return O;var V=typeof O;if(V==="bigint")return String(wZp(64,O));if(a$(O)){if(V==="string")return a$(O),V=gR(Number(O)),qh(V)&&V>=0?O=String(V):(V=O.indexOf("."),V!==-1&&(O=O.substring(0,V)),O[0]==="-"?V=!1:(V=O.length,V=V<20?!0:V===20&&O<="18446744073709551615"),V||(sG(O),O=WR(HR,j$))),O;if(V==="number")return a$(O),O=gR(O),O>=0&&qh(O)||(Nh(O),O=UG(HR,j$)),O}}; LjV=function(O){if(O==null||typeof O=="string"||O instanceof gN)return O}; nrp=function(O){if(typeof O!=="string")throw Error();return O}; KK=function(O){if(O!=null&&typeof O!=="string")throw Error();return O}; tc=function(O){return O==null||typeof O==="string"?O:void 0}; u4=function(O,V){if(!(O instanceof V))throw Error("Expected instanceof "+I6h(V)+" but got "+(O&&I6h(O.constructor)));return O}; XZX=function(O,V,J){if(O!=null&&O[Ac]===rR)return O;if(Array.isArray(O)){var y=O[PA]|0;J=y|J&32|J&2;J!==y&&SR(O,J);return new V(O)}}; i4=function(O){return O}; BR=function(O){var V=Ld(R$);return V?O[V]:void 0}; PR=function(){}; k2=function(O,V){for(var J in O)!isNaN(J)&&V(O,+J,O[J])}; Err=function(O){var V=new PR;k2(O,function(J,y,l){V[y]=T4(l)}); V.jx=O.jx;return V}; grp=function(O,V){V<100||uA(dgo,1)}; DF=function(O,V,J,y){var l=y!==void 0;y=!!y;var m=Ld(R$),H;!l&&BA&&m&&(H=O[m])&&k2(H,grp);m=[];var F=O.length;H=4294967295;var N=!1,x=!!(V&64),W=x?V&128?0:-1:void 0;if(!(V&1)){var U=F&&O[F-1];U!=null&&typeof U==="object"&&U.constructor===Object?(F--,H=F):U=void 0;if(x&&!(V&128)&&!l){N=!0;var Z;H=((Z=S$)!=null?Z:i4)(H-W,W,O,U,void 0)+W}}V=void 0;for(Z=0;Z=H){var c=Z-W,Y=void 0;((Y=V)!=null?Y:V={})[c]=z}else m[Z]=z}if(U)for(var b in U)F=U[b],F!= null&&(F=J(F,y))!=null&&(Z=+b,z=void 0,x&&!Number.isNaN(Z)&&(z=Z+W)0?void 0:O===0?t1V||(t1V=[0,void 0]):[-O,void 0];case "string":return[0,O];case "object":return O}}; Jt=function(O,V){return AaY(O,V[0],V[1])}; ya=function(O,V,J){return AaY(O,V,J,2048)}; AaY=function(O,V,J,y){y=y===void 0?0:y;if(O==null){var l=32;J?(O=[J],l|=128):O=[];V&&(l=l&-16760833|(V&1023)<<14)}else{if(!Array.isArray(O))throw Error("narr");l=O[PA]|0;if(raV&&1&l)throw Error("rfarr");2048&l&&!(2&l)&&ia5();if(l&256)throw Error("farr");if(l&64)return(l|y)!==l&&SR(O,l|y),O;if(J&&(l|=128,J!==O[0]))throw Error("mid");a:{J=O;l|=64;var m=J.length;if(m){var H=m-1,F=J[H];if(F!=null&&typeof F==="object"&&F.constructor===Object){V=l&128?0:-1;H-=V;if(H>=1024)throw Error("pvtlmt");for(var N in F)m= +N,m1024)throw Error("spvt");l=l&-16760833|(N&1023)<<14}}}SR(O,l|64|y);return O}; ia5=function(){if(raV)throw Error("carr");uA(RQV,5)}; BO5=function(O,V){if(typeof O!=="object")return O;if(Array.isArray(O)){var J=O[PA]|0;O.length===0&&J&1?O=void 0:J&2||(!V||4096&J||16&J?O=ls(O,J,!1,V&&!(J&16)):(kK(O,34),J&4&&Object.freeze(O)));return O}if(O!=null&&O[Ac]===rR)return V=O.qH,J=V[PA]|0,OG(O,J)?O:ms(O,V,J)?$_(O,V):ls(V,J);if(O instanceof gN)return O}; $_=function(O,V,J){O=new O.constructor(V);J&&(O.K=Dy);O.j=Dy;return O}; ls=function(O,V,J,y){y!=null||(y=!!(34&V));O=DF(O,V,BO5,y);y=32;J&&(y|=2);V=V&16769217|y;SR(O,V);return O}; PwX=function(O){var V=O.qH,J=V[PA]|0;return OG(O,J)?ms(O,V,J)?$_(O,V,!0):new O.constructor(ls(V,J,!1)):O}; HU=function(O){if(O.K!==Dy)return!1;var V=O.qH;V=ls(V,V[PA]|0);kK(V,2048);O.qH=V;O.K=void 0;O.j=void 0;return!0}; jf=function(O){if(!HU(O)&&OG(O,O.qH[PA]|0))throw Error();}; C_=function(O,V){V===void 0&&(V=O[PA]|0);V&32&&!(V&4096)&&SR(O,V|4096)}; ms=function(O,V,J){return J&2?!0:J&32&&!(J&4096)?(SR(V,J|2),O.K=Dy,!0):!1}; NH=function(O,V,J,y,l){Object.isExtensible(O);V=FV(O.qH,V,J,l);if(V!==null||y&&O.j!==Dy)return V}; FV=function(O,V,J,y){if(V===-1)return null;var l=V+(J?0:-1),m=O.length-1;if(!(m<1+(J?0:-1))){if(l>=m){var H=O[m];if(H!=null&&typeof H==="object"&&H.constructor===Object){J=H[V];var F=!0}else if(l===m)J=H;else return}else J=O[l];if(y&&J!=null){y=y(J);if(y==null)return y;if(!Object.is(y,J))return F?H[V]=y:O[l]=y,y}return J}}; WU=function(O,V,J,y){jf(O);var l=O.qH;x_(l,l[PA]|0,V,J,y);return O}; x_=function(O,V,J,y,l){var m=J+(l?0:-1),H=O.length-1;if(H>=1+(l?0:-1)&&m>=H){var F=O[H];if(F!=null&&typeof F==="object"&&F.constructor===Object)return F[J]=y,V}if(m<=H)return O[m]=y,V;if(y!==void 0){var N;H=((N=V)!=null?N:V=O[PA]|0)>>14&1023||536870912;J>=H?y!=null&&(m={},O[H+(l?0:-1)]=(m[J]=y,m)):O[m]=y}return V}; sf=function(O,V,J,y,l){var m=O.qH,H=m[PA]|0;y=OG(O,H)?1:y;l=!!l||y===3;y===2&&HU(O)&&(m=O.qH,H=m[PA]|0);O=Uf(m,V);var F=O===ZI?7:O[PA]|0,N=z1(F,H);var x=4&N?!1:!0;if(x){4&N&&(O=T4(O),F=0,N=cU(N,H),H=x_(m,H,V,O));for(var W=0,U=0;W32)for(y|=(F&127)>>4,l=3;l<32&&F&128;l+=7)F=m[H++],y|=(F&127)<>>0,y>>>0);throw Error();}; DI=function(O,V){O.K=V;if(V>O.U)throw Error();}; W8=function(O){var V=O.j,J=O.K,y=V[J++],l=y&127;if(y&128&&(y=V[J++],l|=(y&127)<<7,y&128&&(y=V[J++],l|=(y&127)<<14,y&128&&(y=V[J++],l|=(y&127)<<21,y&128&&(y=V[J++],l|=y<<28,y&128&&V[J++]&128&&V[J++]&128&&V[J++]&128&&V[J++]&128&&V[J++]&128)))))throw Error();DI(O,J);return l}; Ui=function(O){var V=O.j,J=O.K,y=V[J+0],l=V[J+1],m=V[J+2];V=V[J+3];DI(O,O.K+4);return(y<<0|l<<8|m<<16|V<<24)>>>0}; Ze=function(O){var V=Ui(O);O=Ui(O);return UG(V,O)}; zt=function(O){var V=Ui(O);O=Ui(O);return $2(iA()?BigInt.asUintN(64,(BigInt(O>>>0)<>>0)):WR(V,O))}; c8=function(O){var V=Ui(O),J=Ui(O);O=(J>>31)*2+1;var y=J>>>20&2047;V=4294967296*(J&1048575)+V;return y==2047?V?NaN:O*Infinity:y==0?O*4.9E-324*V:O*Math.pow(2,y-1075)*(V+4503599627370496)}; si=function(O){for(var V=0,J=O.K,y=J+10,l=O.j;JO.U)throw Error();O.K=V;return J}; j1r=function(O,V){if(V==0)return QI();var J=$Y7(O,V);O.Jb&&O.W?J=O.j.subarray(J,J+V):(O=O.j,V=J+V,J=J===V?new Uint8Array(0):Hod?O.slice(J,V):new Uint8Array(O.subarray(J,V)));return J.length==0?QI():new gN(J,q_)}; ei=function(O,V,J,y){if(Tt.length){var l=Tt.pop();l.init(O,V,J,y);O=l}else O=new Sf(O,V,J,y);this.K=O;this.D=this.K.K;this.j=this.U=-1;CBd(this,y)}; CBd=function(O,V){V=V===void 0?{}:V;O.UQ=V.UQ===void 0?!1:V.UQ}; FQr=function(O,V,J,y){if(Ib.length){var l=Ib.pop();CBd(l,y);l.K.init(O,V,J,y);return l}return new ei(O,V,J,y)}; NcH=function(O){var V=O.K;if(V.K==V.U)return!1;O.D=O.K.K;var J=W8(O.K)>>>0;V=J>>>3;J&=7;if(!(J>=0&&J<=5))throw Error();if(V<1)throw Error();O.U=V;O.j=J;return!0}; Y1=function(O){switch(O.j){case 0:O.j!=0?Y1(O):si(O.K);break;case 1:O=O.K;DI(O,O.K+8);break;case 2:if(O.j!=2)Y1(O);else{var V=W8(O.K)>>>0;O=O.K;DI(O,O.K+V)}break;case 5:O=O.K;DI(O,O.K+4);break;case 3:V=O.U;do{if(!NcH(O))throw Error();if(O.j==4){if(O.U!=V)throw Error();break}Y1(O)}while(1);break;default:throw Error();}}; ab=function(O,V,J){var y=O.K.U,l=W8(O.K)>>>0;l=O.K.K+l;var m=l-y;m<=0&&(O.K.U=l,J(V,O,void 0,void 0,void 0),m=l-O.K.K);if(m)throw Error();O.K.K=l;O.K.U=y}; f5=function(O){var V=W8(O.K)>>>0;O=O.K;var J=$Y7(O,V);O=O.j;if(xYr){var y=O,l;(l=by)||(l=by=new TextDecoder("utf-8",{fatal:!0}));V=J+V;y=J===0&&V===y.length?y:y.subarray(J,V);try{var m=l.decode(y)}catch(x){if(p5===void 0){try{l.decode(new Uint8Array([128]))}catch(W){}try{l.decode(new Uint8Array([97])),p5=!0}catch(W){p5=!1}}!p5&&(by=void 0);throw x;}}else{m=J;V=m+V;J=[];for(var H=null,F,N;m=V?wN():(N=O[m++],F<194||(N&192)!==128?(m--,wN()):J.push((F&31)<<6|N&63)): F<240?m>=V-1?wN():(N=O[m++],(N&192)!==128||F===224&&N<160||F===237&&N>=160||((l=O[m++])&192)!==128?(m--,wN()):J.push((F&15)<<12|(N&63)<<6|l&63)):F<=244?m>=V-2?wN():(N=O[m++],(N&192)!==128||(F<<28)+(N-144)>>30!==0||((l=O[m++])&192)!==128||((y=O[m++])&192)!==128?(m--,wN()):(F=(F&7)<<18|(N&63)<<12|(l&63)<<6|y&63,F-=65536,J.push((F>>10&1023)+55296,(F&1023)+56320))):wN(),J.length>=8192&&(H=r0Y(H,J),J.length=0);m=r0Y(H,J)}return m}; WQU=function(O){var V=W8(O.K)>>>0;return j1r(O.K,V)}; UY1=function(O,V,J){var y=W8(O.K)>>>0;for(y=O.K.K+y;O.K.K>>0;this.K=V>>>0}; c8d=function(O){if(!O)return zdV||(zdV=new ob(0,0));if(!/^\d+$/.test(O))return null;sG(O);return new ob(HR,j$)}; v8=function(O,V){this.j=O>>>0;this.K=V>>>0}; Tcr=function(O){if(!O)return s15||(s15=new v8(0,0));if(!/^-?\d+$/.test(O))return null;sG(O);return new v8(HR,j$)}; wg=function(){this.K=[]}; M1=function(O,V,J){for(;J>0||V>127;)O.K.push(V&127|128),V=(V>>>7|J<<25)>>>0,J>>>=7;O.K.push(V)}; L5=function(O,V){for(;V>127;)O.K.push(V&127|128),V>>>=7;O.K.push(V)}; edd=function(O,V){if(V>=0)L5(O,V);else{for(var J=0;J<9;J++)O.K.push(V&127|128),V>>=7;O.K.push(1)}}; n5=function(O,V){O.K.push(V>>>0&255);O.K.push(V>>>8&255);O.K.push(V>>>16&255);O.K.push(V>>>24&255)}; I5Y=function(){this.U=[];this.j=0;this.K=new wg}; XX=function(O,V){V.length!==0&&(O.U.push(V),O.j+=V.length)}; Ypo=function(O,V){Ei(O,V,2);V=O.K.end();XX(O,V);V.push(O.j);return V}; a55=function(O,V){var J=V.pop();for(J=O.j+O.K.length()-J;J>127;)V.push(J&127|128),J>>>=7,O.j++;V.push(J);O.j++}; Ei=function(O,V,J){L5(O.K,V*8+J)}; bo1=function(O,V,J){if(J!=null){switch(typeof J){case "string":c8d(J)}Ei(O,V,1);switch(typeof J){case "number":O=O.K;CK(J);n5(O,HR);n5(O,j$);break;case "bigint":J=BigInt.asUintN(64,J);J=new ob(Number(J&BigInt(4294967295)),Number(J>>BigInt(32)));O=O.K;V=J.K;n5(O,J.j);n5(O,V);break;default:J=c8d(J),O=O.K,V=J.K,n5(O,J.j),n5(O,V)}}}; dg=function(O,V,J){Ei(O,V,2);L5(O.K,J.length);XX(O,O.K.end());XX(O,J)}; gg=function(){function O(){throw Error();} Object.setPrototypeOf(O,O.prototype);return O}; q1=function(O,V,J){this.qH=ya(O,V,J)}; ppd=function(O,V){if(V==null||V=="")return new O;V=JSON.parse(V);if(!Array.isArray(V))throw Error("dnarr");kK(V,32);return new O(V)}; Gt=function(O,V,J){this.BZ=O;this.eh=V;O=Ld(QJ);this.K=!!O&&J===O||!1}; K5=function(O,V){var J=J===void 0?QJ:J;return new Gt(O,V,J)}; hdU=function(O,V,J,y,l){V=f5X(V,y);V!=null&&(J=Ypo(O,J),l(V,O),a55(O,J))}; A4=function(O,V,J,y){var l=y[O];if(l)return l;l={};l.CM=y;l.OH=uBr(y[0]);var m=y[1],H=1;m&&m.constructor===Object&&(l.extensions=m,m=y[++H],typeof m==="function"&&(l.Pp=!0,t4!=null||(t4=m),uy!=null||(uy=y[H+1]),m=y[H+=2]));for(var F={};m&&Array.isArray(m)&&m.length&&typeof m[0]==="number"&&m[0]>0;){for(var N=0;N>BigInt(32)));M1(O.K,J.j,J.K);break;default:J=Tcr(V),M1(O.K,J.j,J.K)}}}; $I=function(O,V,J){V=pK(V);V!=null&&V!=null&&(Ei(O,J,0),edd(O.K,V))}; G51=function(O,V,J){V=V==null||typeof V==="boolean"?V:typeof V==="number"?!!V:void 0;V!=null&&(Ei(O,J,0),O.K.K.push(V?1:0))}; KQY=function(O,V,J){V=tc(V);V!=null&&dg(O,J,P2n(V))}; tg1=function(O,V,J,y,l){V=f5X(V,y);V!=null&&(J=Ypo(O,J),l(V,O),a55(O,J))}; A8V=function(O,V,J){if(J!==h4)throw Error();this.typeName=O;this.K=V;if(J!==h4)throw Error();uYX.set(O,this)}; ioH=function(){var O=H$;this.K=r8n;this.isRepeated=0;this.j=L_;this.defaultValue=void 0;this.U=O.messageId!=null?Jc:void 0}; Rdr=function(O,V){return function(J,y){var l={kc:!0};y&&Object.assign(l,y);J=FQr(J,void 0,void 0,l);try{var m=new O,H=m.qH;B8(V)(H,J);var F=m}finally{J.free()}return F}}; BcU=function(O){return function(){var V=new I5Y;dYH(this.qH,V,A4(Si,k1,De,O));XX(V,V.K.end());for(var J=new Uint8Array(V.j),y=V.U,l=y.length,m=0,H=0;H-1)return V.apply(null,g.q(J));try{return O.K=O.U.K.now(),V.apply(null,g.q(J))}finally{O.D+=O.U.K.now()-O.K,O.K=-1,O.j+=1}}}; k5h=function(O,V){this.j=O;this.U=V;this.K=new PBd(O)}; Sp7=function(){this.K={}}; JUH=function(){this.U=void 0;this.j=this.V=0;this.W=-1;this.AC=new XC;E2(this.AC,"mv",DY5).K=!0;E2(this.AC,"omid",QU);E2(this.AC,"epoh",QU).K=!0;E2(this.AC,"epph",QU).K=!0;E2(this.AC,"umt",QU).K=!0;E2(this.AC,"phel",QU).K=!0;E2(this.AC,"phell",QU).K=!0;E2(this.AC,"oseid",ODX).K=!0;var O=this.AC;O.K.sloi||(O.K.sloi=new Lu);O.K.sloi.K=!0;E2(this.AC,"mm",NB);E2(this.AC,"ovms",VR7).K=!0;E2(this.AC,"xdi",QU).K=!0;E2(this.AC,"amp",QU).K=!0;E2(this.AC,"prf",QU).K=!0;E2(this.AC,"gtx",QU).K=!0;E2(this.AC, "mvp_lv",QU).K=!0;E2(this.AC,"ssmol",QU).K=!0;E2(this.AC,"fmd",QU).K=!0;E2(this.AC,"gen204simple",QU);this.K=new k5h(vA(),this.AC);this.D=!1;this.flags=new Sp7}; xI=function(){return hU(JUH)}; yUr=function(O,V,J,y){if(Math.random()<(y||O.K))try{if(J instanceof cA)var l=J;else l=new cA,zT(J,function(H,F){var N=l,x=N.D++;H=sA(F,H);N.K.push(x);N.j[x]=H}); var m=l.Cv(O.j,"pagead2.googlesyndication.com","/pagead/gen_204?id="+V+"&");m&&(vA(),K$7(m))}catch(H){}}; lyY=function(O,V,J){J=J===void 0?{}:J;this.error=O;this.meta=J;this.context=V.context;this.msg=V.message||"";this.id=V.id||"jserror"}; m_r=function(){var O=O===void 0?g.Z1:O;return(O=O.performance)&&O.now&&O.timing?Math.floor(O.now()+O.timing.navigationStart):g.vn()}; $_H=function(){var O=O===void 0?g.Z1:O;return(O=O.performance)&&O.now?O.now():null}; HD1=function(O,V,J){this.label=O;this.type=V;this.value=J;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; Ud=function(){var O=window;this.events=[];this.j=O||g.Z1;var V=null;O&&(O.google_js_reporting_queue=O.google_js_reporting_queue||[],this.events=O.google_js_reporting_queue,V=O.google_measure_js_timing);this.K=W$()||(V!=null?V:Math.random()<1)}; jaU=function(O){O&&ZL&&W$()&&(ZL.clearMarks("goog_"+O.label+"_"+O.uniqueId+"_start"),ZL.clearMarks("goog_"+O.label+"_"+O.uniqueId+"_end"))}; zu=function(O,V,J,y,l,m,H){var F="";O&&(F+=O+":");J&&(F+="//",V&&(F+=V+"@"),F+=J,y&&(F+=":"+y));l&&(F+=l);m&&(F+="?"+m);H&&(F+="#"+H);return F}; g.c$=function(O){return O.match(CAr)}; FMo=function(O){return O?decodeURI(O):O}; g.sd=function(O){return FMo(g.c$(O)[3]||null)}; Tu=function(O){return FMo(g.c$(O)[5]||null)}; g.NNo=function(O){O=g.c$(O);return zu(O[1],O[2],O[3],O[4])}; eH=function(O){O=g.c$(O);return zu(null,null,null,null,O[5],O[6],O[7])}; x_p=function(O){var V=O.indexOf("#");return V<0?O:O.slice(0,V)}; IL=function(O,V){if(O){O=O.split("&");for(var J=0;J=0){var m=O[J].substring(0,y);l=O[J].substring(y+1)}else m=O[J];V(m,l?gO(l):"")}}}; YI=function(O,V){if(!V)return O;var J=O.indexOf("#");J<0&&(J=O.length);var y=O.indexOf("?");if(y<0||y>J){y=J;var l=""}else l=O.substring(y+1,J);O=[O.slice(0,y),l,O.slice(J)];J=O[1];O[1]=V?J?J+"&"+V:V:J;return O[0]+(O[1]?"?"+O[1]:"")+O[2]}; aL=function(O,V,J){if(Array.isArray(V))for(var y=0;y=0&&VJ)l=J;y+=V.length+1;return gO(O.slice(y,l!==-1?l:0))}; wb=function(O,V){for(var J=O.search(oL),y=0,l,m=[];(l=hZ(O,y,V,J))>=0;)m.push(O.substring(y,l)),y=Math.min(O.indexOf("&",l)+1||J,J);m.push(O.slice(y));return m.join("").replace(ZDH,"$1")}; z$d=function(O,V,J){return fp(wb(O,V),V,J)}; cUr=function(){var O=MB;this.K=Lp;this.JJ="jserror";this.PU=!0;this.eb=null;this.j=this.Hm;this.PB=O===void 0?null:O}; sar=function(O,V,J){var y=np;return FT(xI().K.K,function(){try{if(y.PB&&y.PB.K){var l=y.PB.start(O.toString(),3);var m=V();y.PB.end(l)}else m=V()}catch(F){var H=y.PU;try{jaU(l),H=y.j(O,new XT(Ed(F)),void 0,J)}catch(N){y.Hm(217,N)}if(!H)throw F;}return m})()}; db=function(O,V,J,y){return FT(xI().K.K,function(){var l=g.jF.apply(0,arguments);return sar(O,function(){return V.apply(J,l)},y)})}; Ed=function(O){var V=O.toString();O.name&&V.indexOf(O.name)==-1&&(V+=": "+O.name);O.message&&V.indexOf(O.message)==-1&&(V+=": "+O.message);if(O.stack)a:{O=O.stack;var J=V;try{O.indexOf(J)==-1&&(O=J+"\n"+O);for(var y;O!=y;)y=O,O=O.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");V=O.replace(/\n */g,"\n");break a}catch(l){V=J;break a}V=void 0}return V}; XT=function(O){lyY.call(this,Error(O),{message:O})}; TNp=function(){Ep&&typeof Ep.google_measure_js_timing!="undefined"&&(Ep.google_measure_js_timing||MB.disable())}; e$X=function(O){np.eb=function(V){g.Cu(O,function(J){J(V)})}}; Iyo=function(O,V){return sar(O,V)}; gb=function(O,V){return db(O,V)}; qB=function(O,V,J,y){np.Hm(O,V,J,y)}; QT=function(){return Date.now()-YAU}; ayh=function(){var O=xI().U,V=Gu>=0?QT()-Gu:-1,J=Kp?QT()-tZ:-1,y=up>=0?QT()-up:-1;if(O==947190542)return 100;if(O==79463069)return 200;O=[2E3,4E3];var l=[250,500,1E3];qB(637,Error(),.001);var m=V;J!=-1&&J1500&&y<4E3?500:H}; AZ=function(O,V,J){var y=new t8(0,0,0,0);this.time=O;this.volume=null;this.U=V;this.K=y;this.j=J}; rb=function(O,V,J,y,l,m,H,F){this.D=O;this.S=V;this.U=J;this.V=y;this.K=l;this.W=m;this.j=H;this.T=F}; pAn=function(O){var V=O!==O.top,J=O.top===bu7(O),y=-1,l=0;if(V&&J&&O.top.mraid){y=3;var m=O.top.mraid}else y=(m=O.mraid)?V?J?2:1:0:-1;m&&(m.IS_GMA_SDK||(l=2),HdX(bDp,function(H){return typeof m[H]==="function"})||(l=1)); return{g6:m,compatibility:l,HEz:y}}; fyV=function(){var O=window.document;return O&&typeof O.elementFromPoint==="function"}; h$d=function(O,V,J){if(O&&V!==null&&V!=V.top){if(!V.top)return new g.Op(-12245933,-12245933);V=V.top}try{return(J===void 0?0:J)?(new g.Op(V.innerWidth,V.innerHeight)).round():jdX(V||window).round()}catch(y){return new g.Op(-12245933,-12245933)}}; ip=function(O,V,J){try{if(O){if(!V.top)return new t8(-12245933,-12245933,-12245933,-12245933);V=V.top}var y=h$d(O,V,J),l=y.height,m=y.width;if(m===-12245933)return new t8(m,m,m,m);var H=Co(V.document);var F=F$X(H.K);var N=F.x,x=F.y;return new t8(x,N+m,x+l,N)}catch(W){return new t8(-12245933,-12245933,-12245933,-12245933)}}; RL=function(O,V){V=Math.pow(10,V);return Math.floor(O*V)/V}; oKl=function(O){return new t8(O.top,O.right,O.bottom,O.left)}; vKr=function(O){var V=O.top||0,J=O.left||0;return new t8(V,J+(O.width||0),V+(O.height||0),J)}; B$=function(O){return O!=null&&O>=0&&O<=1}; wAl=function(){var O=g.Pt();return O?P$("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(V){return u2(O,V)})||u2(O,"OMI/")&&!u2(O,"XiaoMi/")?!0:u2(O,"Presto")&&u2(O,"Linux")&&!u2(O,"X11")&&!u2(O,"Android")&&!u2(O,"Mobi"):!1}; MRn=function(){this.U=!WA(Ep.top);this.isMobileDevice=UA()||ptY();var O=Zy();this.domain=O.length>0&&O[O.length-1]!=null&&O[O.length-1].url!=null?g.sd(O[O.length-1].url)||"":"";this.K=new t8(0,0,0,0);this.D=new g.Op(0,0);this.W=new g.Op(0,0);this.S=new t8(0,0,0,0);this.frameOffset=new g.S1(0,0);this.V=0;this.T=!1;this.j=!(!Ep||!pAn(Ep).g6);this.update(Ep)}; LMo=function(O,V){V&&V.screen&&(O.D=new g.Op(V.screen.width,V.screen.height))}; nKl=function(O,V){a:{var J=O.K?new g.Op(uB(O.K),O.K.getHeight()):new g.Op(0,0);V=V===void 0?Ep:V;V!==null&&V!=V.top&&(V=V.top);var y=0,l=0;try{var m=V.document,H=m.body,F=m.documentElement;if(m.compatMode=="CSS1Compat"&&F.scrollHeight)y=F.scrollHeight!=J.height?F.scrollHeight:F.offsetHeight,l=F.scrollWidth!=J.width?F.scrollWidth:F.offsetWidth;else{var N=F.scrollHeight,x=F.scrollWidth,W=F.offsetHeight,U=F.offsetWidth;F.clientHeight!=W&&(N=H.scrollHeight,x=H.scrollWidth,W=H.offsetHeight,U=H.offsetWidth); N>J.height?N>W?(y=N,l=x):(y=W,l=U):N0||O.T)return!0;O=vA().j.isVisible();var V=xK(SH)===0;return O||V}; kI=function(){return hU(MRn)}; OL=function(O){this.U=O;this.j=0;this.K=null}; V0=function(O,V,J){this.U=O;this.LD=J===void 0?"na":J;this.W=[];this.isInitialized=!1;this.D=new AZ(-1,!0,this);this.K=this;this.T=V;this.KD=this.qX=!1;this.dW="uk";this.O5=!1;this.V=!0}; J6=function(O,V){g.Kd(O.W,V)||(O.W.push(V),V.aO(O.K),V.Mz(O.D),V.XX()&&(O.qX=!0))}; XAH=function(O){O=O.K;O.Ey();O.Ce();var V=kI();V.S=ip(!1,O.U,V.isMobileDevice);nKl(kI(),O.U);O.D.K=O.CH()}; EKp=function(O){O.qX=O.W.length?P$(O.W,function(V){return V.XX()}):!1}; d_H=function(O){var V=g.kE(O.W);g.Cu(V,function(J){J.Mz(O.D)})}; y0=function(O){var V=g.kE(O.W);g.Cu(V,function(J){J.aO(O.K)}); O.K!=O||d_H(O)}; lI=function(O,V,J,y){this.element=O;this.K=new t8(0,0,0,0);this.U=null;this.V=new t8(0,0,0,0);this.j=V;this.AC=J;this.O5=y;this.fD=!1;this.timestamp=-1;this.qX=new rb(V.D,this.element,this.K,new t8(0,0,0,0),0,0,QT(),0);this.W=void 0}; gKn=function(O,V){return O.W?new t8(Math.max(V.top+O.W.top,V.top),Math.min(V.left+O.W.right,V.right),Math.min(V.top+O.W.bottom,V.bottom),Math.max(V.left+O.W.left,V.left)):V.clone()}; mK=function(O){this.W=!1;this.K=O;this.D=function(){}}; qAn=function(O,V,J){this.U=J===void 0?0:J;this.j=O;this.K=V==null?"":V}; QaX=function(O){switch(Math.trunc(O.U)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; GTd=function(O,V){return O.UV.U?!1:O.jV.j?!1:typeof O.Ktypeof V.K?!1:O.K0?y[J]-y[J-1]:y[J]})}; eD=function(){this.j=new xu;this.LD=this.ol=0;this.E5=new Nx;this.lw=this.S=-1;this.TL=1E3;this.eB=new xu([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.dW=this.fD=-1}; Ih=function(O,V){return kTr(O.j,V===void 0?!0:V)}; Yu=function(O,V,J,y){var l=l===void 0?!1:l;J=db(y,J);N_(O,V,J,{capture:l})}; bI=function(O,V){V=ah(V);return V===0?0:ah(O)/V}; ah=function(O){return Math.max(O.bottom-O.top,0)*Math.max(O.right-O.left,0)}; OKn=function(O,V){if(!O||!V)return!1;for(var J=0;O!==null&&J++<100;){if(O===V)return!0;try{if(O=O.parentElement||O){var y=jg(O),l=y&&cp(y),m=l&&l.frameElement;m&&(O=m)}}catch(H){break}}return!1}; V$7=function(O,V,J){if(!O||!V)return!1;V=rc(O.clone(),-V.left,-V.top);O=(V.left+V.right)/2;V=(V.top+V.bottom)/2;WA(window.top)&&window.top&&window.top.document&&(window=window.top);if(!fyV())return!1;O=window.document.elementFromPoint(O,V);if(!O)return!1;V=(V=(V=jg(J))&&V.defaultView&&V.defaultView.frameElement)&&OKn(V,O);var y=O===J;O=!y&&O&&wc(O,function(l){return l===J}); return!(V||y||O)}; Jcr=function(O,V,J,y){return kI().U?!1:uB(O)<=0||O.getHeight()<=0?!0:J&&y?Iyo(208,function(){return V$7(O,V,J)}):!1}; p1=function(O,V,J){g.K.call(this);this.position=ycY.clone();this.qR=this.ZF();this.EM=-2;this.timeCreated=Date.now();this.H9=-1;this.Nu=V;this.CT=null;this.Cj=!1;this.k0=null;this.opacity=-1;this.requestSource=J;this.A0z=!1;this.Ym=function(){}; this.v3=function(){}; this.KK=new W$7;this.KK.XM=O;this.KK.K=O;this.B4=!1;this.OP={h1:null,Bm:null};this.jZ=!0;this.fZ=null;this.Ry=this.pYE=!1;xI().V++;this.Kf=this.BT();this.SZ=-1;this.xe=null;this.hasCompleted=this.BWz=!1;this.AC=new XC;Zd5(this.AC);lF7(this);this.requestSource==1?dT(this.AC,"od",1):dT(this.AC,"od",0)}; lF7=function(O){O=O.KK.XM;var V;if(V=O&&O.getAttribute)V=/-[a-z]/.test("googleAvInapp")?!1:mho&&O.dataset?"googleAvInapp"in O.dataset:O.hasAttribute?O.hasAttribute("data-"+tFX()):!!O.getAttribute("data-"+tFX());V&&(kI().j=!0)}; f1=function(O,V){V!=O.Ry&&(O.Ry=V,O=kI(),V?O.V++:O.V>0&&O.V--)}; $h1=function(O,V){if(O.xe){if(V.getName()===O.xe.getName())return;O.xe.dispose();O.xe=null}V=V.create(O.KK.K,O.AC,O.XX());if(V=V!=null&&V.observe()?V:null)O.xe=V}; HKr=function(O,V,J){if(!O.CT||O.Nu==-1||V.j===-1||O.CT.j===-1)return 0;O=V.j-O.CT.j;return O>J?0:O}; j$X=function(O,V,J){if(O.xe){O.xe.pJ();var y=O.xe.qX,l=y.D,m=l.K;if(y.V!=null){var H=y.U;O.k0=new g.S1(H.left-m.left,H.top-m.top)}m=O.mU()?Math.max(y.K,y.W):y.K;H={};l.volume!==null&&(H.volume=l.volume);l=O.GA(y);O.CT=y;O.Qz(m,V,J,!1,H,l,y.T)}}; C4o=function(O){if(O.Cj&&O.fZ){var V=gT(O.AC,"od")==1,J=kI().K,y=O.fZ,l=O.xe?O.xe.getName():"ns",m=O.k0,H=new g.Op(uB(J),J.getHeight());J=O.mU();O={hX5:l,k0:m,TqE:H,mU:J,Vl:O.Kf.Vl,Hfw:V};if(V=y.j){V.pJ();l=V.qX;m=l.D.K;var F=H=null;l.V!=null&&m&&(H=l.U,H=new g.S1(H.left-m.left,H.top-m.top),F=new g.Op(m.right-m.left,m.bottom-m.top));l=J?Math.max(l.K,l.W):l.K;J={hX5:V.getName(),k0:H,TqE:F,mU:J,Hfw:!1,Vl:l}}else J=null;J&&R$p(y,O,J)}}; FZU=function(O,V,J){V&&(O.Ym=V);J&&(O.v3=J)}; g.h6=function(){}; g.oh=function(O){return{value:O,done:!1}}; NRU=function(){this.D=this.K=this.U=this.j=this.W=0}; xhr=function(O){var V={};var J=g.vn()-O.W;V=(V.ptlt=J,V);(J=O.j)&&(V.pnk=J);(J=O.U)&&(V.pnc=J);(J=O.D)&&(V.pnmm=J);(O=O.K)&&(V.pns=O);return V}; WZH=function(){Nk.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; vl=function(O){return B$(O.volume)&&O.volume>0}; wf=function(O,V,J,y){J=J===void 0?!0:J;y=y===void 0?function(){return!0}:y; return function(l){var m=l[O];if(Array.isArray(m)&&y(l))return Uh7(m,V,J)}}; Mx=function(O,V){return function(J){return V(J)?J[O]:void 0}}; ZKh=function(O){return function(V){for(var J=0;J0?m[l-1]+1:0,y+1).reduce(function(H,F){return H+F},0)})}; z0l=function(){this.j=this.K=""}; cch=function(){}; n1=function(O,V){var J={};if(O!==void 0)if(V!=null)for(var y in V){var l=V[y];y in Object.prototype||l!=null&&(J[y]=typeof l==="function"?l(O):O[l])}else g.h0(J,O);return jD(Hl(new $u,J))}; s$Y=function(){var O={};this.j=(O.vs=[1,0],O.vw=[0,1],O.am=[2,2],O.a=[4,4],O.f=[8,8],O.bm=[16,16],O.b=[32,32],O.avw=[0,64],O.avs=[64,0],O.pv=[256,256],O.gdr=[0,512],O.p=[0,1024],O.r=[0,2048],O.m=[0,4096],O.um=[0,8192],O.ef=[0,16384],O.s=[0,32768],O.pmx=[0,16777216],O.mut=[33554432,33554432],O.umutb=[67108864,67108864],O.tvoff=[134217728,134217728],O);this.K={};for(var V in this.j)this.j[V][1]>0&&(this.K[V]=0);this.U=0}; XM=function(O,V){var J=O.j[V],y=J[1];O.U+=J[0];y>0&&O.K[V]==0&&(O.K[V]=1)}; TRn=function(O){var V=g.ct(O.j),J=0,y;for(y in O.K)g.Kd(V,y)&&O.K[y]==1&&(J+=O.j[y][1],O.K[y]=2);return J}; e0p=function(O){var V=0,J;for(J in O.K){var y=O.K[J];if(y==1||y==2)V+=O.j[J][1]}return V}; EL=function(){this.K=this.j=0}; df=function(){eD.call(this);this.U=new Nx;this.yz=this.qX=this.O5=0;this.T=-1;this.Ks=new Nx;this.W=new Nx;this.K=new xu;this.V=this.D=-1;this.KD=new Nx;this.TL=2E3;this.Vz=new EL;this.zL=new EL;this.nD=new EL}; gf=function(O,V,J){var y=O.yz;Kp||J||O.T==-1||(y+=V-O.T);return y}; IFo=function(){this.U=!1}; qx=function(O,V){this.U=!1;this.D=O;this.qX=V;this.W=0}; Q0=function(O,V){qx.call(this,O,V);this.S=[]}; YGY=function(){}; GO=function(){}; K1=function(O,V,J,y){lI.call(this,O,V,J,y)}; t6=function(O,V,J){lI.call(this,null,O,V,J);this.T=O.isActive();this.S=0}; uI=function(O){return[O.top,O.left,O.bottom,O.right]}; A6=function(O,V,J,y,l,m){m=m===void 0?new GO:m;p1.call(this,V,J,y);this.Xn=l;this.j$=0;this.Xb={};this.x3=new s$Y;this.y_={};this.mP="";this.nD=null;this.Xs=!1;this.K=[];this.Cc=m.j();this.V=m.U();this.D=null;this.U=-1;this.LD=this.qX=void 0;this.lw=this.KD=0;this.dW=-1;this.TL=this.zL=!1;this.O5=this.T=this.j=this.hK=this.UR=0;new xu;this.Vz=this.yz=0;this.E5=-1;this.XC=0;this.S=g.qY;this.fD=[this.ZF()];this.yc=2;this.kF={};this.kF.pause="p";this.kF.resume="r";this.kF.skip="s";this.kF.mute="m";this.kF.unmute= "um";this.kF.exitfullscreen="ef";this.W=null;this.eB=this.Ks=!1;this.oB=Math.floor(Date.now()/1E3-1704067200);this.ol=0}; rf=function(O){O.hasCompleted=!0;O.XC!=0&&(O.XC=3)}; iI=function(O){return O===void 0?O:Number(O)?RL(O,3):0}; Rh=function(O,V){return O.fD[V!=null&&VMath.max(1E4,O.U/3)?0:V);var J=O.S(O)||{};J=J.currentTime!==void 0?J.currentTime:O.KD;var y=J-O.KD,l=0;y>=0?(O.lw+=V,O.Vz+=Math.max(V-y,0),l=Math.min(y,O.lw)):O.yz+=Math.abs(y);y!=0&&(O.lw=0);O.E5==-1&&y>0&&(O.E5=up>=0?QT()-up:-1);O.KD=J;return l}; pRn=function(O,V){P$(O.V,function(J){return J.D==V.D})||O.V.push(V)}; fFl=function(O){var V=cl(O.w0().K,1);return Bl(O,V)}; Bl=function(O,V,J){return V>=15E3?!0:O.zL?(J===void 0?0:J)?!0:O.U>0?V>=O.U/2:O.dW>0?V>=O.dW:!1:!1}; h0h=function(O){var V=RL(O.Kf.Vl,2),J=O.x3.U,y=O.Kf,l=Rh(O),m=iI(l.D),H=iI(l.V),F=iI(y.volume),N=RL(l.S,2),x=RL(l.lw,2),W=RL(y.Vl,2),U=RL(l.fD,2),Z=RL(l.dW,2);y=RL(y.IW,2);var z=O.Qm().clone().round();O=O.xe&&O.xe.U?(O.xe?O.xe.U:null).clone().round():null;l=Ih(l,!1);return{Nql:V,n6:J,RY:m,zI:H,jd:F,Ua:N,BG:x,Vl:W,DW:U,e6:Z,IW:y,position:z,oU:O,XA:l}}; v2p=function(O,V){o27(O.K,V,function(){return{Nql:0,n6:void 0,RY:-1,zI:-1,jd:-1,Ua:-1,BG:-1,Vl:-1,DW:-1,e6:-1,IW:-1,position:void 0,oU:void 0,XA:[]}}); O.K[V]=h0h(O)}; o27=function(O,V,J){for(var y=O.length;y0?1:0;U.atos= Zq(x.K);U.ssb=Zq(x.eB,!1);U.amtos=kTr(x.K,!1);U.uac=O.UR;U.vpt=x.U.K;W=="nio"&&(U.nio=1,U.avms="nio");U.gmm="4";U.gdr=Bl(O,x.U.K,!0)?1:0;U.efpf=O.yc;if(W=="gsv"||W=="nis")W=O.xe,W.S>0&&(U.nnut=W.S);U.tcm=aFr(O);U.nmt=O.yz;U.bt=O.Vz;U.pst=O.E5;U.vpaid=O.qX;U.dur=O.U;U.vmtime=O.KD;U.is=O.x3.U;O.K.length>=1&&(U.i0=O.K[0].n6,U.a0=[O.K[0].jd],U.c0=[O.K[0].Vl],U.ss0=[O.K[0].IW],W=O.K[0].position,m=O.K[0].oU,U.p0=W?uI(W):void 0,W&&m&&!A8(m,W)&&(U.cp0=uI(m)));O.K.length>=2&&(U.i1=O.K[1].n6,U.a1=SD(O.K[1].RY, O.K[1].jd,O.K[1].zI),U.c1=SD(O.K[1].Ua,O.K[1].Vl,O.K[1].BG),U.ss1=SD(O.K[1].DW,O.K[1].IW,O.K[1].e6),W=O.K[1].position,m=O.K[1].oU,U.p1=W?uI(W):void 0,W&&m&&!A8(m,W)&&(U.cp1=uI(m)),U.mtos1=O.K[1].XA);O.K.length>=3&&(U.i2=O.K[2].n6,U.a2=SD(O.K[2].RY,O.K[2].jd,O.K[2].zI),U.c2=SD(O.K[2].Ua,O.K[2].Vl,O.K[2].BG),U.ss2=SD(O.K[2].DW,O.K[2].IW,O.K[2].e6),W=O.K[2].position,m=O.K[2].oU,U.p2=W?uI(W):void 0,W&&m&&!A8(m,W)&&(U.cp2=uI(m)),U.mtos2=O.K[2].XA);O.K.length>=4&&(U.i3=O.K[3].n6,U.a3=SD(O.K[3].RY,O.K[3].jd, O.K[3].zI),U.c3=SD(O.K[3].Ua,O.K[3].Vl,O.K[3].BG),U.ss3=SD(O.K[3].DW,O.K[3].IW,O.K[3].e6),W=O.K[3].position,m=O.K[3].oU,U.p3=W?uI(W):void 0,W&&m&&!A8(m,W)&&(U.cp3=uI(m)),U.mtos3=O.K[3].XA);U.cs=e0p(O.x3);V&&(U.ic=TRn(O.x3),U.dvpt=x.U.j,U.dvs=TO(x.j,.5),U.dfvs=TO(x.j,1),U.davs=TO(x.K,.5),U.dafvs=TO(x.K,1),J&&(x.U.j=0,SAU(x.j),SAU(x.K)),O.Ib()&&(U.dtos=x.O5,U.dav=x.qX,U.dtoss=O.j$+1,J&&(x.O5=0,x.qX=0,O.j$++)),U.dat=x.W.j,U.dft=x.KD.j,J&&(x.W.j=0,x.KD.j=0));U.ps=[F.W.width,F.W.height];U.bs=[uB(F.K), F.K.getHeight()];U.scs=[F.D.width,F.D.height];U.dom=F.domain;O.hK&&(U.vds=O.hK);if(O.V.length>0||O.Cc)V=g.kE(O.V),O.Cc&&V.push(O.Cc),U.pings=g.Ia(V,function(Z){return Z.toString()}); V=g.Ia(g.L1(O.V,function(Z){return Z.V()}),function(Z){return Z.getId()}); OdU(V);U.ces=V;O.j&&(U.vmer=O.j);O.T&&(U.vmmk=O.T);O.O5&&(U.vmiec=O.O5);U.avms=O.xe?O.xe.getName():"ns";O.xe&&g.h0(U,O.xe.LJ());y?(U.c=RL(O.Kf.Vl,2),U.ss=RL(O.Kf.IW,2)):U.tth=QT()-n2o;U.mc=RL(x.lw,2);U.nc=RL(x.S,2);U.mv=iI(x.V);U.nv=iI(x.D);U.lte=RL(O.EM,2);y=Rh(O,l);Ih(x);U.qmtos=Ih(y);U.qnc=RL(y.S,2);U.qmv=iI(y.V);U.qnv=iI(y.D);U.qas=y.D>0?1:0;U.qi=O.mP;U.avms||(U.avms="geo");U.psm=x.Vz.K;U.psv=x.Vz.getValue();U.psfv=x.zL.getValue();U.psa=x.nD.getValue();N=WCU(N.AC);N.length&&(U.veid=N);O.W&&g.h0(U, xhr(O.W));U.avas=O.Gq();U.vs=O.PF();U.co=XRd(O);U.tm=x.ol;U.tu=x.LD;return U}; wRH=function(O,V){if(g.Kd(E2V,V))return!0;var J=O.Xb[V];return J!==void 0?(O.Xb[V]=!0,!J):!1}; XRd=function(O){var V=O.ol.toString(10).padStart(2,"0");V=""+O.oB+V;O.ol<99&&O.ol++;return V}; g27=function(){this.K={};var O=cp();Dq(this,O,document);var V=dhh();try{if("1"==V){for(var J=O.parent;J!=O.top;J=J.parent)Dq(this,J,J.document);Dq(this,O.top,O.top.document)}}catch(y){}}; dhh=function(){var O=document.documentElement;try{if(!WA(cp().top))return"2";var V=[],J=cp(O.ownerDocument);for(O=J;O!=J.top;O=O.parent)if(O.frameElement)V.push(O.frameElement);else break;return V&&V.length!=0?"1":"0"}catch(y){return"2"}}; Dq=function(O,V,J){Yu(J,"mousedown",function(){return qGV(O)},301); Yu(V,"scroll",function(){return Q$Y(O)},302); Yu(J,"touchmove",function(){return G4d(O)},303); Yu(J,"mousemove",function(){return KZo(O)},304); Yu(J,"keydown",function(){return t$r(O)},305)}; qGV=function(O){g.YY(O.K,function(V){V.U>1E5||++V.U})}; Q$Y=function(O){g.YY(O.K,function(V){V.K>1E5||++V.K})}; G4d=function(O){g.YY(O.K,function(V){V.K>1E5||++V.K})}; t$r=function(O){g.YY(O.K,function(V){V.j>1E5||++V.j})}; KZo=function(O){g.YY(O.K,function(V){V.D>1E5||++V.D})}; uW5=function(){this.K=[];this.j=[]}; O6=function(O,V){return g.Qs(O.K,function(J){return J.mP==V})}; Ach=function(O,V){return V?g.Qs(O.K,function(J){return J.KK.XM==V}):null}; rcY=function(O,V){return g.Qs(O.j,function(J){return J.Es()==2&&J.mP==V})}; Jb=function(){var O=V$;return O.K.length==0?O.j:O.j.length==0?O.K:g.Bn(O.j,O.K)}; iKV=function(O,V){O=V.Es()==1?O.K:O.j;var J=dV(O,function(y){return y==V}); return J!=-1?(O.splice(J,1),V.xe&&V.xe.unobserve(),V.dispose(),!0):!1}; R0l=function(O){var V=V$;if(iKV(V,O)){switch(O.Es()){case 0:var J=function(){return null}; case 2:J=function(){return rcY(V,O.mP)}; break;case 1:J=function(){return O6(V,O.mP)}}for(var y=J();y;y=J())iKV(V,y)}}; BRl=function(O){var V=V$;O=g.L1(O,function(J){return!Ach(V,J.KK.XM)}); V.K.push.apply(V.K,g.q(O))}; P4H=function(O){var V=[];g.Cu(O,function(J){P$(V$.K,function(y){return y.KK.XM===J.KK.XM&&y.mP===J.mP})||(V$.K.push(J),V.push(J))})}; y$=function(){this.K=this.j=null}; k4Y=function(O,V){function J(y,l){V(y,l)} if(O.j==null)return!1;O.K=g.Qs(O.j,function(y){return y!=null&&y.PP()}); O.K&&(O.K.init(J)?XAH(O.K.K):V(O.K.K.Pd(),O.K));return O.K!=null}; lD=function(O){O=SGU(O);mK.call(this,O.length?O[O.length-1]:new V0(Ep,0));this.U=O;this.j=null}; SGU=function(O){if(!O.length)return[];O=(0,g.L1)(O,function(J){return J!=null&&J.G0()}); for(var V=1;VJ.time?V:J},O[0])}; Ci=function(O){O=O===void 0?Ep:O;mK.call(this,new V0(O,2))}; F3=function(){var O=Jt7();V0.call(this,Ep.top,O,"geo")}; Jt7=function(){xI();var O=kI();return O.U||O.j?0:2}; yt1=function(){}; N$=function(){this.done=!1;this.K={uy:0,dg:0,A3z:0,Cp:0,Ma:-1,f9:0,UL:0,D0:0,s5B:0};this.W=null;this.V=!1;this.U=null;this.S=0;this.j=new OL(this)}; Wa=function(){var O=xQ;O.V||(O.V=!0,lIr(O,function(){return O.D.apply(O,g.q(g.jF.apply(0,arguments)))}),O.D())}; mHU=function(){hU(yt1);var O=hU(y$);O.K!=null&&O.K.K?XAH(O.K.K):kI().update(Ep)}; U6=function(O,V,J){if(!O.done&&(O.j.cancel(),V.length!=0)){O.U=null;try{mHU();var y=QT();xI().W=y;if(hU(y$).K!=null)for(var l=0;l=0?QT()-Gu:-1,F=QT();l.K.Ma==-1&&(H=F);var N=kI(),x=xI(),W=qk(x.AC),U=Jb();try{if(U.length>0){var Z=N.K;Z&&(W.bs=[uB(Z),Z.getHeight()]);var z=N.W;z&&(W.ps=[z.width,z.height]);Ep.screen&&(W.scs=[Ep.screen.width,Ep.screen.height])}else W.url=encodeURIComponent(Ep.location.href.substring(0,512)),m.referrer&&(W.referrer=encodeURIComponent(m.referrer.substring(0,512))); W.tt=H;W.pt=Gu;W.bin=x.j;Ep.google_osd_load_pub_page_exp!==void 0&&(W.olpp=Ep.google_osd_load_pub_page_exp);W.deb=[1,l.K.uy,l.K.dg,l.K.Cp,l.K.Ma,0,l.j.j,l.K.f9,l.K.UL,l.K.D0,l.K.s5B,-1].join(";");W.tvt=H_V(l,F);N.j&&(W.inapp=1);if(Ep!==null&&Ep!=Ep.top){U.length>0&&(W.iframe_loc=encodeURIComponent(Ep.location.href.substring(0,512)));var c=N.S;W.is=[uB(c),c.getHeight()]}}catch(Y){W.error=1}xQ.U=W}Z=g.b2(xQ.U);z=xI().K;gT(z.U,"prf")==1?(c=new Cp,l=z.K,m=0,l.K>-1&&(m=l.U.K.now()-l.K),c=It(c,1,e$(l.D+ m),0),l=z.K,c=It(c,5,b4(l.K>-1?l.j+1:l.j),0),c=It(c,2,dR(z.j.K.U()),"0"),c=It(c,3,dR(z.j.K.j()),"0"),z=It(c,4,dR(z.j.K.K()),"0"),c={},z=(c.pf=g.nD(z.U()),c)):z={};g.h0(Z,z);g.h0(V,y,J,Z,O())}])}; Fs1=function(){var O=Csp||Ep;if(!O)return"";var V=[];if(!O.location||!O.location.href)return"";V.push("url="+encodeURIComponent(O.location.href.substring(0,512)));O.document&&O.document.referrer&&V.push("referrer="+encodeURIComponent(O.document.referrer.substring(0,512)));return V.join("&")}; ZB=function(){var O="youtube.player.web_20260127_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20260127_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20260127_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20260127_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),V;if(((V=O)==null?void 0:V.length)==2)return O[1];O="youtube.player.web_20260127_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var J;return((J=O)==null?void 0:J.length)==3?"20"+O[1]+O[2]:null}; Nar=function(){return"av.default_js".includes("ima_html5_sdk")?{rb:"ima",oF:null}:"av.default_js".includes("ima_native_sdk")?{rb:"nima",oF:null}:"av.default_js".includes("admob-native-video-javascript")?{rb:"an",oF:null}:"youtube.player.web_20260127_01_RC00".includes("cast_js_sdk")?{rb:"cast",oF:ZB()}:"youtube.player.web_20260127_01_RC00".includes("youtube.player.web")?{rb:"yw",oF:ZB()}:"youtube.player.web_20260127_01_RC00".includes("outstream_web_client")?{rb:"out",oF:ZB()}:"youtube.player.web_20260127_01_RC00".includes("drx_rewarded_web")? {rb:"r",oF:ZB()}:"youtube.player.web_20260127_01_RC00".includes("gam_native_web_video")?{rb:"n",oF:ZB()}:"youtube.player.web_20260127_01_RC00".includes("admob_interstitial_video")?{rb:"int",oF:ZB()}:{rb:"j",oF:null}}; s6=function(O,V){var J={sv:"968"};z7!==null&&(J.v=z7);J.cb=xHH;J.nas=V$.K.length;J.msg=O;V!==void 0&&(O=Wsd(V))&&(J.e=ca[O]);return J}; T7=function(O){return Gv(O,"custom_metric_viewable")}; Wsd=function(O){var V=T7(O)?"custom_metric_viewable":O.toLowerCase();return ew(Pl,function(J){return J==V})}; UHH=function(){this.K=void 0;this.j=!1;this.U=0;this.D=-1;this.W="tos"}; cth=function(O){try{var V=O.split(",");return V.length>g.ct(Z_p).length?null:pD(V,function(J,y){y=y.toLowerCase().split("=");if(y.length!=2||zT7[y[0]]===void 0||!zT7[y[0]](y[1]))throw Error("Entry ("+y[0]+", "+y[1]+") is invalid.");J[y[0]]=y[1];return J},{})}catch(J){return null}}; stX=function(O,V){if(O.K==void 0)return 0;switch(O.W){case "mtos":return O.j?sL(V.K,O.K):sL(V.j,O.K);case "tos":return O.j?cl(V.K,O.K):cl(V.j,O.K)}return 0}; ea=function(O,V,J,y){qx.call(this,V,y);this.S=O;this.T=J}; IV=function(){}; YQ=function(O){qx.call(this,"fully_viewable_audible_half_duration_impression",O)}; aV=function(O){this.K=O}; bD=function(O,V){qx.call(this,O,V)}; pi=function(O){Q0.call(this,"measurable_impression",O)}; fi=function(){aV.apply(this,arguments)}; Li=function(O,V,J){t6.call(this,O,V,J)}; ni=function(O){O=O===void 0?Ep:O;mK.call(this,new V0(O,2))}; X3=function(O,V,J){t6.call(this,O,V,J)}; E6=function(O){O=O===void 0?Ep:O;mK.call(this,new V0(O,2))}; d2=function(){V0.call(this,Ep,2,"mraid");this.Vz=0;this.lw=this.fD=!1;this.S=null;this.j=pAn(this.U);this.D.K=new t8(0,0,0,0);this.ol=!1}; g2=function(O,V,J){O.pI("addEventListener",V,J)}; Yfr=function(O){xI().D=!!O.pI("isViewable");g2(O,"viewableChange",TaX);O.pI("getState")==="loading"?g2(O,"ready",eT1):IIr(O)}; IIr=function(O){typeof O.j.g6.AFMA_LIDAR==="string"?(O.fD=!0,aIh(O)):(O.j.compatibility=3,O.S="nc",O.fail("w"))}; aIh=function(O){O.lw=!1;var V=gT(xI().AC,"rmmt")==1,J=!!O.pI("isViewable");(V?!J:1)&&vA().setTimeout(gb(524,function(){O.lw||(b_p(O),qB(540,Error()),O.S="mt",O.fail("w"))}),500); pU7(O);g2(O,O.j.g6.AFMA_LIDAR,fIn)}; pU7=function(O){var V=gT(xI().AC,"sneio")==1,J=O.j.g6.AFMA_LIDAR_EXP_1!==void 0,y=O.j.g6.AFMA_LIDAR_EXP_2!==void 0;(V=V&&y)&&(O.j.g6.AFMA_LIDAR_EXP_2=!0);J&&(O.j.g6.AFMA_LIDAR_EXP_1=!V)}; b_p=function(O){O.pI("removeEventListener",O.j.g6.AFMA_LIDAR,fIn);O.fD=!1}; hTd=function(O,V){if(O.pI("getState")==="loading")return new g.Op(-1,-1);V=O.pI(V);if(!V)return new g.Op(-1,-1);O=parseInt(V.width,10);V=parseInt(V.height,10);return isNaN(O)||isNaN(V)?new g.Op(-1,-1):new g.Op(O,V)}; eT1=function(){try{var O=hU(d2);O.pI("removeEventListener","ready",eT1);IIr(O)}catch(V){qB(541,V)}}; fIn=function(O,V){try{var J=hU(d2);J.lw=!0;var y=O?new t8(O.y,O.x+O.width,O.y+O.height,O.x):new t8(0,0,0,0);var l=QT(),m=DL();var H=new AZ(l,m,J);H.K=y;H.volume=V;J.Mz(H)}catch(F){qB(542,F)}}; TaX=function(O){var V=xI(),J=hU(d2);O&&!V.D&&(V.D=!0,J.ol=!0,J.S&&J.fail("w",!0))}; q$=function(){this.isInitialized=!1;this.K=this.j=null;var O={};this.S=(O.start=this.Ql5,O.firstquartile=this.LnX,O.midpoint=this.yvn,O.thirdquartile=this.S5i,O.complete=this.VBz,O.error=this.giD,O.pause=this.WA,O.resume=this.cq,O.skip=this.INn,O.viewable_impression=this.Pi,O.mute=this.aj,O.unmute=this.aj,O.fullscreen=this.xXl,O.exitfullscreen=this.wEK,O.fully_viewable_audible_half_duration_impression=this.Pi,O.measurable_impression=this.Pi,O.abandon=this.WA,O.engagedview=this.Pi,O.impression=this.Pi, O.creativeview=this.Pi,O.progress=this.aj,O.custom_metric_viewable=this.Pi,O.bufferstart=this.WA,O.bufferfinish=this.cq,O.audio_measurable=this.Pi,O.audio_audible=this.Pi,O);O={};this.T=(O.overlay_resize=this.cvj,O.abandon=this.xL,O.close=this.xL,O.collapse=this.xL,O.overlay_unmeasurable_impression=function(V){return ku(V,"overlay_unmeasurable_impression",DL())},O.overlay_viewable_immediate_impression=function(V){return ku(V,"overlay_viewable_immediate_impression",DL())},O.overlay_unviewable_impression= function(V){return ku(V,"overlay_unviewable_impression",DL())},O.overlay_viewable_end_of_session_impression=function(V){return ku(V,"overlay_viewable_end_of_session_impression",DL())},O); xI().j=3;o_1(this);this.U=null}; Q$=function(O,V,J,y){O=O.oH(null,y,!0,V);O.D=J;BRl([O]);return O}; v_U=function(O,V,J){$WU(V);var y=O.K;g.Cu(V,function(l){var m=g.Ia(l.criteria,function(H){var F=cth(H);if(F==null)H=null;else if(H=new UHH,F.visible!=null&&(H.K=F.visible/100),F.audible!=null&&(H.j=F.audible==1),F.time!=null){var N=F.timetype=="mtos"?"mtos":"tos",x=zyU(F.time,"%")?"%":"ms";F=parseInt(F.time,10);x=="%"&&(F/=100);H.setTime(F,x,N)}return H}); P$(m,function(H){return H==null})||pRn(J,new ea(l.id,l.event,m,y))})}; wUH=function(){var O=[],V=xI();O.push(hU(F3));gT(V.AC,"mvp_lv")&&O.push(hU(d2));V=[new ni,new E6];V.push(new lD(O));V.push(new Ci(Ep));return V}; Mfl=function(O){if(!O.isInitialized){O.isInitialized=!0;try{var V=QT(),J=xI(),y=kI();Gu=V;J.U=79463069;O.j!=="o"&&(Csp=bu7(Ep));if(twH()){xQ.K.dg=0;xQ.K.Ma=QT()-V;var l=wUH(),m=hU(y$);m.j=l;k4Y(m,function(){G7()})?xQ.done||($Hn(),J6(m.K.K,O),Wa()):y.U?G7():Wa()}else Ki=!0}catch(H){throw V$.reset(),H; }}}; uD=function(O){xQ.j.cancel();tb=O;xQ.done=!0}; Ab=function(O){if(O.j)return O.j;var V=hU(y$).K;if(V)switch(V.getName()){case "nis":O.j="n";break;case "gsv":O.j="m"}O.j||(O.j="h");return O.j}; r2=function(O,V,J){if(O.K==null)return V.hK|=4,!1;O=Ls1(O.K,J,V);V.hK|=O;return O==0}; G7=function(){var O=[new Ci(Ep)],V=hU(y$);V.j=O;k4Y(V,function(){uD("i")})?xQ.done||($Hn(),Wa()):uD("i")}; n_7=function(O,V){if(!O.Xs){var J=ku(O,"start",DL());J=O.Xn.K(J).K;var y={id:"lidarv"};y.r=V;y.sv="968";z7!==null&&(y.v=z7);IL(J,function(l,m){return y[l]=l=="mtos"||l=="tos"?m:encodeURIComponent(m)}); V=Fs1();IL(V,function(l,m){return y[l]=encodeURIComponent(m)}); V="//pagead2.googlesyndication.com/pagead/gen_204?"+jD(Hl(new $u,y));rUX(V);O.Xs=!0}}; iD=function(O,V,J){U6(xQ,[O],!DL());v2p(O,J);J!=4&&o27(O.fD,J,O.ZF);return ku(O,V,DL())}; o_1=function(O){jtl(function(){var V=XUd();O.j!=null&&(V.sdk=O.j);var J=hU(y$);J.K!=null&&(V.avms=J.K.getName());return V})}; E_V=function(O,V,J,y){var l=Ach(V$,J);l!==null&&l.mP!==V&&(O.NL(l),l=null);l||(V=O.oH(J,QT(),!1,V),V$.j.length==0&&(xI().U=79463069),P4H([V]),l=V,l.D=Ab(O),y&&(l.nD=y));return l}; dH7=function(O,V){var J=O[V];J!==void 0&&J>0&&(O[V]=Math.floor(J*1E3))}; XUd=function(){var O=kI(),V={},J={},y={};return Object.assign({},(V.sv="968",V),z7!==null&&(J.v=z7,J),(y["if"]=O.U?"1":"0",y.nas=String(V$.K.length),y))}; RV=function(O){qx.call(this,"audio_audible",O)}; Ba=function(O){Q0.call(this,"audio_measurable",O)}; Pa=function(){aV.apply(this,arguments)}; kQ=function(){}; g_1=function(O){this.K=O}; Ls1=function(O,V,J){O=O.j();if(typeof O==="function"){var y={};var l={};y=Object.assign({},z7!==null&&(y.v=z7,y),(l.sv="968",l.cb=xHH,l.e=qfd(V),l));l=ku(J,V,DL());g.h0(y,l);J.y_[V]=l;y=J.Es()==2?AUY(y).join("&"):J.Xn.K(y).K;try{return O(J.mP,y,V),0}catch(m){return 2}}else return 1}; qfd=function(O){var V=T7(O)?"custom_metric_viewable":O;O=ew(Pl,function(J){return J==V}); return ca[O]}; Sa=function(){q$.call(this);this.V=null;this.W=!1;this.D="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Qtr=function(O,V,J){J=J.opt_configurable_tracking_events;O.K!=null&&Array.isArray(J)&&v_U(O,J,V)}; G1d=function(O,V,J){var y=O6(V$,V);y||(y=J.opt_nativeTime||-1,y=Q$(O,V,Ab(O),y),J.opt_osdId&&(y.nD=J.opt_osdId));return y}; Ksr=function(O,V,J){var y=O6(V$,V);y||(y=Q$(O,V,"n",J.opt_nativeTime||-1));return y}; tfl=function(O,V){var J=O6(V$,V);J||(J=Q$(O,V,"h",-1));return J}; uV5=function(O){xI();switch(Ab(O)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; i_r=function(O,V,J,y){J=J===void 0?{}:J;var l={};g.h0(l,{opt_adElement:void 0,opt_fullscreen:void 0},J);var m=O.sX(V,J);J=m?m.Xn:O.J6();if(l.opt_bounds)return J.K(s6("ol",y));if(y!==void 0)if(Wsd(y)!==void 0)if(Ki)O=s6("ue",y);else if(Mfl(O),tb=="i")O=s6("i",y),O["if"]=0;else if(V=O.sX(V,l)){b:{tb=="i"&&(V.B4=!0);m=l.opt_fullscreen;m!==void 0&&f1(V,!!m);var H;if(m=!kI().j)(m=u2(g.Pt(),"CrKey")&&!(u2(g.Pt(),"CrKey")&&u2(g.Pt(),"SmartSpeaker"))||u2(g.Pt(),"PlayStation")||u2(g.Pt(),"Roku")||wAl()||u2(g.Pt(), "Xbox"))||(m=g.Pt(),m=u2(m,"AppleTV")||u2(m,"Apple TV")||u2(m,"CFNetwork")||u2(m,"tvOS")),m||(m=g.Pt(),m=u2(m,"sdk_google_atv_x86")||u2(m,"Android TV")),m=!m;m&&(vA(),m=xK(SH)===0);if(H=m){switch(V.Es()){case 1:n_7(V,"pv");break;case 2:O.YO(V)}uD("pv")}m=y.toLowerCase();if(H=!H)H=gT(xI().AC,"ssmol")&&m==="loaded"?!1:g.Kd(AtH,m);if(H&&V.XC==0){tb!="i"&&(xQ.done=!1);H=l!==void 0?l.opt_nativeTime:void 0;up=H=typeof H==="number"?H:QT();V.Cj=!0;var F=DL();V.XC=1;V.Xb={};V.Xb.start=!1;V.Xb.firstquartile= !1;V.Xb.midpoint=!1;V.Xb.thirdquartile=!1;V.Xb.complete=!1;V.Xb.resume=!1;V.Xb.pause=!1;V.Xb.skip=!1;V.Xb.mute=!1;V.Xb.unmute=!1;V.Xb.viewable_impression=!1;V.Xb.measurable_impression=!1;V.Xb.fully_viewable_audible_half_duration_impression=!1;V.Xb.fullscreen=!1;V.Xb.exitfullscreen=!1;V.j$=0;F||(V.w0().T=H);U6(xQ,[V],!F)}(H=V.kF[m])&&XM(V.x3,H);gT(xI().AC,"fmd")||g.Kd(rtV,m)&&V.Cc&&V.Cc.j(V,null);switch(V.Es()){case 1:var N=T7(m)?O.S.custom_metric_viewable:O.S[m];break;case 2:N=O.T[m]}if(N&&(y=N.call(O, V,l,y),gT(xI().AC,"fmd")&&g.Kd(rtV,m)&&V.Cc&&V.Cc.j(V,null),y!==void 0)){l=s6(void 0,m);g.h0(l,y);y=l;break b}y=void 0}V.XC==3&&O.NL(V);O=y}else O=s6("nf",y);else O=void 0;else Ki?O=s6("ue"):m?(O=s6(),g.h0(O,M$h(m,!0,!1,!1))):O=s6("nf");return typeof O==="string"?J.K():J.K(O)}; RT1=function(O,V){V&&(O.D=V)}; Bal=function(O){var V={};return V.viewability=O.K,V.googleViewability=O.j,V}; PsH=function(O,V,J){J=J===void 0?{}:J;O=i_r(hU(Sa),V,J,O);return Bal(O)}; DB=function(O){var V=g.jF.apply(1,arguments).filter(Boolean).join("&");if(!V)return O;var J=O.match(/[?&]adurl=/);return J?O.slice(0,J.index+1)+V+"&"+O.slice(J.index+1):O+(O.indexOf("?")<0?"?":"&")+V}; OW=function(O,V){return V?"&"+O+"="+encodeURIComponent(V):""}; k1r=function(O){var V=O.url;O=O.Buz;this.j=V;this.D=O;this.U=(new Date).getTime()-17040672E5;this.K={};for(var J=/[?&]([^&=]+)=([^&]*)/g;O=J.exec(V);)this.K[O[1]]=O[2]}; Sf7=function(O){O=O.D;if(!O)return"";var V=OW("uap",O.platform)+OW("uapv",O.platformVersion)+OW("uafv",O.uaFullVersion)+OW("uaa",O.architecture)+OW("uam",O.model)+OW("uab",O.bitness);O.fullVersionList&&(V+="&uafvl="+encodeURIComponent(O.fullVersionList.map(function(J){return encodeURIComponent(J.brand)+";"+encodeURIComponent(J.version)}).join("|"))); O.wow64!=null&&(V+="&uaw="+Number(O.wow64));return V.slice(1)}; Vir=function(O,V,J,y,l){var m=window;var H=H===void 0?!1:H;var F;J?F=(H===void 0?0:H)?"//ep1.adtrafficquality.google/bg/"+qg(J)+".js":"//pagead2.googlesyndication.com/bg/"+qg(J)+".js":F="";H=H===void 0?!1:H;J=m.document;var N={};V&&(N._scs_=V);N._bgu_=F;N._bgp_=y;N._li_="v_h.3.0.0.0";l&&(N._upb_=l);(V=m.GoogleTyFxhY)&&typeof V.push=="function"||(V=m.GoogleTyFxhY=[]);V.push(N);V=Co(J).createElement("SCRIPT");V.type="text/javascript";V.async=!0;O=(H===void 0?0:H)?g.$a(DHn,qg(O)+".js"):g.$a(O5n,qg(O)+ ".js");g.wO(V,O);(m=(m.GoogleTyFxhYEET||{})[V.src])?m():J.getElementsByTagName("head")[0].appendChild(V)}; J45=function(){try{var O,V;return!!((O=window)==null?0:(V=O.top)==null?0:V.location.href)&&!1}catch(J){return!0}}; VC=function(O,V,J){J=J===void 0?Error():J;var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=O;V+=":";J instanceof Error?(this.message=V+J.message,this.stack=J.stack||""):(this.message=V+String(J),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; yC=function(){var O=y4Y();O=O===void 0?"bevasrsg":O;return new Promise(function(V){var J=window===window.top?window:J45()?window:window.top,y=J[O],l;((l=y)==null?0:l.bevasrs)?V(new JB(y.bevasrs)):(y||(y={},y=(y.nqfbel=[],y),J[O]=y),y.nqfbel.push(function(m){V(new JB(m))}))})}; led=function(O){var V={c:O.Fq,e:O.D1,mc:O.Qk,me:O.S_};O.eV&&(V.co={c:O.eV.v7,a:O.eV.gg,s:O.eV.Vp});return V}; lT=function(O){g.K.call(this);this.wpc=O}; JB=function(O){g.K.call(this);var V=this;this.jj=O;this.U="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.j=void 0;this.zY=this.jj.p;this.D=this.B2.bind(this);this.addOnDisposeCallback(function(){return void m1V(V)})}; $1p=function(O){var V;return g.Q(function(J){if(J.j==1){if(!O.jj.wpc)throw new VC(30,"NWA");return O.K?J.return(O.K):J.K(O.jj.wpc(),2)}V=J.U;O.K=new lT(V);return J.return(O.K)})}; m1V=function(O){O.j!==void 0&&(O.U.forEach(function(V){var J;(J=O.j)==null||J.removeEventListener(V,O.D)}),O.j=void 0)}; H5X=function(O){var V=V===void 0?53:V;var J=[];XV(O,mU,6).forEach(function(y){g.Qa(y,2)<=V&&J.push(g.Qa(y,1))}); return J}; jbY=function(O){var V=V===void 0?53:V;var J=[];XV(O,mU,6).forEach(function(y){g.Qa(y,2)>V&&J.push(g.Qa(y,1))}); return J}; Cyh=function(O){O.then(function(){},function(){})}; $9=function(){g.K.apply(this,arguments);this.j=1}; HG=function(O){return{fieldType:2,fieldName:O}}; g.jI=function(O){return{fieldType:3,fieldName:O}}; F7l=function(O){this.K=O;O.hN("/client_streamz/bg/frs",g.jI("mk"))}; Ngo=function(O){this.K=O;O.hN("/client_streamz/bg/wrl",g.jI("mn"),HG("ac"),HG("sc"),g.jI("rk"),g.jI("mk"))}; x1V=function(O){this.K=O;O.nK("/client_streamz/bg/ec",g.jI("en"),g.jI("mk"))}; W7V=function(O){this.K=O;O.hN("/client_streamz/bg/el",g.jI("en"),g.jI("mk"))}; U1l=function(O){this.K=O;O.nK("/client_streamz/bg/cec",HG("ec"),g.jI("mk"))}; Z5p=function(O){this.K=O;O.nK("/client_streamz/bg/po/csc",HG("cs"),g.jI("mk"))}; z4o=function(O){this.K=O;O.nK("/client_streamz/bg/po/ctav",g.jI("av"),g.jI("mk"))}; c4V=function(O){this.K=O;O.nK("/client_streamz/bg/po/cwsc",g.jI("su"),g.jI("mk"))}; sb5=function(O){this.qH=ya(O)}; Tgr=function(O,V){return Dgp(O,V,a6o)}; Cq=function(O){this.qH=ya(O)}; Fu=function(O){this.qH=ya(O)}; Nq=function(O){this.qH=ya(O)}; x9=function(O){this.qH=ya(O)}; WG=function(O){this.qH=ya(O)}; UW=function(O){this.qH=ya(O)}; e4o=function(O){this.qH=ya(O)}; ae1=function(O){var V=new UW;V=is(V,1,O.j);var J=Ieo(O);V=Dgp(V,J,nrp);J=[];for(var y=[],l=g.n(O.K.keys()),m=l.next();!m.done;m=l.next())y.push(m.value.split(","));for(l=0;l>>31)&4294967295;U=l[0];var c=l[1],Y=l[2],b=l[3],M=l[4];for(z=0;z<80;z++){if(z<40)if(z<20){var w=b^c&(Y^b);var L=1518500249}else w=c^Y^b,L=1859775393;else z<60?(w=c&Y|b&(c|Y),L=2400959708):(w=c^Y^b,L=3395469782);w=((U<<5|U>>>27)&4294967295)+w+M+L+Z[z]&4294967295;M=b;b=Y;Y=(c<<30|c>>>2)&4294967295;c=U;U=w}l[0]=l[0]+U&4294967295;l[1]=l[1]+c&4294967295;l[2]= l[2]+Y&4294967295;l[3]=l[3]+b&4294967295;l[4]=l[4]+M&4294967295} function J(U,Z){if(typeof U==="string"){U=unescape(encodeURIComponent(U));for(var z=[],c=0,Y=U.length;c=56;z--)m[z]=Z&255,Z>>>=8;V(m);for(z=Z=0;z<5;z++)for(var c=24;c>=0;c-=8)U[Z++]=l[z]>>c&255;return U} for(var l=[],m=[],H=[],F=[128],N=1;N<64;++N)F[N]=0;var x,W;O();return{reset:O,update:J,digest:y,gZ:function(){for(var U=y(),Z="",z=0;z1)));H=H.next)l||(m=H);l&&(J.K==0&&y==1?sLr(J,V):(m?(y=m,y.next==J.D&&(J.D=y),y.next=y.next.next):Tbl(J),eNn(J,l,3,V)))}O.U=null}else a8(O,3,V)}; var Fdh=function(O,V,J,y,l){return Jro[C[8]](this,16,O,V,J,y,l)}; var o8=function(O,V){O.j||O.K!=2&&O.K!=3||ILl(O);O.D?O.D.next=V:O.j=V;O.D=V},Ydo=function(O,V,J,y){var l=p3(null,null,null); l.K=new g.bF(function(m,H){l.U=V?function(F){try{var N=V.call(y,F);m(N)}catch(x){H(x)}}:m; l.j=J?function(F){try{var N=J.call(y,F);N===void 0&&F instanceof w4?H(F):m(N)}catch(x){H(x)}}:H}); l.K.U=O;o8(O,l);return l.K},a8=function(O,V,J){O.K==0&&(O===J&&(V=3,J=new TypeError("Promise cannot resolve to itself")),O.K=1,UBr(J,O.GMD,O.V4X,O)||(O.S=J,O.K=V,O.U=null,ILl(O),V!=3||J instanceof w4||aLd(O,J)))},UBr=function(O,V,J,y){if(O instanceof g.bF)return cZd(O,V,J,y),!0; if(O)try{var l=!!O.$goog_Thenable}catch(H){l=!1}else l=!1;if(l)return O.then(V,J,y),!0;if(g.YE(O))try{var m=O.then;if(typeof m==="function")return bpH(O,m,V,J,y),!0}catch(H){return J.call(y,H),!0}return!1},bpH=function(O,V,J,y,l){function m(N){F||(F=!0,y.call(l,N))} function H(N){F||(F=!0,J.call(l,N))} var F=!1;try{V.call(O,H,m)}catch(N){m(N)}},ILl=function(O){O.V||(O.V=!0,g.YS(O.qQ,O))},Tbl=function(O){var V=null; O.j&&(V=O.j,O.j=V.next,V.next=null);O.j||(O.D=null);return V},eNn=function(O,V,J,y){if(J==3&&V.j&&!V.D)for(;O&&O.W;O=O.U)O.W=!1; if(V.K)V.K.U=null,p$V(V,J,y);else try{V.D?V.U.call(V.context):p$V(V,J,y)}catch(l){fLH.call(null,l)}Whh.put(V)},p$V=function(O,V,J){V==2?O.U.call(O.context,J):O.j&&O.j.call(O.context,J)}; var zHr=function(O,V,J,y,l,m,H,F,N,x,W){return ap[C[8]](this,4,O,V,J,y,l,m,H,F,N,x,W)}; aLd=function(O,V){O.W=!0;g.YS(function(){O.W&&fLH.call(null,V)})}; w4=function(O){Xz.call(this,O)}; g.MU=function(O,V){g.xS.call(this);this.zM=O||1;this.kq=V||g.Z1;this.Hw=(0,g.hI)(this.UE5,this);this.zl=g.vn()}; g.L3=function(O,V,J){if(typeof O==="function")J&&(O=(0,g.hI)(O,J));else if(O&&typeof O.handleEvent=="function")O=(0,g.hI)(O.handleEvent,O);else throw Error("Invalid listener argument");return Number(V)>2147483647?-1:g.Z1.setTimeout(O,V||0)}; n3=function(O,V){var J=null;return(new g.bF(function(y,l){J=g.L3(function(){y(V)},O); J==-1&&l(Error("Failed to schedule timer."))})).TP(function(y){g.Z1.clearTimeout(J); throw y;})}; Xk=function(O){g.K.call(this);this.S=O;this.D=0;this.U=100;this.W=!1;this.j=new Map;this.V=new Set;this.flushInterval=3E4;this.K=new g.MU(this.flushInterval);this.K.listen("tick",this.DU,!1,this);g.t(this,this.K)}; hNn=function(O){O.K.enabled||O.K.start();O.D++;O.D>=O.U&&O.DU()}; oIX=function(O,V){return O.V.has(V)?void 0:O.j.get(V)}; vIr=function(O){for(var V=0;V2?O.K.statusText:""}catch(J){V=""}O.D=V+" ["+O.getStatus()+"]";Guh(O)}}finally{GF(O)}}}; GF=function(O,V){if(O.K){O.V&&(clearTimeout(O.V),O.V=null);var J=O.K;O.K=null;V||O.dispatchEvent("ready");try{J.onreadystatechange=null}catch(y){}}}; uF=function(O){var V=O.getStatus();a:switch(V){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var J=!0;break a;default:J=!1}if(!J){if(V=V===0)O=g.c$(String(O.T))[1]||null,!O&&g.Z1.self&&g.Z1.self.location&&(O=g.Z1.self.location.protocol.slice(0,-1)),V=!uTr.test(O?O.toLowerCase():"");J=V}return J}; g.tF=function(O){return O.K?O.K.readyState:0}; g.AF=function(O){try{return O.K?O.K.responseText:""}catch(V){return""}}; g.r4=function(O){try{if(!O.K)return null;if("response"in O.K)return O.K.response;switch(O.O5){case "":case "text":return O.K.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in O.K)return O.K.mozResponseArrayBuffer}return null}catch(V){return null}}; g.AZh=function(O){var V={};O=(O.K&&g.tF(O)>=2?O.K.getAllResponseHeaders()||"":"").split("\r\n");for(var J=0;J>1,V),Tl(O,O.length>>1)]}; fqo=function(O){var V=g.n(pll(O,eJ));O=V.next().value;V=V.next().value;return O.toString(16)+V.toString(16)}; h37=function(O,V){var J=pll(V);O=new Uint32Array(O.buffer);V=O[0];var y=g.n(J);J=y.next().value;y=y.next().value;for(var l=1;l>>8|H<<24,H+=m|0,H^=F+38293,m=m<<3|m>>>29,m^=H,N=N>>>8|N<<24,N+=F|0,N^=x+38293,F=F<<3|F>>>29,F^=N;m=[m,H];O[l]^=m[0];l+1=J?(globalThis.sessionStorage.removeItem(O),["e"]):["a",new Uint8Array(y.buffer,V+4)]}; I5=function(O,V,J){J=J===void 0?[]:J;this.maxItems=O;this.K=V===void 0?0:V;this.j=J}; wlH=function(O){var V=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!V)return new I5(O);var J=V.split(",");if(J.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new I5(O);V=J.slice(1);V.length===1&&V[0]===""&&(V=[]);J=Number(J[0]);return isNaN(J)||J<0||J>V.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new I5(O)):new I5(O,J,V)}; MD7=function(O,V){this.logger=V;try{var J=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(y){J=!1}J&&(this.index=wlH(O))}; LKV=function(O,V,J,y,l){var m=O.index?ST(O.logger,function(){return ouY(O.index,fqo(V),J,y,l)},"W"):"u"; O.logger.Mp(m)}; nuU=function(O,V,J){var y=g.n(O.index?ST(O.logger,function(){return vuH(fqo(V),J)},"R"):["u"]),l=y.next().value; y=y.next().value;O.logger.HG(l);return y}; dxl=function(O){function V(){J-=y;J-=l;J^=l>>>13;y-=l;y-=J;y^=J<<8;l-=J;l-=y;l^=y>>>13;J-=y;J-=l;J^=l>>>12;y-=l;y-=J;y^=J<<16;l-=J;l-=y;l^=y>>>5;J-=y;J-=l;J^=l>>>3;y-=l;y-=J;y^=J<<10;l-=J;l-=y;l^=y>>>15} O=Xlo(O);for(var J=2654435769,y=2654435769,l=314159265,m=O.length,H=m,F=0;H>=12;H-=12,F+=12)J+=YU(O,F),y+=YU(O,F+4),l+=YU(O,F+8),V();l+=m;switch(H){case 11:l+=O[F+10]<<24;case 10:l+=O[F+9]<<16;case 9:l+=O[F+8]<<8;case 8:y+=O[F+7]<<24;case 7:y+=O[F+6]<<16;case 6:y+=O[F+5]<<8;case 5:y+=O[F+4];case 4:J+=O[F+3]<<24;case 3:J+=O[F+2]<<16;case 2:J+=O[F+1]<<8;case 1:J+=O[F+0]}V();return Eun.toString(l)}; Xlo=function(O){for(var V=[],J=0;J>7,O.error.code]);y.set(J,4);return y}; ME=function(O,V,J){a5.call(this,O);this.D=V;this.clientState=J;this.K="S";this.j="q"}; wP=function(O){return globalThis.TextEncoder?(new TextEncoder).encode(O):g.LD(O)}; qLo=function(O,V,J){return O instanceof WP?Nfr(O,J,V,1):O.ix(J)}; nM=function(O){g.K.call(this);var V=this;this.U=new g.HP;this.D=0;this.j=void 0;this.state=2;this.jj=O.jj;this.wL=O.wL;this.Gw=Object.assign({},Qho,O.Gw||{});this.logger=O.jj.KU();var J;this.onError=(J=O.onError)!=null?J:function(){}; this.Zz=O.Zz||!1;if(GOr(O)){var y=this.jj;this.W=function(){return c6h(y).catch(function(H){H=V.reportError(new VC(V.K?20:32,"TRG:Disposed",H));V.j=H;var F;(F=V.K)==null||F.dispose();V.K=void 0;V.U.reject(H)})}; shh(y,function(){return void LM(V)}); y.T===2&&LM(this)}else this.W=O.hLE,LM(this);var l=this.logger.share();l.Jj("o");var m=new Pu(l,"o");this.U.promise.then(function(){m.done();l.jV();l.dispose()},function(){return void l.dispose()}); this.addOnDisposeCallback(function(){V.K?(V.K.dispose(),V.K=void 0):V.j?V.logger.jV():(V.j=V.reportError(new VC(32,"TNP:Disposed")),V.logger.jV(),V.U.reject(V.j))}); g.t(this,this.logger)}; KKn=function(O,V){if(!(V instanceof VC))if(V instanceof ET){var J=Error(V.toString());J.stack=V.stack;V=new VC(11,"EBH:Error",J)}else V=new VC(12,"BSO:Unknown",V);return O.reportError(V)}; LM=function(O){var V,J,y,l,m,H,F,N,x,W,U,Z,z,c,Y;return g.Q(function(b){switch(b.j){case 1:V=void 0;O.D++;J=new g.HP;O.jj instanceof U9&&O.jj.D.push(J.promise);if(!O.Zz){b.uw(2);break}y=new g.HP;setTimeout(function(){return void y.resolve()}); return b.K(y.promise,2);case 2:return l=O.logger.share(),b.W(4,5),O.state=5,m={},H=[],b.K(zl(O.jj.snapshot({Fq:m,C2:H}),O.Gw.NHl,function(){return Promise.reject(new VC(15,"MDA:Timeout"))}),7); case 7:F=b.U;if(O.GL())throw new VC(O.K?20:32,"MDA:Disposed");N=H[0];O.state=6;return b.K(zl(qLo(O.wL,l,F),O.Gw.fS,function(){return Promise.reject(new VC(10,"BWB:Timeout"))}),8); case 8:x=b.U;if(O.GL())throw new VC(O.K?20:32,"BWB:Disposed");O.state=7;V=ST(l,function(){var w=tDH(O,x,J,N);w.U.promise.then(function(){return void O.W()}); return w},"i"); case 5:b.T();l.dispose();b.qX(6);break;case 4:W=b.D();(U=V)==null||U.dispose();if(!O.j){Z=KKn(O,W);J.resolve();var M;if(M=O.jj instanceof U9&&O.D<2)a:if(W instanceof VC)M=W.code!==32&&W.code!==20&&W.code!==10;else{if(W instanceof ET)switch(W.code){case 2:case 13:case 14:case 4:break;default:M=!1;break a}M=!0}if(M)return z=(1+Math.random()*.25)*(O.K?6E4:1E3),c=setTimeout(function(){return void O.W()},z),O.addOnDisposeCallback(function(){return void clearTimeout(c)}),b.return(); O.j=Z}l.sB(O.K?13:14);O.U.reject(O.j);return b.return();case 6:O.state=8,O.D=0,(Y=O.K)==null||Y.dispose(),O.K=V,O.U.resolve(),b.V()}})}; tDH=function(O,V,J,y){var l=G1(V,2)*1E3;if(l<=0)throw new VC(31,"TTM:Invalid");if(K_(V,4))return new o5(O.logger,K_(V,4),l);if(!G1(V,3))return new hX(O.logger,KD(ef(V,1)),l);if(!y)throw new VC(4,"PMD:Undefined");y=y(KD(ef(V,1)));if(typeof y!=="function")throw new VC(16,"APF:Failed");O.V=Math.floor((Date.now()+l)/1E3);O=new fM(O.logger,y,G1(V,3),l);O.addOnDisposeCallback(function(){return void J.resolve()}); return O}; uMh=function(O,V){V=V instanceof VC?V:new VC(5,"TVD:error",V);return O.reportError(V)}; BfY=function(O,V,J){try{if(O.GL())throw new VC(21,"BNT:disposed");if(!O.K&&O.j)throw O.j;var y,l;return(l=(y=A67(O,V,J))!=null?y:r6o(O,V,J))!=null?l:i1r(O,V,J)}catch(m){if(!V.S_)throw uMh(O,m);return R3r(O,J,m)}}; A67=function(O,V,J){var y;return(y=O.K)==null?void 0:pM(y,function(){return XP(O,V)},J,function(l){var m; if(O.K instanceof fM&&((m=V.eV)==null?0:m.Vp))try{var H;(H=O.cache)==null||LKV(H,XP(O,V),l,V.eV.v7,O.V-120)}catch(F){O.reportError(new VC(24,"ELX:write",F))}})}; r6o=function(O,V,J){var y;if((y=V.eV)!=null&&y.gg)try{var l,m=(l=O.cache)==null?void 0:nuU(l,XP(O,V),V.eV.v7);return m?J?ST(O.logger,function(){return g.nD(m,2)},"a"):m:void 0}catch(H){O.reportError(new VC(23,"RXO:read",H))}}; i1r=function(O,V,J){var y={stack:[],error:void 0,hasError:!1};try{if(!V.Qk)throw new VC(29,"SDF:notready");return pM(ino(y,new ME(O.logger,0,O.state)),function(){return XP(O,V)},J)}catch(l){y.error=l,y.hasError=!0}finally{RHr(y)}}; R3r=function(O,V,J){var y={stack:[],error:void 0,hasError:!1};try{var l=uMh(O,J);return pM(ino(y,new vP(O.logger,l)),function(){return[]},V)}catch(m){y.error=m,y.hasError=!0}finally{RHr(y)}}; XP=function(O,V){return V.D1?V.D1:V.Fq?ST(O.logger,function(){return V.D1=wP(V.Fq)},"c"):[]}; PIp=function(){var O=0,V;return function(J){V||(V=new DW);var y=new ME(V,O,1),l=pM(y,function(){return wP(J)},!0); y.dispose();O++;return l}}; kOl=function(){var O=g.E9();this.K=O;O.nK("/client_streamz/youtube/aba/gac",HG("type"),HG("sequence"))}; dP=function(O){this.qH=ya(O)}; SL7=function(O,V,J){this.g$=O;this.xz=V;this.metadata=J}; gP=function(O,V){V=V===void 0?{}:V;this.fs5=O;this.metadata=V;this.status=null}; qE=function(O,V,J,y,l){this.name=O;this.methodType="unary";this.requestType=V;this.responseType=J;this.K=y;this.j=l}; Qv=function(O){this.qH=ya(O)}; Gl=function(O){this.qH=ya(O)}; KM=function(O){this.qH=ya(O)}; tX=function(O,V){this.j=[];this.D=[];this.W=[];this.U=[];this.K=[];this.V=O.tqD;this.S=V;this.xhr=O.xhr;this.V&&Dxd(this)}; ybo=function(O,V){var J=new OiX;g.mS(O.xhr,"complete",function(){if(uF(O.xhr)){var y=g.AF(O.xhr);if(V&&O.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");y=atob(y)}try{var l=O.S(y)}catch(F){uN(O,AX(new ET(13,"Error when deserializing response data; error: "+F+(", response: "+y)),J));return}y=w$r(O.xhr.getStatus());rP(O,iN(O));y===0?VaX(O,l):uN(O,AX(new ET(y,"Xhr succeeded but the status code is not 200"),J))}else{y=g.AF(O.xhr);l=iN(O);if(y){var m= JbX(O,y);y=m.code;var H=m.details;m=m.metadata}else y=2,H="Rpc failed due to xhr error. uri: "+String(O.xhr.T)+", error code: "+(O.xhr.j+", error: ")+O.xhr.getLastError(),m=l;rP(O,l);uN(O,AX(new ET(y,H,m),J))}})}; Dxd=function(O){O.V.I3("data",function(V){if("1"in V){var J=V["1"];try{var y=O.S(J)}catch(l){uN(O,new ET(13,"Error when deserializing response data; error: "+l+(", response: "+J)))}y&&VaX(O,y)}if("2"in V)for(V=JbX(O,V["2"]),J=0;J-1&&O.splice(V,1)}; VaX=function(O,V){for(var J=0;J>4&15).toString(16)+(O&15).toString(16)}; lL=function(O,V){this.j=this.K=null;this.U=O||null;this.D=!!V}; Hy=function(O){O.K||(O.K=new Map,O.j=0,O.U&&IL(O.U,function(V,J){O.add(gO(V),J)}))}; x$h=function(O,V){Hy(O);V=jL(O,V);return O.K.has(V)}; g.Wzr=function(O,V,J){O.remove(V);J.length>0&&(O.U=null,O.K.set(jL(O,V),g.kE(J)),O.j=O.j+J.length)}; jL=function(O,V){V=String(V);O.D&&(V=V.toLowerCase());return V}; CD5=function(O,V){V&&!O.D&&(Hy(O),O.U=null,O.K.forEach(function(J,y){var l=y.toLowerCase();y!=l&&(this.remove(y),g.Wzr(this,l,J))},O)); O.D=V}; g.U$V=function(O){var V="";g.YY(O,function(J,y){V+=y;V+=":";V+=J;V+="\r\n"}); return V}; g.CZ=function(O,V,J){if(g.Id(J))return O;J=g.U$V(J);if(typeof O==="string")return fp(O,g.dO(V),J);g.$6(O,V,J);return O}; g.Fy=function(O){g.K.call(this);this.j=O;this.K={}}; ZiX=function(O,V,J,y,l,m){if(Array.isArray(J))for(var H=0;H=0)return!0;try{var V=new g.Cn(O)}catch(J){return g.Qs(nQo,function(y){return O.search(y)>0})!=null}return V.V.match(Xad)?!0:g.Qs(nQo,function(J){return O.match(J)!=null})!=null}; g.bL=function(O,V){return O.replace(d$d,function(J,y){try{var l=g.Ym(V,y);if(l==null||l.toString()==null)return J;l=l.toString();if(l==""||!g.Ku(g.Qt(l)))return encodeURIComponent(l).replace(/%2C/g,",")}catch(m){}return J})}; gQo=function(O){this.qH=ya(O,500)}; q6X=function(O){this.qH=ya(O,500)}; pZ=function(O){this.qH=ya(O)}; fZ=function(O){this.qH=ya(O)}; QV1=function(O){var V=O.qH;return n_(O,V,V[PA]|0,pZ,2,1)}; tap=function(O){var V;if((V=O[G7V])!=null)O=V;else{if(h4!==h4)throw Error();O=O[G7V]=Kzp(O.K)}return O}; Abd=function(O){var V;return(V=O[u3X])!=null?V:O[u3X]=new Map(QV1(tap(O)).map(function(J){return[J.getName(),g.Qa(J,2)]}))}; h_=function(O,V){return Object.is(O,V)}; vy=function(O){var V=oZ;oZ=O;return V}; rbl=function(O){if(O.iD!==void 0){var V=w7;w7=!0;try{for(var J=O.iD;J!==void 0;J=J.V8){var y=J.W$;y.GX||(O=void 0,y.GX=!0,rbl(y),(O=y.XN)==null||O.call(y,y))}}finally{w7=V}}}; iiX=function(){var O;return((O=oZ)==null?void 0:O.n_)!==!1}; RjV=function(O){O&&(O.f0=void 0,O.SR=!0);return vy(O)}; PDl=function(O){O.SR=!1;var V=O.f0,J=V!==void 0?V.Fg:O.producers;if(J!==void 0){if(Mn(O)){do J=B27(J);while(J!==void 0)}V!==void 0?V.Fg=void 0:O.producers=void 0}}; k75=function(O,V){var J=O.C3,y=Mn(O);J!==void 0?(V.V8=J.V8,J.V8=V):(V.V8=void 0,O.iD=V);V.fF=J;O.C3=V;if(!y)for(O=O.producers;O!==void 0;O=O.Fg)k75(O.Xh,O)}; B27=function(O){var V=O.Xh,J=O.Fg,y=O.V8,l=O.fF;O.V8=void 0;O.fF=void 0;y!==void 0?y.fF=l:V.C3=l;if(l!==void 0)l.V8=y;else if(V.iD=y,!Mn(V))for(O=V.producers;O!==void 0;)O=B27(O);return J}; Mn=function(O){return O.P7||O.iD!==void 0}; VI7=function(O,V){function J(){a:{if(w7)throw Error("");if(oZ!==null){var l=oZ.f0;if(l===void 0||l.Xh!==y){var m=void 0,H=oZ.SR;if(H&&(m=l!==void 0?l.Fg:oZ.producers,m!==void 0&&m.Xh===y)){oZ.f0=m;m.f4i=y.version;break a}var F=y.C3,N;if(!(N=F===void 0||F.W$!==oZ)){if(H){b:{N=oZ;H=N.f0;if(H!==void 0){N=N.producers;do{if(N===F){H=!0;break b}if(N===H)break;N=N.Fg}while(N!==void 0)}H=!1}H=!H}N=H}N&&(H=Mn(oZ),m={Xh:y,W$:oZ,Fg:m,fF:F,f4i:y.version,V8:void 0},oZ.f0=m,l!==void 0?l.Fg=m:oZ.producers=m,H&& k75(y,m))}}}return y.value} var y=Object.create(S6V);y.value=O;V!==void 0&&(y.VJ=V);J[D$5]=y;return[J,function(l){return OqX(y,l)}, function(l){if(!iiX())throw Error();OqX(y,l(y.value))}]}; OqX=function(O,V){if(!iiX())throw Error();O.VJ(O.value,V)||(O.value=V,O.version++,JBn++,rbl(O))}; LZ=function(O,V){V=V===void 0?"":V;var J={};O=VI7(O,J.equals);J=J.debugName;var y;V=J&&V?J+"__"+V:(y=J!=null?J:V)!=null?y:"[signal]";O[0][D$5].debugName=V}; Xy=function(O){g.xS.call(this);var V=this;this.W=this.j=0;this.kP=O!=null?O:{nf:function(l,m){return setTimeout(l,m)}, pK:function(l){clearTimeout(l)}}; var J,y;this.K=(y=(J=window.navigator)==null?void 0:J.onLine)!=null?y:!0;this.U=function(){return g.Q(function(l){return l.K(nZ(V),0)})}; window.addEventListener("offline",this.U);window.addEventListener("online",this.U);this.W||this.e7()}; yB7=function(){var O=g.E7;Xy.instance||(Xy.instance=new Xy(O));return Xy.instance}; nZ=function(O,V){return O.D?O.D:O.D=new Promise(function(J){var y,l,m,H;return g.Q(function(F){switch(F.j){case 1:return y=window.AbortController?new window.AbortController:void 0,m=(l=y)==null?void 0:l.signal,H=!1,F.W(2,3),y&&(O.j=O.kP.nf(function(){y.abort()},V||2E4)),F.K(fetch("/generate_204",{method:"HEAD", signal:m}),5);case 5:H=!0;case 3:F.T();O.D=void 0;O.j&&(O.kP.pK(O.j),O.j=0);H!==O.K&&(O.K=H,O.K?O.dispatchEvent("networkstatus-online"):O.dispatchEvent("networkstatus-offline"));J(H);F.qX(0);break;case 2:F.D(),H=!1,F.uw(3)}})})}; ll5=function(O){this.qH=ya(O)}; d7=function(){this.data=[];this.K=-1}; mqY=function(O){O.K===-1&&(O.K=O.data.reduce(function(V,J,y){return V+(J?Math.pow(2,y):0)},0)); return O.K}; g7=function(O){O.setAttribute("role","link")}; QX=function(O,V){Array.isArray(V)&&(V=V.join(" "));V===""||V==void 0?(qn||(V={},qn=(V.atomic=!1,V.autocomplete="none",V.dropeffect="none",V.haspopup=!1,V.live="off",V.multiline=!1,V.multiselectable=!1,V.orientation="vertical",V.readonly=!1,V.relevant="additions text",V.required=!1,V.sort="none",V.busy=!1,V.disabled=!1,V.hidden=!1,V.invalid="false",V)),V=qn,"label"in V?O.setAttribute("aria-label",V.label):O.removeAttribute("aria-label")):O.setAttribute("aria-label",V)}; Gz=function(O){O=O.getAttribute("aria-label");return O==null||O==void 0?"":String(O)}; g.KZ=function(O,V,J){g.K.call(this);this.K=null;this.D=!1;this.V=O;this.W=J;this.j=V||window;this.U=(0,g.hI)(this.pL,this)}; $qV=function(O){O=O.j;return O.requestAnimationFrame||O.webkitRequestAnimationFrame||O.mozRequestAnimationFrame||O.oRequestAnimationFrame||O.msRequestAnimationFrame||null}; Hq1=function(O){O=O.j;return O.cancelAnimationFrame||O.cancelRequestAnimationFrame||O.webkitCancelRequestAnimationFrame||O.mozCancelRequestAnimationFrame||O.oCancelRequestAnimationFrame||O.msCancelRequestAnimationFrame||null}; g.t_=function(O,V,J){g.K.call(this);this.K=O;this.zM=V||0;this.j=J;this.U=(0,g.hI)(this.HP,this)}; g.uL=function(O,V){O.isActive()||O.start(V)}; g.A_=function(O){O.stop();O.HP()}; g.r7=function(O){O.isActive()&&g.A_(O)}; g.iL=function(O,V,J){g.K.call(this);this.D=J!=null?O.bind(J):O;this.zM=V;this.U=null;this.K=!1;this.j=0;this.PB=null}; RZ=function(O){O.PB=g.L3(function(){O.PB=null;O.K&&!O.j&&(O.K=!1,RZ(O))},O.zM); var V=O.U;O.U=null;O.D.apply(null,V)}; g.By=function(O,V){this.K=O[g.Z1.Symbol.iterator]();this.j=V}; j_V=function(O){return typeof O.className=="string"?O.className:O.getAttribute&&O.getAttribute("class")||""}; Py=function(O){return O.classList?O.classList:j_V(O).match(/\S+/g)||[]}; g.k6=function(O,V){typeof O.className=="string"?O.className=V:O.setAttribute&&O.setAttribute("class",V)}; g.SL=function(O,V){return O.classList?O.classList.contains(V):g.Kd(Py(O),V)}; g.D0=function(O,V){if(O.classList)O.classList.add(V);else if(!g.SL(O,V)){var J=j_V(O);g.k6(O,J+(J.length>0?" "+V:V))}}; g.Og=function(O,V){if(O.classList)Array.prototype.forEach.call(V,function(l){g.D0(O,l)}); else{var J={};Array.prototype.forEach.call(Py(O),function(l){J[l]=!0}); Array.prototype.forEach.call(V,function(l){J[l]=!0}); V="";for(var y in J)V+=V.length>0?" "+y:y;g.k6(O,V)}}; g.Vf=function(O,V){O.classList?O.classList.remove(V):g.SL(O,V)&&g.k6(O,Array.prototype.filter.call(Py(O),function(J){return J!=V}).join(" "))}; g.Jn=function(O,V){O.classList?Array.prototype.forEach.call(V,function(J){g.Vf(O,J)}):g.k6(O,Array.prototype.filter.call(Py(O),function(J){return!g.Kd(V,J)}).join(" "))}; g.yf=function(O,V,J){J?g.D0(O,V):g.Vf(O,V)}; CTo=function(O,V){var J=!g.SL(O,V);g.yf(O,V,J)}; g.lk=function(){g.xS.call(this);this.K=0;this.endTime=this.startTime=null}; FU7=function(O,V){Array.isArray(V)||(V=[V]);V=V.map(function(J){return typeof J==="string"?J:J.property+" "+J.duration+"s "+J.timing+" "+J.delay+"s"}); g.Pp(O,"transition",V.join(","))}; mr=function(O,V,J,y,l){g.lk.call(this);this.j=O;this.W=V;this.V=J;this.D=y;this.S=Array.isArray(l)?l:[l]}; Nqp=function(O,V,J,y){return new mr(O,V,{opacity:J},{opacity:y},{property:"opacity",duration:V,timing:"ease-in",delay:0})}; WUh=function(O){O=A0(O);if(O=="")return null;var V=String(O.slice(0,4)).toLowerCase();if(("url("1||O&&O.split(")"),null;if(O.indexOf("(")>0){if(/"|'/.test(O))return null;V=/([\-\w]+)\(/g;for(var J;J=V.exec(O);)if(!(J[1].toLowerCase()in xqr))return null}return O}; $F=function(O,V){O=g.Z1[O];return O&&O.prototype?(V=Object.getOwnPropertyDescriptor(O.prototype,V))&&V.get||null:null}; Uqr=function(O){var V=g.Z1.CSSStyleDeclaration;return V&&V.prototype&&V.prototype[O]||null}; Zqd=function(O,V,J,y){if(O)return O.apply(V,y);if(g.HM&&document.documentMode<10){if(!V[J].call)throw Error("IE Clobbering detected");}else if(typeof V[J]!="function")throw Error("Clobbering detected");return V[J].apply(V,y)}; eL1=function(O){if(!O)return"";var V=document.createElement("div").style;zLh(O).forEach(function(J){var y=g.z5&&J in cBl?J:J.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Gv(y,"--")||Gv(y,"var")||(J=Zqd(s_Y,O,O.getPropertyValue?"getPropertyValue":"getAttribute",[J])||"",J=WUh(J),J!=null&&Zqd(Tqh,V,V.setProperty?"setProperty":"setAttribute",[y,J]))}); return V.cssText||""}; zLh=function(O){g.Iz(O)?O=g.kE(O):(O=g.ct(O),g.um(O,"cssText"));return O}; g.Cv=function(O){var V,J=V=0,y=!1;O=O.split(Il7);for(var l=0;l.4?-1:1;return(V==0?null:V)==-1?"rtl":"ltr"}; g.WM=function(O){if(O instanceof FK||O instanceof N2||O instanceof xF)return O;if(typeof O.next=="function")return new FK(function(){return O}); if(typeof O[Symbol.iterator]=="function")return new FK(function(){return O[Symbol.iterator]()}); if(typeof O.LB=="function")return new FK(function(){return O.LB()}); throw Error("Not an iterator or iterable.");}; FK=function(O){this.j=O}; N2=function(O){this.j=O}; xF=function(O){FK.call(this,function(){return O}); this.U=O}; Ug=function(O,V,J,y,l,m,H,F){this.K=O;this.S=V;this.U=J;this.W=y;this.D=l;this.V=m;this.j=H;this.T=F}; ZD=function(O,V){if(V==0)return O.K;if(V==1)return O.j;var J=kr(O.K,O.U,V),y=kr(O.U,O.D,V);O=kr(O.D,O.j,V);J=kr(J,y,V);y=kr(y,O,V);return kr(J,y,V)}; pGU=function(O,V){if(V==0)return O.S;if(V==1)return O.T;var J=kr(O.S,O.W,V),y=kr(O.W,O.V,V);O=kr(O.V,O.T,V);J=kr(J,y,V);y=kr(y,O,V);return kr(J,y,V)}; fl7=function(O,V){var J=(V-O.K)/(O.j-O.K);if(J<=0)return 0;if(J>=1)return 1;for(var y=0,l=1,m=0,H=0;H<8;H++){m=ZD(O,J);var F=(ZD(O,J+1E-6)-m)/1E-6;if(Math.abs(m-V)<1E-6)return J;if(Math.abs(F)<1E-6)break;else m1E-6&&H<8;H++)m=0}; g.Th=function(O){g.K.call(this);this.V=1;this.U=[];this.D=0;this.K=[];this.j={};this.S=!!O}; o97=function(O,V,J){g.YS(function(){O.apply(V,J)})}; g.er=function(O){this.ra=O}; If=function(O){this.ra=O}; v9Y=function(O){this.data=O}; wGU=function(O){return O===void 0||O instanceof v9Y?O:new v9Y(O)}; YF=function(O){this.ra=O}; g.MIX=function(O){var V=O.creation;O=O.expiration;return!!O&&Og.vn()}; g.af=function(O){this.ra=O}; LU5=function(){}; bk=function(){}; pv=function(O){this.K=O;this.j=null}; fv=function(O){if(O.K==null)throw Error("Storage mechanism: Storage unavailable");O.isAvailable()||M_(Error("Storage mechanism: Storage unavailable"))}; hn=function(){var O=null;try{O=g.Z1.localStorage||null}catch(V){}pv.call(this,O)}; n9o=function(){var O=null;try{O=g.Z1.sessionStorage||null}catch(V){}pv.call(this,O)}; of=function(O,V){this.j=O;this.K=V+"::"}; g.vM=function(O){var V=new hn;return V.isAvailable()?O?new of(V,O):V:null}; wC=function(O,V){this.K=O;this.j=V}; M2=function(O){this.K=[];if(O)a:{if(O instanceof M2){var V=O.Hs();O=O.JR();if(this.K.length<=0){for(var J=this.K,y=0;y>>6:(m<65536?F[J++]=224|m>>>12:(F[J++]=240|m>>>18,F[J++]=128|m>>>12&63),F[J++]=128|m>>> 6&63),F[J++]=128|m&63);return F}; Eg=function(O){for(var V=O.length;--V>=0;)O[V]=0}; dC=function(O,V,J,y,l){this.o8=O;this.lf=V;this.jP=J;this.C9=y;this.yxj=l;this.Wp=O&&O.length}; gC=function(O,V){this.P$=O;this.SY=0;this.Wl=V}; q2=function(O,V){O.Rc[O.pending++]=V&255;O.Rc[O.pending++]=V>>>8&255}; Qf=function(O,V,J){O.o2>16-J?(O.oz|=V<>16-O.o2,O.o2+=J-16):(O.oz|=V<>>=1,J<<=1;while(--V>0);return J>>>1}; qWV=function(O,V,J){var y=Array(16),l=0,m;for(m=1;m<=15;m++)y[m]=l=l+J[m-1]<<1;for(J=0;J<=V;J++)l=O[J*2+1],l!==0&&(O[J*2]=g9r(y[l]++,l))}; Q_U=function(O){var V;for(V=0;V<286;V++)O.l_[V*2]=0;for(V=0;V<30;V++)O.gL[V*2]=0;for(V=0;V<19;V++)O.Hh[V*2]=0;O.l_[512]=1;O.tU=O.bJ=0;O.pP=O.matches=0}; Gpr=function(O){O.o2>8?q2(O,O.oz):O.o2>0&&(O.Rc[O.pending++]=O.oz);O.oz=0;O.o2=0}; KUp=function(O,V,J){Gpr(O);q2(O,J);q2(O,~J);XK.BI(O.Rc,O.window,V,J,O.pending);O.pending+=J}; tIn=function(O,V,J,y){var l=V*2,m=J*2;return O[l]>>7)];Gh(O,H,J);F=ik[H];F!==0&&(l-=Rf[H],Qf(O,l,F))}}while(y>1;H>=1;H--)Kv(O,J,H);N=m;do H=O.Ag[1],O.Ag[1]=O.Ag[O.AU--],Kv(O,J,1),y=O.Ag[1],O.Ag[--O.Bd]=H,O.Ag[--O.Bd]=y,J[N*2]=J[H*2]+J[y*2],O.depth[N]=(O.depth[H]>=O.depth[y]?O.depth[H]:O.depth[y])+1,J[H*2+1]=J[y*2+1]=N,O.Ag[1]=N++,Kv(O,J,1);while(O.AU>= 2);O.Ag[--O.Bd]=O.Ag[1];H=V.P$;N=V.SY;y=V.Wl.o8;l=V.Wl.Wp;m=V.Wl.lf;var x=V.Wl.jP,W=V.Wl.yxj,U,Z=0;for(U=0;U<=15;U++)O.Bt[U]=0;H[O.Ag[O.Bd]*2+1]=0;for(V=O.Bd+1;V<573;V++){var z=O.Ag[V];U=H[H[z*2+1]*2+1]+1;U>W&&(U=W,Z++);H[z*2+1]=U;if(!(z>N)){O.Bt[U]++;var c=0;z>=x&&(c=m[z-x]);var Y=H[z*2];O.tU+=Y*(U+c);l&&(O.bJ+=Y*(y[z*2+1]+c))}}if(Z!==0){do{for(U=W-1;O.Bt[U]===0;)U--;O.Bt[U]--;O.Bt[U+1]+=2;O.Bt[W]--;Z-=2}while(Z>0);for(U=W;U!==0;U--)for(z=O.Bt[U];z!==0;)y=O.Ag[--V],y>N||(H[y*2+1]!==U&&(O.tU+=(U- H[y*2+1])*H[y*2],H[y*2+1]=U),z--)}qWV(J,F,O.Bt)}; ABr=function(O,V,J){var y,l=-1,m=V[1],H=0,F=7,N=4;m===0&&(F=138,N=3);V[(J+1)*2+1]=65535;for(y=0;y<=J;y++){var x=m;m=V[(y+1)*2+1];++H>>=1)if(V&1&&O.l_[J*2]!==0)return 0;if(O.l_[18]!==0||O.l_[20]!==0||O.l_[26]!==0)return 1;for(J=32;J<256;J++)if(O.l_[J*2]!==0)return 1;return 0}; PM=function(O,V,J){O.Rc[O.Lj+O.pP*2]=V>>>8&255;O.Rc[O.Lj+O.pP*2+1]=V&255;O.Rc[O.o6+O.pP]=J&255;O.pP++;V===0?O.l_[J*2]++:(O.matches++,V--,O.l_[(tn[J]+256+1)*2]++,O.gL[(V<256?rC[V]:rC[256+(V>>>7)])*2]++);return O.pP===O.mQ-1}; Sr=function(O,V){O.msg=kF[V];return V}; DD=function(O){for(var V=O.length;--V>=0;)O[V]=0}; On=function(O){var V=O.state,J=V.pending;J>O.Ye&&(J=O.Ye);J!==0&&(XK.BI(O.output,V.Rc,V.sH,J,O.H_),O.H_+=J,V.sH+=J,O.vW+=J,O.Ye-=J,V.pending-=J,V.pending===0&&(V.sH=0))}; yW=function(O,V){var J=O.Ze>=0?O.Ze:-1,y=O.OR-O.Ze,l=0;if(O.level>0){O.cf.qV===2&&(O.cf.qV=iqn(O));BM(O,O.Ih);BM(O,O.Y9);ABr(O,O.l_,O.Ih.SY);ABr(O,O.gL,O.Y9.SY);BM(O,O.bq);for(l=18;l>=3&&O.Hh[RLn[l]*2+1]===0;l--);O.tU+=3*(l+1)+5+5+4;var m=O.tU+3+7>>>3;var H=O.bJ+3+7>>>3;H<=m&&(m=H)}else m=H=y+5;if(y+4<=m&&J!==-1)Qf(O,V?1:0,3),KUp(O,J,y);else if(O.strategy===4||H===m)Qf(O,2+(V?1:0),3),uur(O,VW,Js);else{Qf(O,4+(V?1:0),3);J=O.Ih.SY+1;y=O.Y9.SY+1;l+=1;Qf(O,J-257,5);Qf(O,y-1,5);Qf(O,l-4,4);for(m=0;m>>8&255;O.Rc[O.pending++]=V&255}; Bq5=function(O,V){var J=O.FV,y=O.OR,l=O.RK,m=O.Yz,H=O.OR>O.d0-262?O.OR-(O.d0-262):0,F=O.window,N=O.Qq,x=O.Uu,W=O.OR+258,U=F[y+l-1],Z=F[y+l];O.RK>=O.Zl&&(J>>=2);m>O.Jx&&(m=O.Jx);do{var z=V;if(F[z+l]===Z&&F[z+l-1]===U&&F[z]===F[y]&&F[++z]===F[y+1]){y+=2;for(z++;F[++y]===F[++z]&&F[++y]===F[++z]&&F[++y]===F[++z]&&F[++y]===F[++z]&&F[++y]===F[++z]&&F[++y]===F[++z]&&F[++y]===F[++z]&&F[++y]===F[++z]&&yl){O.Iy=V;l=z;if(z>=m)break;U=F[y+l-1];Z=F[y+l]}}}while((V=x[V&N])>H&&--J!== 0);return l<=O.Jx?l:O.Jx}; jB=function(O){var V=O.d0,J;do{var y=O.n2-O.Jx-O.OR;if(O.OR>=V+(V-262)){XK.BI(O.window,O.window,V,V,0);O.Iy-=V;O.OR-=V;O.Ze-=V;var l=J=O.j6;do{var m=O.head[--l];O.head[l]=m>=V?m-V:0}while(--J);l=J=V;do m=O.Uu[--l],O.Uu[l]=m>=V?m-V:0;while(--J);y+=V}if(O.cf.iM===0)break;l=O.cf;J=O.window;m=O.OR+O.Jx;var H=l.iM;H>y&&(H=y);H===0?J=0:(l.iM-=H,XK.BI(J,l.input,l.ij,H,m),l.state.wrap===1?l.uO=$C(l.uO,J,H,m):l.state.wrap===2&&(l.uO=Hw(l.uO,J,H,m)),l.ij+=H,l.rA+=H,J=H);O.Jx+=J;if(O.Jx+O.gH>=3)for(y=O.OR-O.gH, O.EW=O.window[y],O.EW=(O.EW<=3&&(O.EW=(O.EW<=3)if(J=PM(O,O.OR-O.Iy,O.qf-3),O.Jx-=O.qf,O.qf<=O.b0&&O.Jx>=3){O.qf--;do O.OR++,O.EW=(O.EW<=3&&(O.EW=(O.EW<4096)&&(O.qf=2));if(O.RK>=3&&O.qf<=O.RK){y=O.OR+O.Jx-3;J=PM(O,O.OR-1-O.lS,O.RK-3);O.Jx-=O.RK-1;O.RK-=2;do++O.OR<=y&&(O.EW=(O.EW<=3&&O.OR>0&&(y=O.OR-1,J=m[y],J===m[++y]&&J===m[++y]&&J===m[++y])){for(l=O.OR+258;J===m[++y]&&J===m[++y]&&J===m[++y]&&J===m[++y]&&J===m[++y]&&J===m[++y]&&J===m[++y]&&J===m[++y]&&yO.Jx&&(O.qf=O.Jx)}O.qf>=3?(J=PM(O,1,O.qf-3),O.Jx-=O.qf,O.OR+=O.qf,O.qf=0):(J=PM(O,0,O.window[O.OR]),O.Jx--,O.OR++);if(J&&(yW(O,!1),O.cf.Ye===0))return 1}O.gH=0;return V=== 4?(yW(O,!0),O.cf.Ye===0?3:4):O.pP&&(yW(O,!1),O.cf.Ye===0)?1:2}; kpl=function(O,V){for(var J;;){if(O.Jx===0&&(jB(O),O.Jx===0)){if(V===0)return 1;break}O.qf=0;J=PM(O,0,O.window[O.OR]);O.Jx--;O.OR++;if(J&&(yW(O,!1),O.cf.Ye===0))return 1}O.gH=0;return V===4?(yW(O,!0),O.cf.Ye===0?3:4):O.pP&&(yW(O,!1),O.cf.Ye===0)?1:2}; N4=function(O,V,J,y,l){this.lNw=O;this.xHK=V;this.a4z=J;this.Lpz=y;this.func=l}; SW1=function(){this.cf=null;this.status=0;this.Rc=null;this.wrap=this.pending=this.sH=this.mB=0;this.UW=null;this.Xk=0;this.method=8;this.Vr=-1;this.Qq=this.cW=this.d0=0;this.window=null;this.n2=0;this.head=this.Uu=null;this.Yz=this.Zl=this.strategy=this.level=this.b0=this.FV=this.RK=this.Jx=this.Iy=this.OR=this.Dj=this.lS=this.qf=this.Ze=this.OI=this.d5=this.Se=this.j6=this.EW=0;this.l_=new XK.Sv(1146);this.gL=new XK.Sv(122);this.Hh=new XK.Sv(78);DD(this.l_);DD(this.gL);DD(this.Hh);this.bq=this.Y9= this.Ih=null;this.Bt=new XK.Sv(16);this.Ag=new XK.Sv(573);DD(this.Ag);this.Bd=this.AU=0;this.depth=new XK.Sv(573);DD(this.depth);this.o2=this.oz=this.gH=this.matches=this.bJ=this.tU=this.Lj=this.pP=this.mQ=this.o6=0}; Dqp=function(O,V){if(!O||!O.state||V>5||V<0)return O?Sr(O,-2):-2;var J=O.state;if(!O.output||!O.input&&O.iM!==0||J.status===666&&V!==4)return Sr(O,O.Ye===0?-5:-2);J.cf=O;var y=J.Vr;J.Vr=V;if(J.status===42)if(J.wrap===2)O.uO=0,li(J,31),li(J,139),li(J,8),J.UW?(li(J,(J.UW.text?1:0)+(J.UW.JW?2:0)+(J.UW.extra?4:0)+(J.UW.name?8:0)+(J.UW.comment?16:0)),li(J,J.UW.time&255),li(J,J.UW.time>>8&255),li(J,J.UW.time>>16&255),li(J,J.UW.time>>24&255),li(J,J.level===9?2:J.strategy>=2||J.level<2?4:0),li(J,J.UW.os& 255),J.UW.extra&&J.UW.extra.length&&(li(J,J.UW.extra.length&255),li(J,J.UW.extra.length>>8&255)),J.UW.JW&&(O.uO=Hw(O.uO,J.Rc,J.pending,0)),J.Xk=0,J.status=69):(li(J,0),li(J,0),li(J,0),li(J,0),li(J,0),li(J,J.level===9?2:J.strategy>=2||J.level<2?4:0),li(J,3),J.status=113);else{var l=8+(J.cW-8<<4)<<8;l|=(J.strategy>=2||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6;J.OR!==0&&(l|=32);J.status=113;mm(J,l+(31-l%31));J.OR!==0&&(mm(J,O.uO>>>16),mm(J,O.uO&65535));O.uO=1}if(J.status===69)if(J.UW.extra){for(l= J.pending;J.Xk<(J.UW.extra.length&65535)&&(J.pending!==J.mB||(J.UW.JW&&J.pending>l&&(O.uO=Hw(O.uO,J.Rc,J.pending-l,l)),On(O),l=J.pending,J.pending!==J.mB));)li(J,J.UW.extra[J.Xk]&255),J.Xk++;J.UW.JW&&J.pending>l&&(O.uO=Hw(O.uO,J.Rc,J.pending-l,l));J.Xk===J.UW.extra.length&&(J.Xk=0,J.status=73)}else J.status=73;if(J.status===73)if(J.UW.name){l=J.pending;do{if(J.pending===J.mB&&(J.UW.JW&&J.pending>l&&(O.uO=Hw(O.uO,J.Rc,J.pending-l,l)),On(O),l=J.pending,J.pending===J.mB)){var m=1;break}m=J.Xkl&&(O.uO=Hw(O.uO,J.Rc,J.pending-l,l));m===0&&(J.Xk=0,J.status=91)}else J.status=91;if(J.status===91)if(J.UW.comment){l=J.pending;do{if(J.pending===J.mB&&(J.UW.JW&&J.pending>l&&(O.uO=Hw(O.uO,J.Rc,J.pending-l,l)),On(O),l=J.pending,J.pending===J.mB)){m=1;break}m=J.Xkl&&(O.uO=Hw(O.uO,J.Rc,J.pending-l,l));m===0&&(J.status=103)}else J.status= 103;J.status===103&&(J.UW.JW?(J.pending+2>J.mB&&On(O),J.pending+2<=J.mB&&(li(J,O.uO&255),li(J,O.uO>>8&255),O.uO=0,J.status=113)):J.status=113);if(J.pending!==0){if(On(O),O.Ye===0)return J.Vr=-1,0}else if(O.iM===0&&(V<<1)-(V>4?9:0)<=(y<<1)-(y>4?9:0)&&V!==4)return Sr(O,-5);if(J.status===666&&O.iM!==0)return Sr(O,-5);if(O.iM!==0||J.Jx!==0||V!==0&&J.status!==666){y=J.strategy===2?kpl(J,V):J.strategy===3?PTX(J,V):xC[J.level].func(J,V);if(y===3||y===4)J.status=666;if(y===1||y===3)return O.Ye===0&&(J.Vr= -1),0;if(y===2&&(V===1?(Qf(J,2,3),Gh(J,256,VW),J.o2===16?(q2(J,J.oz),J.oz=0,J.o2=0):J.o2>=8&&(J.Rc[J.pending++]=J.oz&255,J.oz>>=8,J.o2-=8)):V!==5&&(Qf(J,0,3),KUp(J,0,0),V===3&&(DD(J.head),J.Jx===0&&(J.OR=0,J.Ze=0,J.gH=0))),On(O),O.Ye===0))return J.Vr=-1,0}if(V!==4)return 0;if(J.wrap<=0)return 1;J.wrap===2?(li(J,O.uO&255),li(J,O.uO>>8&255),li(J,O.uO>>16&255),li(J,O.uO>>24&255),li(J,O.rA&255),li(J,O.rA>>8&255),li(J,O.rA>>16&255),li(J,O.rA>>24&255)):(mm(J,O.uO>>>16),mm(J,O.uO&65535));On(O);J.wrap>0&& (J.wrap=-J.wrap);return J.pending!==0?0:1}; Ww=function(O){if(!(this instanceof Ww))return new Ww(O);O=this.options=XK.assign({level:-1,method:8,chunkSize:16384,EJ:15,ChN:8,strategy:0,to:""},O||{});O.raw&&O.EJ>0?O.EJ=-O.EJ:O.mXL&&O.EJ>0&&O.EJ<16&&(O.EJ+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.cf=new O3H;this.cf.Ye=0;var V=this.cf;var J=O.level,y=O.method,l=O.EJ,m=O.ChN,H=O.strategy;if(V){var F=1;J===-1&&(J=6);l<0?(F=0,l=-l):l>15&&(F=2,l-=16);if(m<1||m>9||y!==8||l<8||l>15||J<0||J>9||H<0||H>4)V=Sr(V,-2);else{l===8&&(l=9); var N=new SW1;V.state=N;N.cf=V;N.wrap=F;N.UW=null;N.cW=l;N.d0=1<>=7;m<30;m++)for(Rf[m]=H<<7,l=0;l<1<=x.d0&&(V===0&&(DD(x.head),x.OR=0,x.Ze=0,x.gH=0),J=new XK.VS(x.d0),XK.BI(J,m,H-x.d0,x.d0,0),m=J,H=x.d0);J=O.iM;y=O.ij;l=O.input;O.iM=H;O.ij=0;O.input=m;for(jB(x);x.Jx>=3;){m=x.OR;H=x.Jx-2;do x.EW=(x.EW<1?V[O[0]]=O[1]:O.length===1&&Object.assign(V,O[0])}; g.ts=function(O,V){return O in G2?G2[O]:V}; ui=function(O){var V=G2.EXPERIMENT_FLAGS;return V?V[O]:void 0}; YTV=function(O){As.forEach(function(V){return V(O)})}; g.ii=function(O){return O&&window.yterr?function(){try{return O.apply(this,arguments)}catch(V){g.rG(V)}}:O}; g.rG=function(O){var V=g.cn("yt.logging.errors.log");V?V(O,"ERROR",void 0,void 0,void 0,void 0,void 0):(V=g.ts("ERRORS",[]),V.push([O,"ERROR",void 0,void 0,void 0,void 0,void 0]),KV("ERRORS",V));YTV(O)}; R4=function(O,V,J,y,l){var m=g.cn("yt.logging.errors.log");m?m(O,"WARNING",V,J,y,void 0,l):(m=g.ts("ERRORS",[]),m.push([O,"WARNING",V,J,y,void 0,l]),KV("ERRORS",m))}; Bw=function(O,V){V=O.split(V);for(var J={},y=0,l=V.length;y1?O[1]:O[0])):{}}; DS=function(O,V){return fWH(O,V||{},!0)}; Ot=function(O,V){return fWH(O,V||{},!1)}; fWH=function(O,V,J){var y=O.split("#",2);O=y[0];y=y.length>1?"#"+y[1]:"";var l=O.split("?",2);O=l[0];l=y7(l[1]||"");for(var m in V)if(J||!g.s2(l,m))l[m]=V[m];return g.pp(O,l)+y}; Vd=function(O){if(!V)var V=window.location.href;var J=g.c$(O)[1]||null,y=g.sd(O);J&&y?(O=g.c$(O),V=g.c$(V),O=O[3]==V[3]&&O[1]==V[1]&&O[4]==V[4]):O=y?g.sd(V)===y&&(Number(g.c$(V)[4]||null)||null)===(Number(g.c$(O)[4]||null)||null):!0;return O}; Jy=function(O){O||(O=document.location.href);O=g.c$(O)[1]||null;return O!==null&&O==="https"}; yd=function(O){O=hhr(O);return O===null?!1:O[0]==="com"&&O[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; oS1=function(O){O=hhr(O);return O===null?!1:O[1]==="google"?!0:O[2]==="google"?O[0]==="au"&&O[1]==="com"?!0:O[0]==="uk"&&O[1]==="co"?!0:!1:!1}; hhr=function(O){O=g.sd(O);return O!==null?O.split(".").reverse():null}; aW5=function(O){return O&&O.match(vSn)?O:gO(O)}; $g=function(O){var V=lM;O=O===void 0?ehl():O;var J=Object,y=J.assign,l=mt(V);var m=V.K;try{var H=m.screenX;var F=m.screenY}catch(M){}try{var N=m.outerWidth;var x=m.outerHeight}catch(M){}try{var W=m.innerWidth;var U=m.innerHeight}catch(M){}try{var Z=m.screenLeft;var z=m.screenTop}catch(M){}try{W=m.innerWidth,U=m.innerHeight}catch(M){}try{var c=m.screen.availWidth;var Y=m.screen.availTop}catch(M){}m=[Z,z,H,F,c,Y,N,x,W,U];H=h$d(!1,V.K.top);F={};var b=b===void 0?g.Z1:b;N=new d7;"SVGElement"in b&&"createElementNS"in b.document&&N.set(0);x=GvV();x["allow-top-navigation-by-user-activation"]&&N.set(1);x["allow-popups-to-escape-sandbox"]&&N.set(2);b.crypto&&b.crypto.subtle&&N.set(3);"TextDecoder"in b&&"TextEncoder"in b&&N.set(4);b=mqY(N);V=(F.bc=b,F.bih=H.height,F.biw=H.width,F.brdim=m.join(),F.vis=xK(V.j),F.wgl=!!Ep.WebGLRenderingContext,F);J=y.call(J,l,V);J.ca_type="image";O&&(J.bid=O);return J}; mt=function(O){var V={};V.dt=wuX;V.flash="0";a:{try{var J=O.K.top.location.href}catch(x){O=2;break a}O=J?J===O.j.location.href?0:1:2}V=(V.frm=O,V);try{V.u_tz=-(new Date).getTimezoneOffset();try{var y=Ep.history.length}catch(x){y=0}V.u_his=y;var l;V.u_h=(l=Ep.screen)==null?void 0:l.height;var m;V.u_w=(m=Ep.screen)==null?void 0:m.width;var H;V.u_ah=(H=Ep.screen)==null?void 0:H.availHeight;var F;V.u_aw=(F=Ep.screen)==null?void 0:F.availWidth;var N;V.u_cd=(N=Ep.screen)==null?void 0:N.colorDepth}catch(x){}return V}; LSU=function(){if(!MTX)return null;var O=MTX();return"open"in O?O:null}; g.j8=function(O){switch(Hv(O)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Hv=function(O){return O&&"status"in O?O.status:-1}; g.CW=function(O,V){typeof O==="function"&&(O=g.ii(O));return window.setTimeout(O,V)}; g.FR=function(O,V){typeof O==="function"&&(O=g.ii(O));return window.setInterval(O,V)}; g.Nz=function(O){window.clearTimeout(O)}; g.xg=function(O){window.clearInterval(O)}; g.Ut=function(O){O=Wv(O);return typeof O==="string"&&O==="false"?!1:!!O}; Z3=function(O,V){O=Wv(O);return O===void 0&&V!==void 0?V:Number(O||0)}; z8=function(){return g.ts("EXPERIMENTS_TOKEN","")}; Wv=function(O){return g.ts("EXPERIMENT_FLAGS",{})[O]}; cv=function(){for(var O=[],V=g.ts("EXPERIMENTS_FORCED_FLAGS",{}),J=g.n(Object.keys(V)),y=J.next();!y.done;y=J.next())y=y.value,O.push({key:y,value:String(V[y])});J=g.ts("EXPERIMENT_FLAGS",{});y=g.n(Object.keys(J));for(var l=y.next();!l.done;l=y.next())l=l.value,l.startsWith("force_")&&V[l]===void 0&&O.push({key:l,value:String(J[l])});return O}; T8=function(O,V,J,y,l,m,H,F,N){function x(){(W&&"readyState"in W?W.readyState:0)===4&&V&&g.ii(V)(W)} J=J===void 0?"GET":J;y=y===void 0?"":y;F=F===void 0?!1:F;var W=LSU();if(!W)return null;"onloadend"in W?W.addEventListener("loadend",x,!1):W.onreadystatechange=x;g.Ut("debug_forward_web_query_parameters")&&(O=nS5(O));W.open(J,O,!0);m&&(W.responseType=m);H&&(W.withCredentials=!0);J=J==="POST"&&(window.FormData===void 0||!(y instanceof FormData));if(l=Xu7(O,l))for(var U in l)W.setRequestHeader(U,l[U]),"content-type"===U.toLowerCase()&&(J=!1);J&&W.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); N&&"onprogress"in W&&(W.onprogress=function(){N(W.responseText)}); if(F&&"setAttributionReporting"in XMLHttpRequest.prototype){O={eventSourceEligible:!0,triggerEligible:!1};try{W.setAttributionReporting(O)}catch(Z){R4(Z)}}W.send(y);return W}; Xu7=function(O,V){V=V===void 0?{}:V;var J=Vd(O),y=g.ts("INNERTUBE_CLIENT_NAME"),l=g.Ut("web_ajax_ignore_global_headers_if_set"),m;for(m in ES7){var H=g.ts(ES7[m]),F=m==="X-Goog-AuthUser"||m==="X-Goog-PageId";m!=="X-Goog-Visitor-Id"||H||(H=g.ts("VISITOR_DATA"));var N;if(!(N=!H)){if(!(N=J||(g.sd(O)?!1:!0))){N=O;var x;if(x=g.Ut("add_auth_headers_to_remarketing_google_dot_com_ping")&&m==="Authorization"&&(y==="TVHTML5"||y==="TVHTML5_UNPLUGGED"||y==="TVHTML5_SIMPLY")&&oS1(N))N=Tu(N)||"",N=N.split("/"), N="/"+(N.length>1?N[1]:""),x=N==="/pagead";N=x?!0:!1}N=!N}N||l&&V[m]!==void 0||y==="TVHTML5_UNPLUGGED"&&F||(V[m]=H)}"X-Goog-EOM-Visitor-Id"in V&&"X-Goog-Visitor-Id"in V&&delete V["X-Goog-Visitor-Id"];if(J||!g.sd(O))V["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(J||!g.sd(O)){try{var W=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(U){}W&&(V["X-YouTube-Time-Zone"]=W)}document.location.hostname.endsWith("youtubeeducation.com")||!J&&g.sd(O)||(V["X-YouTube-Ad-Signals"]= Pw($g()));return V}; IN=function(O,V){V.method="POST";V.postParams||(V.postParams={});return g.e8(O,V)}; qTd=function(O,V){if(window.fetch&&V.format!=="XML"){var J={method:V.method||"GET",credentials:"same-origin"};V.headers&&(J.headers=V.headers);V.priority&&(J.priority=V.priority);O=dU5(O,V);var y=gSo(O,V);y&&(J.body=y);V.withCredentials&&(J.credentials="include");var l=V.context||g.Z1,m=!1,H;fetch(O,J).then(function(F){if(!m){m=!0;H&&g.Nz(H);var N=F.ok,x=function(W){W=W||{};N?V.onSuccess&&V.onSuccess.call(l,W,F):V.onError&&V.onError.call(l,W,F);V.onFinish&&V.onFinish.call(l,W,F)}; (V.format||"JSON")==="JSON"&&(N||F.status>=400&&F.status<500)?F.json().then(x,function(){x(null)}):x(null)}}).catch(function(){V.onError&&V.onError.call(l,{},{})}); O=V.timeout||0;V.onFetchTimeout&&O>0&&(H=g.CW(function(){m||(m=!0,g.Nz(H),V.onFetchTimeout.call(V.context||g.Z1))},O))}else g.e8(O,V)}; g.e8=function(O,V){var J=V.format||"JSON";O=dU5(O,V);var y=gSo(O,V),l=!1,m=Q8X(O,function(N){if(!l){l=!0;F&&g.Nz(F);var x=g.j8(N),W=null,U=400<=N.status&&N.status<500,Z=500<=N.status&&N.status<600;if(x||U||Z)W=GFp(O,J,N,V.convertToSafeHtml);x&&(x=KSU(J,N,W));W=W||{};U=V.context||g.Z1;x?V.onSuccess&&V.onSuccess.call(U,N,W):V.onError&&V.onError.call(U,N,W);V.onFinish&&V.onFinish.call(U,N,W)}},V.method,y,V.headers,V.responseType,V.withCredentials,!1,V.onProgress); y=V.timeout||0;if(V.onTimeout&&y>0){var H=V.onTimeout;var F=g.CW(function(){l||(l=!0,m.abort(),g.Nz(F),H.call(V.context||g.Z1,m))},y)}return m}; dU5=function(O,V){V.includeDomain&&(O=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+O);var J=g.ts("XSRF_FIELD_NAME");if(V=V.urlParams)V[J]&&delete V[J],O=DS(O,V);return O}; gSo=function(O,V){var J=g.ts("XSRF_FIELD_NAME"),y=g.ts("XSRF_TOKEN"),l=V.postBody||"",m=V.postParams,H=g.ts("XSRF_FIELD_NAME"),F;V.headers&&(F=V.headers["Content-Type"]);V.excludeXsrf||g.sd(O)&&!V.withCredentials&&g.sd(O)!==document.location.hostname||V.method!=="POST"||F&&F!=="application/x-www-form-urlencoded"||V.postParams&&V.postParams[H]||(m||(m={}),m[J]=y);(g.Ut("ajax_parse_query_data_only_when_filled")&&m&&Object.keys(m).length>0||m)&&typeof l==="string"&&(l=y7(l),g.h0(l,m),l=V.postBodyFormat&& V.postBodyFormat==="JSON"?JSON.stringify(l):g.bp(l));m=l||m&&!g.Id(m);!tTo&&m&&V.method!=="POST"&&(tTo=!0,g.rG(Error("AJAX request with postData should use POST")));return l}; GFp=function(O,V,J,y){var l=null;switch(V){case "JSON":try{var m=J.responseText}catch(H){throw y=Error("Error reading responseText"),y.params=O,R4(y),H;}O=J.getResponseHeader("Content-Type")||"";m&&O.indexOf("json")>=0&&(m.substring(0,5)===")]}'\n"&&(m=m.substring(5)),l=JSON.parse(m));break;case "XML":if(O=(O=J.responseXML)?uk1(O):null)l={},g.Cu(O.getElementsByTagName("*"),function(H){l[H.tagName]=AFh(H)})}y&&rFn(l); return l}; rFn=function(O){if(g.YE(O))for(var V in O)V==="html_content"||zyU(V,"_html")?O[V]=aG(O[V]):rFn(O[V])}; KSU=function(O,V,J){if(V&&V.status===204)return!0;switch(O){case "JSON":return!!J;case "XML":return Number(J&&J.return_code)===0;case "RAW":return!0;default:return!!J}}; uk1=function(O){return O?(O=("responseXML"in O?O.responseXML:O).getElementsByTagName("root"))&&O.length>0?O[0]:null:null}; AFh=function(O){var V="";g.Cu(O.childNodes,function(J){V+=J.nodeValue}); return V}; nS5=function(O){var V=window.location.search,J=g.sd(O);g.Ut("debug_handle_relative_url_for_query_forward_killswitch")||!J&&Vd(O)&&(J=document.location.hostname);var y=Tu(O);y=(J=J&&(J.endsWith("youtube.com")||J.endsWith("youtube-nocookie.com")))&&y&&y.startsWith("/api/");if(!J||y)return O;var l=y7(V),m={};g.Cu(i3h,function(H){l[H]&&(m[H]=l[H])}); return Ot(O,m)}; aN=function(O,V){var J=g.b2(V),y;return(new g.bF(function(l,m){J.onSuccess=function(H){g.j8(H)?l(new RhH(H)):m(new Yg("Request failed, status="+Hv(H),"net.badstatus",H))}; J.onError=function(H){m(new Yg("Unknown request error","net.unknown",H))}; J.onTimeout=function(H){m(new Yg("Request timed out","net.timeout",H))}; y=g.e8(O,J)})).TP(function(l){if(l instanceof w4){var m; (m=y)==null||m.abort()}return hF(l)})}; g.bM=function(O,V,J,y,l,m){function H(N,x,W){return N.TP(function(U){if(x<=0||Hv(U.xhr)===403)return hF(new Yg("Request retried too many times","net.retryexhausted",U.xhr,U));var Z=Math.pow(2,J-x+1)*W,z=l>0?Math.min(l,Z):Z;return F(W).then(function(){m&&m(U,x-1);return H(aN(O,V),x-1,z)})})} function F(N){return new g.bF(function(x){setTimeout(x,N)})} l=l===void 0?-1:l;return H(aN(O,V),J-1,y)}; Yg=function(O,V,J){Xz.call(this,O+", errorCode="+V);this.errorCode=V;this.xhr=J;this.name="PromiseAjaxError"}; RhH=function(O){this.xhr=O}; pW=function(O){this.K=O===void 0?null:O;this.U=0;this.j=null}; fW=function(O){var V=new pW;O=O===void 0?null:O;V.U=2;V.j=O===void 0?null:O;return V}; hy=function(O){var V=new pW;O=O===void 0?null:O;V.U=1;V.j=O===void 0?null:O;return V}; g.wr=function(O,V,J,y,l){oN||vv.set(""+O,V,{Ja:J,path:"/",domain:y===void 0?"youtube.com":y,secure:l===void 0?!1:l})}; g.Mz=function(O,V){if(!oN)return vv.get(""+O,V)}; g.LW=function(O,V,J){oN||vv.remove(""+O,V===void 0?"/":V,J===void 0?"youtube.com":J)}; B4V=function(){if(!vv.isEnabled())return!1;if(!vv.isEmpty())return!0;vv.set("TESTCOOKIESENABLED","1",{Ja:60});if(vv.get("TESTCOOKIESENABLED")!=="1")return!1;vv.remove("TESTCOOKIESENABLED");return!0}; g.e=function(O,V){if(O)return O[V.name]}; nW=function(O){var V=g.ts("INNERTUBE_HOST_OVERRIDE");V&&(O=String(V)+String(eH(O)));return O}; PF1=function(O){var V={};g.Ut("json_condensed_response")&&(V.prettyPrint="false");return O=Ot(O,V)}; Et=function(O,V){var J=J===void 0?{}:J;O={method:V===void 0?"POST":V,mode:Vd(O)?"same-origin":"cors",credentials:Vd(O)?"same-origin":"include"};V={};for(var y=g.n(Object.keys(J)),l=y.next();!l.done;l=y.next())l=l.value,J[l]&&(V[l]=J[l]);Object.keys(V).length>0&&(O.headers=V);return O}; dr=function(O,V){V=V===void 0?{}:V;return"service:"+O+"/"+Object.keys(V).sort().map(function(J){return J+":"+V[J]}).join("/")}; gr=function(){var O=/Chrome\/(\d+)/.exec(g.Pt());return O?parseFloat(O[1]):NaN}; qz=function(){var O=/\sCobalt\/(\S+)\s/.exec(g.Pt());if(!O)return NaN;var V=[];O=g.n(O[1].split("."));for(var J=O.next();!J.done;J=O.next())J=parseInt(J.value,10),J>=0&&V.push(J);return parseFloat(V.join("."))}; G8=function(){return g.Qd("android")&&g.Qd("chrome")&&!(g.Qd("trident/")||g.Qd("edge/"))&&!g.Qd("cobalt")}; g.KW=function(){return g.Qd("cobalt")}; ty=function(){return g.Qd("cobalt")&&g.Qd("appletv")}; uM=function(){return g.Qd("(ps3; leanback shell)")||g.Qd("ps3")&&g.KW()}; kFo=function(){return g.Qd("(ps4; leanback shell)")||g.Qd("ps4")&&g.KW()}; g.ST5=function(){return g.KW()&&(g.Qd("ps4 vr")||g.Qd("ps4 pro vr"))}; Ay=function(){var O=/WebKit\/([0-9]+)/.exec(g.Pt());return!!(O&&parseInt(O[1],10)>=600)}; rr=function(){var O=/WebKit\/([0-9]+)/.exec(g.Pt());return!!(O&&parseInt(O[1],10)>=602)}; DUr=function(){return g.Qd("iemobile")||g.Qd("windows phone")&&g.Qd("edge")}; Bv=function(){return(iM||RN)&&g.Qd("applewebkit")&&!g.Qd("version")&&(!g.Qd("safari")||g.Qd("gsa/"))}; kg=function(){return g.Pv&&g.Qd("version/")}; S8=function(){return g.Qd("smart-tv")&&g.Qd("samsung")}; g.Qd=function(O){var V=g.Pt();return V?V.toLowerCase().indexOf(O)>=0:!1}; D3=function(){return v1d()||Bv()||kg()?!0:g.ts("EOM_VISITOR_DATA")?!1:!0}; O$=function(O,V){return V===void 0||V===null?O:V==="1"||V===!0||V===1||V==="True"?!0:!1}; VV=function(O,V,J){for(var y in J)if(J[y]==V)return J[y];return O}; JG=function(O,V){return V===void 0||V===null?O:Number(V)}; yV=function(O,V){return V===void 0||V===null?O:V.toString()}; lj=function(O,V){if(V){if(O==="fullwidth")return Infinity;if(O==="fullheight")return 0}return O&&(V=O.match(OM7))&&(O=Number(V[2]),V=Number(V[1]),!isNaN(O)&&!isNaN(V)&&O>0)?V/O:NaN}; m2=function(O){var V=O.docid||O.video_id||O.videoId||O.id;if(V)return V;V=O.raw_player_response;V||(O=O.player_response)&&(V=JSON.parse(O));return V&&V.videoDetails&&V.videoDetails.videoId||null}; VJl=function(O){return $O(O,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.HC=function(O){return O==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||O==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; $O=function(O,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 J=O.raw_embedded_player_response;if(!J&&(O=O.embedded_player_response))try{J=JSON.parse(O)}catch(y){return V}return J?VV(V,J.embeddedPlayerMode,JXd):V}; Cz=function(O){Xz.call(this,O.message||O.description||O.name);this.isMissing=O instanceof jd;this.isTimeout=O instanceof Yg&&O.errorCode=="net.timeout";this.isCanceled=O instanceof w4}; jd=function(){Xz.call(this,"Biscotti ID is missing from server")}; yXH=function(){if(g.Ut("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!D3())return Error("User has not consented - not fetching biscotti id.");var O=g.ts("PLAYER_VARS",{});if(g.Ym(O,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(VJl(O))return Error("Biscotti id fetching has been disabled for pfl.")}; HMn=function(){var O=yXH();if(O!==void 0)return hF(O);FQ||(FQ=aN("//googleads.g.doubleclick.net/pagead/id",lNX).then(mEo).TP(function(V){return $En(2,V)})); return FQ}; mEo=function(O){O=O.xhr.responseText;if(!Gv(O,")]}'"))throw new jd;O=JSON.parse(O.substr(4));if((O.type||1)>1)throw new jd;O=O.id;IWU(O);FQ=hy(O);j5l(18E5,2);return O}; $En=function(O,V){V=new Cz(V);IWU("");FQ=fW(V);O>0&&j5l(12E4,O-1);throw V;}; j5l=function(O,V){g.CW(function(){aN("//googleads.g.doubleclick.net/pagead/id",lNX).then(mEo,function(J){return $En(V,J)}).TP(g.qY)},O)}; CNX=function(){try{var O=g.cn("yt.ads.biscotti.getId_");return O?O():HMn()}catch(V){return hF(V)}}; NPY=function(O){O&&(O.dataset?O.dataset[FaH()]="true":MFX(O))}; xEo=function(O){return O?O.dataset?O.dataset[FaH()]:O.getAttribute("data-loaded"):null}; FaH=function(){return Wao.loaded||(Wao.loaded="loaded".replace(/\-([a-z])/g,function(O,V){return V.toUpperCase()}))}; UEo=function(){var O=document;if("visibilityState"in O)return O.visibilityState;var V=Nv+"VisibilityState";if(V in O)return O[V]}; xO=function(O,V){var J;P$(O,function(y){J=V[y];return!!J}); return J}; WC=function(O){if(O.requestFullscreen)O=O.requestFullscreen(void 0);else if(O.webkitRequestFullscreen)O=O.webkitRequestFullscreen();else if(O.mozRequestFullScreen)O=O.mozRequestFullScreen();else if(O.msRequestFullscreen)O=O.msRequestFullscreen();else if(O.webkitEnterFullscreen)O=O.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return O instanceof Promise?O:Promise.resolve()}; zb=function(O){var V;g.U$()?Zi()==O&&(V=document):V=O;return V&&(O=xO(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],V))?(V=O.call(V),V instanceof Promise?V:Promise.resolve()):Promise.resolve()}; ZM7=function(O){return g.Qs(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(V){return"on"+V.toLowerCase()in O})}; z1n=function(){var O=document;return g.Qs(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(V){return"on"+V.toLowerCase()in O})}; g.U$=function(){return!!xO(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Zi=function(O){O=O===void 0?!1:O;var V=xO(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(O)for(;V&&V.shadowRoot;)V=V.shadowRoot.fullscreenElement;return V?V:null}; cC=function(O){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(O=O||window.event){this.event=O;for(var V in O)V in cXp||(this[V]=O[V]);this.scale=O.scale;this.rotation=O.rotation;var J=O.target||O.srcElement;J&&J.nodeType==3&&(J=J.parentNode);this.target=J;var y=O.relatedTarget; if(y)try{y=y.nodeName?y:null}catch(l){y=null}else this.type=="mouseover"?y=O.fromElement:this.type=="mouseout"&&(y=O.toElement);this.relatedTarget=y;this.clientX=O.clientX!=void 0?O.clientX:O.pageX;this.clientY=O.clientY!=void 0?O.clientY:O.pageY;this.keyCode=O.keyCode?O.keyCode:O.which;this.charCode=O.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=O.altKey;this.ctrlKey=O.ctrlKey;this.shiftKey=O.shiftKey;this.metaKey=O.metaKey;this.K=O.pageX;this.j=O.pageY}}catch(l){}}; s5V=function(O){if(document.body&&document.documentElement){var V=document.body.scrollTop+document.documentElement.scrollTop;O.K=O.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);O.j=O.clientY+V}}; TPV=function(O,V,J,y){y=y===void 0?{}:y;O.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 ew(s$,function(l){var m=typeof l[4]==="boolean"&&l[4]==!!y,H=g.YE(l[4])&&g.YE(y)&&g.ad(l[4],y);return!!l.length&&l[0]==O&&l[1]==V&&l[2]==J&&(m||H)})}; g.Tb=function(O,V,J,y){y=y===void 0?{}:y;if(!O||!O.addEventListener&&!O.attachEvent)return"";var l=TPV(O,V,J,y);if(l)return l;l=++e1p.count+"";var m=!(V!="mouseenter"&&V!="mouseleave"||!O.addEventListener||"onmouseenter"in document);var H=m?function(F){F=new cC(F);if(!wc(F.relatedTarget,function(N){return N==O},!0))return F.currentTarget=O,F.type=V,J.call(O,F)}:function(F){F=new cC(F); F.currentTarget=O;return J.call(O,F)}; H=g.ii(H);O.addEventListener?(V=="mouseenter"&&m?V="mouseover":V=="mouseleave"&&m?V="mouseout":V=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(V="MozMousePixelScroll"),INd()||typeof y==="boolean"?O.addEventListener(V,H,y):O.addEventListener(V,H,!!y.capture)):O.attachEvent("on"+V,H);s$[l]=[O,V,J,H,y];return l}; aNh=function(O){return Y9d(O,function(V){return g.SL(V,"ytp-ad-has-logging-urls")})}; Y9d=function(O,V){var J=document.body||document;return g.Tb(J,"click",function(y){var l=wc(y.target,function(m){return m===J||V(m)},!0); l&&l!==J&&!l.disabled&&(y.currentTarget=l,O.call(l,y))})}; g.ed=function(O){O&&(typeof O=="string"&&(O=[O]),g.Cu(O,function(V){if(V in s$){var J=s$[V],y=J[0],l=J[1],m=J[3];J=J[4];y.removeEventListener?INd()||typeof J==="boolean"?y.removeEventListener(l,m,J):y.removeEventListener(l,m,!!J.capture):y.detachEvent&&y.detachEvent("on"+l,m);delete s$[V]}}))}; IH=function(O){for(var V in s$)s$[V][0]==O&&g.ed(V)}; YO=function(O){O=O||window.event;var V;O.composedPath&&typeof O.composedPath==="function"?V=O.composedPath():V=O.path;V&&V.length?O=V[0]:(O=O||window.event,O=O.target||O.srcElement,O.nodeType==3&&(O=O.parentNode));return O}; aH=function(O){this.S=O;this.K=null;this.D=0;this.V=null;this.W=0;this.j=[];for(O=0;O<4;O++)this.j.push(0);this.U=0;this.lw=g.Tb(window,"mousemove",(0,g.hI)(this.qX,this));this.T=g.FR((0,g.hI)(this.KD,this),25)}; bj=function(O){g.K.call(this);this.V=[];this.UR=O||this}; pz=function(O,V,J,y){for(var l=0;l0?J:0;J=y?Date.now()+y*1E3:0;if((y=y?g.hG.RJ():g.hG.Dn())&&window.JSON){typeof V!=="string"&&(V=JSON.stringify(V,void 0));try{y.set(O,V,J)}catch(l){y.remove(O)}}}; g.vC=function(O){var V=g.hG.Dn(),J=g.hG.RJ();if(!V&&!J||!window.JSON)return null;try{var y=V.get(O)}catch(l){}if(typeof y!=="string")try{y=J.get(O)}catch(l){}if(typeof y!=="string")return null;try{y=JSON.parse(y,void 0)}catch(l){}return y}; pP7=function(){var O=g.hG.RJ();if(O&&(O=O.zm("yt-player-quality")))return O.creation}; g.wE=function(O){try{var V=g.hG.Dn(),J=g.hG.RJ();V&&V.remove(O);J&&J.remove(O)}catch(y){}}; var IUo=function(O){return zr[C[8]](this,7,O)}; g.Mv=function(){return g.vC("yt-remote-session-screen-id")}; fNY=function(O){var V=this;this.j=void 0;this.K=!1;O.addEventListener("beforeinstallprompt",function(J){J.preventDefault();V.j=J}); O.addEventListener("appinstalled",function(){V.K=!0},{once:!0})}; Lz=function(){if(!g.Z1.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Z1.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Z1.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Z1.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Z1.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(O){return"WEB_DISPLAY_MODE_UNKNOWN"}}; nz=function(){this.yp=!0}; h1X=function(){nz.instance||(nz.instance=new nz);return nz.instance}; oU7=function(O){switch(O){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}}; vUU=function(){this.K=g.ts("ALT_PREF_COOKIE_NAME","PREF");this.j=g.ts("ALT_PREF_COOKIE_DOMAIN","youtube.com");var O=g.Mz(this.K);O&&this.parse(O)}; g.E$=function(){XQ||(XQ=new vUU);return XQ}; gE=function(O,V){var J="f"+(Math.floor(O/31)+1);O=1<10&&Vn.shift()))}; yn=function(O,V){Di||(ON?ON.logEvent(O,V):(Vn.push({type:"EVENT",eventType:O,payload:V}),Vn.length>10&&Vn.shift()))}; lH=function(O){if(O.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; mN=function(O){return O.substr(0,O.indexOf(":"))||O}; g.$P=function(O,V,J,y,l){V=V===void 0?{}:V;J=J===void 0?q9U[O]:J;y=y===void 0?Q55[O]:y;l=l===void 0?Gln[O]:l;g.pn.call(this,J,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:O},V));this.type=O;this.message=J;this.level=y;this.K=l;Object.setPrototypeOf(this,g.$P.prototype)}; HH=function(O,V){g.$P.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:V,foundObjectStores:O},q9U.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,HH.prototype)}; jA=function(O,V){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.index=O;this.objectStore=V;Object.setPrototypeOf(this,jA.prototype)}; Fh=function(O,V,J,y){V=mN(V);var l=O instanceof Error?O:Error("Unexpected error: "+O);if(l instanceof g.$P)return l;O={objectStoreNames:J,dbName:V,dbVersion:y};if(l.name==="QuotaExceededError")return new g.$P("QUOTA_EXCEEDED",O);if(g.CH&&l.name==="UnknownError")return new g.$P("QUOTA_MAYBE_EXCEEDED",O);if(l instanceof jA)return new g.$P("MISSING_INDEX",Object.assign({},O,{objectStore:l.objectStore,index:l.index}));if(l.name==="InvalidStateError"&&KaY.some(function(m){return l.message.includes(m)}))return new g.$P("EXECUTE_TRANSACTION_ON_CLOSED_DB", O); if(l.name==="AbortError")return new g.$P("UNKNOWN_ABORT",O,l.message);l.args=[Object.assign({},O,{name:"IdbError",NR:l.name})];l.level="WARNING";return l}; g.NV=function(O,V,J){var y=Sd();return new g.$P("IDB_NOT_SUPPORTED",{context:{caller:O,publicName:V,version:J,hasSucceededOnce:y==null?void 0:y.hasSucceededOnce}})}; tJd=function(O){if(!O)throw Error();throw O;}; uP5=function(O){return O}; xP=function(O){this.K=O}; g.WH=function(O){function V(l){if(y.state.status==="PENDING"){y.state={status:"REJECTED",reason:l};l=g.n(y.j);for(var m=l.next();!m.done;m=l.next())m=m.value,m()}} function J(l){if(y.state.status==="PENDING"){y.state={status:"FULFILLED",value:l};l=g.n(y.K);for(var m=l.next();!m.done;m=l.next())m=m.value,m()}} var y=this;this.state={status:"PENDING"};this.K=[];this.j=[];O=O.K;try{O(J,V)}catch(l){V(l)}}; AXX=function(O,V,J,y,l){try{if(O.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var m=J(O.state.value);m instanceof g.WH?UN(O,V,m,y,l):y(m)}catch(H){l(H)}}; rXp=function(O,V,J,y,l){try{if(O.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var m=J(O.state.reason);m instanceof g.WH?UN(O,V,m,y,l):y(m)}catch(H){l(H)}}; UN=function(O,V,J,y,l){V===J?l(new TypeError("Circular promise chain detected.")):J.then(function(m){m instanceof g.WH?UN(O,V,m,y,l):y(m)},function(m){l(m)})}; iMX=function(O,V,J){function y(){J(O.error);m()} function l(){V(O.result);m()} function m(){try{O.removeEventListener("success",l),O.removeEventListener("error",y)}catch(H){}} O.addEventListener("success",l);O.addEventListener("error",y)}; R1h=function(O){return new Promise(function(V,J){iMX(O,V,J)})}; ZV=function(O){return new g.WH(new xP(function(V,J){iMX(O,V,J)}))}; zf=function(O,V){return new g.WH(new xP(function(J,y){function l(){var m=O?V(O):null;m?m.then(function(H){O=H;l()},y):J()} l()}))}; BPd=function(O,V){this.request=O;this.cursor=V}; PNV=function(O){return ZV(O).then(function(V){return V?new BPd(O,V):null})}; g.klr=function(O){O.cursor.continue(void 0);return PNV(O.request)}; S9r=function(O,V){this.K=O;this.options=V;this.transactionCount=0;this.U=Math.round((0,g.cH)());this.j=!1}; sN=function(){return g.Ut("idb_immediate_commit")}; g.eA=function(O,V,J){O=O.K.createObjectStore(V,J);return new Tf(O)}; Ij=function(O,V){O.K.objectStoreNames.contains(V)&&O.K.deleteObjectStore(V)}; g.aj=function(O,V,J,y){var l,m,H,F,N,x,W,U,Z,z,c,Y;return g.Q(function(b){switch(b.j){case 1:var M={mode:"readonly",cY:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof J==="string"?M.mode=J:Object.assign(M,J);l=M;O.transactionCount++;m=l.cY?3:1;H=0;case 2:if(F){b.uw(4);break}H++;N=Math.round((0,g.cH)());b.W(5);x=O.K.transaction(V,l.mode);M=b.K;var w=!!l.commit;var L=new YP(x);w=DEX(L,y,w);return M.call(b,w,7);case 7:return W=b.U,U=Math.round((0,g.cH)()),OZ7(O,N,U,H,void 0,V.join(),l),b.return(W);case 5:Z= b.D();z=Math.round((0,g.cH)());c=Fh(Z,O.K.name,V.join(),O.K.version);if((Y=c instanceof g.$P&&!c.K)||H>=m)OZ7(O,N,z,H,c,V.join(),l),F=c;b.uw(2);break;case 4:return b.return(Promise.reject(F))}})}; OZ7=function(O,V,J,y,l,m,H){V=J-V;l?(l instanceof g.$P&&(l.type==="QUOTA_EXCEEDED"||l.type==="QUOTA_MAYBE_EXCEEDED")&&yn("QUOTA_EXCEEDED",{dbName:mN(O.K.name),objectStoreNames:m,transactionCount:O.transactionCount,transactionMode:H.mode}),l instanceof g.$P&&l.type==="UNKNOWN_ABORT"&&(J-=O.U,J<0&&J>=2147483648&&(J=0),yn("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:m,transactionDuration:V,transactionCount:O.transactionCount,dbDuration:J}),O.j=!0),VLH(O,!1,y,m,V,H.tag),JD(l)):VLH(O,!0,y,m,V, H.tag)}; VLH=function(O,V,J,y,l,m){yn("TRANSACTION_ENDED",{objectStoreNames:y,connectionHasUnknownAbortedTransaction:O.j,duration:l,isSuccessful:V,tryCount:J,tag:m===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":m})}; Tf=function(O){this.K=O}; g.bH=function(O,V,J){O.K.createIndex(V,J,{unique:!1})}; J_Y=function(O,V){return g.pH(O,{query:V},function(J){return J.delete().then(function(){return g.fH(J)})}).then(function(){})}; y_5=function(O,V,J){var y=[];return g.pH(O,{query:V},function(l){if(!(J!==void 0&&y.length>=J))return y.push(l.getValue()),g.fH(l)}).then(function(){return y})}; mn1=function(O){return"getAllKeys"in IDBObjectStore.prototype?ZV(O.K.getAllKeys(void 0,void 0)):l01(O)}; l01=function(O){var V=[];return g.$nr(O,{query:void 0},function(J){V.push(J.cursor.primaryKey);return g.klr(J)}).then(function(){return V})}; g.pH=function(O,V,J){O=O.K.openCursor(V.query,V.direction);return hD(O).then(function(y){return zf(y,J)})}; g.$nr=function(O,V,J){var y=V.query;V=V.direction;O="openKeyCursor"in IDBObjectStore.prototype?O.K.openKeyCursor(y,V):O.K.openCursor(y,V);return PNV(O).then(function(l){return zf(l,J)})}; YP=function(O){var V=this;this.K=O;this.j=new Map;this.aborted=!1;this.done=new Promise(function(J,y){V.K.addEventListener("complete",function(){J()}); V.K.addEventListener("error",function(l){l.currentTarget===l.target&&y(V.K.error)}); V.K.addEventListener("abort",function(){var l=V.K.error;if(l)y(l);else if(!V.aborted){l=g.$P;for(var m=V.K.objectStoreNames,H=[],F=0;F=J))return y.push(l.getValue()),g.fH(l)}).then(function(){return y})}; g.oj=function(O,V,J){O=O.K.openCursor(V.query===void 0?null:V.query,V.direction===void 0?"next":V.direction);return hD(O).then(function(y){return zf(y,J)})}; vH=function(O,V){this.request=O;this.cursor=V}; hD=function(O){return ZV(O).then(function(V){return V?new vH(O,V):null})}; g.fH=function(O){O.cursor.continue(void 0);return hD(O.request)}; CLl=function(O,V,J){return new Promise(function(y,l){function m(){Z||(Z=new S9r(H.result,{closed:U}));return Z} var H=V!==void 0?self.indexedDB.open(O,V):self.indexedDB.open(O);var F=J.blocked,N=J.blocking,x=J.lKW,W=J.upgrade,U=J.closed,Z;H.addEventListener("upgradeneeded",function(z){try{if(z.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(H.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");z.dataLoss&&z.dataLoss!=="none"&&yn("IDB_DATA_CORRUPTED",{reason:z.dataLossMessage||"unknown reason",dbName:mN(O)});var c=m(),Y=new YP(H.transaction); W&&W(c,function(b){return z.oldVersion=b},Y); Y.done.catch(function(b){l(b)})}catch(b){l(b)}}); H.addEventListener("success",function(){var z=H.result;N&&z.addEventListener("versionchange",function(){N(m())}); z.addEventListener("close",function(){yn("IDB_UNEXPECTEDLY_CLOSED",{dbName:mN(O),dbVersion:z.version});x&&x()}); y(m())}); H.addEventListener("error",function(){l(H.error)}); F&&H.addEventListener("blocked",function(){F()})})}; FEh=function(O,V,J){J=J===void 0?{}:J;return CLl(O,V,J)}; w9=function(O,V){V=V===void 0?{}:V;var J,y,l,m;return g.Q(function(H){if(H.j==1)return H.W(2),J=self.indexedDB.deleteDatabase(O),y=V,(l=y.blocked)&&J.addEventListener("blocked",function(){l()}),H.K(R1h(J),4); if(H.j!=2)return H.S(0);m=H.D();throw Fh(m,O,"",-1);})}; MV=function(O,V){this.name=O;this.options=V;this.U=!0;this.W=this.D=0}; N7d=function(O,V){return new g.$P("INCOMPATIBLE_DB_VERSION",{dbName:O.name,oldVersion:O.options.version,newVersion:V})}; g.LH=function(O,V){if(!V)throw g.NV("openWithToken",mN(O.name));return O.open()}; xn7=function(O,V){var J;return g.Q(function(y){if(y.j==1)return y.K(g.LH(nH,V),2);J=y.U;return y.return(g.aj(J,["databases"],{cY:!0,mode:"readwrite"},function(l){var m=l.objectStore("databases");return m.get(O.actualName).then(function(H){if(H?O.actualName!==H.actualName||O.publicName!==H.publicName||O.userIdentifier!==H.userIdentifier:1)return m.put(O).then(function(){})})}))})}; Xh=function(O,V){var J;return g.Q(function(y){if(y.j==1)return O?y.K(g.LH(nH,V),2):y.return();J=y.U;return y.return(J.delete("databases",O))})}; WEl=function(O,V){var J,y;return g.Q(function(l){return l.j==1?(J=[],l.K(g.LH(nH,V),2)):l.j!=3?(y=l.U,l.K(g.aj(y,["databases"],{cY:!0,mode:"readonly"},function(m){J.length=0;return g.pH(m.objectStore("databases"),{},function(H){O(H.getValue())&&J.push(H.getValue());return g.fH(H)})}),3)):l.return(J)})}; Un1=function(O,V){return WEl(function(J){return J.publicName===O&&J.userIdentifier!==void 0},V)}; ZZ5=function(){var O,V,J;return g.Q(function(y){switch(y.j){case 1:O=Sd();if((V=O)==null?0:V.hasSucceededOnce)return y.return(!0);var l;if(!(l=EN&&Ay()&&!rr()||g.d9)){try{l=self;var m=!!(l.indexedDB&&l.IDBIndex&&l.IDBKeyRange&&l.IDBObjectStore)}catch(H){m=!1}l=!m}if(l||!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return y.return(!1);y.W(2);J={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return y.K(xn7(J,g9),4);case 4:return y.K(Xh("yt-idb-test-do-not-use", g9),5);case 5:return y.return(!0);case 2:return y.D(),y.return(!1)}})}; zGh=function(){if(qV!==void 0)return qV;Di=!0;return qV=ZZ5().then(function(O){Di=!1;var V;if((V=kO())!=null&&V.K){var J;V={hasSucceededOnce:((J=Sd())==null?void 0:J.hasSucceededOnce)||O};var y;(y=kO())==null||y.set("LAST_RESULT_ENTRY_KEY",V,2592E3,!0)}return O})}; Qn=function(){return g.cn("ytglobal.idbToken_")||void 0}; g.Gf=function(){var O=Qn();return O?Promise.resolve(O):zGh().then(function(V){V?(g.zD("ytglobal.idbToken_",g9),V=g9):V=void 0;return V})}; c_h=function(O){if(!g.Kz())throw O=new g.$P("AUTH_INVALID",{dbName:O}),JD(O),O;var V=g.Gb();return{actualName:O+":"+V,publicName:O,userIdentifier:V}}; sZX=function(O,V,J,y){var l,m,H,F,N,x;return g.Q(function(W){switch(W.j){case 1:return m=(l=Error().stack)!=null?l:"",W.K(g.Gf(),2);case 2:H=W.U;if(!H)throw F=g.NV("openDbImpl",O,V),g.Ut("ytidb_async_stack_killswitch")||(F.stack=F.stack+"\n"+m.substring(m.indexOf("\n")+1)),JD(F),F;lH(O);N=J?{actualName:O,publicName:O,userIdentifier:void 0}:c_h(O);W.W(3);return W.K(xn7(N,H),5);case 5:return W.K(FEh(N.actualName,V,y),6);case 6:return W.return(W.U);case 3:return x=W.D(),W.W(7),W.K(Xh(N.actualName,H), 9);case 9:W.S(8);break;case 7:W.D();case 8:throw x;}})}; T7r=function(O,V,J){J=J===void 0?{}:J;return sZX(O,V,!1,J)}; eGX=function(O,V,J){J=J===void 0?{}:J;return sZX(O,V,!0,J)}; I0V=function(O,V){V=V===void 0?{}:V;var J,y;return g.Q(function(l){if(l.j==1)return l.K(g.Gf(),2);if(l.j!=3){J=l.U;if(!J)return l.return();lH(O);y=c_h(O);return l.K(w9(y.actualName,V),3)}return l.K(Xh(y.actualName,J),0)})}; Y7l=function(O,V,J){O=O.map(function(y){return g.Q(function(l){return l.j==1?l.K(w9(y.actualName,V),2):l.K(Xh(y.actualName,J),0)})}); return Promise.all(O).then(function(){})}; a0o=function(O){var V=V===void 0?{}:V;var J,y;return g.Q(function(l){if(l.j==1)return l.K(g.Gf(),2);if(l.j!=3){J=l.U;if(!J)return l.return();lH(O);return l.K(Un1(O,J),3)}y=l.U;return l.K(Y7l(y,V,J),0)})}; bZo=function(O,V){V=V===void 0?{}:V;var J;return g.Q(function(y){if(y.j==1)return y.K(g.Gf(),2);if(y.j!=3){J=y.U;if(!J)return y.return();lH(O);return y.K(w9(O,V),3)}return y.K(Xh(O,J),0)})}; KH=function(O,V){MV.call(this,O,V);this.options=V;lH(O)}; pyn=function(O,V){var J;return function(){J||(J=new KH(O,V));return J}}; g.tD=function(O,V){return pyn(O,V)}; uH=function(O){return g.LH(f0H(),O)}; hGo=function(O,V,J,y){var l,m,H;return g.Q(function(F){switch(F.j){case 1:return l={config:O,hashData:V,timestamp:y!==void 0?y:(0,g.cH)()},F.K(uH(J),2);case 2:return m=F.U,F.K(m.clear("hotConfigStore"),3);case 3:return F.K(m.put("hotConfigStore",l),4);case 4:return H=F.U,F.return(H)}})}; o6o=function(O,V,J,y,l){var m,H,F;return g.Q(function(N){switch(N.j){case 1:return m={config:O,hashData:V,configData:J,timestamp:l!==void 0?l:(0,g.cH)()},N.K(uH(y),2);case 2:return H=N.U,N.K(H.clear("coldConfigStore"),3);case 3:return N.K(H.put("coldConfigStore",m),4);case 4:return F=N.U,N.return(F)}})}; v6d=function(O){var V,J;return g.Q(function(y){return y.j==1?y.K(uH(O),2):y.j!=3?(V=y.U,J=void 0,y.K(g.aj(V,["coldConfigStore"],{mode:"readwrite",cY:!0},function(l){return g.oj(l.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(m){J=m.getValue()})}),3)):y.return(J)})}; wy1=function(O){var V,J;return g.Q(function(y){return y.j==1?y.K(uH(O),2):y.j!=3?(V=y.U,J=void 0,y.K(g.aj(V,["hotConfigStore"],{mode:"readwrite",cY:!0},function(l){return g.oj(l.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(m){J=m.getValue()})}),3)):y.return(J)})}; MLr=function(){return g.Q(function(O){return O.K(a0o("ytGcfConfig"),0)})}; Rj=function(){g.K.call(this);this.j=[];this.K=[];var O=g.cn("yt.gcf.config.hotUpdateCallbacks");O?(this.j=[].concat(g.q(O)),this.K=O):(this.K=[],g.zD("yt.gcf.config.hotUpdateCallbacks",this.K))}; O8=function(){var O=this;this.W=!1;this.U=this.D=0;this.V=new Rj;this.Ty={FbL:function(){O.W=!0}, Wrj:function(){return O.K}, xdj:function(V){BH(O,V)}, U1:function(V){O.U1(V)}, kTL:function(V){PH(O,V)}, wy:function(){return O.coldHashData}, CS:function(){return O.hotHashData}, cWz:function(){return O.j}, kCw:function(){return kP()}, VQE:function(){return SA()}, GCi:function(){return g.cn("yt.gcf.config.coldHashData")}, goj:function(){return g.cn("yt.gcf.config.hotHashData")}, tt5:function(){LE5(O)}, uel:function(){O.U1(void 0);DV(O);delete O8.instance}, gjN:function(V){O.U=V}, FrK:function(){return O.U}}}; n61=function(){if(!O8.instance){var O=new O8;O8.instance=O}return O8.instance}; dnd=function(O){var V;g.Q(function(J){if(J.j==1)return g.Ut("start_client_gcf")||g.Ut("delete_gcf_config_db")?g.Ut("start_client_gcf")?J.K(g.Gf(),3):J.uw(2):J.return();J.j!=2&&((V=J.U)&&g.Kz()&&!g.Ut("delete_gcf_config_db")?(O.W=!0,LE5(O)):(XyV(O),E6r(O)));return g.Ut("delete_gcf_config_db")?J.K(MLr(),0):J.uw(0)})}; Vz=function(){var O;return(O=SA())!=null?O:g.ts("RAW_HOT_CONFIG_GROUP")}; g6V=function(O){var V,J,y,l,m,H;return g.Q(function(F){switch(F.j){case 1:if(O.j)return F.return(SA());if(!O.W)return V=g.NV("getHotConfig IDB not initialized"),R4(V),F.return(Promise.reject(V));J=Qn();y=g.ts("TIME_CREATED_MS");if(!J){l=g.NV("getHotConfig token error");R4(l);F.uw(2);break}return F.K(wy1(J),3);case 3:if((m=F.U)&&m.timestamp>y)return BH(O,m.config),O.U1(m.hashData),F.return(SA());case 2:E6r(O);if(!(J&&O.j&&O.hotHashData)){F.uw(4);break}return F.K(hGo(O.j,O.hotHashData,J,y),4);case 4:return O.j? F.return(SA()):(H=new g.pn("Config not available in ytConfig"),R4(H),F.return(Promise.reject(H)))}})}; QZ1=function(O){var V,J,y,l,m,H;return g.Q(function(F){switch(F.j){case 1:if(O.K)return F.return(kP());if(!O.W)return V=g.NV("getColdConfig IDB not initialized"),R4(V),F.return(Promise.reject(V));J=Qn();y=g.ts("TIME_CREATED_MS");if(!J){l=g.NV("getColdConfig");R4(l);F.uw(2);break}return F.K(v6d(J),3);case 3:if((m=F.U)&&m.timestamp>y)return PH(O,m.config),q7r(O,m.configData),DV(O,m.hashData),F.return(kP());case 2:XyV(O);if(!(J&&O.K&&O.coldHashData&&O.configData)){F.uw(4);break}return F.K(o6o(O.K,O.coldHashData, O.configData,J,y),4);case 4:return O.K?F.return(kP()):(H=new g.pn("Config not available in ytConfig"),R4(H),F.return(Promise.reject(H)))}})}; LE5=function(O){if(!O.j||!O.K){if(!Qn()){var V=g.NV("scheduleGetConfigs");R4(V)}O.D||(O.D=g.E7.nf(function(){return g.Q(function(J){switch(J.j){case 1:return J.W(2),J.K(g6V(O),4);case 4:J.S(3);break;case 2:J.D();case 3:return J.W(5),J.K(QZ1(O),7);case 7:J.S(6);break;case 5:J.D();case 6:O.D&&(O.D=0),J.V()}})},100))}}; Gz1=function(O,V,J){var y,l,m;return g.Q(function(H){switch(H.j){case 1:if(!g.Ut("start_client_gcf")){H.uw(0);break}J&&BH(O,J);O.U1(V);y=Qn();if(!y){H.uw(3);break}if(J){H.uw(4);break}return H.K(wy1(y),5);case 5:l=H.U,J=(m=l)==null?void 0:m.config;case 4:return H.K(hGo(J,V,y),3);case 3:if(J)for(var F=J,N=g.n(O.V.K),x=N.next();!x.done;x=N.next())x=x.value,x(F);H.V()}})}; KE1=function(O,V,J){var y,l,m,H;return g.Q(function(F){if(F.j==1){if(!g.Ut("start_client_gcf"))return F.uw(0);DV(O,V);return(y=Qn())?J?F.uw(4):F.K(v6d(y),5):F.uw(0)}F.j!=4&&(l=F.U,J=(m=l)==null?void 0:m.config);if(!J)return F.uw(0);H=J.configData;return F.K(o6o(J,V,H,y),0)})}; tLX=function(){var O=n61(),V=(0,g.cH)()-O.U;if(!(O.U!==0&&V0&&(V.request={internalExperimentFlags:J});A_5(O,void 0,V);r_7(void 0,V);iZX(void 0,V);RGV(O,void 0,V);B7r(void 0,V);g.Ut("start_client_gcf")&&PL5(void 0,V);g.ts("DELEGATED_SESSION_ID")&& !g.Ut("pageid_as_header_web")&&(V.user={onBehalfOfUser:g.ts("DELEGATED_SESSION_ID")});!g.Ut("fill_delegate_context_in_gel_killswitch")&&(O=g.ts("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(V.user=Object.assign({},V.user,{serializedDelegationContext:O}));O=g.ts("INNERTUBE_CONTEXT");var y;if(g.Ut("enable_persistent_device_token")&&(O==null?0:(y=O.client)==null?0:y.rolloutToken)){var l;V.client.rolloutToken=O==null?void 0:(l=O.client)==null?void 0:l.rolloutToken}y=Object;l=y.assign;O=V.client; J={};for(var m=g.n(Object.entries(y7(g.ts("DEVICE","")))),H=m.next();!H.done;H=m.next()){var F=g.n(H.value);H=F.next().value;F=F.next().value;H==="cbrand"?J.deviceMake=F:H==="cmodel"?J.deviceModel=F:H==="cbr"?J.browserName=F:H==="cbrver"?J.browserVersion=F:H==="cos"?J.osName=F:H==="cosver"?J.osVersion=F:H==="cplatform"&&(J.platform=F)}V.client=l.call(y,O,J);return V}; A_5=function(O,V,J){O=O.Na;if(O==="WEB"||O==="MWEB"||O===1||O===2)if(V){J=L_(V,bi,96)||new bi;var y=Lz();y=Object.keys(kzr).indexOf(y);y=y===-1?null:y;y!==null&&BU(J,3,y);Ef(V,bi,96,J)}else J&&(J.client.mainAppWebInfo=(y=J.client.mainAppWebInfo)!=null?y:{},J.client.mainAppWebInfo.webDisplayMode=Lz())}; r_7=function(O,V){var J=g.cn("yt.embedded_player.embed_url");J&&(O?(V=L_(O,vw,7)||new vw,is(V,4,J),Ef(O,vw,7,V)):V&&(V.thirdParty={embedUrl:J}))}; iZX=function(O,V){var J;if(g.Ut("web_log_memory_total_kbytes")&&((J=g.Z1.navigator)==null?0:J.deviceMemory)){var y;J=(y=g.Z1.navigator)==null?void 0:y.deviceMemory;O?WU(O,95,dR(J*1E6)):V&&(V.client.memoryTotalKbytes=""+J*1E6)}}; RGV=function(O,V,J){if(O.appInstallData)if(V){var y;J=(y=L_(V,a4,62))!=null?y:new a4;is(J,6,O.appInstallData);Ef(V,a4,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},J.client.configInfo.appInstallData=O.appInstallData)}; B7r=function(O,V){var J=nUo();J&&(O?BU(O,61,S77[J]):V&&(V.client.connectionType=J));g.Ut("web_log_effective_connection_type")&&(J=EUd())&&(O?BU(O,94,DnH[J]):V&&(V.client.effectiveConnectionType=J))}; Ov7=function(O,V,J){J=J===void 0?{}:J;var y={};g.ts("EOM_VISITOR_DATA")?y={"X-Goog-EOM-Visitor-Id":g.ts("EOM_VISITOR_DATA")}:y={"X-Goog-Visitor-Id":J.visitorData||g.ts("VISITOR_DATA","")};if(V&&V.includes("www.youtube-nocookie.com"))return y;V=J.xH||g.ts("AUTHORIZATION");V||(O?V="Bearer "+g.cn("gapi.auth.getToken")().access_token:(O=h1X().aU(l0),g.Ut("pageid_as_header_web")||delete O["X-Goog-PageId"],y=Object.assign({},y,O)));V&&(y.Authorization=V);return y}; PL5=function(O,V){var J=tLX();if(J){var y=J.coldConfigData,l=J.coldHashData;J=J.hotHashData;if(O){var m;V=(m=L_(O,a4,62))!=null?m:new a4;y=is(V,1,y);is(y,3,l).U1(J);Ef(O,a4,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},y&&(V.client.configInfo.coldConfigData=y),l&&(V.client.configInfo.coldHashData=l),J&&(V.client.configInfo.hotHashData=J))}}; m4=function(O,V){this.version=O;this.args=V}; $R=function(O,V){this.topic=O;this.K=V}; jY=function(O,V){var J=Hk();J&&J.publish.call(J,O.toString(),O,V)}; yn5=function(O){var V=Vrd,J=Hk();if(!J)return 0;var y=J.subscribe(V.toString(),function(l,m){var H=g.cn("ytPubsub2Pubsub2SkipSubKey");H&&H==y||(H=function(){if(CO[y])try{if(m&&V instanceof $R&&V!=l)try{var F=V.K,N=m;if(!N.args||!N.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!F.IL){var x=new F;F.IL=x.version}var W=F.IL}catch(U){}if(!W||N.version!=W)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{m=Reflect.construct(F, g.kE(N.args))}catch(U){throw U.message="yt.pubsub2.Data.deserialize(): "+U.message,U;}}catch(U){throw U.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+V.toString()+": "+U.message,U;}O.call(window,m)}catch(U){g.rG(U)}},Jnd[V.toString()]?g.RH()?g.E7.nf(H):g.CW(H,0):H())}); CO[y]=!0;Ff[V.toString()]||(Ff[V.toString()]=[]);Ff[V.toString()].push(y);return y}; $2r=function(){var O=lDX,V=yn5(function(J){O.apply(void 0,arguments);m2l(V)}); return V}; m2l=function(O){var V=Hk();V&&(typeof O==="number"&&(O=[O]),g.Cu(O,function(J){V.unsubscribeByKey(J);delete CO[J]}))}; Hk=function(){return g.cn("ytPubsub2Pubsub2Instance")}; Nc=function(O,V,J){J=J===void 0?{sampleRate:.1}:J;Math.random()x2o||H=Zv1&&(IF++,ck=!1);zU1(V);y.headers||(y.headers={});y.headers["Content-Encoding"]="gzip";y.postBody=O;y.postParams=void 0;l(J,y)}; sfY=function(O){var V=V===void 0?!1:V;var J=J===void 0?!1:J;var y=(0,g.cH)(),l={startTime:y,ticks:{},infos:{}},m=V?g.cn("yt.logging.gzipForFetch",!1):!0;if(ck&&m){if(!O.body)return O;try{var H=J?O.body:typeof O.body==="string"?O.body:JSON.stringify(O.body);m=H;if(!J&&typeof H==="string"){var F=NCn(H);if(F!=null&&(F>x2o||F=Zv1)if(IF++,g.Ut("abandon_compression_after_N_slow_zips_lr")){V=IF/eY;var x=cnY/Z3("compression_disable_point");eY>0&&eY%Z3("compression_disable_point")===0&&V>=x&&(ck=!1)}else ck=!1;zU1(l)}}O.headers=Object.assign({},{"Content-Encoding":"gzip"},O.headers||{});O.body=m;return O}catch(W){return R4(W),O}}else return O}; NCn=function(O){try{return(new Blob(O.split(""))).size}catch(V){return R4(V),null}}; zU1=function(O){g.Ut("gel_compression_csi_killswitch")||!g.Ut("log_gel_compression_latency")&&!g.Ut("log_gel_compression_latency_lr")||Nc("gel_compression",O,{sampleRate:.1})}; aF=function(O){var V=this;this.Dw=this.K=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){}; this.tZ=function(){}; this.now=Date.now;this.c5=!1;this.Ty={VtX:function(W){V.cn=W}, sLL:function(){V.M4()}, by:function(){V.A6()}, Sp:function(W){return g.Q(function(U){return U.K(V.Sp(W),0)})}, Sl:function(W,U){return V.Sl(W,U)}, PJ:function(){V.PJ()}}; var J;this.Qp=(J=O.Qp)!=null?J:100;var y;this.Su=(y=O.Su)!=null?y:1;var l;this.k6=(l=O.k6)!=null?l:2592E6;var m;this.uS=(m=O.uS)!=null?m:12E4;var H;this.Q6=(H=O.Q6)!=null?H:5E3;var F;this.cn=(F=O.cn)!=null?F:void 0;this.tA=!!O.tA;var N;this.Vy=(N=O.Vy)!=null?N:.1;var x;this.RE=(x=O.RE)!=null?x:10;O.handleError&&(this.handleError=O.handleError);O.tZ&&(this.tZ=O.tZ);O.c5&&(this.c5=O.c5);O.Dw&&(this.Dw=O.Dw);this.Jv=O.Jv;this.kP=O.kP;this.wH=O.wH;this.Ds=O.Ds;this.sendFn=O.sendFn;this.KW=O.KW;this.l$= O.l$;YR(this)&&(!this.Jv||this.Jv("networkless_logging"))&&TC5(this)}; TC5=function(O){YR(O)&&!O.c5&&(O.K=!0,O.tA&&Math.random()<=O.Vy&&O.wH.Ta(O.cn),O.PJ(),O.Ds.fE()&&O.M4(),O.Ds.listen(O.KW,O.M4.bind(O)),O.Ds.listen(O.l$,O.A6.bind(O)))}; Yg7=function(O,V){if(!YR(O))throw Error("IndexedDB is not supported: updateRequestHandlers");var J=V.options.onError?V.options.onError:function(){}; V.options.onError=function(l,m){var H,F,N,x;return g.Q(function(W){switch(W.j){case 1:H=eUV(m);(F=ID1(m))&&O.Jv&&O.Jv("web_enable_error_204")&&O.handleError(Error("Request failed due to compression"),V.url,m);if(!(O.Jv&&O.Jv("nwl_consider_error_code")&&H||O.Jv&&!O.Jv("nwl_consider_error_code")&&O.potentialEsfErrorCounter<=O.RE)){W.uw(2);break}if(!O.Ds.To){W.uw(3);break}return W.K(O.Ds.To(),3);case 3:if(O.Ds.fE()){W.uw(2);break}J(l,m);if(!O.Jv||!O.Jv("nwl_consider_error_code")||((N=V)==null?void 0: N.id)===void 0){W.uw(6);break}return W.K(O.wH.h5(V.id,O.cn,!1),6);case 6:return W.return();case 2:if(O.Jv&&O.Jv("nwl_consider_error_code")&&!H&&O.potentialEsfErrorCounter>O.RE)return W.return();O.potentialEsfErrorCounter++;if(((x=V)==null?void 0:x.id)===void 0){W.uw(8);break}return V.sendCount=400&&O<=599?!1:!0}; ID1=function(O){var V;O=O==null?void 0:(V=O.error)==null?void 0:V.code;return!(O!==400&&O!==415)}; aDV=function(){if(pO)return pO();var O={};pO=g.tD("LogsDatabaseV2",{YM:(O.LogsRequestsStore={Yy:2},O),shared:!1,upgrade:function(V,J,y){J(2)&&g.eA(V,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});J(3);J(5)&&(y=y.objectStore("LogsRequestsStore"),y.K.indexNames.contains("newRequest")&&y.K.deleteIndex("newRequest"),g.bH(y,"newRequestV2",["status","interface","timestamp"]));J(7)&&Ij(V,"sapisid");J(9)&&Ij(V,"SWHealthLog")}, version:9});return pO()}; fO=function(O){return g.LH(aDV(),O)}; pMX=function(O,V){var J,y,l,m;return g.Q(function(H){if(H.j==1)return J={startTime:(0,g.cH)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},H.K(fO(V),2);if(H.j!=3)return y=H.U,l=Object.assign({},O,{options:JSON.parse(JSON.stringify(O.options)),interface:g.ts("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),H.K(y.put("LogsRequestsStore",l),3);m=H.U;J.ticks.tc=(0,g.cH)();bv7(J);return H.return(m)})}; fDo=function(O,V){var J,y,l,m,H,F,N,x,W;return g.Q(function(U){if(U.j==1)return J={startTime:(0,g.cH)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},U.K(fO(V),2);if(U.j!=3)return y=U.U,l=g.ts("INNERTUBE_CONTEXT_CLIENT_NAME",0),m=[O,l,0],H=[O,l,(0,g.cH)()],F=IDBKeyRange.bound(m,H),N="prev",g.Ut("use_fifo_for_networkless")&&(N="next"),x=void 0,W=O==="NEW"?"readwrite":"readonly",g.Ut("use_readonly_for_get_most_recent_by_status_killswitch")&&(W="readwrite"),U.K(g.aj(y,["LogsRequestsStore"], {mode:W,cY:!0},function(Z){return g.oj(Z.objectStore("LogsRequestsStore").index("newRequestV2"),{query:F,direction:N},function(z){z.getValue()&&(x=z.getValue(),O==="NEW"&&(x.status="QUEUED",z.update(x)))})}),3); J.ticks.tc=(0,g.cH)();bv7(J);return U.return(x)})}; hUl=function(O,V){var J;return g.Q(function(y){if(y.j==1)return y.K(fO(V),2);J=y.U;return y.return(g.aj(J,["LogsRequestsStore"],{mode:"readwrite",cY:!0},function(l){var m=l.objectStore("LogsRequestsStore");return m.get(O).then(function(H){if(H)return H.status="QUEUED",m.put(H).then(function(){return H})})}))})}; oFh=function(O,V,J,y){J=J===void 0?!0:J;var l;return g.Q(function(m){if(m.j==1)return m.K(fO(V),2);l=m.U;return m.return(g.aj(l,["LogsRequestsStore"],{mode:"readwrite",cY:!0},function(H){var F=H.objectStore("LogsRequestsStore");return F.get(O).then(function(N){return N?(N.status="NEW",J&&(N.sendCount+=1),y!==void 0&&(N.options.compress=y),F.put(N).then(function(){return N})):g.WH.resolve(void 0)})}))})}; vFH=function(O,V){var J;return g.Q(function(y){if(y.j==1)return y.K(fO(V),2);J=y.U;return y.return(J.delete("LogsRequestsStore",O))})}; wMd=function(O){var V,J;return g.Q(function(y){if(y.j==1)return y.K(fO(O),2);V=y.U;J=(0,g.cH)()-2592E6;return y.K(g.aj(V,["LogsRequestsStore"],{mode:"readwrite",cY:!0},function(l){return g.pH(l.objectStore("LogsRequestsStore"),{},function(m){if(m.getValue().timestamp<=J)return m.delete().then(function(){return g.fH(m)})})}),0)})}; Mrl=function(){g.Q(function(O){return O.K(a0o("LogsDatabaseV2"),0)})}; bv7=function(O){g.Ut("nwl_csi_killswitch")||Nc("networkless_performance",O,{sampleRate:1})}; nFd=function(O){return g.LH(LrU(),O)}; XMr=function(O){var V,J;g.Q(function(y){if(y.j==1)return y.K(nFd(O),2);V=y.U;J=(0,g.cH)()-2592E6;return y.K(g.aj(V,["SWHealthLog"],{mode:"readwrite",cY:!0},function(l){return g.pH(l.objectStore("SWHealthLog"),{},function(m){if(m.getValue().timestamp<=J)return m.delete().then(function(){return g.fH(m)})})}),0)})}; EFr=function(O){var V;return g.Q(function(J){if(J.j==1)return J.K(nFd(O),2);V=J.U;return J.K(V.clear("SWHealthLog"),0)})}; g.hS=function(O,V,J,y,l,m,H){l=l===void 0?"":l;m=m===void 0?!1:m;H=H===void 0?!1:H;if(O)if(J&&!g.KW())R4(new g.pn("Legacy referrer-scrubbed ping detected")),O&&d21(O,void 0,{scrubReferrer:!0});else if(l)T8(O,V,"POST",l,y);else if(g.ts("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||y||H)T8(O,V,"GET","",y,void 0,m,H);else{b:{try{c:{var F=new k1r({url:O});if(F.K.dsh==="1")var N=null;else{var x=F.K.ae;if(x==="1"){var W=F.K.adurl;if(W)try{N={version:3,wZ:decodeURIComponent(W),LM:DB(F.j,"act=1","ri=1",Sf7(F))}; break c}catch(z){}}N=x==="2"?{version:4,wZ:DB(F.j,"dct=1","suid="+F.U,"ri=1"),LM:DB(F.j,"act=1","ri=1","suid="+F.U)}:null}}if(N){var U=Tu(O);var Z=!(!U||!U.endsWith("/aclk")||v$(O,"ri")!=="1");break b}}catch(z){}Z=!1}Z?gFU(O)?(V&&V(),J=!0):J=!1:J=!1;J||d21(O,V)}}; gFU=function(O,V){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(O,V===void 0?"":V))return!0}catch(J){}return!1}; d21=function(O,V,J){J=J===void 0?{}:J;var y=new Image,l=""+qgo++;oF[l]=y;y.onload=y.onerror=function(){V&&oF[l]&&V();delete oF[l]}; J.scrubReferrer&&(y.referrerPolicy="no-referrer");y.src=O}; QfU=function(O){var V;return((V=document.featurePolicy)==null?0:V.allowedFeatures().includes("attribution-reporting"))?O+"&nis=6":O+"&nis=5"}; wS=function(){vk||(vk=new PC("yt.offline"));return vk}; Ghl=function(O){if(g.Ut("offline_error_handling")){var V=wS().get("errors",!0)||{};V[O.message]={name:O.name,stack:O.stack};O.level&&(V[O.message].level=O.level);wS().set("errors",V,2592E3,!0)}}; Mc=function(){this.K=new Map;this.j=!1}; Krr=function(){if(!Mc.instance){var O=g.cn("yt.networkRequestMonitor.instance")||new Mc;g.zD("yt.networkRequestMonitor.instance",O);Mc.instance=O}return Mc.instance}; LO=function(){g.xS.call(this);var O=this;this.j=!1;this.K=yB7();this.K.listen("networkstatus-online",function(){if(O.j&&g.Ut("offline_error_handling")){var V=wS().get("errors",!0);if(V){for(var J in V)if(V[J]){var y=new g.pn(J,"sent via offline_errors");y.name=V[J].name;y.stack=V[J].stack;y.level=V[J].level;g.rG(y)}wS().set("errors",{},2592E3,!0)}}})}; trp=function(){if(!LO.instance){var O=g.cn("yt.networkStatusManager.instance")||new LO;g.zD("yt.networkStatusManager.instance",O);LO.instance=O}return LO.instance}; g.nO=function(O){O=O===void 0?{}:O;g.xS.call(this);var V=this;this.K=this.D=0;this.j=trp();var J=g.cn("yt.networkStatusManager.instance.listen").bind(this.j);J&&(O.rateLimit?(this.rateLimit=O.rateLimit,J("networkstatus-online",function(){uKr(V,"publicytnetworkstatus-online")}),J("networkstatus-offline",function(){uKr(V,"publicytnetworkstatus-offline")})):(J("networkstatus-online",function(){V.dispatchEvent("publicytnetworkstatus-online")}),J("networkstatus-offline",function(){V.dispatchEvent("publicytnetworkstatus-offline")})))}; uKr=function(O,V){O.rateLimit?O.K?(g.E7.pK(O.D),O.D=g.E7.nf(function(){O.U!==V&&(O.dispatchEvent(V),O.U=V,O.K=(0,g.cH)())},O.rateLimit-((0,g.cH)()-O.K))):(O.dispatchEvent(V),O.U=V,O.K=(0,g.cH)()):O.dispatchEvent(V)}; E8=function(){var O=aF.call;Xf||(Xf=new g.nO({CAL:!0,cBX:!0}));O.call(aF,this,{wH:{Ta:wMd,FI:vFH,VH:fDo,VqK:hUl,h5:oFh,set:pMX},Ds:Xf,handleError:function(V,J,y){var l,m=y==null?void 0:(l=y.error)==null?void 0:l.code;if(m===400||m===415){var H;V=new g.pn(V.message,J,y==null?void 0:(H=y.error)==null?void 0:H.code);R4(V,void 0,void 0,void 0,!0)}else g.rG(V)}, tZ:R4,sendFn:An7,now:g.cH,P3:Ghl,kP:g.ij(),KW:"publicytnetworkstatus-online",l$:"publicytnetworkstatus-offline",tA:!0,Vy:.1,RE:Z3("potential_esf_error_limit",10),Jv:g.Ut,c5:!(g.Kz()&&g.sd(document.location.toString())!=="www.youtube-nocookie.com")});this.U=new g.HP;g.Ut("networkless_immediately_drop_all_requests")&&Mrl();bZo("LogsDatabaseV2")}; dS=function(){var O=g.cn("yt.networklessRequestController.instance");O||(O=new E8,g.zD("yt.networklessRequestController.instance",O),g.Ut("networkless_logging")&&g.Gf().then(function(V){O.cn=V;TC5(O);O.U.resolve();O.tA&&Math.random()<=O.Vy&&O.cn&&XMr(O.cn);g.Ut("networkless_immediately_drop_sw_health_store")&&rno(O)})); return O}; rno=function(O){var V;g.Q(function(J){if(!O.cn)throw V=g.NV("clearSWHealthLogsDb"),V;return J.return(EFr(O.cn).catch(function(y){O.handleError(y)}))})}; An7=function(O,V,J,y){y=y===void 0?!1:y;V=g.Ut("web_fp_via_jspb")?Object.assign({},V):V;if(g.Ut("use_request_time_ms_header"))V.headers&&Vd(O)&&(V.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.cH)())));else{var l;if((l=V.postParams)==null?0:l.requestTimeMs)V.postParams.requestTimeMs=Math.round((0,g.cH)())}J&&Object.keys(V).length===0?g.hS(O):V.compress?V.postBody?(typeof V.postBody!=="string"&&(V.postBody=JSON.stringify(V.postBody)),TS(O,V.postBody,V,g.e8,y)):TS(O,JSON.stringify(V.postParams), V,IN,y):g.e8(O,V)}; gS=function(O,V){g.Ut("use_event_time_ms_header")&&Vd(O)&&(V.headers||(V.headers={}),V.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.cH)())));return V}; g.qc=function(O){this.config_=null;O?this.config_=O:uyl()&&(this.config_=g.JS())}; g.Qz=function(O,V,J,y){function l(x){try{if((x===void 0?0:x)&&y.retry&&!y.networklessOptions.bypassNetworkless)m.method="POST",y.networklessOptions.writeThenSend?dS().writeThenSend(N,m):dS().sendAndWrite(N,m);else if(y.compress){var W=!y.networklessOptions.writeThenSend;if(m.postBody){var U=m.postBody;typeof U!=="string"&&(U=JSON.stringify(m.postBody));TS(N,U,m,g.e8,W)}else TS(N,JSON.stringify(m.postParams),m,IN,W)}else IN(N,m)}catch(Z){if(Z.name==="InvalidAccessError")R4(Error("An extension is blocking network request.")); else throw Z;}} !g.ts("VISITOR_DATA")&&V!=="visitor_id"&&Math.random()<.01&&R4(new g.pn("Missing VISITOR_DATA when sending innertube request.",V,J,y));if(!O.isReady())throw O=new g.pn("innertube xhrclient not ready",V,J,y),g.rG(O),O;var m={headers:y.headers||{},method:"POST",postParams:J,postBody:y.postBody,postBodyFormat:y.postBodyFormat||"JSON",onTimeout:function(){y.onTimeout()}, onFetchTimeout:y.onTimeout,onSuccess:function(x,W){if(y.onSuccess)y.onSuccess(W)}, onFetchSuccess:function(x){if(y.onSuccess)y.onSuccess(x)}, onProgress:function(x){if(y.onProgress)y.onProgress(x)}, onError:function(x,W){if(y.onError)y.onError(W)}, onFetchError:function(x){if(y.onError)y.onError(x)}, timeout:y.timeout,withCredentials:!0,compress:y.compress};m.headers["Content-Type"]||(m.headers["Content-Type"]="application/json");J="";var H=O.config_.xS;H&&(J=H);H=O.config_.yW||!1;var F=Ov7(H,J,y);Object.assign(m.headers,F);m.headers.Authorization&&!J&&H&&(m.headers["x-origin"]=window.location.origin);var N=DS(""+J+("/youtubei/"+O.config_.innertubeApiVersion+"/"+V),{alt:"json"});g.cn("ytNetworklessLoggingInitializationOptions")&&ivU.isNwlInitialized?zGh().then(function(x){l(x)}):l(!1)}; g.AS=function(O,V,J){var y=g.GS();if(y&&V){var l=y.subscribe(O,function(){function m(){KO[l]&&V.apply&&typeof V.apply=="function"&&V.apply(J||window,H)} var H=arguments;try{g.tS[O]?m():g.CW(m,0)}catch(F){g.rG(F)}},J); KO[l]=!0;u0[O]||(u0[O]=[]);u0[O].push(l);return l}return 0}; RUr=function(O){var V=g.AS("LOGGED_IN",function(J){O.apply(void 0,arguments);g.rS(V)})}; g.rS=function(O){var V=g.GS();V&&(typeof O==="number"?O=[O]:typeof O==="string"&&(O=[parseInt(O,10)]),g.Cu(O,function(J){V.unsubscribeByKey(J);delete KO[J]}))}; g.i0=function(O,V){var J=g.GS();return J?J.publish.apply(J,arguments):!1}; Pkp=function(O){var V=g.GS();if(V)if(V.clear(O),O)BCU(O);else for(var J in u0)BCU(J)}; g.GS=function(){return g.Z1.ytPubsubPubsubInstance}; BCU=function(O){u0[O]&&(O=u0[O],g.Cu(O,function(V){KO[V]&&delete KO[V]}),O.length=0)}; g.RF=function(O,V,J){khd(O,V,J===void 0?null:J)}; khd=function(O,V,J){J=J===void 0?null:J;var y=SgY(typeof O==="string"?O:O.toString()),l=document.getElementById(y),m=l&&xEo(l),H=l&&!m;m?V&&V():(V&&(m=g.AS(y,V),V=""+g.pd(V),D2h[V]=m),H||(l=OVX(O,y,function(){xEo(l)||(NPY(l),g.i0(y),g.CW(function(){Pkp(y)},0))},J)))}; OVX=function(O,V,J,y){y=y===void 0?null:y;var l=g.I1("SCRIPT");l.id=V;l.onload=function(){J&&setTimeout(J,0)}; l.onreadystatechange=function(){switch(l.readyState){case "loaded":case "complete":l.onload()}}; y&&l.setAttribute("nonce",y);g.wO(l,typeof O==="string"?g.I4(O):O);O=document.getElementsByTagName("head")[0]||document.body;O.insertBefore(l,O.firstChild);return l}; SgY=function(O){var V=document.createElement("a");g.e1(V,O);O=V.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Gk(O)}; Bk=function(O,V){if(O===V)O=!0;else if(Array.isArray(O)&&Array.isArray(V))O=g.$m(O,V,Bk);else if(g.YE(O)&&g.YE(V))a:if(g.ct(O).length!=g.ct(V).length)O=!1;else{for(var J in O)if(!Bk(O[J],V[J])){O=!1;break a}O=!0}else O=!1;return O}; SY=function(O){var V=g.jF.apply(1,arguments);if(!Pk(O)||V.some(function(y){return!Pk(y)}))throw Error("Only objects may be merged."); V=g.n(V);for(var J=V.next();!J.done;J=V.next())kR(O,J.value)}; kR=function(O,V){for(var J in V)if(Pk(V[J])){if(J in O&&!Pk(O[J]))throw Error("Cannot merge an object into a non-object.");J in O||(O[J]={});kR(O[J],V[J])}else if(Dj(V[J])){if(J in O&&!Dj(O[J]))throw Error("Cannot merge an array into a non-array.");J in O||(O[J]=[]);VB7(O[J],V[J])}else O[J]=V[J];return O}; VB7=function(O,V){V=g.n(V);for(var J=V.next();!J.done;J=V.next())J=J.value,Pk(J)?O.push(kR({},J)):Dj(J)?O.push(VB7([],J)):O.push(J);return O}; Pk=function(O){return typeof O==="object"&&!Array.isArray(O)}; Dj=function(O){return typeof O==="object"&&Array.isArray(O)}; OZ=function(O){g.K.call(this);this.j=O}; V2=function(O){OZ.call(this,!0);this.K=O}; J7=function(O,V){g.K.call(this);var J=this;this.U=[];this.S=!1;this.j=0;this.W=this.V=this.D=!1;this.KD=null;var y=(0,g.hI)(O,V);this.K=new g.t_(function(){return y(J.KD)},300); g.t(this,this.K);this.qX=this.T=Infinity}; Js7=function(O,V){if(!V)return!1;for(var J=0;J-1)throw Error("Deps cycle for: "+V);if(O.j.has(V))return O.j.get(V);if(!O.K.has(V)){if(y)return;throw Error("No provider for: "+V);}y=O.K.get(V);J.push(V);if(y.QT!==void 0)var l=y.QT;else if(y.Zf5)l=y[UZ]?HVX(O,y[UZ],J):[],l=y.Zf5.apply(y,g.q(l));else if(y.BM){l=y.BM;var m=l[UZ]?HVX(O,l[UZ],J):[];l=new (Function.prototype.bind.apply(l,[null].concat(g.q(m))))}else throw Error("Could not resolve providers for: "+V);J.pop();y.HIn||O.j.set(V,l); return l}; HVX=function(O,V,J){return V?V.map(function(y){return y instanceof ND?Zm(O,y.key,J,!0):Zm(O,y,J)}):[]}; c5=function(){z$||(z$=new $4l);return z$}; Cir=function(){var O=j4h;return function(){var V=c5();if(!V.resolve(xt(O))){var J={};W5(V,(J.IT=O,J.BM=O,J[UZ]=void 0,J))}return V.resolve(O)}}; T$=function(){var O,V;return"h5vcc"in sZ&&((O=sZ.h5vcc.traceEvent)==null?0:O.traceBegin)&&((V=sZ.h5vcc.traceEvent)==null?0:V.traceEnd)?1:"performance"in sZ&&sZ.performance.mark&&sZ.performance.measure?2:0}; et=function(O){var V=T$();switch(V){case 1:sZ.h5vcc.traceEvent.traceBegin("YTLR",O);break;case 2:sZ.performance.mark(O+"-start");break;case 0:break;default:IG(V,"unknown trace type")}}; Fmd=function(O){var V=T$();switch(V){case 1:sZ.h5vcc.traceEvent.traceEnd("YTLR",O);break;case 2:V=O+"-start";var J=O+"-end";sZ.performance.mark(J);sZ.performance.measure(O,V,J);break;case 0:break;default:IG(V,"unknown trace type")}}; NGo=function(O){var V,J;(J=(V=window).onerror)==null||J.call(V,O.message,"",0,0,O)}; x47=function(O){var V=this;var J=J===void 0?0:J;var y=y===void 0?g.ij():y;this.U=J;this.scheduler=y;this.j=new g.HP;this.K=O;for(O={PQ:0};O.PQ=1E3?l():y>=O?A7||(A7=rk(function(){l();A7=void 0},0)):m-F>=10&&(vCd(V,J.tier),H.D=m)}; bVl=function(O,V){if(O.endpoint==="log_event"){g.Ut("more_accurate_gel_parser")&&EZ().storePayload({isJspb:!1},O.payload);gk(O);var J=qD(O),y=new Map;y.set(J,[O.payload]);var l=ISY(O.payload)||"";V&&(t7=new V);return new g.bF(function(m,H){t7&&t7.isReady()?wwd(y,t7,m,H,{bypassNetworkless:!0},!0,G$(l)):m()})}}; huo=function(O,V,J){if(V.endpoint==="log_event"){gk(void 0,V);var y=qD(V,!0),l=new Map;l.set(y,[Va(V.payload)]);J&&(t7=new J);return new g.bF(function(m){t7&&t7.isReady()?MBo(l,t7,m,{bypassNetworkless:!0},!0,G$(O)):m()})}}; qD=function(O,V){var J="";if(O.dangerousLogToVisitorSession)J="visitorOnlyApprovedKey";else if(O.cttAuthInfo){if(V===void 0?0:V){V=O.cttAuthInfo.token;J=O.cttAuthInfo;var y=new q4;J.videoId?y.setVideoId(J.videoId):J.playlistId&&ht(y,2,i9,KK(J.playlistId));Rm[V]=y}else V=O.cttAuthInfo,J={},V.videoId?J.videoId=V.videoId:V.playlistId&&(J.playlistId=V.playlistId),B5[O.cttAuthInfo.token]=J;J=O.cttAuthInfo.token}return J}; K2=function(O,V,J){O=O===void 0?{}:O;V=V===void 0?!1:V;new g.bF(function(y,l){var m=u9(V,J),H=m.U;m.U=!1;P5(m.j);P5(m.K);m.K=0;t7&&t7.isReady()?J===void 0&&g.Ut("enable_web_tiered_gel")?LmH(y,l,O,V,300,H):LmH(y,l,O,V,J,H):(vCd(V,J),y())})}; LmH=function(O,V,J,y,l,m){var H=t7;J=J===void 0?{}:J;y=y===void 0?!1:y;l=l===void 0?200:l;m=m===void 0?!1:m;var F=new Map,N=new Map,x={isJspb:y,cttAuthInfo:void 0,tier:l},W={isJspb:y,cttAuthInfo:void 0};if(y){V=g.n(Object.keys(Q2));for(l=V.next();!l.done;l=V.next())l=l.value,N=g.Ut("enable_web_tiered_gel")?EZ().smartExtractMatchingEntries({keys:[x,W],sizeLimit:1E3}):EZ().extractMatchingEntries({isJspb:!0,cttAuthInfo:l}),N.length>0&&F.set(l,N),(g.Ut("web_fp_via_jspb_and_json")&&J.writeThenSend||!g.Ut("web_fp_via_jspb_and_json"))&& delete Q2[l];MBo(F,H,O,J,!1,m)}else{F=g.n(Object.keys(Q2));for(x=F.next();!x.done;x=F.next())x=x.value,W=g.Ut("enable_web_tiered_gel")?EZ().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:x,tier:l},{isJspb:!1,cttAuthInfo:x}],sizeLimit:1E3}):EZ().extractMatchingEntries({isJspb:!1,cttAuthInfo:x}),W.length>0&&N.set(x,W),(g.Ut("web_fp_via_jspb_and_json")&&J.writeThenSend||!g.Ut("web_fp_via_jspb_and_json"))&&delete Q2[x];wwd(N,H,O,V,J,!1,m)}}; vCd=function(O,V){function J(){K2({writeThenSend:!0},O,V)} O=O===void 0?!1:O;V=V===void 0?200:V;var y=u9(O,V),l=y===nCo||y===XwV?5E3:ECX;g.Ut("web_gel_timeout_cap")&&!y.K&&(l=rk(function(){J()},l),y.K=l); P5(y.j);l=g.ts("LOGGING_BATCH_TIMEOUT",Z3("web_gel_debounce_ms",1E4));g.Ut("shorten_initial_gel_batch_timeout")&&kt&&(l=d41);l=rk(function(){Z3("gel_min_batch_size")>0?EZ().getSequenceCount({cttAuthInfo:void 0,isJspb:O,tier:V})>=gCr&&J():J()},l); y.j=l}; wwd=function(O,V,J,y,l,m,H){l=l===void 0?{}:l;var F=Math.round((0,g.cH)()),N=O.size,x=qnr(H);O=g.n(O);var W=O.next();for(H={};!W.done;H={qZ:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,B8:void 0,Op:void 0},W=O.next()){var U=g.n(W.value);W=U.next().value;U=U.next().value;H.batchRequest=g.pu({context:g.yz(V.config_||g.JS())});if(!g.Iz(U)&&!g.Ut("throw_err_when_logevent_malformed_killswitch")){y();break}H.batchRequest.events=U;(U=B5[W])&&Q45(H.batchRequest,W,U);delete B5[W];H.dangerousLogToVisitorSession= W==="visitorOnlyApprovedKey";G2U(H.batchRequest,F,H.dangerousLogToVisitorSession);KmU(l);H.B8=function(Z){g.Ut("start_client_gcf")&&g.E7.nf(function(){return g.Q(function(z){return z.K(tB5(Z),0)})}); N--;N||J()}; H.qZ=0;H.Op=function(Z){return function(){Z.qZ++;if(l.bypassNetworkless&&Z.qZ===1)try{g.Qz(V,x,Z.batchRequest,St({writeThenSend:!0},Z.dangerousLogToVisitorSession,Z.B8,Z.Op,m)),kt=!1}catch(z){g.rG(z),y()}N--;N||J()}}(H); try{g.Qz(V,x,H.batchRequest,St(l,H.dangerousLogToVisitorSession,H.B8,H.Op,m)),kt=!1}catch(Z){g.rG(Z),y()}}}; MBo=function(O,V,J,y,l,m){y=y===void 0?{}:y;var H=Math.round((0,g.cH)()),F={value:O.size},N=new Map([].concat(g.q(O)));N=g.n(N);for(var x=N.next();!x.done;x=N.next()){var W=g.n(x.value).next().value,U=O.get(W);x=new g.QW;var Z=V.config_||g.JS(),z=new LV,c=new pV;is(c,1,Z.Js);is(c,2,Z.Th);BU(c,16,Z.w9);is(c,17,Z.innertubeContextClientVersion);if(Z.dc){var Y=Z.dc,b=new a4;Y.coldConfigData&&is(b,1,Y.coldConfigData);Y.appInstallData&&is(b,6,Y.appInstallData);Y.coldHashData&&is(b,3,Y.coldHashData);Y.hotHashData&& b.U1(Y.hotHashData);Ef(c,a4,62,b)}(Y=g.Z1.devicePixelRatio)&&Y!=1&&WU(c,65,e$(Y));Y=z8();Y!==""&&is(c,54,Y);Y=cv();if(Y.length>0){b=new o4;for(var M=0;M65535&&(O=1);KV("BATCH_CLIENT_COUNTER",O);return O}; Q45=function(O,V,J){if(J.videoId)var y="VIDEO";else if(J.playlistId)y="PLAYLIST";else return;O.credentialTransferTokenTargetId=J;O.context=O.context||{};O.context.user=O.context.user||{};O.context.user.credentialTransferTokens=[{token:V,scope:y}]}; gk=function(O,V){var J=g.cn("yt.logging.transport.enableScrapingForTest"),y=Wv("il_payload_scraping");y=(y!==void 0?String(y):"")==="enable_il_payload_scraping";if(!J)if(y)Vy=[],g.zD("yt.logging.transport.enableScrapingForTest",!0),g.zD("yt.logging.transport.scrapedPayloadsForTesting",Vy),g.zD("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.zD("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.zD("yt.logging.transport.scrapeClientEvent",!0);else return;J=g.cn("yt.logging.transport.scrapedPayloadsForTesting");y=g.cn("yt.logging.transport.payloadToScrape");V&&(V=V.payload,(V=g.cn("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(V)())&&J.push(V));V=g.cn("yt.logging.transport.scrapeClientEvent");if(y&&y.length>=1)for(var l=0;l0&&Ft1(O,V,m)}else Ft1(O,V)}; Ft1=function(O,V,J){O=Nr1(O);V=V?g.bp(V):"";J=J||5;D3()&&g.wr(O,V,J)}; Nr1=function(O){for(var V=g.n(xz5),J=V.next();!J.done;J=V.next())O=wb(O,J.value);return"ST-"+Gk(O).toString(36)}; Wt5=function(O){if(O.name==="JavaException")return!0;O=O.stack;return O.includes("chrome://")||O.includes("-extension://")||O.includes("webkit-masked-url://")}; UzX=function(O){if(!O.stack)return!0;var V=!O.stack.includes("\n");return V&&O.stack.includes("ErrorType: ")||V&&O.stack.includes("Anonymous function (Unknown script")||O.stack.toLowerCase()==="not available"||O.fileName==="user-script"||O.fileName.startsWith("user-script:")?!0:!1}; ZWd=function(){this.hp=[];this.Pe=[]}; Uk=function(){if(!WF){var O=WF=new ZWd;O.Pe.length=0;O.hp.length=0;z7V(O,cyh)}return WF}; z7V=function(O,V){V.Pe&&O.Pe.unshift.apply(O.Pe,V.Pe);V.hp&&O.hp.unshift.apply(O.hp,V.hp)}; sNh=function(O){function V(){return O.charCodeAt(y++)} var J=O.length,y=0;do{var l=ZH(V);if(l===Infinity)break;var m=l>>3;switch(l&7){case 0:l=ZH(V);if(m===2)return l;break;case 1:if(m===2)return;y+=8;break;case 2:l=ZH(V);if(m===2)return O.substr(y,l);y+=l;break;case 5:if(m===2)return;y+=4;break;default:return}}while(y500));y++);y=l}else if(typeof O==="object")for(l in O){if(O[l]){var m=l;var H=O[l],F=V,N=J;m=typeof H!=="string"||m!=="clickTrackingParams"&&m!=="trackingParams"?0:(H=sNh(atob(H.replace(/-/g,"+").replace(/_/g,"/"))))?zK(m+".ve",H,F,N):0;y+=m;y+=zK(l,O[l],V,J);if(y>500)break}}else J[V]=cF(O),y+=J[V].length;else J[V]=cF(O),y+=J[V].length;return y}; zK=function(O,V,J,y){J+="."+O;O=cF(V);y[J]=O;return J.length+O.length}; cF=function(O){try{return(typeof O==="string"?O:String(JSON.stringify(O))).substr(0,500)}catch(V){return"unable to serialize "+typeof O+" ("+V.message+")"}}; TK=function(O){g.sk(O)}; g.en=function(O){g.sk(O,"WARNING")}; g.sk=function(O,V){var J=J===void 0?{}:J;J.name=g.ts("INNERTUBE_CONTEXT_CLIENT_NAME",1);J.version=g.ts("INNERTUBE_CONTEXT_CLIENT_VERSION");V=V===void 0?"ERROR":V;var y=!1;V=V===void 0?"ERROR":V;y=y===void 0?!1:y;if(O){O.hasOwnProperty("level")&&O.level&&(V=O.level);if(g.Ut("console_log_js_exceptions")||["test","dev","autopush","staging"].includes(g.ts("SERVER_VERSION"))){var l=[];l.push("Name: "+O.name);l.push("Message: "+O.message);O.hasOwnProperty("params")&&l.push("Error Params: "+JSON.stringify(O.params)); O.hasOwnProperty("args")&&l.push("Error args: "+JSON.stringify(O.args));l.push("File name: "+O.fileName);l.push("Stacktrace: "+O.stack);window.console.log(l.join("\n"),O)}if(!(e7r>=5)){l=[];for(var m=g.n(I35),H=m.next();!H.done;H=m.next()){H=H.value;try{H()&&l.push(H())}catch(Y){}}l=[].concat(g.q(Yt5),g.q(l));var F=nEo(O);m=F.message||"Unknown Error";H=F.name||"UnknownError";var N=F.stack||O.j||"Not available";if(N.startsWith(H+": "+m)){var x=N.split("\n");x.shift();N=x.join("\n")}x=F.lineNumber|| "Not available";F=F.fileName||"Not available";var W=0;if(O.hasOwnProperty("args")&&O.args&&O.args.length)for(var U=0;U=500);U++);else if(O.hasOwnProperty("params")&&O.params){var Z=O.params;if(typeof O.params==="object")for(U in Z){if(Z[U]){var z="params."+U,c=cF(Z[U]);J[z]=c;W+=z.length+c.length;if(W>500)break}}else J.params=cF(Z)}if(l.length)for(U=0;U=500);U++);navigator.vendor&&!J.hasOwnProperty("vendor")&& (J["device.vendor"]=navigator.vendor);J={message:m,name:H,lineNumber:x,fileName:F,stack:N,params:J,sampleWeight:1};U=Number(O.columnNumber);isNaN(U)||(J.lineNumber=J.lineNumber+":"+U);if(O.level==="IGNORED")O=0;else a:{O=Uk();U=g.n(O.Pe);for(l=U.next();!l.done;l=U.next())if(l=l.value,J.message&&J.message.match(l.aF)){O=l.weight;break a}O=g.n(O.hp);for(U=O.next();!U.done;U=O.next())if(U=U.value,U.callback(J)){O=U.weight;break a}O=1}J.sampleWeight=O;O=g.n(a3o);for(U=O.next();!U.done;U=O.next())if(U= U.value,U.hS[J.name])for(m=g.n(U.hS[J.name]),l=m.next();!l.done;l=m.next())if(H=l.value,l=J.message.match(H.bM)){J.params["params.error.original"]=l[0];m=H.groups;H={};for(x=0;x1E3&&g.en(new g.pn("IL Attach cache exceeded limit"))}F= Xe(J,V);vF.has(F)?Ek(J,V):Mb.set(F,!0)}}y=y.filter(function(W){W.csn!==V?(W.csn=V,W=!0):W=!1;return W}); J={csn:V,parentVe:J.getAsJson(),childVes:g.Ia(y,function(W){return W.getAsJson()})}; V==="UNDEFINED_CSN"?dd("visualElementAttached",m,J):O?yy("visualElementAttached",J,O,m):g.l6("visualElementAttached",J,m)}; ggU=function(O,V,J,y,l,m,H){gd(J,V);y=oe({cttAuthInfo:Nb(V)||void 0,automatedLogEventSource:H},V);J={csn:V,ve:J.getAsJson(),eventType:1};l&&(J.clientData=l);V==="UNDEFINED_CSN"?dd("visualElementShown",y,J):O?yy("visualElementShown",J,O,y):g.l6("visualElementShown",J,y)}; qtr=function(O,V,J,y){var l=(y=y===void 0?!1:y)?16:8;y=oe({cttAuthInfo:Nb(V)||void 0,endOfSequence:y,automatedLogEventSource:void 0},V);J={csn:V,ve:J.getAsJson(),eventType:l};V==="UNDEFINED_CSN"?dd("visualElementHidden",y,J):O?yy("visualElementHidden",J,O,y):g.l6("visualElementHidden",J,y)}; qb=function(O,V,J,y,l,m){QNp(O,V,J,void 0,y,l,m)}; QNp=function(O,V,J,y,l,m,H){gd(J,V);y=y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";m=oe({cttAuthInfo:Nb(V)||void 0,automatedLogEventSource:H},V);J={csn:V,ve:J.getAsJson(),gestureType:y};l&&(J.clientData=l);V==="UNDEFINED_CSN"?dd("visualElementGestured",m,J):O?yy("visualElementGestured",J,O,m):g.l6("visualElementGestured",J,m)}; G81=function(){var O=l9(16);for(var V=[],J=0;J0&&J.push(g.I1("BR"));J.push(g.Ya(m))}):J.push(g.Ya(y))}return J}; DH=function(O,V,J,y){if(J==="child"){g.bB(V);var l;y===void 0?l=void 0:l=!Array.isArray(y)||y&&typeof y.X==="string"?[y]:y;J=t81(O,l);J=g.n(J);for(O=J.next();!O.done;O=J.next())V.appendChild(O.value)}else J==="style"?g.Pp(V,"cssText",y?y:""):y===null||y===void 0?V.removeAttribute(J):(O=y.toString(),J==="href"&&(O=g.Z6(g.sD(O))),V.setAttribute(J,O))}; g.r=function(O){g.kb.call(this,O);this.vY=!0;this.qX=!1;this.listeners=[]}; g.OF=function(O){g.r.call(this,O);this.zL=new g.BF;g.t(this,this.zL)}; Vb=function(O,V,J,y,l,m,H){H=H===void 0?null:H;g.OF.call(this,V);this.api=O;this.macros={};this.componentType=J;this.V=this.S=null;this.Ks=H;this.layoutId=y;this.interactionLoggingClientData=l;this.HE=m;this.E5=null;this.lN=new V2(this.element);g.t(this,this.lN);this.eB=this.Z(this.element,"click",this.onClick);this.O5=[];this.fD=new J7(this.onClick,this);g.t(this,this.fD);this.UR=!1;this.Vz=this.KD=null}; g.Nl=function(O,V){return $Y[C[8]](this,28,O,V)}; JV=function(O,V){O=O===void 0?null:O;V=V===void 0?null:V;if(O==null)return g.en(Error("Got null or undefined adText object")),"";var J=g.Qt(O.text);if(!O.isTemplated)return J;if(V==null)return g.en(Error("Missing required parameters for a templated message")),J;O=g.n(Object.entries(V));for(V=O.next();!V.done;V=O.next()){var y=g.n(V.value);V=y.next().value;y=y.next().value;J=J.replace("{"+V+"}",y)}return J}; uR5=function(O){O=O===void 0?null:O;return O!=null&&(O=O.thumbnail,O!=null&&O.thumbnails!=null&&O.thumbnails.length!=0&&O.thumbnails[0].url!=null)?g.Qt(O.thumbnails[0].url):""}; Ayh=function(O){O=O===void 0?null:O;return O!=null&&(O=O.thumbnail,O!=null&&O.thumbnails!=null&&O.thumbnails.length!=0&&O.thumbnails[0].width!=null&&O.thumbnails[0].height!=null)?new g.Op(O.thumbnails[0].width||0,O.thumbnails[0].height||0):new g.Op(0,0)}; g.yb=function(O){if(O.simpleText)return O.simpleText;if(O.runs){var V=[];O=g.n(O.runs);for(var J=O.next();!J.done;J=O.next())J=J.value,J.text&&V.push(J.text);return V.join("")}return""}; g.lo=function(O){if(O.simpleText)return O=document.createTextNode(O.simpleText),O;var V=[];if(O.runs)for(var J=0;J1){for(var V=[O[0]],J=1;J0&&(this.K=new g.t_(this.cw,V,this),g.t(this,this.K));this.W=new g.t_(this.cw,J,this);g.t(this,this.W);this.T=Nqp(this.j,l,1,y);g.t(this,this.T);this.S=Nqp(this.j,0,y,1);g.t(this,this.S);this.D=new bj;g.t(this,this.D)}; kN=function(O,V){this.j=O;this.K=V}; gOp=function(O){switch(O){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:IG(O,"unknown result type")}}; q$Y=function(O,V){var J=1;O.isTrusted===!1&&(J=0);KV("ISDSTAT",J);Se(J,"i.s_",{triggerContext:"sk",metadata:V});return J}; QH1=function(O,V){var J=[];V?V.isTrusted===!0?J.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):V.isTrusted===!1?J.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):J.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):J.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Se(0,"a.s_",{metadata:O,states:J});KV("ASDSTAT",0)}; Se=function(O,V,J){V=Gbr[V];var y,l,m={detected:O===0,source:""+V.j+((y=J.triggerContext)!=null?y:"")+((l=J.Az)!=null?l:""),detectionStates:J.states,durationMs:J.OV};J.metadata&&(m.contentCpn=J.metadata.contentCpn,m.adCpn=J.metadata.adCpn);g.l6("biscottiBasedDetection",m);V.K!==void 0&&(J=Number(g.ts("CATSTAT",0)),V.K!==void 0?(V=V.K,O=gOp(O),O=J&~(3<0}; yk=function(O,V,J,y,l,m){KI.call(this,O,{X:"div",C:"ytp-ad-skip-button-slot"},"skip-button",V,J,y,l);var H=this;this.lw=null;this.dW=!1;this.yz=m;this.W=this.api.Y().experiments.Jv("enable_modern_skip_button_on_web");this.nD=!1;this.D=new g.OF({X:"span",Fj:["ytp-ad-skip-button-container"]});this.W&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.t(this,this.D);this.D.rW(this.element);this.j=this.U=null;this.TL=new g.AV(this.D,500,!1,100,function(){return H.hide()}); g.t(this,this.TL);this.ol=new PB(this.D.element,15E3,5E3,.5,.5,this.W);g.t(this,this.ol);this.hide()}; td7=function(O){O=O.lw&&O.lw.adRendererCommands;return(O&&O.clickCommand&&g.e(O.clickCommand,g.l1)&&g.e(O.clickCommand,g.l1).commands||[]).some(function(V){return V.adLifecycleCommand?K2V(V.adLifecycleCommand):!1})}; K2V=function(O){return O.action==="END_LINEAR_AD"||O.action==="END_LINEAR_AD_PLACEMENT"}; mp=function(O,V,J,y,l,m){KI.call(this,O,{X:"div",C:"ytp-ad-skip-ad-slot"},"skip-ad",V,J,y,l);this.lw=m;this.D=!1;this.W=0;this.U=this.j=null;this.hide()}; uQ1=function(O,V){O.D||(O.D=!0,O.j&&(V?O.j.lw.hide():O.j.hide()),V?(O=O.U,O.TL.show(),O.show()):O.U.show())}; $o=function(O,V,J,y){YN.call(this,O,V,J,y,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; HS=function(O,V,J,y,l,m,H){m=m===void 0?!1:m;H=H===void 0?!1:H;Vb.call(this,O,{X:"span",C:"ytp-ad-simple-ad-badge"},"simple-ad-badge",V,J,y);this.U=l;this.K=this.DN("ytp-ad-simple-ad-badge");(this.j=m)&&this.K.classList.add("ytp-ad-simple-ad-badge--clean-player");H&&this.K.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; jo=function(O,V,J,y,l){l=l===void 0?!1:l;Re.call(this,"player-overlay",O,{},V,y);this.videoAdDurationSeconds=J;this.interactionLoggingClientData=y;this.jh=l}; CJ=function(O,V){g.BF.call(this);this.api=O;this.durationMs=V;this.K=null;this.handler=new bj(this);g.t(this,this.handler);this.j=AG1;this.handler.Z(this.api,"presentingplayerstatechange",this.qA);this.K=this.handler.Z(this.api,"onAdPlaybackProgress",this.VK)}; F6=function(O){g.BF.call(this);this.K=!1;this.vX=0;this.handler=new bj(this);g.t(this,this.handler);this.durationMs=O;this.timer=new g.MU(100);g.t(this,this.timer);this.handler.Z(this.timer,"tick",this.VK);this.j={seekableStart:0,seekableEnd:O/1E3,current:0};this.start()}; g.Nw=function(O,V){var J=Math.abs(Math.floor(O)),y=Math.floor(J/86400),l=Math.floor(J%86400/3600),m=Math.floor(J%3600/60);J=Math.floor(J%60);if(V){V="";y>0&&(V+=" "+y+" Days");if(y>0||l>0)V+=" "+l+" Hours";V+=" "+m+" Minutes";V+=" "+J+" Seconds";y=V.trim()}else{V="";y>0&&(V+=y+":",l<10&&(V+="0"));if(y>0||l>0)V+=l+":",m<10&&(V+="0");V+=m+":";J<10&&(V+="0");y=V+J}return O>=0?y:"-"+y}; g.xo=function(O){return(!("button"in O)||typeof O.button!=="number"||O.button===0)&&!("shiftKey"in O&&O.shiftKey)&&!("altKey"in O&&O.altKey)&&!("metaKey"in O&&O.metaKey)&&!("ctrlKey"in O&&O.ctrlKey)}; WS=function(O,V,J,y,l,m,H){KI.call(this,O,{X:"span",C:H?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",V,J,y,l);this.videoAdDurationSeconds=m;this.j=null;H&&this.api.Y().j&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),EN&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; UK=function(O,V,J,y){Qb.call(this,O,V,J,y,"ytp-video-ad-top-bar-title","ad-title")}; Zf=function(O){this.content=O.content;if(O.commandRuns){O=g.n(O.commandRuns);for(var V=O.next();!V.done;V=O.next())V=V.value,this.loggingDirectives=g.e(V,rGY),V.onTap&&(this.interaction={onTap:V.onTap})}}; zE=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ad-simple-attributed-string"},"ad-simple-attributed-string",V,J,y);this.hide()}; cS=function(O,V,J,y,l){Vb.call(this,O,{X:"span",C:l?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",V,J,y);this.j=l;this.adBadgeText=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);this.adBadgeText.rW(this.element);g.t(this,this.adBadgeText);l?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),EN&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; sK=function(O,V,J,y){Vb.call(this,O,{X:"span",C:"ytp-ad-pod-index"},"ad-pod-index",V,J,y);this.api.Y().j&&(this.element.classList.add("ytp-ad-pod-index--mweb"),EN&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; TE=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",V,J,y);this.hide()}; eo=function(O,V){this.j=O;this.K=V}; izd=function(O,V){return O.j+V*(O.K-O.j)}; I0=function(O,V,J){return O.K-O.j?g.BZ((V-O.j)/(O.K-O.j),0,1):J!=null?J:Infinity}; Yo=function(O,V,J,y){y=y===void 0?!1:y;g.OF.call(this,{X:"div",C:"ytp-ad-persistent-progress-bar-container",J:[{X:"div",C:"ytp-ad-persistent-progress-bar"}]});this.api=O;this.j=V;this.U=J;y&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.t(this,this.j);this.progressBar=this.DN("ytp-ad-persistent-progress-bar");this.K=-1;this.Z(O,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; b1=function(O,V,J,y,l,m){Vb.call(this,O,{X:"div",C:"ytp-ad-player-overlay",J:[{X:"div",C:"ytp-ad-player-overlay-flyout-cta"},{X:"div",C:"ytp-ad-player-overlay-instream-info"},{X:"div",C:"ytp-ad-player-overlay-skip-or-preview"},{X:"div",C:"ytp-ad-player-overlay-progress-bar"},{X:"div",C:"ytp-ad-player-overlay-instream-user-sentiment"},{X:"div",C:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",V,J,y);this.T=m;this.W=this.DN("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.K=this.DN("ytp-ad-player-overlay-instream-info");this.D=null;RKo(this)&&(O=eg("div"),g.D0(O,"ytp-ad-player-overlay-top-bar-gradients"),V=this.K,V.parentNode&&V.parentNode.insertBefore(O,V),(V=this.api.getVideoData({playerType:2}))&&V.isListed&&V.title&&(J=new UK(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),J.rW(O),J.init(i6("ad-title"),{text:V.title},this.macros),g.t(this,J)),this.D=O);this.U=null;this.LD=this.DN("ytp-ad-player-overlay-skip-or-preview");this.ol=this.DN("ytp-ad-player-overlay-progress-bar"); this.dW=this.DN("ytp-ad-player-overlay-instream-user-sentiment");this.lw=this.DN("ytp-ad-player-overlay-ad-disclosure-banner");this.j=l;g.t(this,this.j);this.hide()}; RKo=function(O){O=O.api.Y();return g.pJ(O)&&O.j}; g.fJ=function(O){O&=16777215;var V=[(O&16711680)>>16,(O&65280)>>8,O&255];O=V[0];var J=V[1];V=V[2];O=Number(O);J=Number(J);V=Number(V);if(O!=(O&255)||J!=(J&255)||V!=(V&255))throw Error('"('+O+","+J+","+V+'") is not a valid RGB color');J=O<<16|J<<8|V;return O<16?"#"+(16777216|J).toString(16).slice(1):"#"+J.toString(16)}; hg=function(){}; BEr=function(){}; kbn=function(O){var V=new WG;var J=new x9;J=is(J,1,"botguard");O=is(J,2,O);this.K=y8o(V,x9,1,PjV,O)}; g.E9=function(){if(!o0){o0=new Xk(new BEr);var O=Z3("client_streamz_web_flush_count",-1);O!==-1&&(o0.U=O)}return o0}; vS=function(O){this.K=new YF(O)}; S$1=function(){var O=!1;try{O=!!window.sessionStorage.getItem("session_logininfo")}catch(V){O=!0}return(g.ts("INNERTUBE_CLIENT_NAME")==="WEB"||g.ts("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&O}; w_=function(){var O=O===void 0?!0:O;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");KV("LOGIN_INFO","");O&&window.sessionStorage.setItem("from_switch_account","1");O=!0;O=O===void 0?!1:O;var V,J=Dvr;J||(J=document.querySelector("#persist_identity"));if(V=J){var y=V.src?(new URL(V.src)).origin:"*";if(O){var l;(l=V.contentWindow)==null||l.postMessage({action:"clear"},y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var m=window.sessionStorage.getItem("session_logininfo");if(m){var H;(H=V.contentWindow)==null||H.postMessage({loginInfo:m},y)}}}}catch(F){}}; Mw=function(O){O&&(O.startsWith("https://accounts.google.com/AddSession")?w_():O.startsWith("https://accounts.google.com/ServiceLogin")?w_():O.startsWith("https://myaccount.google.com")&&g.fn(O).j.endsWith("/youtubeoptions")&&w_());if(g.ts("LOGGED_IN",!0)&&S$1()){var V=g.ts("VALID_SESSION_TEMPDATA_DOMAINS",[]);var J=g.sd(window.location.href);J&&V.push(J);J=g.sd(O);g.Kd(V,J)||!J&&Gv(O,"/")?(V=eH(O),(V=x_p(V))?(V=Nr1(V),V=(V=g.Mz(V)||null)?y7(V):{}):V=null):V=null;V==null&&(V={});J=V;var y=void 0; S$1()?(y||(y=g.ts("LOGIN_INFO")),y?(J.session_logininfo=y,J=!0):J=!1):J=!1;J&&xb(O,V)}}; g.OHo=function(O){var V=V===void 0?{}:V;var J=J===void 0?"":J;var y=y===void 0?window:y;O=g.pp(O,V);Mw(O);J=g.sD(O+J);y=y.location;J=Tk(J);J!==void 0&&(y.href=J)}; g.LJ=function(O,V,J){V=V===void 0?{}:V;J=J===void 0?!1:J;var y=g.ts("EVENT_ID");y&&(V.ei||(V.ei=y));V&&xb(O,V);J||(Mw(O),g.OHo(O))}; g.nJ=function(O,V,J,y,l){l=l===void 0?!1:l;J&&xb(O,J);J=g.sD(O);var m=g.Z6(J);O!=m&&R4(Error("Unsafe window.open URL: "+O));O=m;V=V||Gk(O).toString(36);try{if(l)return l=O,l=QfU(l),Mw(l),g.pa(window,l,V,"attributionsrc")}catch(H){g.rG(H)}Mw(O);return g.pa(window,J,V,y)}; VAd=function(O){X6=O}; JDV=function(O){EK=O}; yDn=function(O){d_=O}; mVd=function(){lVo=d_=EK=X6=null}; HHr=function(){var O=O===void 0?window.location.href:O;if(g.Ut("kevlar_disable_theme_param"))return null;var V=Tu(O);if(g.Ut("enable_dark_theme_only_on_shorts")&&V!=null&&V.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var J=g.SB(O).theme;return $VH.get(J)||null}catch(y){}return null}; g_=function(){this.K={};if(this.j=B4V()){var O=g.Mz("CONSISTENCY");O&&jjX(this,{encryptedTokenJarContents:O})}}; jjX=function(O,V){if(V.encryptedTokenJarContents&&(O.K[V.encryptedTokenJarContents]=V,typeof V.expirationSeconds==="string")){var J=Number(V.expirationSeconds);setTimeout(function(){delete O.K[V.encryptedTokenJarContents]},J*1E3); O.j&&g.wr("CONSISTENCY",V.encryptedTokenJarContents,J,void 0,!0)}}; Qk=function(){this.j=-1;var O=g.ts("LOCATION_PLAYABILITY_TOKEN");g.ts("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=qw(this))&&(O=this.localStorage.get("yt-location-playability-token"));O&&(this.locationPlayabilityToken=O,this.K=void 0)}; qw=function(O){return O.localStorage===void 0?new PC("yt-client-location"):O.localStorage}; g.GE=function(O,V,J){V=V===void 0?!1:V;J=J===void 0?!1:J;var y=g.ts("INNERTUBE_CONTEXT");if(!y)return g.sk(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};y=g.pu(y);g.Ut("web_no_tracking_params_in_shell_killswitch")||delete y.clickTracking;y.client||(y.client={});var l=y.client;l.clientName==="MWEB"&&l.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(l.clientFormFactor=g.ts("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");l.screenWidthPoints=window.innerWidth;l.screenHeightPoints= window.innerHeight;l.screenPixelDensity=Math.round(window.devicePixelRatio||1);l.screenDensityFloat=window.devicePixelRatio||1;l.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var m=m===void 0?!1:m;var H=g.E$(),F="USER_INTERFACE_THEME_LIGHT";H.s5(165)?F="USER_INTERFACE_THEME_DARK":H.s5(174)?F="USER_INTERFACE_THEME_LIGHT":!g.Ut("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (F="USER_INTERFACE_THEME_DARK");m=m?F:HHr()||F;l.userInterfaceTheme=m;if(!V){if(m=nUo())l.connectionType=m;g.Ut("web_log_effective_connection_type")&&(m=EUd())&&(y.client.effectiveConnectionType=m)}var N;if(g.Ut("web_log_memory_total_kbytes")&&((N=g.Z1.navigator)==null?0:N.deviceMemory)){var x;N=(x=g.Z1.navigator)==null?void 0:x.deviceMemory;y.client.memoryTotalKbytes=""+N*1E6}g.Ut("web_gcf_hashes_innertube")&&(m=tLX())&&(x=m.coldConfigData,N=m.coldHashData,m=m.hotHashData,y.client.configInfo=y.client.configInfo|| {},x&&(y.client.configInfo.coldConfigData=x),N&&(y.client.configInfo.coldHashData=N),m&&(y.client.configInfo.hotHashData=m));x=g.SB(g.Z1.location.href);!g.Ut("web_populate_internal_geo_killswitch")&&x.internalcountrycode&&(l.internalGeo=x.internalcountrycode);l.clientName==="MWEB"||l.clientName==="WEB"?(l.mainAppWebInfo||(l.mainAppWebInfo={}),l.mainAppWebInfo.graftUrl=g.Z1.location.href,g.Ut("kevlar_woffle")&&fNY.instance&&(x=fNY.instance,l.mainAppWebInfo.pwaInstallabilityStatus=!x.K&&x.j?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),l.mainAppWebInfo.webDisplayMode=Lz(),l.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):l.clientName==="TVHTML5"&&(!g.Ut("web_lr_app_quality_killswitch")&&(x=g.ts("LIVING_ROOM_APP_QUALITY"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{appQuality:x})),x=g.ts("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{certificationScope:x}));if(!g.Ut("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var W=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(u){}W=void 0}W&&(l.timeZone=W)}(W=z8())?l.experimentsToken=W:delete l.experimentsToken;W=cv();g_.instance||(g_.instance=new g_);y.request=Object.assign({},y.request,{internalExperimentFlags:W,consistencyTokenJars:zv(g_.instance.K)});!g.Ut("web_prequest_context_killswitch")&&(W=g.ts("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(y.request.externalPrequestContext=W);l=g.E$();W=l.s5(58);l=l.get("gsml","");y.user=Object.assign({}, y.user);W&&(y.user.enableSafetyMode=W);l&&(y.user.lockedSafetyMode=!0);g.Ut("warm_op_csn_cleanup")?J&&(V=g.Fe())&&(y.clientScreenNonce=V):!V&&(V=g.Fe())&&(y.clientScreenNonce=V);O&&(y.clickTracking={clickTrackingParams:O});if(O=g.cn("yt.mdx.remote.remoteClient_"))y.remoteClient=O;Qk.getInstance().setLocationOnInnerTubeContext(y);try{var U=$g(),Z=U.bid;delete U.bid;y.adSignalsInfo={params:[],bid:Z};for(var z=g.n(Object.entries(U)),c=z.next();!c.done;c=z.next()){var Y=g.n(c.value),b=Y.next().value, M=Y.next().value;U=b;Z=M;O=void 0;(O=y.adSignalsInfo.params)==null||O.push({key:U,value:""+Z})}var w,L;if(((w=y.client)==null?void 0:w.clientName)==="TVHTML5"||((L=y.client)==null?void 0:L.clientName)==="TVHTML5_UNPLUGGED"){var X=g.ts("INNERTUBE_CONTEXT");X.adSignalsInfo&&(y.adSignalsInfo.advertisingId=X.adSignalsInfo.advertisingId,y.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",y.adSignalsInfo.limitAdTracking=X.adSignalsInfo.limitAdTracking)}}catch(u){g.sk(u)}return y}; N9p=function(O,V){if(!O)return!1;var J,y=(J=g.e(O,CH1))==null?void 0:J.signal;if(y&&V.WI)return!!V.WI[y];var l;if((J=(l=g.e(O,FNX))==null?void 0:l.request)&&V.bC)return!!V.bC[J];for(var m in O)if(V.QP[m])return!0;return!1}; xVr=function(O){var V={"Content-Type":"application/json"};g.ts("EOM_VISITOR_DATA")?V["X-Goog-EOM-Visitor-Id"]=g.ts("EOM_VISITOR_DATA"):g.ts("VISITOR_DATA")&&(V["X-Goog-Visitor-Id"]=g.ts("VISITOR_DATA"));V["X-Youtube-Bootstrap-Logged-In"]=g.ts("LOGGED_IN",!1);g.ts("DEBUG_SETTINGS_METADATA")&&(V["X-Debug-Settings-Metadata"]=g.ts("DEBUG_SETTINGS_METADATA"));O!=="cors"&&((O=g.ts("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(V["X-Youtube-Client-Name"]=O),(O=g.ts("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(V["X-Youtube-Client-Version"]= O),(O=g.ts("CHROME_CONNECTED_HEADER"))&&(V["X-Youtube-Chrome-Connected"]=O),(O=g.ts("DOMAIN_ADMIN_STATE"))&&(V["X-Youtube-Domain-Admin-State"]=O));(O=g.ts("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(V["X-YouTube-Lava-Device-Context"]=O);return V}; WNV=function(){this.K={}}; KJ=function(){this.mappings=new WNV}; UVp=function(O){return ch[C[8]](this,57,O)}; tg=function(O){return function(){return new O}}; z5Y=function(O){var V=V===void 0?"UNKNOWN_INTERFACE":V;if(O.length===1)return O[0];var J=ZHr[V];if(J){J=new RegExp(J);for(var y=g.n(O),l=y.next();!l.done;l=y.next())if(l=l.value,J.exec(l))return l}var m=[];Object.entries(ZHr).forEach(function(H){var F=g.n(H);H=F.next().value;F=F.next().value;V!==H&&m.push(F)}); J=new RegExp(m.join("|"));O.sort(function(H,F){return H.length-F.length}); y=g.n(O);for(l=y.next();!l.done;l=y.next())if(l=l.value,!J.exec(l))return l;return O[0]}; g.u1=function(O){return"/youtubei/v1/"+z5Y(O)}; Ag=function(){}; r_=function(){}; i1=function(){}; R0=function(O){return g.cn("ytcsi."+(O||"")+"data_")||cDo(O)}; sjd=function(){var O=R0();O.info||(O.info={});return O.info}; BS=function(O){O=R0(O);O.metadata||(O.metadata={});return O.metadata}; PS=function(O){O=R0(O);O.tick||(O.tick={});return O.tick}; ko=function(O){O=R0(O);if(O.gel){var V=O.gel;V.gelInfos||(V.gelInfos={});V.gelTicks||(V.gelTicks={})}else O.gel={gelTicks:{},gelInfos:{}};return O.gel}; T9o=function(O){O=ko(O);O.gelInfos||(O.gelInfos={});return O.gelInfos}; So=function(O){var V=R0(O).nonce;V||(V=g.mR(16),R0(O).nonce=V);return V}; cDo=function(O){var V={tick:{},info:{}};g.zD("ytcsi."+(O||"")+"data_",V);return V}; Df=function(){var O=g.cn("ytcsi.debug");O||(O=[],g.zD("ytcsi.debug",O),g.zD("ytcsi.reference",{}));return O}; OB=function(O){O=O||"";var V=e5p();if(V[O])return V[O];var J=Df(),y={timerName:O,info:{},tick:{},span:{},jspbInfo:[]};J.push(y);return V[O]=y}; IVo=function(O){O=O||"";var V=e5p();V[O]&&delete V[O];var J=Df(),y={timerName:O,info:{},tick:{},span:{},jspbInfo:[]};J.push(y);V[O]=y}; e5p=function(){var O=g.cn("ytcsi.reference");if(O)return O;Df();return g.cn("ytcsi.reference")}; V6=function(O){return YNh[O]||"LATENCY_ACTION_UNKNOWN"}; Jd=function(O,V){m4.call(this,1,arguments);this.timer=V}; y6=function(){this.K=0}; ln=function(){y6.instance||(y6.instance=new y6);return y6.instance}; $z=function(O,V){mA[V]=mA[V]||{count:0};var J=mA[V];J.count++;J.time=(0,g.cH)();O.K||(O.K=g.AG(0,function(){var y=(0,g.cH)(),l;for(l in mA)mA[l]&&y-mA[l].time>6E4&&delete mA[l];O&&(O.K=0)},5E3)); return J.count>5?(J.count===6&&Math.random()*1E5<1&&(J=new g.pn("CSI data exceeded logging limit with key",V.split("_")),V.indexOf("plev")>=0||g.en(J)),!0):!1}; aVH=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; bHr=function(){var O;if(g.Ut("csi_use_performance_navigation_timing")){var V,J,y,l=H7==null?void 0:(O=H7.getEntriesByType)==null?void 0:(V=O.call(H7,"navigation"))==null?void 0:(J=V[0])==null?void 0:(y=J.toJSON)==null?void 0:y.call(J);l?(l.requestStart=j4(l.requestStart),l.responseEnd=j4(l.responseEnd),l.redirectStart=j4(l.redirectStart),l.redirectEnd=j4(l.redirectEnd),l.domainLookupEnd=j4(l.domainLookupEnd),l.connectStart=j4(l.connectStart),l.connectEnd=j4(l.connectEnd),l.responseStart=j4(l.responseStart), l.secureConnectionStart=j4(l.secureConnectionStart),l.domainLookupStart=j4(l.domainLookupStart),l.isPerformanceNavigationTiming=!0,O=l):O=H7.timing}else O=g.Ut("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(H7.timing)):H7.timing;return O}; j4=function(O){return Math.round(CU()+O)}; CU=function(){return(g.Ut("csi_use_time_origin")||g.Ut("csi_use_time_origin_tvhtml5"))&&H7.timeOrigin?Math.floor(H7.timeOrigin):H7.timing.navigationStart}; NF=function(O,V){F$("_start",O,V)}; xz=function(O,V){if(!g.Ut("web_csi_action_sampling_enabled")||!R0(V).actionDisabled){var J=OB(V||"");SY(J.info,O);O.loadType&&(J=O.loadType,BS(V).loadType=J);SY(T9o(V),O);J=So(V);V=R0(V).cttAuthInfo;ln().info(O,J,V)}}; pH5=function(){var O,V,J,y;return((y=c5().resolve(xt(O8))==null?void 0:(O=Vz())==null?void 0:(V=O.loggingHotConfig)==null?void 0:(J=V.csiConfig)==null?void 0:J.debugTicks)!=null?y:[]).map(function(l){return Object.values(l)[0]})}; F$=function(O,V,J){if(!g.Ut("web_csi_action_sampling_enabled")||!R0(J).actionDisabled){var y=So(J),l;if(l=g.Ut("web_csi_debug_sample_enabled")&&y){(c5().resolve(xt(O8))==null?0:Vz())&&!fVH&&(fVH=!0,F$("gcfl",(0,g.cH)(),J));var m,H,F;l=(c5().resolve(xt(O8))==null?void 0:(m=Vz())==null?void 0:(H=m.loggingHotConfig)==null?void 0:(F=H.csiConfig)==null?void 0:F.debugSampleWeight)||0;if(m=l!==0)b:{m=pH5();if(m.length>0)for(H=0;HJ.duration?y:J},{duration:0}))&&V.startTime>0&&V.responseEnd>0&&(F$("wffs",j4(V.startTime)),F$("wffe",j4(V.responseEnd)))}; nPV=function(O,V,J){H7&&H7.measure&&(O.startsWith("measure_")||(O="measure_"+O),J?H7.measure(O,V,J):V?H7.measure(O,V):H7.measure(O))}; XHo=function(O){var V=W7("aft",O);if(V)return V;V=g.ts((O||"")+"TIMING_AFT_KEYS",["ol"]);for(var J=V.length,y=0;y0&&xz(V);V={isNavigation:!0,actionType:V6(g.ts("TIMING_ACTION"))};var J=g.ts("PREVIOUS_ACTION");J&&(V.previousAction=V6(J));if(J=g.ts("CLIENT_PROTOCOL"))V.httpProtocol=J;if(J=g.ts("CLIENT_TRANSPORT"))V.transportProtocol=J;(J=g.Fe())&&J!=="UNDEFINED_CSN"&&(V.clientScreenNonce=J);J=vP7();if(J===1||J===-1)V.isVisible= !0;J=BS().loadType==="cold";var y=sjd();J||(J=y.yt_lt==="cold");if(J){V.loadType="cold";J=sjd();y=bHr();var l=CU(),m=g.ts("CSI_START_TIMESTAMP_MILLIS",0);m>0&&!g.Ut("embeds_web_enable_csi_start_override_killswitch")&&(l=m);l&&(F$("srt",y.responseStart),J.prerender!==1&&NF(l));J=gPX();J>0&&F$("fpt",J);J=bHr();J.isPerformanceNavigationTiming&&xz({performanceNavigationTiming:!0},void 0);F$("nreqs",J.requestStart,void 0);F$("nress",J.responseStart,void 0);F$("nrese",J.responseEnd,void 0);J.redirectEnd- J.redirectStart>0&&(F$("nrs",J.redirectStart,void 0),F$("nre",J.redirectEnd,void 0));J.domainLookupEnd-J.domainLookupStart>0&&(F$("ndnss",J.domainLookupStart,void 0),F$("ndnse",J.domainLookupEnd,void 0));J.connectEnd-J.connectStart>0&&(F$("ntcps",J.connectStart,void 0),F$("ntcpe",J.connectEnd,void 0));J.secureConnectionStart>=CU()&&J.connectEnd-J.secureConnectionStart>0&&(F$("nstcps",J.secureConnectionStart,void 0),F$("ntcpe",J.connectEnd,void 0));H7&&"getEntriesByType"in H7&&LNp();J=[];if(document.querySelector&& H7&&H7.getEntriesByName)for(var H in zJ)zJ.hasOwnProperty(H)&&(y=zJ[H],MAH(H,y)&&J.push(y));if(J.length>0)for(V.resourceInfo=[],H=g.n(J),J=H.next();!J.done;J=H.next())V.resourceInfo.push({resourceCache:J.value})}xz(V);V=ko();V.preLoggedGelInfos||(V.preLoggedGelInfos=[]);H=V.preLoggedGelInfos;V=T9o();J=void 0;for(y=0;y-1&&(delete Tr["@type"],k=Tr);Y&&O.j.has(Y)&&O.j.delete(Y);((ys=V.config)==null?0:ys.DUv)&&sB(V.config.DUv);if(k||(JI=O.D)==null||!JI.K$z(V.input,V.Hi)){nn.uw(11);break}return nn.K(O.D.Q3N(V.input,V.Hi),12);case 12:k=nn.U;case 11:return hd(O, k,V),((uX=V.config)==null?0:uX.Y7X)&&sB(V.config.Y7X),y(),nn.return(k||void 0)}})}; kfo=function(O,V){a:{O=O.jo;var J,y=(J=g.e(V,CH1))==null?void 0:J.signal;if(y&&O.WI&&(J=O.WI[y])){var l=J();break a}var m;if((J=(m=g.e(V,FNX))==null?void 0:m.request)&&O.bC&&(m=O.bC[J])){l=m();break a}for(l in V)if(O.QP[l]&&(V=O.QP[l])){l=V();break a}l=void 0}if(l!==void 0)return Promise.resolve(l)}; DVl=function(O,V,J){var y,l,m,H,F,N,x;return g.Q(function(W){if(W.j==1){m=((y=V)==null?void 0:(l=y.qN)==null?void 0:l.identity)||l0;N=(H=V)==null?void 0:(F=H.qN)==null?void 0:F.sessionIndex;var U=W.K;var Z=g.f3(O.K.aU(m,{sessionIndex:N}));return U.call(W,Z,2)}x=W.U;return W.return(Promise.resolve(Object.assign({},xVr(J),x)))})}; SNX=function(O,V,J){var y,l=(V==null?void 0:(y=V.qN)==null?void 0:y.identity)||l0,m;V=V==null?void 0:(m=V.qN)==null?void 0:m.sessionIndex;O=O.K.aU(l,{sessionIndex:V});return Object.assign({},xVr(J),O)}; oc=function(){}; v7=function(){}; w6=function(O){this.V=O}; MF=function(){}; LU=function(){}; nU=function(){}; X$=function(){}; EB=function(O,V){this.clientName=O;this.j=V}; d6=function(O){this.data=Object.assign({},O);var V;(V=this.data.innertubeResponse)==null||delete V.frameworkUpdates}; yS1=function(O){return Object.assign({},O.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})}; g6=function(){EB.apply(this,arguments);this.K=new Map}; $cX=function(O,V,J){var y,l,m;return g.Q(function(H){y=O.j;J.expireTimestampMs&&(y=Number(J.expireTimestampMs)-Math.round((0,g.cH)()),l=Z3("mweb_override_response_store_expiration_ms"),l>0&&l0){var l=O.K.Hs();l=g.n(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var H=HO5(O.K,m);if(H){var F=yS1(H);a:{var N=void 0;H=F4r(y);F=((N=(new C0X(F)).K)==null?void 0:N.relevantStateTags)||[];N=g.n(F);for(F=N.next();!F.done;F=N.next())if(F=F.value,F.stateTag!=null&&H.includes(F.stateTag)&&F.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){H=!0;break a}H=!1}H&&jFH(O.K,m)}}}}var x;y=(x=V.responseContext)== null?void 0:x.maxAgeSeconds;if(J&&y&&Number(y)>0){var W=W===void 0?!0:W;x=Number(y)*1E3;y=Math.round((0,g.cH)());l=y.toString();V={innertubeResponse:V,serverDateTimestampMs:l,lastModifiedTimestampMs:l,expireTimestampMs:(y+x).toString(),isProcessed:W};if(W=g.ts("INNERTUBE_CONTEXT_CLIENT_NAME"))V.clientName=W;O.K.put(J,new d6(V))}}; g.GJ=function(O,V){var J=g.jF.apply(2,arguments);O=O===void 0?0:O;g.pn.call(this,V,J);this.errorType=O;Object.setPrototypeOf(this,this.constructor.prototype)}; KU=function(O){this.K=O}; NSH=function(O,V,J){if(O.K){var y=Tu(wb(V,"key"))||"/UNKNOWN_PATH";O.K.start(y)}O=J;g.Ut("wug_networking_gzip_request")&&(O=sfY(J));return new window.Request(V,O)}; g.B7=function(O,V,J){if(!td){var y=c5();W5(y,{IT:xcr,BM:KU});if(J==null?0:J.wb){W5(y,{IT:un,QT:g.ts("INNERTUBE_CONTEXT_CLIENT_NAME",J.clientInterface)});W5(y,{IT:Ad,QT:5184E6});var l={};W5(y,(l.IT=r6,l.BM=g6,l[UZ]=[un,Ad],l));W5(y,{IT:Rc,BM:qF});l=y.resolve(Rc);var m=window;if(m.ytInitialVideoId){var H=m.ytInitialVideoId;m.ytInitialPlayerResponse&&Q6(l,m.ytInitialPlayerResponse,dr("player",{videoId:H}));m.ytInitialWatchNextResponse&&Q6(l,m.ytInitialWatchNextResponse,dr("next",{videoId:H}));m.ytInitialReelItemWatchResponse&& Q6(l,m.ytInitialReelItemWatchResponse,dr("reel_item_watch",{videoId:H}))}}l={QP:{feedbackEndpoint:tg(MF),modifyChannelNotificationPreferenceEndpoint:tg(LU),playlistEditEndpoint:tg(nU),shareEntityEndpoint:tg(w6),subscribeEndpoint:tg(oc),unsubscribeEndpoint:tg(v7),webPlayerShareEntityServiceEndpoint:tg(X$)}};H=Qk.getInstance();m={};H&&(m.client_location=H);if(J==null?0:J.wb)H=y.resolve(Rc),m.store=H;O===void 0&&(O=h1X());V===void 0&&(V=y.resolve(xcr));PH7(l,V,O,m,(J==null?0:J.wb)?y.resolve(r6):void 0); W5(y,{IT:W4V,QT:bn.instance});td=y.resolve(W4V)}return td}; P7=function(O){var V={};O=O.split("&");O=g.n(O);for(var J=O.next();!J.done;J=O.next())J=J.value.split("="),J.length===2&&(V[J[0]]=J[1]);return V}; Ucr=function(){var O=O===void 0?window:O;var V,J;return g.Q(function(y){if(y.j==1)return y.K(yC(),2);V=O;J=V.bgevmc;if(!J)throw Error("BGE Controls not exposed");return y.return({pause:function(){J.p()}, resume:function(){J.r()}, checkForRefresh:function(){return J.cr()}})})}; y4Y=function(){if(g.Ut("bg_st_hr"))return"havuokmhhs-0";var O,V=((O=globalThis.performance)==null?void 0:O.timeOrigin)||0;return"havuokmhhs-"+Math.floor(V)}; kz=function(O){window.bgens=O}; S4=function(O){this.K=O}; ZOU=function(){return new Promise(function(O){var V=window;V.ntpevasrs!==void 0?O(new S4(V.ntpevasrs)):(V.ntpqfbel===void 0&&(V.ntpqfbel=[]),V.ntpqfbel.push(function(J){O(new S4(J))}))})}; sFH=function(){if(D3()){var O=g.ts("PLAYER_VARS",{});if(g.Ym(O,"privembed",!1)!="1"&&!VJl(O)){var V=function(){Da=!0;"google_ad_status"in window?KV("DCLKSTAT",1):KV("DCLKSTAT",2)}; try{var J=fa(document);g.RF(zBn,V,J)}catch(y){}cSY.push(g.E7.nf(function(){if(!(Da||"google_ad_status"in window)){try{if(zBn.toString()&&V){var y=""+g.pd(V),l=D2h[y];l&&g.rS(l)}}catch(m){}Da=!0;KV("DCLKSTAT",3)}},5E3))}}}; Ox=function(){var O=Number(g.ts("DCLKSTAT",0));return isNaN(O)?0:O}; yK=function(O,V,J){var y=this;this.network=O;this.options=V;this.D=J;this.U=0;this.K=null;this.j=new kOl;V.PV5?VK(this,TSo(this)):V.preload&&VK(this,new Promise(function(l){g.AG(0,function(){l(Jo(y))},0)}))}; TSo=function(O){var V,J,y,l,m,H;return g.Q(function(F){if(F.j==1)return V=g.Z1,V.ytAtRC?(J=Z3("att_init_delay",0),dEY(function(){var N,x;return g.Q(function(W){if(W.j==1){if(!V.ytAtRC)return O.j.gN(6,O.U++),W.return();O.j.gN(2,O.U++);N=lc(null);return W.K(m_(O,N),2)}x=W.U;V.ytAtRC&&V.ytAtRC(JSON.stringify(x));W.V()})},J)):O.j.gN(1,O.U++),F.K(ZOU(),2); if(F.j!=3)return y=F.U,y.bindInnertubeChallengeFetcher(function(N){O.j.gN(3,O.U++);return m_(O,lc(N))}),y.registerChallengeFetchedCallback(function(N){N=N.challenge; if(!N)throw Error("BGE_MACR");N={challenge:N,Td:P7(N),jj:l,bgChallenge:new ma};N=Promise.resolve(N);O.K=N}),F.K(yC(),3); l=F.U;m=y.getLatestChallengeResponse();H=m.challenge;if(!H)throw Error("BGE_MACIL");return F.return({challenge:H,Td:P7(H),jj:l,bgChallenge:new ma})})}; lc=function(O){var V={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};O&&(V.interpreterHash=O);return V}; Jo=function(O){var V,J,y,l,m,H,F,N,x;return g.Q(function(W){switch(W.j){case 1:return V=lc(FP().K),W.W(2),W.K(eBn(O,V),4);case 4:J=W.U;W.S(3);break;case 2:return W.D(),g.en(Error("Failed to fetch attestation challenge after 5 attempts; not retrying for 24h.")),Ijr(O,864E5),W.return({challenge:"",Td:{},jj:void 0,bgChallenge:void 0});case 3:y=J.dqD;l=J.OuW;m=Number(l.t)||7200;Ijr(O,m*1E3);H=void 0;if(!("c1a"in l&&J.bgChallenge)){W.uw(5);break}var U=J.bgChallenge,Z=new ma;if(U.interpreterJavascript){var z= UUr(U.interpreterJavascript);z=oG(z).toString();var c=new yv;is(c,6,z);Ef(Z,yv,1,c,Jc)}else U.interpreterUrl&&(z=eB(U.interpreterUrl),z=WZ(z).toString(),c=new lN,is(c,4,z),Ef(Z,lN,2,c,Jc));U.interpreterHash&&Rt(Z,3,U.interpreterHash,Jc);U.program&&Rt(Z,4,U.program,Jc);U.globalName&&Rt(Z,5,U.globalName,Jc);U.clientExperimentsStateBlob&&Rt(Z,7,U.clientExperimentsStateBlob,Jc);F=Z;W.W(6);return W.K(O1r(FP(),F),8);case 8:W.S(7);break;case 6:return N=W.D(),g.en(N),W.return({challenge:y,Td:l,jj:H,bgChallenge:F}); case 7:return W.W(9),H=new jJ({challenge:F,Ez:{Bh:"aGIf"}}),W.K(H.zY,11);case 11:W.S(5);break;case 9:x=W.D(),g.en(x),H=void 0;case 5:return W.return({challenge:y,Td:l,jj:H,bgChallenge:F})}})}; Y8Y=function(O,V){var J;return g.Q(function(y){if(y.j==1)return kz(2),y.W(2),y.K(m_(O.network,V),4);if(y.j!=2)return(J=y.U)?J.challenge&&!J.bgChallenge?kz(1):kz(4):kz(3),y.return(J);y.D();kz(3);return y.return(void 0)})}; m_=function(O,V){var J;return g.Q(function(y){J=O.D;if(!J||J.fE())return y.return(Y8Y(O,V));ac("att_pna",void 0,"attestation_challenge_fetch");return y.return(new Promise(function(l){J.lF("publicytnetworkstatus-online",function(){Y8Y(O,V).then(l)})}))})}; ajH=function(O){if(!O)throw Error("Fetching Attestation challenge returned falsy");if(!O.challenge)throw Error("Missing Attestation challenge");var V=O.challenge,J=P7(V);if("c1a"in J&&(!O.bgChallenge||!O.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},O,{dqD:V,OuW:J})}; eBn=function(O,V){var J,y,l,m,H;return g.Q(function(F){switch(F.j){case 1:J=void 0,y=0,l={};case 2:if(!(y<5)){F.uw(4);break}if(!(y>0)){F.uw(5);break}l.nX=1E3*Math.pow(2,y-1)+Math.random()*1E3;return F.K(new Promise(function(N){return function(x){g.AG(0,function(){x(void 0)},N.nX)}}(l)),5); case 5:return F.W(7),O.j.gN(4,O.U++),F.K(m_(O,V),9);case 9:return m=F.U,F.return(ajH(m));case 7:J=H=F.D(),H instanceof Error&&g.en(H);case 8:y++;l={nX:void 0};F.uw(2);break;case 4:throw J;}})}; VK=function(O,V){O.K=V}; bOp=function(O){var V,J,y;return g.Q(function(l){if(l.j==1)return l.K(Promise.race([O.K,null]),2);V=l.U;var m=Jo(O);O.K=m;(J=V)==null||(y=J.jj)==null||y.dispose();l.V()})}; Ijr=function(O,V){function J(){var l;return g.Q(function(m){l=y-Date.now();return l<1E3?m.K(bOp(O),0):(uj(J,0,Math.min(l,6E4)),m.uw(0))})} var y=Date.now()+V;J()}; pk1=function(O,V){return new Promise(function(J){g.AG(0,function(){J(V())},O)})}; fj1=function(){return new Promise(function(O){var V=window;V.attmp!==void 0?O(V.attmp):(V.attmq===void 0&&(V.attmq=[]),V.attmq.push(function(J){O(J)}))})}; g.hBd=function(O,V){var J,y,l;return g.Q(function(m){if(m.j==1){if(!g.Ut("attmusi")||!g.Ut("attmusi_ue"))return m.uw(2);J=window;return J.attmp!==void 0?m.return(J.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",O,V)):m.K(fj1(),3)}if(m.j!=2)return y=m.U,m.return(y.s("ENGAGEMENT_TYPE_PLAYBACK",O,V));var H=g.cn("yt.aba.att");return(l=H?H:yK.instance!==void 0?yK.instance.W.bind(yK.instance):null)?m.return(l("ENGAGEMENT_TYPE_PLAYBACK",O,V)):m.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.oRn=function(){var O,V,J;return g.Q(function(y){if(y.j==1){if(!g.Ut("attmusi")||!g.Ut("attmusi_ue"))return y.uw(2);O=window;return O.attmp===void 0?y.return(!1):y.K(fj1(),3)}if(y.j!=2)return V=y.U,y.return(V.ir());var l=g.cn("yt.aba.att2");return(J=l?l:yK.instance!==void 0?yK.instance.V.bind(yK.instance):null)?y.return(J()):y.return(Promise.resolve(!1))})}; wkn=function(O,V){var J=g.cn("ytDebugData.callbacks");J||(J={},g.zD("ytDebugData.callbacks",J));if(g.Ut("web_dd_iu")||vRo.includes(O))J[O]=V}; L4h=function(O){for(var V="",J=0;J=0||hZ(O,0,"gad_source",O.search(oL))>=0}; GSo=function(){this.K=new Map}; tYr=function(O,V){var J=c5().resolve(K4r);if(QFo(V)){var y=v$(V,"gclid");V={handleEvent:function(F){O&&!O.closed&&typeof O.postMessage==="function"&&F&&F.origin&&F.source===O&&F.data&&F.data.action==="gcl_setup"&&O.postMessage(Object.assign({},{action:"gcl_transfer"},y&&{gclid:y},{gadSource:2}),F.origin)}}; for(var l=g.n(J.K),m=l.next();!m.done;m=l.next()){var H=g.n(m.value);m=H.next().value;H=H.next().value;if(m.closed)try{window.removeEventListener("message",H),J.K.delete(m)}catch(F){g.sk(F)}}O&&J.K.size<15&&(J.K.set(O,V),window.addEventListener("message",V))}}; $L=function(O,V,J){if(!V)return O.length>=1?O[O.length-1]:null;for(var y=g.n(O),l=y.next();!l.done;l=y.next())if(l=l.value,l.width&&l.height&&(J&&l.width>=V||!J&&l.height>=V))return l;for(V=O.length-1;V>=0;V--)if(J&&O[V].width||!J&&O[V].height)return O[V];return O[0]}; Hf=function(){this.state=1;this.jj=null;this.bV=void 0}; ASX=function(O,V,J,y,l,m){var H=H===void 0?"trayride":H;J?(O.gX(2),g.RF(g.I4(J),function(){if(window[H])ufH(O,y,H,l);else{O.gX(3);var F=SgY(J),N=document.getElementById(F);N&&(Pkp(F),N.parentNode.removeChild(N));g.en(new g.pn("BL:ULB",""+J))}},m)):V?(m=g.I1("SCRIPT"),V instanceof ha?(m.textContent=oG(V),vZ(m)):m.textContent=V,m.nonce=fa(document),document.head.appendChild(m),document.head.removeChild(m),window[H]?ufH(O,y,H,l):(O.gX(4),g.en(new g.pn("BL:ULBJ")))):g.en(new g.pn("BL:ULV"))}; ufH=function(O,V,J,y){O.gX(5);var l=!!O.bV&&rS1.includes(g.sd(O.bV)||"");try{var m=new jJ({program:V,globalName:J,Ez:{disable:!g.Ut("att_web_record_metrics")||!g.Ut("att_skip_metrics_for_cookieless_domains_ks")&&l,Bh:"aGIf"}});m.zY.then(function(){O.gX(6);y&&y(V)}); O.x4(m)}catch(H){O.gX(7),H instanceof Error&&g.en(H)}}; jm=function(){var O=g.cn("yt.abuse.playerAttLoader");return O&&["bgvma","bgvmb","bgvmc"].every(function(V){return V in O})?O:null}; CR=function(){Hf.apply(this,arguments)}; FS=function(O){this.ME=O}; iOU=function(O,V,J){for(var y=!1,l=g.n(O.UC.entries()),m=l.next();!m.done;m=l.next())m=g.n(m.value).next().value,m.slotType==="SLOT_TYPE_PLAYER_BYTES"&&m.PE==="core"&&(y=!0);if(y){a:if(!J){O=g.n(O.UC.entries());for(J=O.next();!J.done;J=O.next())if(y=g.n(J.value),J=y.next().value,y=y.next().value,J.slotType==="SLOT_TYPE_IN_PLAYER"&&J.PE==="core"){J=y.layoutId;break a}J=void 0}J?V.kL(J):DJ("No triggering layout ID available when attempting to mute.")}}; N9=function(O,V){this.Bc=O;this.w6=V}; xL=function(){}; Wf=function(){}; BSU=function(O){g.K.call(this);var V=this;this.NI=O;this.K=new Map;Ux(this,"commandExecutorCommand",function(J,y,l){RBr(V,J.commands,y,l)}); Ux(this,"clickTrackingParams",function(){})}; P0n=function(O,V){Ux(O,V.UI(),function(J,y,l){V.H4(J,y,l)})}; Ux=function(O,V,J){O.GL();O.K.get(V)&&g.sk(Error("Extension name "+V+" already registered"));O.K.set(V,J)}; RBr=function(O,V,J,y){V=V===void 0?[]:V;O.GL();var l=[],m=[];V=g.n(V);for(var H=V.next();!H.done;H=V.next())H=H.value,g.e(H,kS7)||g.e(H,S8l)?l.push(H):m.push(H);l=g.n(l);for(V=l.next();!V.done;V=l.next())ZK(O,V.value,J,y);m=g.n(m);for(l=m.next();!l.done;l=m.next())ZK(O,l.value,J,y)}; ZK=function(O,V,J,y){O.GL();V.loggingUrls&&DcU(O,"loggingUrls",V.loggingUrls,J,y);V=g.n(Object.entries(V));for(var l=V.next();!l.done;l=V.next()){var m=g.n(l.value);l=m.next().value;m=m.next().value;l==="openPopupAction"?O.NI.get().Yk("innertubeCommand",{openPopupAction:m}):l==="confirmDialogEndpoint"?O.NI.get().Yk("innertubeCommand",{confirmDialogEndpoint:m}):O2n.hasOwnProperty(l)||DcU(O,l,m,J,y)}}; DcU=function(O,V,J,y,l){if((O=O.K.get(V))&&typeof O==="function")try{O(J,y,l)}catch(m){g.sk(m)}else V=new g.pn("Unhandled field",V),g.en(V)}; zU=function(O,V,J){this.lL=O;this.K=V;this.gW=J;W5(c5(),{IT:K4r,BM:GSo})}; cf=function(O){this.value=O}; sx=function(O){this.value=O}; TU=function(O){this.value=O}; em=function(O){this.value=O}; IS=function(O){this.value=O}; YL=function(O){this.value=O}; aS=function(O){this.value=O}; bc=function(){cf.apply(this,arguments)}; pR=function(O){this.value=O}; fR=function(O){this.value=O}; ho=function(O){this.value=O}; oS=function(O){this.value=O}; vf=function(O){this.value=O}; wF=function(O){this.value=O}; M9=function(O){this.value=O}; LR=function(O){this.value=O}; nR=function(O){this.value=O}; XS=function(O){this.value=O}; Ex=function(){cf.apply(this,arguments)}; dF=function(O){this.value=O}; gF=function(O){this.value=O}; q9=function(O){this.value=O}; QK=function(O){this.value=O}; GU=function(O){this.value=O}; KR=function(O){this.value=O}; to=function(O){this.value=O}; uc=function(O){this.value=O}; Ao=function(O){this.value=O}; rF=function(O){this.value=O}; ic=function(O){this.value=O}; RS=function(O){this.value=O}; Bf=function(O){this.value=O}; Pf=function(O){this.value=O}; kL=function(O){this.value=O}; Sm=function(O){this.value=O}; DK=function(O){this.value=O}; Os=function(O){this.value=O}; V5=function(O){this.value=O}; JA=function(O){this.value=O}; y5=function(O){this.value=O}; l_=function(O){this.value=O}; mJ=function(O){this.value=O}; $s=function(O){this.value=O}; H0=function(O){this.value=O}; jq=function(O){this.value=O}; CF=function(O){this.value=O}; F7=function(O){this.value=O}; Nd=function(O){this.value=O}; xs=function(O){this.value=O}; W0=function(O){this.value=O}; Us=function(O){this.value=O}; ZP=function(O){this.value=O}; z_=function(O){this.value=O}; c0=function(O){this.value=O}; T_=function(O){this.value=O}; eq=function(O){this.value=O}; Iy=function(O){this.value=O}; Ys=function(O){this.value=O}; ay=function(O){this.value=O}; b_=function(){cf.apply(this,arguments)}; pF=function(O){this.value=O}; fF=function(){cf.apply(this,arguments)}; hA=function(){cf.apply(this,arguments)}; oy=function(){cf.apply(this,arguments)}; v0=function(){cf.apply(this,arguments)}; wu=function(){cf.apply(this,arguments)}; Md=function(O){this.value=O}; LF=function(O){this.value=O}; nF=function(O){this.value=O}; X7=function(O){this.value=O}; du=function(O,V,J){if(J&&!J.includes(O.layoutType))return!1;V=g.n(V);for(J=V.next();!J.done;J=V.next())if(!Es(O.clientMetadata,J.value))return!1;return!0}; gu=function(){return""}; Vtl=function(O,V){switch(O){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(O),8}}; qd=function(O,V,J,y){y=y===void 0?!1:y;Xz.call(this,O);this.Pc=J;this.p5=y;this.args=[];V&&this.args.push(V)}; P=function(O,V,J,y){y=y===void 0?!1:y;Xz.call(this,O);this.Pc=J;this.p5=y;this.args=[];V&&this.args.push(V)}; Q5=function(O){var V=new Map;O.forEach(function(J){V.set(J.K(),J)}); this.K=V}; Es=function(O,V){return O.K.has(V)}; G_=function(O,V){O=O.K.get(V);if(O!==void 0)return O.get()}; KF=function(O){return Array.from(O.K.keys())}; tA=function(O,V,J){if(J&&J!==O.slotType)return!1;V=g.n(V);for(J=V.next();!J.done;J=V.next())if(!Es(O.clientMetadata,J.value))return!1;return!0}; y7r=function(O){var V;return((V=J7l.get(O))==null?void 0:V.dA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; AA=function(O,V){var J={type:V.slotType,controlFlowManagerLayer:lmV.get(V.PE)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};V.slotEntryTrigger&&(J.entryTriggerType=V.slotEntryTrigger.triggerType);V.slotPhysicalPosition!==1&&(J.slotPhysicalPosition=V.slotPhysicalPosition);if(O){J.debugData={slotId:V.slotId};if(O=V.slotEntryTrigger)J.debugData.slotEntryTriggerData=u_(O);O=V.slotFulfillmentTriggers;J.debugData.fulfillmentTriggerData=[];O=g.n(O);for(var y=O.next();!y.done;y=O.next())J.debugData.fulfillmentTriggerData.push(u_(y.value)); V=V.slotExpirationTriggers;J.debugData.expirationTriggerData=[];V=g.n(V);for(O=V.next();!O.done;O=V.next())J.debugData.expirationTriggerData.push(u_(O.value))}return J}; mD1=function(O,V){var J={type:V.layoutType,controlFlowManagerLayer:lmV.get(V.PE)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};O&&(J.debugData={layoutId:V.layoutId});return J}; u_=function(O,V){var J={type:O.triggerType};V!=null&&(J.category=V);O.triggeringSlotId!=null&&(J.triggerSourceData||(J.triggerSourceData={}),J.triggerSourceData.associatedSlotId=O.triggeringSlotId);O.triggeringLayoutId!=null&&(J.triggerSourceData||(J.triggerSourceData={}),J.triggerSourceData.associatedLayoutId=O.triggeringLayoutId);return J}; $DU=function(O,V,J,y){V={opportunityType:V};O&&(y||J)&&(y=g.Ia(y||[],function(l){return AA(O,l)}),V.debugData=Object.assign({},J&&J.length>0?{associatedSlotId:J}:{},y.length>0?{slots:y}:{})); return V}; i_=function(O,V){return function(J){return H25(ru(O),V.slotId,V.slotType,V.slotPhysicalPosition,V.PE,V.slotEntryTrigger,V.slotFulfillmentTriggers,V.slotExpirationTriggers,J.layoutId,J.layoutType,J.PE)}}; H25=function(O,V,J,y,l,m,H,F,N,x,W){return{adClientDataEntry:{slotData:AA(O,{slotId:V,slotType:J,slotPhysicalPosition:y,PE:l,slotEntryTrigger:m,slotFulfillmentTriggers:H,slotExpirationTriggers:F,clientMetadata:new Q5([])}),layoutData:mD1(O,{layoutId:N,layoutType:x,PE:W,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],D4:new Map,clientMetadata:new Q5([]),IB:{}})}}}; B0=function(O){this.Xj=O;O=Math.random();var V=this.Xj.get();V=g.Ry(V.G.Y().experiments,"html5_debug_data_log_probability");V=Number.isFinite(V)&&V>=0&&V<=1?V:0;this.K=O>31));zR(O,16,V.UHK);zR(O,17,V.detailedNetworkType);zR(O,18,V.fp);zR(O,19,V.UN);zR(O,21,V.asE);zR(O,23,V.Qt);zR(O,28,V.Fn);zR(O,29,V.DEw);zR(O,34,V.visibility);J=V.playbackRate;if(J!==void 0){var y=new ArrayBuffer(4);(new Float32Array(y))[0]=J;J=(new Uint32Array(y))[0];if(J!==void 0)for(ak(O,285),b$(O,4),y=0;y<4;)O.view.setUint8(O.pos,J&255),J>>=8,O.pos+=1,y+=1}zR(O,36,V.Si); FE(O,38,V.mediaCapabilities,Skn,3);zR(O,39,V.fKX);zR(O,40,V.P5);zR(O,44,V.playerState);Y7(O,46,V.yh);zR(O,48,V.dM);zR(O,50,V.Rd);zR(O,51,V.Oq);zR(O,54,V.Wt);if(V.yf)for(J=0;J>31));US(O,2,V.message)}; HId=function(O,V){zR(O,1,V.clientState);FE(O,2,V.Taw,mop,1)}; lJY=function(O,V){x7(O,1,V.kbD);FE(O,2,V.o3L,$on,3);FE(O,3,V.coldStartInfo,HId,3)}; yVn=function(O,V){zR(O,1,V.type);x7(O,2,V.value)}; JVo=function(O,V){US(O,1,V.hl);US(O,12,V.deviceMake);US(O,13,V.deviceModel);zR(O,16,V.clientName);US(O,17,V.clientVersion);US(O,18,V.osName);US(O,19,V.osVersion)}; jC1=function(O,V){US(O,1,V.name);US(O,2,V.value)}; pN=function(O,V){US(O,1,V.url);if(V.Py)for(var J=0;J55?"60": V>49?"50":V>39?"48":"")));this.qualityLabel=O;this.K=N||"";this.primaries=x||""}; d3=function(O,V){var J=Math.max(O,V);O=Math.min(O,V);V=Qj[0];for(var y=0;y=Math.floor(m*16/9)*1.3||O>=m*1.3)return V;V=l}return"tiny"}; tq=function(O,V,J){J=J===void 0?{}:J;this.id=O;this.mimeType=V;J.jq>0||(J.jq=16E3);Object.assign(this,J);O=g.n(this.id.split(";"));this.itag=O.next().value;this.K=O.next().value;this.containerType=GR(V);this.al=KN[this.itag]||""}; u$=function(O){return O.al==="9"||O.al==="("||O.al==="9h"||O.al==="(h"}; DoY=function(O){return O.al==="H"||O.al==="h"}; Aq=function(O){return O.al==="9h"||O.al==="(h"}; OJY=function(O){return!!O.AL&&!!O.AL.fairplay&&(O.al==="("||O.al==="(h"||O.al==="A"||O.al==="MEAC3")||r3&&!!O.AL&&O.al==="1e"}; i$=function(O){return O.al==="1"||O.al==="1h"||r3&&O.al==="1e"}; Rk=function(O){return O.al==="mac3"||O.al==="meac3"||O.al==="m"||O.al==="i"||Vod(O)}; Vod=function(O){return O.al==="MAC3"||O.al==="MEAC3"||O.al==="M"||O.al==="I"}; g.Bg=function(O){return O.containerType===1}; Jgo=function(O){return O.al==="("||O.al==="(h"||O.al==="H"||r3&&O.al==="1e"}; Pg=function(O){return O.mimeType==="application/x-mpegURL"}; g.k7=function(O,V){return{itag:+O.itag,lmt:V?0:O.lastModified,xtags:O.K||""}}; ygo=function(O){var V=navigator.mediaCapabilities;if(V==null||!V.decodingInfo||O.al==="f")return Promise.resolve();var J={type:O.audio&&O.video?"file":"media-source"};O.video&&(J.video={contentType:O.mimeType,width:O.video.width||640,height:O.video.height||360,bitrate:O.jq*8||1E6,framerate:O.video.fps||30});O.audio&&(J.audio={contentType:O.mimeType,channels:""+(O.audio.numChannels||2),bitrate:O.jq*8||128E3,samplerate:O.audio.sampleRate||44100});return V.decodingInfo(J).then(function(y){O.j=y})}; SX=function(O){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(O)}; D$=function(O){return/(vp9|vp09|vp8|avc1|av01|av02)/.test(O)}; O4=function(O){return O.includes("vtt")||O.includes("text/mp4")}; GR=function(O){return O.indexOf("/mp4")>=0?1:O.indexOf("/webm")>=0?2:O.indexOf("/x-flv")>=0?3:O.indexOf("/vtt")>=0?4:0}; Vr=function(O,V,J,y,l,m,H){var F=new CN;V in g.g3||(V="small");V==="light"&&(V="tiny");y&&l?(l=Number(l),y=Number(y)):(l=g.g3[V],y=Math.round(l*16/9));m=new qI(y,l,0,null,void 0,V,m,H);O=unescape(O.replace(/"/g,'"'));return new tq(J,O,{audio:F,video:m})}; JN=function(O,V){return{start:function(J){return O[J]}, end:function(J){return V[J]}, length:O.length}}; lfY=function(O,V,J){for(var y=[],l=[],m=0;m=V)return J}catch(y){}return-1}; mT=function(O,V){return l7(O,V)>=0}; mw5=function(O,V){if(!O)return NaN;V=l7(O,V);return V>=0?O.start(V):NaN}; $f=function(O,V){if(!O)return NaN;V=l7(O,V);return V>=0?O.end(V):NaN}; Hs=function(O){return O&&O.length?O.end(O.length-1):NaN}; jC=function(O){return Hs(O)>0}; Cr=function(O,V){O=$f(O,V);return O>=0?O-V:0}; FU=function(O,V,J){for(var y=[],l=[],m=0;mJ||(y.push(Math.max(V,O.start(m))-V),l.push(Math.min(J,O.end(m))-V));return JN(y,l)}; N8=function(O,V,J,y){g.BF.call(this);var l=this;this.BB=O;this.start=V;this.end=J;this.isActive=y;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.zA={error:function(){!l.GL()&&l.isActive&&l.publish("error",l)}, updateend:function(){!l.GL()&&l.isActive&&l.publish("updateend",l)}}; this.BB.u3(this.zA);this.Yq=this.isActive}; Ws=function(O,V,J,y,l,m){g.BF.call(this);var H=this;this.Z4=O;this.WK=V;this.id=J;this.containerType=y;this.al=l;this.z3=m;this.gP=this.s0=this.Sj=null;this.x9=!1;this.appendWindowStart=this.timestampOffset=0;this.W7=JN([],[]);this.W5=!1;this.aJ=[];this.dV=xf?[]:void 0;this.handler=function(N){return H.publish(N.type,H)}; var F;if((F=this.Z4)==null?0:F.addEventListener)this.Z4.addEventListener("updateend",this.handler),this.Z4.addEventListener("error",this.handler)}; U4=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Zr=function(O,V){this.uh=O;this.K=V===void 0?!1:V;this.j=!1}; zM=function(O,V,J){J=J===void 0?!1:J;g.K.call(this);this.mediaElement=O;this.SB=V;this.isView=J;this.V=0;this.D=!1;this.W=!0;this.qX=0;this.callback=null;this.T=!1;this.SB||(this.WK=this.mediaElement.dC());this.events=new g.jX(this);g.t(this,this.events);this.U=new Zr(this.SB?window.URL.createObjectURL(this.SB):this.WK.webkitMediaSourceURL,!0);O=this.SB||this.WK;pz(this.events,O,["sourceopen","webkitsourceopen"],this.YEz);pz(this.events,O,["sourceclose","webkitsourceclose"],this.Haw);this.S={updateend:this.KL}}; $w7=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; HJh=function(O,V){cs(O)?g.YS(function(){V(O)}):O.callback=V}; j0X=function(O,V,J){if(s4){var y;TM(O.mediaElement,{l:"mswssb",sr:(y=O.mediaElement.Il)==null?void 0:y.OY()},!1);V.u3(O.S,O);J.u3(O.S,O)}O.K=V;O.j=J;g.t(O,V);g.t(O,J)}; eC=function(O){return!!O.K||!!O.j}; cs=function(O){try{return Iw(O)==="open"}catch(V){return!1}}; Iw=function(O){if(O.SB)return O.SB.readyState;switch(O.WK.webkitSourceState){case O.WK.SOURCE_OPEN:return"open";case O.WK.SOURCE_ENDED:return"ended";default:return"closed"}}; Yf=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; C1h=function(O,V,J,y){if(!O.K||!O.j)return null;var l=O.K.isView()?O.K.BB:O.K,m=O.j.isView()?O.j.BB:O.j,H=new zM(O.mediaElement,O.SB,!0);H.U=O.U;j0X(H,new N8(l,V,J,y),new N8(m,V,J,y));cs(O)||O.K.Pv(O.K.HY());return H}; Fp1=function(O){var V;(V=O.K)==null||V.mI();var J;(J=O.j)==null||J.mI();O.W=!1}; hN=function(){var O=this;this.HA=this.lT=B5d;this.promise=new g.bF(function(V,J){O.lT=V;O.HA=J})}; ow=function(){g.K.call(this);this.DS=!1;this.uh=null;this.S=this.V=!1;this.D=new g.xS;this.mediaKeys=this.Il=null;g.t(this,this.D)}; vs=function(O){O=O.NJ();return O.length<1?NaN:O.end(O.length-1)}; N_1=function(O){!O.j&&$w7()&&(O.U?O.U.then(function(){return N_1(O)}):O.sY()||(O.j=O.MK()))}; xwY=function(O){O.j&&(O.j.dispose(),O.j=void 0)}; TM=function(O,V,J){var y;((y=O.Il)==null?0:y.Sq())&&O.Il.jB("rms",V,J===void 0?!1:J)}; WpX=function(O,V,J){O.isPaused()||O.getCurrentTime()>V||J>10||(O.play(),g.CW(function(){WpX(O,O.getCurrentTime(),J+1)},500))}; Uwr=function(O,V){O.uh&&O.uh.equals(V)||(O.uh&&O.uh.dispose(),O.uh=V)}; wQ=function(O){return Cr(O.pE(),O.getCurrentTime())}; ZJl=function(O,V){if(O.g8()===0||O.hasError())return!1;var J=O.getCurrentTime()>0;return V>=0&&(O=O.NJ(),O.length||!J)?mT(O,V):J}; M8=function(O){O.sY()&&(O.Il&&O.Il.du("rs_s"),EN&&O.getCurrentTime()>0&&O.seekTo(0),O.cJ(),O.load(),Uwr(O,null));delete O.U}; Lr=function(O){switch(O.qU()){case 2:return"progressive.net.retryexhausted";case 3:return O=O.Mf(),(O==null?0:O.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||zl5&&(O==null?0:O.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.nr=function(O,V,J){this.o5=V===void 0?null:V;this.seekSource=J===void 0?null:J;this.state=O||64}; XU=function(O,V,J){J=J===void 0?!1:J;return cg1(O,V.getCurrentTime(),(0,g.cH)(),wQ(V),J)}; E4=function(O,V,J,y){if(!(V===O.state&&J===O.o5&&y===O.seekSource||V!==void 0&&(V&128&&!J||V&2&&V&16))){var l;if(l=V)l=V||O.state,l=!!(l&16||l&32);O=new g.nr(V,J,l?y?y:O.seekSource:null)}return O}; dQ=function(O,V,J){return E4(O,O.state|V,null,J===void 0?null:J)}; gQ=function(O,V){return E4(O,O.state&~V,null,null)}; q8=function(O,V,J,y){return E4(O,(O.state|V)&~J,null,y===void 0?null:y)}; g.R=function(O,V){return!!(O.state&V)}; g.Qr=function(O,V){return V.state===O.state&&V.o5===O.o5}; GM=function(O){return O.isPlaying()&&!g.R(O,16)&&!g.R(O,32)}; Kr=function(O){return g.R(O,128)?-1:g.R(O,2)?0:g.R(O,2048)?3:g.R(O,64)?-1:g.R(O,1)&&!g.R(O,32)?3:g.R(O,8)?1:g.R(O,4)?2:-1}; u7=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z,c,Y){g.K.call(this);var b=this;this.kJ=O;this.slot=V;this.layout=J;this.gW=y;this.WY=l;this.CD=m;this.Av=H;this.GK=F;this.Vc=N;this.f4=x;this.position=U;this.D=Z;this.Xj=z;this.cG=c;this.context=Y;this.mJ=!0;this.U=!1;this.j7="not_rendering";this.K=!1;O=G_(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Yi=new HE(J.D4,this.gW,O,J.layoutId);var M;O=((M=tN(this))==null?void 0:M.progressCommands)||[];this.j=new IE(N,O,J.layoutId,function(){return b.b9()})}; tN=function(O){return G_(O.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; s05=function(O){DJ("Received layout exit signal when not in layout exit flow.",O.slot,O.layout)}; T_p=function(O){var V;return((V=kp(O.CD.get(),2))==null?void 0:V.clientPlaybackNonce)||""}; el7=function(O,V){switch(V){case "normal":O.Y8("complete");break;case "skipped":O.Y8("skip");break;case "abandoned":WE(O.Yi,"impression")&&O.Y8("abandon")}}; IfV=function(O,V){O.U||(V=new g.OK(V.state,new g.nr),O.U=!0);return V}; YK7=function(O,V){i3(V)?O.f4(1):g.Jg(V,4)&&!g.Jg(V,2)&&O.s$();Vk(V,4)<0&&!(Vk(V,2)<0)&&O.B9()}; afn=function(O){O.position===0&&(O.GK.get(),O=G_(O.layout.clientMetadata,"metadata_type_ad_placement_config").kind,O={adBreakType:AN(O)},sB("ad_bl"),g.TJ(O))}; rQ=function(O,V){NL(O.Yi,V,!O.K)}; pSd=function(O){var V;return(((V=tN(O))==null?void 0:V.progressCommands)||[]).findIndex(function(J){return!!g.e(J==null?void 0:J.command,bJ7)})!==-1}; g.i7=function(O,V,J){Ic(O,J)||ac(O,V,J);Ic(O,"video_to_ad")||ac(O,V,"video_to_ad");Ic(O,"ad_to_video")||ac(O,V,"ad_to_video");Ic(O,"ad_to_ad")||ac(O,V,"ad_to_ad")}; Rw=function(O){u7.call(this,O.kJ,O.slot,O.HC,O.gW,O.WY,O.CD,O.Av,O.GK,O.Vc,O.f4,O.Fd,O.GQ,O.DY,O.Xj,O.cG,O.context);var V=this;this.wc=!0;this.I6=this.vX=0;this.SU=G5(function(){V.kJ.fd(V.slot,V.layout)}); this.NI=O.NI;this.Fd=O.Fd;this.Fr=G5(function(){V.j7!=="rendering_stop_requested"&&V.Fd(V);V.layoutExitReason?V.kJ.Cd(V.slot,V.layout,V.layoutExitReason):s05(V)}); this.timer=new g.MU(200);this.timer.listen("tick",function(){V.VK()}); g.t(this,this.timer)}; ffV=function(O){O.I6=Date.now();Bs(O,O.vX);O.timer.start()}; Bs=function(O,V){V={current:V/1E3,duration:O.b9()/1E3};O.NI.get().Yk("onAdPlaybackProgress",V)}; SC=function(O){u7.call(this,O.callback,O.slot,O.HC,O.gW,O.WY,O.CD,O.Av,O.GK,O.Vc,O.f4,O.Fd,O.GQ,O.DY,O.Xj,O.cG,O.context);var V=this;this.adCpn="";this.M_=this.FU=0;this.SU=G5(function(){V.kJ.fd(V.slot,V.layout)}); this.Fr=G5(function(){V.j7!=="rendering_stop_requested"&&V.Fd(V);V.layoutExitReason?V.kJ.Cd(V.slot,V.layout,V.layoutExitReason):s05(V)}); this.wD=O.wD;this.S7=O.S7;this.X5=O.X5;this.NI=O.NI;this.Gb=O.Gb;this.Fd=O.Fd;wz(this.Xj.get(),"html5_disable_media_load_timeout")||(this.mX=new g.t_(function(){V.FA("load_timeout",new qd("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); O=Ps(this.Xj.get());var J=kf(this.Xj.get());O&&J&&(this.Ci=new g.t_(function(){var y=G_(V.layout.clientMetadata,"metadata_type_preload_player_vars");y&&V.S7.get().G.preloadVideoByPlayerVars(y,2,300)}))}; hlr=function(O){return new Rw(Object.assign({},O,{kJ:O.callback,f4:function(){}}))}; ooX=function(O){return new SC(Object.assign({},O,{f4:function(V){O.NI.get().Yk("onAdIntroStateChange",V)}}))}; vo7=function(O){return new SC(Object.assign({},O,{f4:function(V){O.NI.get().RH(V)}}))}; wSV=function(O){for(var V=O.HC,J=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],y=g.n(jP()),l=y.next();!l.done;l=y.next())J.push(l.value);if(ML(V,{jy:J,TG:["LAYOUT_TYPE_MEDIA_BREAK"]}))return hlr(O);V=O.HC;J=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];y=g.n(jP());for(l=y.next();!l.done;l=y.next())J.push(l.value);if(ML(V,{jy:J,TG:["LAYOUT_TYPE_MEDIA"]}))return Es(O.HC.clientMetadata,"metadata_type_ad_intro")?ooX(O):vo7(O)}; Dr=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z){g.K.call(this);this.callback=O;this.CD=V;this.EA=J;this.S7=y;this.Av=l;this.U7=m;this.GK=H;this.uT=F;this.slot=N;this.layout=x;this.X6=W;this.rB=U;this.OA=Z;this.Xj=z;this.mJ=!0;this.Yu=!1;this.Ok=[];this.Cf=-1;this.s8=!1}; Ou=function(O){return O.Ok[O.Cf]}; J2=function(O,V,J){var y=Ou(O);O.Cf===O.Ok.length-1&&DJ("Unexpected skip with target requested during the last sublayout");if(J.renderingContent===void 0&&J.layoutId!==Vp(y,V,J)){DJ("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",y.BY(),y.hv(),{requestingSlot:V,requestingLayout:J});var l=!1}else l=!0;if(l){a:{if((l=G_(y.hv().clientMetadata,"metadata_type_ad_pod_skip_target"))&&l>0&&l0)){DJ("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",O.slot,O.layout,{indexToPlay:V,layoutId:O.layout.layoutId});break a}O.Cf=V;V=Ou(O);if(O.Cf>0){var J=O.GK.get();J.j=!1;var y={};J.K&&J.videoId&&(y.cttAuthInfo={token:J.K,videoId:J.videoId});e4("ad_to_ad",y)}J=g.e(V.hv().renderingContent,u3);if(J==null?0:J.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var l; J=!((l=O.U7.get().wCv.get(J.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&l)}else J=!1;J?yp(O,O.Cf+1):V.startRendering(V.hv())}}; no5=function(O){(O=Ou(O))&&O.oJ()}; XS1=function(O){return new Dr(O.vbv,O.CD,O.EA,O.S7,O.Av,O.U7,O.GK,O.uT,O.slot,O.layout,O.X6,O.rB,O.OA,O.Xj)}; HT=function(O,V,J,y,l,m,H){g.K.call(this);this.callback=O;this.S7=V;this.Av=J;this.GK=y;this.A0=l;this.OA=m;this.Xj=H;this.mJ=!0;this.Yu=!1}; Eol=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z,c,Y,b,M,w,L,X,u){function G(){var Oo=wSV(Object.assign({},D,{callback:{fd:O.fd.bind(O),Cd:O.Cd.bind(O),E7:O.E7.bind(O)},slot:J,HC:y,Fd:function(){$W(H,y)}, GQ:0,DY:1,cG:!0}));return Oo?new HT(O,W,Z,Y,Oo,l,L):Oo} function k(){var Oo,md=(Oo=y.YP)!=null?Oo:G_(y.clientMetadata,"metadata_type_sub_layouts");Oo=XS1({vbv:O,CD:U,EA:X,S7:W,Av:Z,U7:z,GK:Y,uT:V,slot:J,layout:y,X6:m,rB:H,OA:l,Xj:L});for(var xY=[],V7={Za:0};V7.Zal&&H.xq(W,l-y);return W}; Kpr=function(O,V,J){var y=G_(V.clientMetadata,"metadata_type_sodar_extension_data");if(y)try{vtp(J,y)}catch(l){DJ("Unexpected error when loading Sodar",O,V,{error:l})}}; toh=function(O,V,J,y,l,m,H){WT(O,V,new g.OK(J,new g.nr),y,l,H,!1,m)}; WT=function(O,V,J,y,l,m,H,F){H=H===void 0?!0:H;i3(J)&&RE(l,0,null)&&(!WE(O,"impression")&&F&&F(),O.Y8("impression"));WE(O,"impression")&&(g.Jg(J,4)&&!g.Jg(J,2)&&O.EY("pause"),Vk(J,4)<0&&!(Vk(J,2)<0)&&O.EY("resume"),g.Jg(J,16)&&l>=.5&&O.EY("seek"),H&&g.Jg(J,2)&&Uu(O,J.state,V,y,l,m))}; Uu=function(O,V,J,y,l,m,H,F,N){WE(O,"impression")&&(m?(m=l-y,m=m>=-1&&m<=2):m=Math.abs(y-l)<=1,ZM(O,V,m?y:l,J,y,H,F&&m),m&&!N&&O.Y8("complete"))}; ZM=function(O,V,J,y,l,m,H){xp(O,J*1E3,H);l<=0||J<=0||(V==null?0:g.R(V,16))||(V==null?0:g.R(V,32))||(RE(J,l*.25,y)&&(m&&!WE(O,"first_quartile")&&m("first"),O.Y8("first_quartile")),RE(J,l*.5,y)&&(m&&!WE(O,"midpoint")&&m("second"),O.Y8("midpoint")),RE(J,l*.75,y)&&(m&&!WE(O,"third_quartile")&&m("third"),O.Y8("third_quartile")))}; u6d=function(O,V){WE(O,"impression")&&O.EY(V?"fullscreen":"end_fullscreen")}; Agp=function(O){WE(O,"impression")&&O.EY("clickthrough")}; rgV=function(O){O.EY("active_view_measurable")}; iJp=function(O){WE(O,"impression")&&!WE(O,"seek")&&O.EY("active_view_fully_viewable_audible_half_duration")}; Rlr=function(O){WE(O,"impression")&&!WE(O,"seek")&&O.EY("active_view_viewable")}; B_p=function(O){WE(O,"impression")&&!WE(O,"seek")&&O.EY("audio_audible")}; P1X=function(O){WE(O,"impression")&&!WE(O,"seek")&&O.EY("audio_measurable")}; kEr=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z){var c=this;this.callback=O;this.slot=V;this.layout=J;this.EA=y;this.Yi=l;this.Av=m;this.MP=H;this.WY=F;this.wD=N;this.Xj=x;this.gW=W;this.CD=U;this.X5=Z;this.Vc=z;this.wc=!0;this.ke=this.j7=null;this.adCpn=void 0;this.K=!1;var Y;O=((Y=G_(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:Y.progressCommands)||[];this.j=new IE(z,O,J.layoutId,function(){return G_(c.layout.clientMetadata,"metadata_type_video_length_seconds")* 1E3})}; SKp=function(O,V,J){var y;xW(O.gW.get(),"ads_qua","cpn."+G_(O.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=kp(O.CD.get(),2))==null?void 0:y.clientPlaybackNonce)+";qt."+V+";clr."+J)}; DwV=function(O,V){var J,y;xW(O.gW.get(),"ads_imp","cpn."+G_(O.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((J=kp(O.CD.get(),2))==null?void 0:J.clientPlaybackNonce)+";clr."+V+";skp."+!!g.e((y=G_(O.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:y.skipOrPreviewRenderer,zC))}; cT=function(O){return{enterMs:G_(O.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:G_(O.clientMetadata,"metadata_type_layout_exit_ms")}}; TC=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z){jy.call(this,O,V,J,y,l,H,F,N,x,U);this.MP=m;this.wD=W;this.WY=Z;this.Xj=z;this.ke=this.j7=null}; OU1=function(O,V){var J;xW(O.gW.get(),"ads_imp","acpn."+((J=kp(O.CD.get(),2))==null?void 0:J.clientPlaybackNonce)+";clr."+V)}; V4l=function(O,V,J){var y;xW(O.gW.get(),"ads_qua","cpn."+G_(O.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=kp(O.CD.get(),2))==null?void 0:y.clientPlaybackNonce)+";qt."+V+";clr."+J)}; ey=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z,c,Y,b,M,w,L,X){this.OA=O;this.X6=V;this.rB=J;this.CD=y;this.EA=l;this.Av=m;this.U7=H;this.gW=F;this.MP=N;this.Ql=x;this.WY=W;this.wD=U;this.S7=Z;this.X5=z;this.GK=c;this.NI=Y;this.Vc=b;this.Gb=M;this.Xj=w;this.K=L;this.context=X}; II=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z,c,Y,b,M){this.OA=O;this.X6=V;this.rB=J;this.gW=y;this.WY=l;this.wD=m;this.S7=H;this.CD=F;this.Av=N;this.U7=x;this.X5=W;this.GK=U;this.NI=Z;this.Vc=z;this.Gb=c;this.Xj=Y;this.EA=b;this.context=M}; Jdr=function(O,V,J,y){Re.call(this,"survey-interstitial",O,V,J,y)}; YW=function(O,V,J,y,l){DQ.call(this,J,O,V,y);this.gW=l;O=G_(V.clientMetadata,"metadata_type_ad_placement_config");this.Yi=new HE(V.D4,l,O,V.layoutId)}; aI=function(O){return Math.round(O.width)+"x"+Math.round(O.height)}; px=function(O,V,J){J=J===void 0?be:J;J.widthO.width*O.height*.2)return{sj:3,EZ:501,errorMessage:"ad("+aI(J)+") to container("+aI(O)+") ratio exceeds limit."};if(J.height>O.height/3-V)return{sj:3,EZ:501,errorMessage:"ad("+aI(J)+") covers container("+aI(O)+") center."}}; ydr=function(O,V){var J=G_(O.clientMetadata,"metadata_type_ad_placement_config");return new HE(O.D4,V,J,O.layoutId)}; fx=function(O){return G_(O.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; h2=function(O,V,J,y){Re.call(this,"invideo-overlay",O,V,J,y);this.interactionLoggingClientData=y}; oI=function(O,V,J,y,l,m,H,F,N,x,W,U){DQ.call(this,m,O,V,l);this.gW=J;this.D=H;this.Av=F;this.Vc=N;this.Xj=x;this.V=W;this.W=U;this.Yi=ydr(V,J)}; lad=function(){var O=["metadata_type_invideo_overlay_ad_renderer"];jP().forEach(function(V){O.push(V)}); return{jy:O,TG:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; vT=function(O,V,J,y,l,m,H,F,N,x,W,U,Z){DQ.call(this,m,O,V,l);this.gW=J;this.D=H;this.T=F;this.Av=N;this.Vc=x;this.Xj=W;this.V=U;this.W=Z;this.Yi=ydr(V,J)}; mF5=function(){for(var O=["metadata_type_invideo_overlay_ad_renderer"],V=g.n(jP()),J=V.next();!J.done;J=V.next())O.push(J.value);return{jy:O,TG:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; wo=function(O){this.Av=O;this.K=!1}; $FY=function(O,V,J){Re.call(this,"survey",O,{},V,J)}; MN=function(O,V,J,y,l,m,H){DQ.call(this,J,O,V,y);this.D=l;this.Av=m;this.Xj=H}; HUr=function(O,V,J,y,l,m,H,F,N,x){this.UA=O;this.Av=V;this.gW=J;this.D=y;this.WY=l;this.j=m;this.U=H;this.Vc=F;this.Xj=N;this.K=x}; jcr=function(O,V,J,y,l,m,H,F,N,x){this.UA=O;this.Av=V;this.gW=J;this.D=y;this.WY=l;this.j=m;this.U=H;this.Vc=F;this.Xj=N;this.K=x}; Lx=function(O,V,J,y,l,m,H,F,N,x){gL.call(this,O,V,J,y,l,m,H,N);this.b3=F;this.CD=x}; Cnl=function(){var O=LV1();O.jy.push("metadata_type_ad_info_ad_metadata");return O}; FAo=function(O,V,J,y,l,m,H){this.UA=O;this.Av=V;this.gW=J;this.j=y;this.b3=l;this.K=m;this.CD=H}; N6o=function(O,V,J,y,l,m,H,F){this.UA=O;this.Av=V;this.gW=J;this.j=y;this.b3=l;this.K=m;this.Xj=H;this.CD=F}; nx=function(O,V){this.adPodIndex=O;this.K=V.length;this.adBreakLengthSeconds=V.reduce(function(y,l){return y+l},0); var J=0;for(O+=1;O0}; c3=function(O){return!!(O.zKL&&O.slot&&O.layout)}; sl=function(O){var V,J=(V=O.config)==null?void 0:V.adPlacementConfig;O=O.renderer;return!(!J||J.kind==null||!O)}; far=function(O){if(!FG(O.adLayoutMetadata))return!1;O=O.renderingContent;return g.e(O,u3)||g.e(O,AY)||g.e(O,p7Y)||g.e(O,KE)||g.e(O,tY)?!0:!1}; Tw=function(O){return O.playerVars!==void 0&&O.pings!==void 0&&O.externalVideoId!==void 0}; hE=function(O){if(!FG(O.adLayoutMetadata))return!1;O=O.renderingContent;var V=g.e(O,ex);return V?IM(V):(V=g.e(O,aM))?Tw(V):(V=g.e(O,bf))?V.playerVars!==void 0:(V=g.e(O,u3))?V.durationMilliseconds!==void 0:g.e(O,p6)||g.e(O,f6)?!0:!1}; IM=function(O){O=(O.sequentialLayouts||[]).map(function(V){return g.e(V,oM)}); return O.length>0&&O.every(hE)}; wh=function(O){return FG(O.adLayoutMetadata)?(O=g.e(O.renderingContent,v3))&&O.pings?!0:!1:!1}; M4d=function(O){if(!FG(O.adLayoutMetadata))return!1;if(g.e(O.renderingContent,h6X)||g.e(O.renderingContent,M3))return!0;var V=g.e(O.renderingContent,L6);return g.e(O.renderingContent,n6)||g.e(V==null?void 0:V.sidePanel,ozH)||g.e(V==null?void 0:V.sidePanel,vzX)||g.e(V==null?void 0:V.sidePanel,w75)?!0:!1}; gzH=function(O){var V;(V=!O)||(V=O.adSlotMetadata,V=!((V==null?void 0:V.slotId)!==void 0&&(V==null?void 0:V.slotType)!==void 0));if(V||!(LAh(O)||O.slotEntryTrigger&&O.slotFulfillmentTriggers&&O.slotExpirationTriggers))return!1;var J;O=(J=O.fulfillmentContent)==null?void 0:J.fulfilledLayout;return(J=g.e(O,oM))?hE(J):(J=g.e(O,XG))?M4d(J):(J=g.e(O,nzr))?far(J):(J=g.e(O,X7d))?aaX(J):(J=g.e(O,Ezr))?FG(J.adLayoutMetadata)?g.e(J.renderingContent,N3)?!0:!1:!1:(J=g.e(O,El))?wh(J):(O=g.e(O,dF7))?FG(O.adLayoutMetadata)? g.e(O.renderingContent,M3)?!0:!1:!1:!1}; LAh=function(O){var V;O=g.e((V=O.fulfillmentContent)==null?void 0:V.fulfilledLayout,XG);var J;return O&&((J=O.adLayoutMetadata)==null?void 0:J.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&O.layoutExitNormalTriggers===void 0}; qBr=function(O){var V;return(O==null?void 0:(V=O.adSlotMetadata)==null?void 0:V.slotType)==="SLOT_TYPE_IN_PLAYER"}; Qcr=function(O){O=g.n(O||[]);for(var V=O.next();!V.done;V=O.next()){var J=g.e(V.value,dh);if(J===void 0||!gzH(J))break;V=void 0;J=(V=J.fulfillmentContent)==null?void 0:V.fulfilledLayout;if((V=g.e(J,El))&&wh(V))return!0}return!1}; KAl=function(O,V){var J;if((J=O.questions)==null||!J.length||!O.playbackCommands||(V===void 0||!V)&&O.questions.length!==1)return!1;O=g.n(O.questions);for(V=O.next();!V.done;V=O.next()){V=V.value;var y=J=void 0,l=((J=g.e(V,gh))==null?void 0:J.surveyAdQuestionCommon)||((y=g.e(V,q3))==null?void 0:y.surveyAdQuestionCommon);if(!GJl(l))return!1}return!0}; t4H=function(O){O=((O==null?void 0:O.playerOverlay)||{}).instreamSurveyAdRenderer;var V;if(O)if(O.playbackCommands&&O.questions&&O.questions.length===1){var J,y=((V=g.e(O.questions[0],gh))==null?void 0:V.surveyAdQuestionCommon)||((J=g.e(O.questions[0],q3))==null?void 0:J.surveyAdQuestionCommon);V=GJl(y)}else V=!1;else V=!1;return V}; GJl=function(O){if(!O)return!1;O=g.e(O.instreamAdPlayerOverlay,QQ);var V=g.e(O==null?void 0:O.skipOrPreviewRenderer,zC),J=g.e(O==null?void 0:O.adInfoRenderer,Gw);return(g.e(O==null?void 0:O.skipOrPreviewRenderer,K6)||V)&&J?!0:!1}; u$5=function(O){return O.linearAds!=null&&FG(O.adLayoutMetadata)}; AdV=function(O){return O.linearAd!=null&&O.adVideoStart!=null}; rd5=function(O){if(isNaN(Number(O.timeoutSeconds))||!O.text||!O.ctaButton||!g.e(O.ctaButton,tE)||!O.brandImage)return!1;var V;return O.backgroundImage&&g.e(O.backgroundImage,uf)&&((V=g.e(O.backgroundImage,uf))==null?0:V.landscape)?!0:!1}; AE=function(O,V,J,y,l,m,H,F){g.K.call(this);this.Xj=O;this.K=V;this.j=y;this.CD=l;this.D=m;this.U=H;this.S7=F}; B61=function(O,V,J){var y,l=((y=J.adSlots)!=null?y:[]).map(function(F){return g.e(F,dh)}); if(J.YW)if(G_(V.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Bb(O.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId); else{if(O.Xj.get().G.Y().L("h5_check_forecasting_renderer_for_throttled_midroll")){var m=J.h3.filter(function(F){var N;return((N=F.renderer)==null?void 0:N.clientForecastingAdRenderer)!=null}); m.length!==0?iUn(O.U,m,l,V.slotId,J.ssdaiAdsConfig):Bb(O.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId)}else Bb(O.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId); R6X(O.D,V)}else{var H;y={qx:Math.round(((m=G_(V.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:m.qx)||0),pG:(H=G_(V.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:H.pG};m=G_(V.clientMetadata,"metadata_type_cue_point");iUn(O.U,J.h3,l,V.slotId,J.ssdaiAdsConfig,y,m)}}; SBY=function(O,V,J,y,l,m,H,F){var N=kp(O.CD.get(),1);if(PnU(O.Xj.get())){var x=rh(O.j.get(),J,y,l,N.clientPlaybackNonce,N.GM,N.daiEnabled,N,m,H);kJl(O,x);Bb(O.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return x},V)}else Bb(O.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return rh(O.j.get(),J,y,l,N.clientPlaybackNonce,N.GM,N.daiEnabled,N,m,H,F)},V)}; kJl=function(O,V){V=g.n(V);for(var J=V.next();!J.done;J=V.next()){var y=J.value;if(y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y.fulfilledLayout)if(J=void 0,y.fulfilledLayout.renderingContent)J=G_(y.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(y.fulfilledLayout.YP){y=g.n(y.fulfilledLayout.YP);for(var l=y.next();!l.done&&(l=l.value,!l.renderingContent||!(J=G_(l.clientMetadata,"metadata_type_player_vars")));l=y.next());}}else J=void 0;if(J){O.S7.get().G.preloadVideoByPlayerVars(J, 2,300);break}}}; ORV=function(O,V,J,y,l,m,H){V=DFX(V,m,Number(y.prefetchMilliseconds)||0,H);O=V instanceof P?V:RM(O,y,l,V,J);return O instanceof P?O:[O]}; Vmn=function(O,V,J,y,l){var m=Pb(O.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST");y=[new T_({getAdBreakUrl:y.getAdBreakUrl,qx:0,pG:0}),new LF(!0)];O=V.pauseDurationMs?V.lactThresholdMs?{slotId:m,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new m3(O.K,m),slotFulfillmentTriggers:[new WAr(O.K)],slotExpirationTriggers:[new Sy(O.K,l),new JE(O.K,m)],PE:"core",clientMetadata:new Q5(y),adSlotLoggingData:J}:new P("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new P("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return O instanceof P?O:[O]}; JoU=function(O){var V,J;return((V=O.renderer)==null?void 0:(J=V.adBreakServiceRenderer)==null?void 0:J.getAdBreakUrl)!==void 0}; B3=function(O,V,J){if(O.beforeContentVideoIdStartedTrigger)O=O.beforeContentVideoIdStartedTrigger?new XD(gu,V,O.id):new P("Not able to create BeforeContentVideoIdStartedTrigger");else{if(O.layoutIdExitedTrigger){var y;V=(y=O.layoutIdExitedTrigger)!=null&&y.triggeringLayoutId?new Kx(gu,O.layoutIdExitedTrigger.triggeringLayoutId,O.id):new P("Not able to create LayoutIdExitedTrigger")}else{if(O.layoutExitedForReasonTrigger){var l,m;((l=O.layoutExitedForReasonTrigger)==null?0:l.triggeringLayoutId)&&((m= O.layoutExitedForReasonTrigger)==null?0:m.layoutExitReason)?(V=UF1(O.layoutExitedForReasonTrigger.layoutExitReason),O=V instanceof P?V:new GC(gu,O.layoutExitedForReasonTrigger.triggeringLayoutId,[V],O.id)):O=new P("Not able to create LayoutIdExitedForReasonTrigger")}else{if(O.onLayoutSelfExitRequestedTrigger){var H;V=(H=O.onLayoutSelfExitRequestedTrigger)!=null&&H.triggeringLayoutId?new kW(gu,O.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,O.id):new P("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(O.onNewPlaybackAfterContentVideoIdTrigger)O= O.onNewPlaybackAfterContentVideoIdTrigger?new Sy(gu,V,O.id):new P("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(O.skipRequestedTrigger){var F;V=(F=O.skipRequestedTrigger)!=null&&F.triggeringLayoutId?new Ol(gu,O.skipRequestedTrigger.triggeringLayoutId,O.id):new P("Not able to create SkipRequestedTrigger")}else if(O.slotIdEnteredTrigger){var N;V=(N=O.slotIdEnteredTrigger)!=null&&N.triggeringSlotId?new VQ(gu,O.slotIdEnteredTrigger.triggeringSlotId,O.id):new P("Not able to create SlotIdEnteredTrigger")}else if(O.slotIdExitedTrigger){var x; V=(x=O.slotIdExitedTrigger)!=null&&x.triggeringSlotId?new JE(gu,O.slotIdExitedTrigger.triggeringSlotId,O.id):new P("Not able to create SkipRequestedTrigger")}else if(O.surveySubmittedTrigger){var W;V=(W=O.surveySubmittedTrigger)!=null&&W.triggeringLayoutId?new H3(gu,O.surveySubmittedTrigger.triggeringLayoutId,O.id):new P("Not able to create SurveySubmittedTrigger")}else{if(O.mediaResumedTrigger)O=O.mediaResumedTrigger&&O.id?new ZU5(O.id):new P("Not able to create MediaResumedTrigger");else{if(O.closeRequestedTrigger){var U; V=(U=O.closeRequestedTrigger)!=null&&U.triggeringLayoutId?new Eu(gu,O.closeRequestedTrigger.triggeringLayoutId,O.id):new P("Not able to create CloseRequestedTrigger")}else if(O.slotIdScheduledTrigger){var Z;V=(Z=O.slotIdScheduledTrigger)!=null&&Z.triggeringSlotId?new m3(gu,O.slotIdScheduledTrigger.triggeringSlotId,O.id):new P("Not able to create SlotIdScheduledTrigger")}else{if(O.mediaTimeRangeTrigger){var z;y=Number((z=O.mediaTimeRangeTrigger)==null?void 0:z.offsetStartMilliseconds);var c;H=Number((c= O.mediaTimeRangeTrigger)==null?void 0:c.offsetEndMilliseconds);isFinite(y)&&isFinite(H)?(c=H,c===-1&&(c=J),J=y>c?new P("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:y,offsetEndMs:c},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",c===J&&y-500<=c):new zh(y,c),O=J instanceof P?J:new ie(gu,V,J,!1,O.id)):O=new P("Not able to create MediaTimeRangeTrigger")}else if(O.contentVideoIdEndedTrigger)O=O.contentVideoIdEndedTrigger?new go(gu,V,!1,O.id):new P("Not able to create ContentVideoIdEndedTrigger"); else{if(O.layoutIdEnteredTrigger){var Y;V=(Y=O.layoutIdEnteredTrigger)!=null&&Y.triggeringLayoutId?new Qp(gu,O.layoutIdEnteredTrigger.triggeringLayoutId,O.id):new P("Not able to create LayoutIdEnteredTrigger")}else if(O.timeRelativeToLayoutEnterTrigger){var b;V=(b=O.timeRelativeToLayoutEnterTrigger)!=null&&b.triggeringLayoutId?new jx(gu,Number(O.timeRelativeToLayoutEnterTrigger.durationMs),O.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,O.id):new P("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(O.onDifferentLayoutIdEnteredTrigger){var M; V=(M=O.onDifferentLayoutIdEnteredTrigger)!=null&&M.triggeringLayoutId&&O.onDifferentLayoutIdEnteredTrigger.slotType&&O.onDifferentLayoutIdEnteredTrigger.layoutType?new BT(gu,O.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,O.onDifferentLayoutIdEnteredTrigger.slotType,O.onDifferentLayoutIdEnteredTrigger.layoutType,O.id):new P("Not able to create CloseRequestedTrigger")}else{if(O.liveStreamBreakStartedTrigger)O=O.liveStreamBreakStartedTrigger&&O.id?new ro(gu,O.id):new P("Not able to create LiveStreamBreakStartedTrigger"); else if(O.liveStreamBreakEndedTrigger)O=O.liveStreamBreakEndedTrigger&&O.id?new t2(gu,O.id):new P("Not able to create LiveStreamBreakEndedTrigger");else{if(O.liveStreamBreakScheduledDurationMatchedTrigger){var w;V=(w=O.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&w.breakDurationMs?new ue(Number(O.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,O.id):new P("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(O.liveStreamBreakScheduledDurationNotMatchedTrigger){var L; V=(L=O.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&L.breakDurationMs?new A2(Number(O.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,O.id):new P("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(O.newSlotScheduledWithBreakDurationTrigger){var X;V=(X=O.newSlotScheduledWithBreakDurationTrigger)!=null&&X.breakDurationMs?new RI(Number(O.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,O.id):new P("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else V= O.prefetchCacheExpiredTrigger?new DM(gu,O.id):new P("Not able to convert an AdsControlflowTrigger.");O=V}V=O}O=V}V=O}O=V}V=O}O=V}V=O}O=V}V=O}O=V}return O}; P3=function(O,V){V.K>=2&&(O.slot_pos=V.adPodIndex);O.autoplay="1"}; lK5=function(O,V,J,y,l,m,H,F){return V===null?new P("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:V,ActionCompanionAdRenderer:y}):[yon(O,V,H,m,function(N){var x=N.slotId;N=F(N);var W=y.adLayoutLoggingData,U=new Q5([new sx(y),new wF(l)]);x=MM(J.j.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",x);var Z={layoutId:x,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",PE:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",D4:new Map, layoutExitNormalTriggers:[new Sy(J.K,H)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:U,IB:N(Z),adLayoutLoggingData:W}})]}; m9X=function(O,V,J,y,l,m,H,F){return V===null?new P("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:V,TopBannerImageTextIconButtonedLayoutViewModel:y}):[yon(O,V,H,m,function(N){var x=N.slotId;N=F(N);var W=y.adLayoutLoggingData,U=new Q5([new TU(y),new wF(l)]);x=MM(J.j.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",x);var Z={layoutId:x,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",PE:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", D4:new Map,layoutExitNormalTriggers:[new Sy(J.K,H)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:U,IB:N(Z),adLayoutLoggingData:W}})]}; Cc1=function(O,V,J,y,l,m){if(!m)for(V=g.n(V),m=V.next();!m.done;m=V.next())m=m.value,kT(O,m.renderer,m.config.adPlacementConfig.kind);O=Array.from(O.values()).filter(function(W){return $97(W)}); V=[];m=g.n(O);for(var H=m.next(),F={};!H.done;F={vQ:void 0},H=m.next()){F.vQ=H.value;H=g.n(F.vQ.tN);for(var N=H.next(),x={};!N.done;x={HH:void 0},N=H.next())x.HH=N.value,N=function(W,U){return function(Z){return W.HH.T4(Z,U.vQ.instreamVideoAdRenderer.elementId,W.HH.ai)}}(x,F),x.HH.isContentVideoCompanion?V.push(HR5(J,y,l,F.vQ.instreamVideoAdRenderer.elementId,x.HH.associatedCompositePlayerBytesLayoutId,x.HH.adSlotLoggingData,N)):O.length>1?V.push(jSh(J,y,l,F.vQ.instreamVideoAdRenderer.elementId,x.HH.adSlotLoggingData, function(W,U){return function(Z){return W.HH.T4(Z,U.vQ.instreamVideoAdRenderer.elementId,W.HH.ai,W.HH.associatedCompositePlayerBytesLayoutId)}}(x,F))):V.push(jSh(J,y,l,F.vQ.instreamVideoAdRenderer.elementId,x.HH.adSlotLoggingData,N))}return V}; kT=function(O,V,J){if(V=F_V(V)){V=g.n(V);for(var y=V.next();!y.done;y=V.next())if((y=y.value)&&y.externalVideoId){var l=Sx(O,y.externalVideoId);l.instreamVideoAdRenderer||(l.instreamVideoAdRenderer=y,l.Pk=J)}else DJ("InstreamVideoAdRenderer without externalVideoId")}}; F_V=function(O){var V=[],J=O.sandwichedLinearAdRenderer&&O.sandwichedLinearAdRenderer.linearAd&&g.e(O.sandwichedLinearAdRenderer.linearAd,aM);if(J)return V.push(J),V;if(O.instreamVideoAdRenderer)return V.push(O.instreamVideoAdRenderer),V;if(O.linearAdSequenceRenderer&&O.linearAdSequenceRenderer.linearAds){O=g.n(O.linearAdSequenceRenderer.linearAds);for(J=O.next();!J.done;J=O.next())J=J.value,g.e(J,aM)&&V.push(g.e(J,aM));return V}return null}; $97=function(O){if(O.instreamVideoAdRenderer===void 0)return DJ("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var V=g.n(O.tN),J=V.next();!J.done;J=V.next()){J=J.value;if(J.T4===void 0)return!1;if(J.ai===void 0)return DJ("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(O.Pk===void 0||J.Y_===void 0||O.Pk!==J.Y_&&J.Y_!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(O.instreamVideoAdRenderer.elementId===void 0)return DJ("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:O.Pk,"matching APSR kind":J.Y_}),!1}return!0}; Sx=function(O,V){O.has(V)||O.set(V,{instreamVideoAdRenderer:void 0,Pk:void 0,adVideoId:V,tN:[]});return O.get(V)}; Dp=function(O,V,J,y,l,m,H,F,N){l?Sx(O,l).tN.push({atD:V,Y_:J,isContentVideoCompanion:y,ai:H,associatedCompositePlayerBytesLayoutId:m,adSlotLoggingData:F,T4:N}):DJ("Companion AdPlacementSupportedRenderer without adVideoId")}; OE=function(O){var V=0;O=g.n(O.questions);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J=g.e(J,gh)||g.e(J,q3)){var y=void 0;V+=((y=J.surveyAdQuestionCommon)==null?void 0:y.durationMilliseconds)||0}return V}; VN=function(O){var V,J,y,l,m=((J=g.e((V=O.questions)==null?void 0:V[0],gh))==null?void 0:J.surveyAdQuestionCommon)||((l=g.e((y=O.questions)==null?void 0:y[0],q3))==null?void 0:l.surveyAdQuestionCommon),H;V=[].concat(g.q(((H=O.playbackCommands)==null?void 0:H.instreamAdCompleteCommands)||[]),g.q((m==null?void 0:m.timeoutCommands)||[]));var F,N,x,W,U,Z,z,c,Y,b,M,w,L,X,u,G,k,D,Oo,md;return{impressionCommands:(F=O.playbackCommands)==null?void 0:F.impressionCommands,errorCommands:(N=O.playbackCommands)== null?void 0:N.errorCommands,muteCommands:(x=O.playbackCommands)==null?void 0:x.muteCommands,unmuteCommands:(W=O.playbackCommands)==null?void 0:W.unmuteCommands,pauseCommands:(U=O.playbackCommands)==null?void 0:U.pauseCommands,rewindCommands:(Z=O.playbackCommands)==null?void 0:Z.rewindCommands,resumeCommands:(z=O.playbackCommands)==null?void 0:z.resumeCommands,skipCommands:(c=O.playbackCommands)==null?void 0:c.skipCommands,progressCommands:(Y=O.playbackCommands)==null?void 0:Y.progressCommands,fGn:(b= O.playbackCommands)==null?void 0:b.clickthroughCommands,fullscreenCommands:(M=O.playbackCommands)==null?void 0:M.fullscreenCommands,activeViewViewableCommands:(w=O.playbackCommands)==null?void 0:w.activeViewViewableCommands,activeViewMeasurableCommands:(L=O.playbackCommands)==null?void 0:L.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(X=O.playbackCommands)==null?void 0:X.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(u=O.playbackCommands)== null?void 0:(G=u.activeViewTracking)==null?void 0:G.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(k=O.playbackCommands)==null?void 0:(D=k.activeViewTracking)==null?void 0:D.activeViewAudioMeasurableCommands,endFullscreenCommands:(Oo=O.playbackCommands)==null?void 0:Oo.endFullscreenCommands,abandonCommands:(md=O.playbackCommands)==null?void 0:md.abandonCommands,completeCommands:V}}; x97=function(O,V,J,y,l,m,H){return function(F,N){return NFV(O,N.slotId,F,m,function(x,W){var U=N.layoutId;x=H(x);return Jm(V,U,W,l,x,"LAYOUT_TYPE_SURVEY",[new ic(J),y],J.adLayoutLoggingData)})}}; ZRX=function(O,V,J,y,l,m,H){if(!W_p(O))return new P("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:O});var F=O.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[U9d(m,V,J,y,function(N){var x=N.slotId;N=H(N);x=MM(l.j.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",x);var W={layoutId:x,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",PE:"core"},U=new Kx(l.K,y);return{layoutId:x,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",D4:new Map,layoutExitNormalTriggers:[U], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([new RS(F)]),IB:N(W)}})]}; W_p=function(O){O=g.e(O==null?void 0:O.additionalPlayerOverlay,zX1);if(!O)return!1;var V=O.slidingMessages;return O.title&&V&&V.length!==0?!0:!1}; sSo=function(O,V,J,y,l){var m;if((m=O.playerOverlay)==null||!m.instreamSurveyAdRenderer)return function(){return[]}; if(!t4H(O))return function(){return new P("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:O})}; var H=O.playerOverlay.instreamSurveyAdRenderer,F=OE(H);return F<=0?function(){return new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:H})}:function(N,x){var W=coh(N,J,y,function(U){var Z=U.slotId; U=x(U);var z=VN(H);Z=MM(l.j.get(),"LAYOUT_TYPE_SURVEY",Z);var c={layoutId:Z,layoutType:"LAYOUT_TYPE_SURVEY",PE:"core"},Y=new Kx(l.K,y),b=new Ol(l.K,Z),M=new H3(l.K,Z),w=new T6U(l.K);return{layoutId:Z,layoutType:"LAYOUT_TYPE_SURVEY",D4:new Map,layoutExitNormalTriggers:[Y,w],layoutExitSkipTriggers:[b],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[M],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([new rF(H),new wF(V),new Ys(F/1E3),new fF(z)]),IB:U(c),adLayoutLoggingData:H.adLayoutLoggingData}}); N=ZRX(O,J,W.slotId,y,l,N,x);return N instanceof P?N:[W].concat(g.q(N))}}; pfp=function(O,V,J,y,l,m,H,F){H=H===void 0?!1:H;var N=[];try{var x=[];if(J.renderer.linearAdSequenceRenderer)var W=function(b){b=TF5(b.slotId,J,V,l(b),y,m,H);x=b.KxB;return b.oC}; else if(J.renderer.instreamVideoAdRenderer)W=function(b){var M=b.slotId;b=l(b);var w=H,L=J.config.adPlacementConfig,X=eXh(L),u=X.TO,G=X.sN;X=J.renderer.instreamVideoAdRenderer;var k;if(X==null?0:(k=X.playerOverlay)==null?0:k.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var D=yN(X,w);k=Math.min(u+D.videoLengthSeconds*1E3,G);w=new nx(0,[D.videoLengthSeconds]);G=D.videoLengthSeconds;var Oo=D.playerVars,md=D.instreamAdPlayerOverlayRenderer,xY=D.playerOverlayLayoutRenderer, V7=D.adVideoId,Tr=IKY(J),Rp=D.D4;D=D.zf;var ys=X==null?void 0:X.adLayoutLoggingData;X=X==null?void 0:X.sodarExtensionData;M=MM(V.j.get(),"LAYOUT_TYPE_MEDIA",M);var JI={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",PE:"core"};return{layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",D4:Rp,layoutExitNormalTriggers:[new t2(V.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([new dF(y),new $s(G),new H0(Oo), new F7(u),new Nd(k),md&&new gF(md),xY&&new q9(xY),new wF(L),new Ex(V7),new M9(w),new z_(Tr),X&&new CF(X),new V5({current:null}),new W0({}),new v0(D)].filter(Yx5)),IB:b(JI),adLayoutLoggingData:ys}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var U=aKV(O,y,J.adSlotLoggingData,W,F);N.push(U);for(var Z=g.n(x),z=Z.next();!z.done;z=Z.next()){var c=z.value,Y=c(O,l);if(Y instanceof P)return Y;N.push.apply(N,g.q(Y))}}catch(b){return new P(b,{errorMessage:b.message,AdPlacementRenderer:J,numberOfSurveyRenderers:bRo(J)})}return N}; bRo=function(O){O=(O.renderer.linearAdSequenceRenderer||{}).linearAds;return O!=null&&O.length?O.filter(function(V){var J,y;return((J=g.e(V,aM))==null?void 0:(y=J.playerOverlay)==null?void 0:y.instreamSurveyAdRenderer)!=null}).length:0}; TF5=function(O,V,J,y,l,m,H){var F=V.config.adPlacementConfig,N=eXh(F),x=N.TO,W=N.sN;N=(V.renderer.linearAdSequenceRenderer||{}).linearAds;if(N==null||!N.length)throw new TypeError("Expected linear ads");var U=[],Z={Wr:x,GQ:0,eXE:U};N=N.map(function(c){return fKl(O,c,Z,J,y,F,l,W,H)}).map(function(c,Y){Y=new nx(Y,U); return c(Y)}); var z=N.map(function(c){return c.kC}); return{oC:hXo(J,O,x,z,F,IKY(V),y,W,m),KxB:N.map(function(c){return c.qBv})}}; fKl=function(O,V,J,y,l,m,H,F,N){var x=yN(g.e(V,aM),N),W=J.Wr,U=J.GQ,Z=Math.min(W+x.videoLengthSeconds*1E3,F);J.Wr=Z;J.GQ++;J.eXE.push(x.videoLengthSeconds);var z,c,Y=(z=g.e(V,aM))==null?void 0:(c=z.playerOverlay)==null?void 0:c.instreamSurveyAdRenderer;if(x.adVideoId==="nPpU29QrbiU"&&Y==null)throw new TypeError("Survey slate media has no survey overlay");return function(b){P3(x.playerVars,b);var M,w,L=x.videoLengthSeconds,X=x.playerVars,u=x.D4,G=x.zf,k=x.instreamAdPlayerOverlayRenderer,D=x.playerOverlayLayoutRenderer, Oo=x.adVideoId,md=(M=g.e(V,aM))==null?void 0:M.adLayoutLoggingData;M=(w=g.e(V,aM))==null?void 0:w.sodarExtensionData;w=MM(y.j.get(),"LAYOUT_TYPE_MEDIA",O);var xY={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",PE:"adapter"};b={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",D4:u,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"adapter",clientMetadata:new Q5([new dF(H),new $s(L),new H0(X),new F7(W),new Nd(Z), new xs(U),new V5({current:null}),k&&new gF(k),D&&new q9(D),new wF(m),new Ex(Oo),new M9(b),M&&new CF(M),Y&&new oy(Y),new W0({}),new v0(G)].filter(Yx5)),IB:l(xY),adLayoutLoggingData:md};L=sSo(g.e(V,aM),m,H,b.layoutId,y);return{kC:b,qBv:L}}}; yN=function(O,V){if(!O)throw new TypeError("Expected instream video ad renderer");if(!O.playerVars)throw new TypeError("Expected player vars in url encoded string");var J=y7(O.playerVars),y=Number(J.length_seconds);if(isNaN(y))throw new TypeError("Expected valid length seconds in player vars");var l=Number(O.trimmedMaxNonSkippableAdDurationMs);y=isNaN(l)?y:Math.min(y,l/1E3);l=O.playerOverlay||{};l=l.instreamAdPlayerOverlayRenderer===void 0?null:l.instreamAdPlayerOverlayRenderer;var m=O.playerOverlay|| {};m=m.playerOverlayLayoutRenderer===void 0?null:m.playerOverlayLayoutRenderer;var H=J.video_id;H||(H=(H=O.externalVideoId)?H:void 0);if(!H)throw new TypeError("Expected valid video id in IVAR");if(V&&y===0){var F;V=(F=oLp[H])!=null?F:y}else V=y;return{playerVars:J,videoLengthSeconds:V,instreamAdPlayerOverlayRenderer:l,playerOverlayLayoutRenderer:m,adVideoId:H,D4:O.pings?$p(O.pings):new Map,zf:mY(O.pings)}}; IKY=function(O){O=Number(O.driftRecoveryMs);return isNaN(O)||O<=0?null:O}; eXh=function(O){var V=O.adTimeOffset||{};O=V.offsetEndMilliseconds;V=Number(V.offsetStartMilliseconds);if(isNaN(V))throw new TypeError("Expected valid start offset");O=Number(O);if(isNaN(O))throw new TypeError("Expected valid end offset");return{TO:V,sN:O}}; vLd=function(O){var V,J=(V=G_(O.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current;if(!J)return null;V=G_(O.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var y=O.layoutId,l=G_(O.clientMetadata,"metadata_type_content_cpn"),m=G_(O.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),H=G_(O.clientMetadata,"metadata_type_player_underlay_renderer"),F=G_(O.clientMetadata,"metadata_type_ad_placement_config"),N=G_(O.clientMetadata,"metadata_type_video_length_seconds"); var x=Es(O.clientMetadata,"metadata_type_layout_enter_ms")&&Es(O.clientMetadata,"metadata_type_layout_exit_ms")?(G_(O.clientMetadata,"metadata_type_layout_exit_ms")-G_(O.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{L4:y,contentCpn:l,A5:J,sf:V,instreamAdPlayerOverlayRenderer:m,instreamAdPlayerUnderlayRenderer:H,adPlacementConfig:F,videoLengthSeconds:N,jF:x,inPlayerLayoutId:G_(O.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:G_(O.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; L_l=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z,c){y=Pb(y,"SLOT_TYPE_PLAYER_BYTES");O=wfY(l,O,H,J,y,N,x);if(O instanceof P)return O;var Y;x=(Y=G_(O.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:Y.layoutId;if(!x)return new P("Invalid adNotify layout");V=Mmp(x,l,m,J,F,V,N,W,U,Z,z,c,H);return V instanceof P?V:[O].concat(g.q(V))}; Mmp=function(O,V,J,y,l,m,H,F,N,x,W,U,Z){J=nLr(V,J,y,m,H,F,N,x,W,U,Z);if(J instanceof P)return J;O=Xfd(V,O,H,l,J);return O instanceof P?O:[].concat(g.q(O.F6),[O.PR])}; d9n=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z){V=nLr(O,V,J,l,m,F,N,x,W,U,Z,z);if(V instanceof P)return V;O=EL1(O,J,m,H,y,F.Gy,V);return O instanceof P?O:O.F6.concat(O.PR)}; nLr=function(O,V,J,y,l,m,H,F,N,x,W,U){var Z=lz(y);return Z instanceof qd?new P(Z):x.G.Y().experiments.Jv("html5_refactor_in_player_slot_generation")?function(z){var c=new nx(0,[Z.Us]);z=gLh(V,Z.layoutId,Z.tI,J,m8(Z.playerVars,Z.DJ,m,N,c),Z.Us,l,c,H(z),F.get(Z.tI.externalVideoId),U);c=[];if(Z.tI.playerOverlay.instreamAdPlayerOverlayRenderer){var Y=vLd(z);if(!Y)return DJ("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,z),{layout:z,F6:[]};c=[qx1(O, Y.contentCpn,Y.L4,function(M){return $8(V,M.slotId,"core",Y,i_(W,M))},Y.inPlayerSlotId)].concat(g.q(c)); if(Y.instreamAdPlayerUnderlayRenderer&&HY(x)){var b=Y.instreamAdPlayerUnderlayRenderer;c=[QSX(O,Y.contentCpn,Y.L4,function(M){return GUU(V,M.slotId,b,Y.adPlacementConfig,Y.L4,i_(W,M))})].concat(g.q(c))}}return{layout:z, F6:c}}:function(z){var c=new nx(0,[Z.Us]); return{layout:gLh(V,Z.layoutId,Z.tI,J,m8(Z.playerVars,Z.DJ,m,N,c),Z.Us,l,c,H(z),F.get(Z.tI.externalVideoId),U),F6:[]}}}; lz=function(O){if(!O.playerVars)return new qd("No playerVars available in InstreamVideoAdRenderer.");var V,J;if(O.elementId==null||O.playerVars==null||O.playerOverlay==null||((V=O.playerOverlay)==null?void 0:V.instreamAdPlayerOverlayRenderer)==null&&((J=O.playerOverlay)==null?void 0:J.playerOverlayLayoutRenderer)==null||O.pings==null||O.externalVideoId==null)return new qd("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:O});V=y7(O.playerVars);J=Number(V.length_seconds);isNaN(J)&& (J=0,DJ("Expected valid length seconds in player vars but got NaN"));return{layoutId:O.elementId,tI:O,playerVars:V,DJ:O.playerVars,Us:J}}; m8=function(O,V,J,y,l){O.iv_load_policy=y;V=y7(V);if(V.cta_conversion_urls)try{O.cta_conversion_urls=JSON.parse(V.cta_conversion_urls)}catch(m){DJ(m)}J.Rz&&(O.ctrl=J.Rz);J.yI&&(O.ytr=J.yI);J.rR&&(O.ytrcc=J.rR);J.isMdxPlayback&&(O.mdx="1");O.vvt&&(O.vss_credentials_token=O.vvt,J.F$&&(O.vss_credentials_token_type=J.F$),J.mdxEnvironment&&(O.mdx_environment=J.mdxEnvironment));P3(O,l);return O}; K_Y=function(O){var V=new Map;O=g.n(O);for(var J=O.next();!J.done;J=O.next())(J=J.value.renderer.remoteSlotsRenderer)&&J.hostElementId&&V.set(J.hostElementId,J);return V}; jE=function(O){return O.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; tmH=function(O){return O!=null}; kUr=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z,c){for(var Y=[],b=g.n(O),M=b.next();!M.done;M=b.next())if(M=M.value,!LAh(M)&&!qBr(M)){var w=uSn(M,y,J.GM);if(w instanceof P)return w;var L=void 0,X={slotId:M.adSlotMetadata.slotId,slotType:M.adSlotMetadata.slotType,slotPhysicalPosition:(L=M.adSlotMetadata.slotPhysicalPosition)!=null?L:1,PE:"core",slotEntryTrigger:w.slotEntryTrigger,slotFulfillmentTriggers:w.slotFulfillmentTriggers,slotExpirationTriggers:w.slotExpirationTriggers},u=g.e(M.fulfillmentContent.fulfilledLayout, oM);if(u){if(!hE(u))return new P("Invalid PlayerBytesAdLayoutRenderer");L=U&&!(jE(M)&&M.slotEntryTrigger.beforeContentVideoIdStartedTrigger);w=w.slotFulfillmentTriggers.some(function(G){return G instanceof ue}); w=L?Aon(X,M.adSlotMetadata.triggerEvent,u,J,y,m,O,Z,w,z):ro5(X,M.adSlotMetadata.triggerEvent,u,V,J,y,l,m,H,F,N,x,O,W,M.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof P)return w;u=[];c?u.push(new mJ({current:c})):u.push(new mJ({current:null}));jE(M)&&u.push(new nF({ph:jE(M)&&!!M.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));L&&u.push(new W0({}));J.Gy&&u.push(new hA({}));M=Object.assign({},X,{clientMetadata:new Q5(u),fulfilledLayout:w.layout,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData}); Y.push.apply(Y,g.q(w.F6));Y.push(M)}else if(L=g.e(M.fulfillmentContent.fulfilledLayout,XG)){if(!M4d(L))return new P("Invalid PlayerUnderlayAdLayoutRenderer");L=iRh(L,y,J.GM,m,X,M.adSlotMetadata.triggerEvent,M.adSlotMetadata.triggeringSourceLayoutId);if(L instanceof P)return L;M=Object.assign({},X,{clientMetadata:new Q5([]),fulfilledLayout:L,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});Y.push(M)}else if(L=g.e(M.fulfillmentContent.fulfilledLayout,dF7)){if(!FG(L.adLayoutMetadata)||!g.e(L.renderingContent, M3))return new P("Invalid InPlayerOrganicOverlayAdLayoutRenderer");L=L.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?RX5(L,y,J.GM,m,X):new P("LayoutType ["+L.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(L instanceof P)return L;M=Object.assign({},X,{clientMetadata:new Q5([]),fulfilledLayout:L,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});Y.push(M)}else if(L=g.e(M.fulfillmentContent.fulfilledLayout,X7d)){if(!aaX(L))return new P("Invalid AboveFeedAdLayoutRenderer"); L=BFn(L,y,J.GM,m,X,M.adSlotMetadata.triggerEvent,M.adSlotMetadata.triggeringSourceLayoutId);if(L instanceof P)return L;M=Object.assign({},X,{clientMetadata:new Q5([]),fulfilledLayout:L,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});Y.push(M)}else if(L=g.e(M.fulfillmentContent.fulfilledLayout,Ezr)){if(!FG(L.adLayoutMetadata)||!g.e(L.renderingContent,N3))return new P("Invalid BelowPlayerAdLayoutRenderer");L=BFn(L,y,J.GM,m,X,M.adSlotMetadata.triggerEvent,M.adSlotMetadata.triggeringSourceLayoutId); if(L instanceof P)return L;M=Object.assign({},X,{clientMetadata:new Q5([]),fulfilledLayout:L,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});Y.push(M)}else if(L=g.e(M.fulfillmentContent.fulfilledLayout,El)){if(!wh(L))return new P("Invalid PlayerBytesSequenceItemAdLayoutRenderer");L=Pc5(L,y,J.GM,m,X,M.adSlotMetadata.triggerEvent);if(L instanceof P)return L;M=Object.assign({},X,{clientMetadata:new Q5([]),fulfilledLayout:L,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});Y.push(M)}else return new P("Unable to retrieve a client slot ["+ X.slotType+"] from a given AdSlotRenderer")}return Y}; Pc5=function(O,V,J,y,l,m){var H={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,PE:"core"};V=Ck(O,V,J);return V instanceof P?V:(J=g.e(O.renderingContent,v3))&&J.pings?Object.assign({},H,{renderingContent:O.renderingContent,D4:$p(J.pings)},V,{IB:i_(y,l)(H),clientMetadata:new Q5([new wF(Fq(m)),new fF({progressCommands:J.progressCommands})]),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData}):new P("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; BFn=function(O,V,J,y,l,m,H){var F={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,PE:"core"};V=Ck(O,V,J);if(V instanceof P)return V;J=[];J.push(new wF(Fq(m)));m==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&H!==void 0&&J.push(new Bf(H));return Object.assign({},F,{renderingContent:O.renderingContent,D4:new Map([["impression",Sxl(O)]])},V,{IB:i_(y,l)(F),clientMetadata:new Q5(J),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})}; iRh=function(O,V,J,y,l,m,H){if(O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var F=g.e(O.renderingContent,L6),N=g.e(O.renderingContent,M3);H=new Map;if(F){H=g.e(F.sidePanel,vzX);if(!H){O=new P("DismissablePanelTextPortraitImageRenderer is missing");break a}H=new Map([["impression",H.impressionPings||[]],["resume",H.resumePings||[]]])}else if(!N){O=new P("AdsEngagementPanelSectionListViewModel is missing");break a}F={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType, PE:"core"};V=Ck(O,V,J);O=V instanceof P?V:Object.assign({},F,{renderingContent:O.renderingContent,D4:H},V,{IB:i_(y,l)(F),clientMetadata:new Q5([new wF(Fq(m))]),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})}else O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.e(O.renderingContent,h6X)?(H={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,PE:"core"},V=Ck(O,V,J),O=V instanceof P?V:Object.assign({},H,{renderingContent:O.renderingContent,D4:new Map}, V,{IB:i_(y,l)(H),clientMetadata:new Q5([new wF(Fq(m))]),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})):O=new P("CounterfactualRenderer is missing"):O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?O=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?O=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"? g.e(O.renderingContent,n6)?(m={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,PE:"core"},V=Ck(O,V,J),O=V instanceof P?V:H?Object.assign({},m,{renderingContent:O.renderingContent,D4:new Map},V,{IB:i_(y,l)(m),clientMetadata:new Q5([new Bf(H)]),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData}):new P("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):O=new P("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.e(O.renderingContent,M3)?(m={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,PE:"core"},V=Ck(O,V,J),O=V instanceof P?V:Object.assign({},m,{renderingContent:O.renderingContent,D4:new Map([])},V,{IB:i_(y,l)(m),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Q5([])})):O=new P("AdsEngagementPanelSectionListViewModel is missing"):(O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_IMAGE_QR_CODE"? F=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):F=new P("LayoutType ["+O.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot"),O=F);return O}; RX5=function(O,V,J,y,l){if(!g.e(O.renderingContent,M3))return new P("AdsEngagementPanelSectionListViewModel is missing");var m={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,PE:"core"};V=Ck(O,V,J);return V instanceof P?V:Object.assign({},m,{renderingContent:O.renderingContent,D4:new Map([])},V,{IB:i_(y,l)(m),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Q5([])})}; Aon=function(O,V,J,y,l,m,H,F,N,x){if((x==null?void 0:x.qx)===void 0||(x==null?void 0:x.pG)===void 0)return new P("Cached ad break range from cue point is missing");var W=Ck(J,l,y.GM);if(W instanceof P)return W;W={layoutExitMuteTriggers:[],layoutExitNormalTriggers:W.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.e(J.renderingContent,aM))return O=D9o(O,V,J,W,l,m,H,y.GM,x.qx,x.pG),O instanceof P?O:O.yl===void 0?new P("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:O.layout,F6:[O.yl]};var U=g.e(J.renderingContent,ex);if(U){if(!FG(J.adLayoutMetadata))return new P("Invalid ad layout metadata");if(!IM(U))return new P("Invalid sequential layout");U=U.sequentialLayouts.map(function(Z){return Z.playerBytesAdLayoutRenderer}); O=OFp(O,V,J,W,U,l,y,m,H,F,x.qx,x.pG,N);return O instanceof P?O:{layout:O.S1,F6:O.F6}}return new P("Not able to convert a sequential layout")}; OFp=function(O,V,J,y,l,m,H,F,N,x,W,U,Z){var z=VqH(l,W,U);if(z instanceof P)return z;var c=[],Y=[];z=g.n(z);for(var b=z.next();!b.done;b=z.next()){var M=b.value;b=O;var w=l[M.GQ],L=M,X=V;M=m;var u=H,G=F,k=N,D=Ns(w);if(D instanceof P)b=D;else{var Oo={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,PE:"adapter"};L=JAo(X,w,L,M);L instanceof P?b=L:(b=Object.assign({},Oo,x8,{D4:D,renderingContent:w.renderingContent,clientMetadata:new Q5(L),IB:i_(G,b)(Oo),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData}), b=(w=WY(k,b,M,u.GM,G,void 0,!0))?w instanceof P?w:{layout:b,yl:w}:new P("Expecting associatedInPlayerSlot"))}if(b instanceof P)return b;c.push(b.layout);Y.push(b.yl)}l={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,PE:"core"};V=[new z_(Number(J.driftRecoveryMs)),new F7(W),new Nd(U),new wF(Fq(V)),new Md(x),new W0({})];Z&&V.push(new X7({}));return{S1:Object.assign({},l,y,{YP:c,D4:new Map,clientMetadata:new Q5(V),IB:i_(F,O)(l)}),F6:Y}}; D9o=function(O,V,J,y,l,m,H,F,N,x){if(!hE(J))return new P("Invalid PlayerBytesAdLayoutRenderer");var W=Ns(J);if(W instanceof P)return W;var U={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,PE:"core"},Z=g.e(J.renderingContent,aM);if(!Z)return new P("Invalid rendering content for DAI media layout");Z=yN(Z,!1);N={ML:Z,GQ:0,Wr:N,Lx:Math.min(N+Z.videoLengthSeconds*1E3,x),RF:new nx(0,[Z.videoLengthSeconds])};var z;x=(z=Number(J.driftRecoveryMs))!=null?z:void 0;V=JAo(V,J,N, l,x);if(V instanceof P)return V;O=Object.assign({},U,y,{D4:W,renderingContent:J.renderingContent,clientMetadata:new Q5(V),IB:i_(m,O)(U),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData});return(l=WY(H,O,l,F,m,void 0,!0))?l instanceof P?l:{layout:O,yl:l}:new P("Expecting associatedInPlayerSlot")}; ro5=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z,c){var Y=Ck(J,m,l.GM);if(Y instanceof P)return Y;if(g.e(J.renderingContent,aM)){N=yAU([J],l,N);if(N instanceof P)return N;if(N.length!==1)return new P("Only expected one media layout.");O=lPp(O,V,J,Y,N[0],void 0,"core",y,m,H,F,x,Z,z,l.GM,void 0,c);return O instanceof P?O:{layout:O.layout,F6:O.yl?[O.yl]:[]}}var b=g.e(J.renderingContent,ex);if(b){if(!FG(J.adLayoutMetadata))return new P("Invalid ad layout metadata");if(!IM(b))return new P("Invalid sequential layout"); b=b.sequentialLayouts.map(function(M){return M.playerBytesAdLayoutRenderer}); O=mdo(O,V,J.adLayoutMetadata,Y,b,y,m,l,N,H,F,x,W,U,Z,z,c);return O instanceof P?O:{layout:O.S1,F6:O.F6}}return new P("Not able to convert a sequential layout")}; mdo=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z,c,Y,b){var M=new XS({current:null}),w=yAU(l,F,N);if(w instanceof P)return w;N=[];for(var L=[],X=void 0,u=0;u0&&(X.push(Y),X.push(new nR(L.adPodSkipTarget)));(m=x.get(L.externalVideoId))&&X.push(new Iy(m));m=X}else m=new P("Invalid vod media renderer")}if(m instanceof P)return m;O=Object.assign({},H, y,{D4:M,renderingContent:J.renderingContent,clientMetadata:new Q5(m),IB:i_(W,O)(H),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData});J=g.e(J.renderingContent,aM);if(!J||!Tw(J))return new P("Invalid meida renderer");U=Sx(U,J.externalVideoId);U.instreamVideoAdRenderer=J;U.Pk="AD_PLACEMENT_KIND_START";return z?(N=WY(Z,O,N,c,W,Y,!1),N instanceof P?N:jyr(O.layoutId,Z)&&N?{layout:Object.assign({},O,{clientMetadata:new Q5(m.concat(new KR(N)))})}:{layout:O,yl:N}):{layout:O}}; $dY=function(O,V,J,y,l){if(!hE(V))return new P("Invalid PlayerBytesAdLayoutRenderer");var m=g.e(V.renderingContent,u3);if(!m||m.durationMilliseconds===void 0)return new P("Invalid endcap renderer");var H={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,PE:"adapter"};y=[new ay(m.durationMilliseconds),new fF({impressionCommands:void 0,abandonCommands:m.abandonCommands?[{commandExecutorCommand:m.abandonCommands}]:void 0,completeCommands:m.completionCommands}),new wF(y), new Sm("LAYOUT_TYPE_ENDCAP")];if(l){y.push(new LR(l.RF.adPodIndex-1));y.push(new xs(l.RF.adPodIndex));var F;y.push(new nR((F=l.adPodSkipTarget)!=null?F:-1))}return Object.assign({},H,x8,{renderingContent:V.renderingContent,clientMetadata:new Q5(y),D4:m.skipPings?new Map([["skip",m.skipPings]]):new Map,IB:i_(J,O)(H),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData})}; WY=function(O,V,J,y,l,m,H){O=O.filter(function(U){return U.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&U.adSlotMetadata.triggeringSourceLayoutId===V.layoutId}); if(O.length!==0){if(O.length!==1)return new P("Invalid InPlayer slot association for the given PlayerBytes layout");var F=O[0],N=uSn(F,J,y);if(N instanceof P)return N;var x;O={slotId:F.adSlotMetadata.slotId,slotType:F.adSlotMetadata.slotType,slotPhysicalPosition:(x=F.adSlotMetadata.slotPhysicalPosition)!=null?x:1,PE:"core",slotEntryTrigger:N.slotEntryTrigger,slotFulfillmentTriggers:N.slotFulfillmentTriggers,slotExpirationTriggers:N.slotExpirationTriggers};x=g.e(F.fulfillmentContent.fulfilledLayout, nzr);if(!x||!far(x))return new P("Invalid InPlayerAdLayoutRenderer");N={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,PE:"core"};J=Ck(x,J,y);if(J instanceof P)return J;y=[];var W=x.adLayoutMetadata.layoutType;H&&y.push(new W0({}));if(W==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")y.push.apply(y,g.q(C_U(F.adSlotMetadata.triggerEvent,V))),(m=FJo(J,V.layoutId))&&y.push(new Pf(m));else if(W==="LAYOUT_TYPE_ENDCAP"||W==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){y.push(new wF(Fq(F.adSlotMetadata.triggerEvent))); if(W==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new P("Cannot parse endcap layout since AdUxReadyApi is not provided");m&&y.push(m)}else return new P("Not able to parse an SDF InPlayer layout");l=Object.assign({},N,J,{renderingContent:x.renderingContent,D4:new Map,IB:i_(l,O)(N),clientMetadata:new Q5(y),adLayoutLoggingData:x.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},O,{fulfilledLayout:l,clientMetadata:new Q5([])})}}; C_U=function(O,V){var J=[];J.push(new wF(Fq(O)));J.push(new Bf(V.layoutId));(O=G_(V.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&J.push(new V5(O));(O=G_(V.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&J.push(new XS(O));(O=G_(V.clientMetadata,"metadata_type_remote_slots_data"))&&J.push(new Iy(O));(O=G_(V.clientMetadata,"metadata_type_ad_next_params"))&&J.push(new YL(O));(O=G_(V.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&J.push(new aS(O));(O= G_(V.clientMetadata,"metadata_type_ad_pod_info"))&&J.push(new M9(O));(V=G_(V.clientMetadata,"metadata_type_ad_video_id"))&&J.push(new Ex(V));return J}; HFh=function(O,V,J,y,l,m){function H(x){return UE(V,x)} var F=y.Kl.inPlayerSlotId,N={layoutId:y.Kl.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",PE:"core"};J={slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:new Qp(H,O),slotFulfillmentTriggers:[new VQ(H,F)],slotExpirationTriggers:[new JE(H,F),new Sy(H,J)]};O=Object.assign({},N,{layoutExitNormalTriggers:[new Kx(H,O)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],D4:new Map,clientMetadata:new Q5([new uc(y.Kl), new wF(y.adPlacementConfig),l]),IB:i_(m,J)(N),adLayoutLoggingData:y.Kl.adLayoutLoggingData});return Object.assign({},J,{clientMetadata:new Q5([new c0(O)])})}; jyr=function(O,V){V=g.n(V);for(var J=V.next();!J.done;J=V.next())if(J=J.value,J.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var y=g.e(J.fulfillmentContent.fulfilledLayout,XG);if(y&&(y=g.e(y.renderingContent,L6))&&y.associatedPlayerBytesLayoutId===O)return J}}; uSn=function(O,V,J){var y=B3(O.slotEntryTrigger,V,J);if(y instanceof P)return y;for(var l=[],m=g.n(O.slotFulfillmentTriggers),H=m.next();!H.done;H=m.next()){H=B3(H.value,V,J);if(H instanceof P)return H;l.push(H)}m=[];O=g.n(O.slotExpirationTriggers);for(H=O.next();!H.done;H=O.next()){H=B3(H.value,V,J);if(H instanceof P)return H;m.push(H)}return{slotEntryTrigger:y,slotFulfillmentTriggers:l,slotExpirationTriggers:m}}; Ck=function(O,V,J){for(var y=[],l=g.n(O.layoutExitNormalTriggers||[]),m=l.next();!m.done;m=l.next()){m=B3(m.value,V,J);if(m instanceof P)return m;y.push(m)}l=[];m=g.n(O.layoutExitSkipTriggers||[]);for(var H=m.next();!H.done;H=m.next()){H=B3(H.value,V,J);if(H instanceof P)return H;l.push(H)}m=[];H=g.n(O.layoutExitMuteTriggers||[]);for(var F=H.next();!F.done;F=H.next()){F=B3(F.value,V,J);if(F instanceof P)return F;m.push(F)}H=[];O=g.n(O.layoutExitUserInputSubmittedTriggers||[]);for(F=O.next();!F.done;F= O.next()){F=B3(F.value,V,J);if(F instanceof P)return F;H.push(F)}return{layoutExitNormalTriggers:y,layoutExitSkipTriggers:l,layoutExitMuteTriggers:m,layoutExitUserInputSubmittedTriggers:H,layoutExitUserCancelledTriggers:[]}}; Ns=function(O){var V=g.e(O.renderingContent,aM);if(V==null?0:V.pings)return $p(V.pings);O=g.e(O.renderingContent,u3);return(O==null?0:O.skipPings)?new Map([["skip",O.skipPings]]):new Map}; JAo=function(O,V,J,y,l){V=g.e(V.renderingContent,aM);if(!V)return new P("Invalid rendering content for DAI media layout");O=[new dF(y),new $s(J.ML.videoLengthSeconds),new H0(J.ML.playerVars),new F7(J.Wr),new Nd(J.Lx),new xs(J.GQ),new wF(Fq(O)),new Ex(J.ML.adVideoId),new M9(J.RF),V.sodarExtensionData&&new CF(V.sodarExtensionData),new V5({current:null}),new W0({}),new v0(mY(V.pings))].filter(tmH);l!==void 0&&O.push(new z_(l));return O}; VqH=function(O,V,J){O=O.map(function(N){return yN(g.e(N.renderingContent,aM),!1)}); var y=O.map(function(N){return N.videoLengthSeconds}),l=y.map(function(N,x){return new nx(x,y)}),m=V,H=J,F=[]; O.forEach(function(N,x){H=Math.min(m+N.videoLengthSeconds*1E3,J);P3(N.playerVars,l[x]);F.push({ML:N,Wr:m,Lx:H,GQ:x,RF:l[x]});m=H}); return F}; yAU=function(O,V,J){for(var y=[],l=g.n(O),m=l.next();!m.done;m=l.next())if(m=g.e(m.value.renderingContent,aM)){if(!Tw(m))return new P("Invalid vod media renderer");y.push(Nup(m))}l=y.map(function(U){return U.Us}); m=[];for(var H=0,F=0;F0?md:-1;else if(Tr=g.e(V7,u3)){V7= YsH(O,V,J,Tr,m,Y,F,k,md);if(V7 instanceof P){z=V7;break a}V7=V7(Z);b.push(V7.HC);M=[].concat(g.q(V7.Ek),g.q(M));w=[].concat(g.q(V7.qj),g.q(w));V7.yl&&(Oo=[V7.yl].concat(g.q(Oo)))}else if(Tr=g.e(V7,p6)){if(z===void 0){z=new P("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Tr});break a}V7=p0r(O,V,J,m,Tr,G,F,z,Y,wz(W,"supports_multi_step_on_desktop"));if(V7 instanceof P){z=V7;break a}V7=V7(Z);b.push(V7.HC);V7.yl&&Oo.push(V7.yl);M=[].concat(g.q(V7.Ek), g.q(M));w=[].concat(g.q(V7.qj),g.q(w));L=[].concat(g.q(V7.Wd),g.q(L));X=[].concat(g.q(V7.Db),g.q(X));u=[G].concat(g.q(u))}else if(V7=g.e(V7,f6)){V7=fPH(O,V,J,m,V7,G,F,Y);if(V7 instanceof P){z=V7;break a}V7=V7(Z);b.push(V7.HC);V7.yl&&Oo.push(V7.yl);w=[].concat(g.q(V7.qj),g.q(w))}else{z=new P("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}z={YP:b,layoutExitSkipTriggers:M,layoutExitUserInputSubmittedTriggers:L,layoutExitUserCancelledTriggers:X,layoutExitMuteTriggers:w,UU:u,F6:Oo}}}else a:if(Y= X0n(y),Y instanceof P)z=Y;else{b=0;M=[];w=[];L=[];X=[];u=[];G=[];k=new JA({current:null});D=new XS({current:null});Oo=!1;xY=[];md=-1;c=g.n(y);for(V7=c.next();!V7.done;V7=c.next())if(V7=V7.value,g.e(V7,bf)){V7=aPr(V,J,g.e(V7,bf),F);if(V7 instanceof P){z=V7;break a}V7=V7(Z);M.push(V7.HC);w=[].concat(g.q(V7.Ek),g.q(w));L=[].concat(g.q(V7.qj),g.q(L));V7.yl&&(xY=[V7.yl].concat(g.q(xY)))}else if(g.e(V7,aM)){md=lz(g.e(V7,aM));if(md instanceof qd){z=new P(md);break a}V7=new nx(b,Y);V7=Esh(V,md.layoutId,md.tI, J,m8(md.playerVars,md.DJ,H,x,V7),md.Us,m,V7,F(Z),D,N.get(md.tI.externalVideoId),void 0,U);b++;M.push(V7.HC);w=[].concat(g.q(V7.Ek),g.q(w));L=[].concat(g.q(V7.qj),g.q(L));Oo||(G.push(D),Oo=!0);md=(md=md.tI.adPodSkipTarget)&&md>0?md:-1}else if(g.e(V7,u3)){V7=YsH(O,V,J,g.e(V7,u3),m,b,F,D,md);if(V7 instanceof P){z=V7;break a}V7=V7(Z);M.push(V7.HC);w=[].concat(g.q(V7.Ek),g.q(w));L=[].concat(g.q(V7.qj),g.q(L));V7.yl&&(xY=[V7.yl].concat(g.q(xY)))}else if(g.e(V7,p6)){if(z===void 0){z=new P("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.e(V7,p6)});break a}V7=p0r(O,V,J,m,g.e(V7,p6),k,F,z,b,wz(W,"supports_multi_step_on_desktop"));if(V7 instanceof P){z=V7;break a}V7=V7(Z);M.push(V7.HC);V7.yl&&xY.push(V7.yl);w=[].concat(g.q(V7.Ek),g.q(w));L=[].concat(g.q(V7.qj),g.q(L));X=[].concat(g.q(V7.Wd),g.q(X));u=[].concat(g.q(V7.Db),g.q(u));G=[k].concat(g.q(G))}else if(g.e(V7,f6)){V7=fPH(O,V,J,m,g.e(V7,f6),k,F,b);if(V7 instanceof P){z=V7;break a}V7=V7(Z);M.push(V7.HC);V7.yl&&xY.push(V7.yl);L=[].concat(g.q(V7.qj),g.q(L))}else{z= new P("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}z={YP:M,layoutExitSkipTriggers:w,layoutExitUserInputSubmittedTriggers:X,layoutExitUserCancelledTriggers:u,layoutExitMuteTriggers:L,UU:G,F6:xY}}z instanceof P?Z=z:(u=Z.slotId,Y=z.YP,b=z.layoutExitSkipTriggers,M=z.layoutExitMuteTriggers,w=z.layoutExitUserInputSubmittedTriggers,L=z.UU,Z=F(Z),X=l?l.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",u=l?l.layoutId:MM(V.j.get(),X,u),G={layoutId:u,layoutType:X,PE:"core"},Z={layout:{layoutId:u, layoutType:X,D4:new Map,layoutExitNormalTriggers:[new kW(V.K,u)],layoutExitSkipTriggers:b,layoutExitMuteTriggers:M,layoutExitUserInputSubmittedTriggers:w,layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([new y5(Y)].concat(g.q(L))),IB:Z(G)},F6:z.F6});return Z}}; X0n=function(O){var V=[];O=g.n(O);for(var J=O.next();!J.done;J=O.next())if(J=J.value,g.e(J,aM)){J=lz(g.e(J,aM));if(J instanceof qd)return new P(J);V.push(J.Us)}return V}; gsd=function(O,V,J,y,l,m,H,F){if(!KAl(J,F===void 0?!1:F))return new P("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:J});var N=OE(J);if(N<=0)return new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:J});var x=new JA({current:null}),W=x97(O,V,J,x,y,m,H);return ddd(O,y,m,N,l,function(U,Z){var z=U.slotId,c=VN(J);U=H(U);z=MM(V.j.get(),"LAYOUT_TYPE_MEDIA_BREAK",z);var Y={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",PE:"core"}, b=W(z,Z),M=G_(b.clientMetadata,"metadata_type_fulfilled_layout");M||DJ("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");c=[new wF(y),new ay(N),new fF(c),x];M&&c.push(new Sm(M.layoutType));return{QBW:{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",D4:new Map,layoutExitNormalTriggers:[new kW(V.K,z)],layoutExitSkipTriggers:[new Ol(V.K,Z.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new H3(V.K,Z.layoutId)], layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5(c),IB:U(Y)},bDl:b}})}; qsV=function(O){if(!AdV(O))return!1;var V=g.e(O.adVideoStart,Tj);return V?g.e(O.linearAd,aM)&&c3(V)?!0:(DJ("Invalid Sandwich with notify"),!1):!1}; var jpr=function(O,V){return ap[C[8]](this,32,O,V)}; QyV=function(O){if(O.linearAds==null)return!1;O=g.e(O.adStart,Tj);return O?c3(O)?!0:(DJ("Invalid LASR with notify"),!1):!1}; G_5=function(O){if(!u$5(O))return!1;O=g.e(O.adStart,Tj);return O?c3(O)?!0:(DJ("Invalid LASR with notify"),!1):!1}; eE=function(O,V,J,y,l,m,H,F,N,x){this.D=O;this.j=V;this.K=J;this.Xj=y;this.zG=l;this.U=m;this.Av=H;this.FJ=F;this.VY=N;this.loadPolicy=x===void 0?1:x}; rh=function(O,V,J,y,l,m,H,F,N,x,W){var U=[];if(V.length===0&&y.length===0&&J.length===0)return U;V=V.filter(sl);var Z=J.filter(gzH),z=y.filter(sl),c=new Map,Y=K_Y(V),b=J.some(function(JI){var uX;return(JI==null?void 0:(uX=JI.adSlotMetadata)==null?void 0:uX.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),M=J.some(function(JI){var uX; return(JI==null?void 0:(uX=JI.adSlotMetadata)==null?void 0:uX.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),w=J.some(function(JI){var uX; return(JI==null?void 0:(uX=JI.adSlotMetadata)==null?void 0:uX.slotType)==="SLOT_TYPE_IN_PLAYER"}),L=J.some(function(JI){var uX,nn; return(JI==null?void 0:(uX=JI.adSlotMetadata)==null?void 0:uX.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(JI==null?void 0:(nn=JI.adSlotMetadata)==null?void 0:nn.slotType)==="SLOT_TYPE_ABOVE_FEED"}),X=J.some(function(JI){var uX; return(JI==null?void 0:(uX=JI.adSlotMetadata)==null?void 0:uX.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); J=J.some(function(JI){var uX;return(JI==null?void 0:(uX=JI.adSlotMetadata)==null?void 0:uX.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(b||M||w||L||X||J)x=kUr(Z,V,F,l,Y,O.zG.get(),O.loadPolicy,c,O.Xj.get(),O.D.get(),w,H,N,x,W),x instanceof P?DJ(x,void 0,void 0,{contentCpn:l}):U.push.apply(U,g.q(x));x=g.n(V);for(J=x.next();!J.done;J=x.next())J=J.value,M=KJX(O,c,J,l,m,H,b,F,Y,N,Z,O.Xj.get().G.Y().experiments.Jv("html5_enable_triggering_cuepoint_for_slot")?W:void 0),M instanceof P?DJ(M,void 0,void 0,{renderer:J.renderer,config:J.config.adPlacementConfig,kind:J.config.adPlacementConfig.kind,contentCpn:l,daiEnabled:H}):U.push.apply(U, g.q(M));tqn(O.Xj.get())||(m=u7n(O,z,l,F,Y,c),U.push.apply(U,g.q(m)));if(O.U===null||H&&!F.y9){var u,G,k;O=F.Gy&&V.length===1&&((u=V[0].config)==null?void 0:(G=u.adPlacementConfig)==null?void 0:G.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((k=V[0].renderer)==null?void 0:k.adBreakServiceRenderer);if(!U.length&&!O){var D,Oo,md,xY;DJ("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":V.length,contentCpn:l,"first APR kind":(D=V[0])==null?void 0:(Oo= D.config)==null?void 0:(md=Oo.adPlacementConfig)==null?void 0:md.kind,renderer:(xY=V[0])==null?void 0:xY.renderer})}return U}u=y.filter(sl);U.push.apply(U,g.q(Cc1(c,u,O.j.get(),O.U,l,b)));if(!U.length){var V7,Tr,Rp,ys;DJ("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":V.length,contentCpn:l,daiEnabled:H.toString(),"first APR kind":(V7=V[0])==null?void 0:(Tr=V7.config)==null?void 0:(Rp=Tr.adPlacementConfig)==null?void 0:Rp.kind,renderer:(ys=V[0])==null?void 0: ys.renderer})}return U}; u7n=function(O,V,J,y,l,m){function H(Z){return i_(O.zG.get(),Z)} var F=[];V=g.n(V);for(var N=V.next();!N.done;N=V.next()){N=N.value;var x=N.renderer,W=x.sandwichedLinearAdRenderer,U=x.linearAdSequenceRenderer;W&&qsV(W)?(DJ("Found AdNotify with SandwichedLinearAdRenderer"),U=g.e(W.adVideoStart,Tj),W=g.e(W.linearAd,aM),kT(m,x,N.config.adPlacementConfig.kind),x=void 0,U=Mmp((x=U)==null?void 0:x.layout.layoutId,O.j.get(),O.K.get(),N.config.adPlacementConfig,N.adSlotLoggingData,W,J,y,H,l,O.loadPolicy,O.Xj.get(),O.zG.get()),U instanceof P?DJ(U):F.push.apply(F,g.q(U))): U&&(!U.adLayoutMetadata&&QyV(U)||U.adLayoutMetadata&&G_5(U))&&(DJ("Found AdNotify with LinearAdSequenceRenderer"),kT(m,x,N.config.adPlacementConfig.kind),x=void 0,W=hCX((x=g.e(U.adStart,Tj))==null?void 0:x.layout.layoutId,O.j.get(),O.K.get(),N.config.adPlacementConfig,N.adSlotLoggingData,U.linearAds,FG(U.adLayoutMetadata)?U.adLayoutMetadata:void 0,J,y,H,l,O.loadPolicy,O.Xj.get()),W instanceof P?DJ(W):F.push.apply(F,g.q(W)))}return F}; KJX=function(O,V,J,y,l,m,H,F,N,x,W,U){function Z(w){return i_(O.zG.get(),w)} var z=J.renderer,c=J.config.adPlacementConfig,Y=c.kind,b=J.adSlotLoggingData,M=F.y9&&Y==="AD_PLACEMENT_KIND_START";M=m&&!M;if(z.adsEngagementPanelRenderer!=null)return Dp(V,J.elementId,Y,z.adsEngagementPanelRenderer.isContentVideoEngagementPanel,z.adsEngagementPanelRenderer.adVideoId,z.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,c,b,function(w,L,X,u){var G=O.K.get(),k=w.slotId,D=z.adsEngagementPanelRenderer;w=i_(O.zG.get(),w);return I6(G,k,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new em(D),L,X,D.impressionPings,w,z.adsEngagementPanelRenderer.adLayoutLoggingData,u)}),[]; if(z.adsEngagementPanelLayoutViewModel)return Dp(V,J.elementId,Y,z.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,z.adsEngagementPanelLayoutViewModel.adVideoId,z.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,c,b,function(w,L,X,u){var G=O.K.get(),k=w.slotId,D=z.adsEngagementPanelLayoutViewModel;w=i_(O.zG.get(),w);return Y8(G,k,"LAYOUT_TYPE_PANEL",new IS(D),L,X,w,z.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,u)}),[]; if(z.actionCompanionAdRenderer!=null){if(z.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return lK5(O.j.get(),O.U,O.K.get(),z.actionCompanionAdRenderer,c,b,y,Z);Dp(V,J.elementId,Y,z.actionCompanionAdRenderer.isContentVideoCompanion,z.actionCompanionAdRenderer.adVideoId,z.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,c,b,function(w,L,X,u){var G=O.K.get(),k=w.slotId,D=z.actionCompanionAdRenderer;w=i_(O.zG.get(),w);return I6(G,k,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new sx(D),L,X,D.impressionPings,w,z.actionCompanionAdRenderer.adLayoutLoggingData,u)})}else if(z.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(z.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return m9X(O.j.get(),O.U,O.K.get(),z.topBannerImageTextIconButtonedLayoutViewModel,c,b,y,Z); Dp(V,J.elementId,Y,z.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,z.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,z.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,c,b,function(w,L,X,u){var G=O.K.get(),k=w.slotId,D=z.topBannerImageTextIconButtonedLayoutViewModel;w=i_(O.zG.get(),w);return Y8(G,k,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new TU(D),L,X,w,z.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,u)})}else if(z.imageCompanionAdRenderer)Dp(V, J.elementId,Y,z.imageCompanionAdRenderer.isContentVideoCompanion,z.imageCompanionAdRenderer.adVideoId,z.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,c,b,function(w,L,X,u){var G=O.K.get(),k=w.slotId,D=z.imageCompanionAdRenderer; w=i_(O.zG.get(),w);return I6(G,k,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new pR(D),L,X,D.impressionPings,w,z.imageCompanionAdRenderer.adLayoutLoggingData,u)}); else if(z.bannerImageLayoutViewModel)Dp(V,J.elementId,Y,z.bannerImageLayoutViewModel.isContentVideoCompanion,z.bannerImageLayoutViewModel.adVideoId,z.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,c,b,function(w,L,X,u){var G=O.K.get(),k=w.slotId,D=z.bannerImageLayoutViewModel;w=i_(O.zG.get(),w);return Y8(G,k,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new fR(D),L,X,w,z.bannerImageLayoutViewModel.adLayoutLoggingData,u)}); else if(z.shoppingCompanionCarouselRenderer)Dp(V,J.elementId,Y,z.shoppingCompanionCarouselRenderer.isContentVideoCompanion,z.shoppingCompanionCarouselRenderer.adVideoId,z.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,c,b,function(w,L,X,u){var G=O.K.get(),k=w.slotId,D=z.shoppingCompanionCarouselRenderer;w=i_(O.zG.get(),w);return I6(G,k,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new ho(D),L,X,D.impressionPings,w,z.shoppingCompanionCarouselRenderer.adLayoutLoggingData,u)}); else if(z.adBreakServiceRenderer){if(!JoU(J))return[];if(Y==="AD_PLACEMENT_KIND_PAUSE")return Vmn(O.j.get(),c,b,J.renderer.adBreakServiceRenderer,y);if(Y!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&Y!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return ORV(O.j.get(),c,b,J.renderer.adBreakServiceRenderer,y,l,m);F.Gy||DJ("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:Y,adPlacementConfig:c,daiEnabledForContentVideo:String(m),isServedFromLiveInfra:String(F.Gy),clientPlaybackNonce:F.clientPlaybackNonce}); if(Y==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!O.Av)return new P("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!O.VY)return new P("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");O.VY.rz({adPlacementRenderer:J,contentCpn:y,GM:l});l=O.Av.get().getCurrentTimeSec(1,!1);return AAd(O.j.get(),J.renderer.adBreakServiceRenderer,c,l,y,b,m)}if(!O.FJ)return new P("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); O.FJ.rz({adPlacementRenderer:J,contentCpn:y,GM:l})}else{if(z.clientForecastingAdRenderer)return ZFn(O.j.get(),O.K.get(),c,b,z.clientForecastingAdRenderer,y,l,Z);if(z.invideoOverlayAdRenderer)return TuU(O.j.get(),O.K.get(),c,b,z.invideoOverlayAdRenderer,y,l,Z);if(z.instreamAdPlayerOverlayRenderer)return cAV(O.j.get(),O.K.get(),c,b,z.instreamAdPlayerOverlayRenderer,y,Z);if((z.linearAdSequenceRenderer||z.instreamVideoAdRenderer)&&M)return pfp(O.j.get(),O.K.get(),J,y,Z,x,!O.Xj.get().G.Y().L("html5_override_ad_video_length_killswitch"), U);if(z.linearAdSequenceRenderer&&!M){if(H)return[];kT(V,z,Y);if(z.linearAdSequenceRenderer.adLayoutMetadata){if(!u$5(z.linearAdSequenceRenderer))return new P("Received invalid LinearAdSequenceRenderer.")}else if(z.linearAdSequenceRenderer.linearAds==null)return new P("Received invalid LinearAdSequenceRenderer.");if(g.e(z.linearAdSequenceRenderer.adStart,Tj)){DJ("Found AdNotify in LinearAdSequenceRenderer");J=g.e(z.linearAdSequenceRenderer.adStart,Tj);if(!bUV(J))return new P("Invalid AdMessageRenderer."); m=z.linearAdSequenceRenderer.linearAds;return osr(O.D.get(),O.j.get(),O.K.get(),O.zG.get(),c,b,J,FG(z.linearAdSequenceRenderer.adLayoutMetadata)?z.linearAdSequenceRenderer.adLayoutMetadata:void 0,m,y,l,F,Z,N,O.loadPolicy,O.Xj.get())}return nsr(O.j.get(),O.K.get(),c,b,z.linearAdSequenceRenderer.linearAds,FG(z.linearAdSequenceRenderer.adLayoutMetadata)?z.linearAdSequenceRenderer.adLayoutMetadata:void 0,y,l,F,Z,N,O.loadPolicy,O.Xj.get(),W)}if(!z.remoteSlotsRenderer||m){if(z.instreamVideoAdRenderer&& !M){if(H)return[];kT(V,z,Y);return d9n(O.j.get(),O.K.get(),c,b,z.instreamVideoAdRenderer,y,l,F,Z,N,O.loadPolicy,O.Xj.get(),O.zG.get(),W)}if(z.instreamSurveyAdRenderer)return gsd(O.j.get(),O.K.get(),z.instreamSurveyAdRenderer,c,b,y,Z,wz(O.Xj.get(),"supports_multi_step_on_desktop"));if(z.sandwichedLinearAdRenderer!=null)return AdV(z.sandwichedLinearAdRenderer)?g.e(z.sandwichedLinearAdRenderer.adVideoStart,Tj)?(DJ("Found AdNotify in SandwichedLinearAdRenderer"),J=g.e(z.sandwichedLinearAdRenderer.adVideoStart, Tj),bUV(J)?(m=g.e(z.sandwichedLinearAdRenderer.linearAd,aM))?L_l(J,m,c,O.D.get(),O.j.get(),O.K.get(),O.zG.get(),b,y,l,F,Z,N,O.loadPolicy,O.Xj.get()):new P("Missing IVAR from Sandwich"):new P("Invalid AdMessageRenderer.")):nsr(O.j.get(),O.K.get(),c,b,[z.sandwichedLinearAdRenderer.adVideoStart,z.sandwichedLinearAdRenderer.linearAd],void 0,y,l,F,Z,N,O.loadPolicy,O.Xj.get()):new P("Received invalid SandwichedLinearAdRenderer.");if(z.videoAdTrackingRenderer!=null)return WJd(O.j.get(),O.K.get(),z.videoAdTrackingRenderer, c,b,y,l,F.xb,Z)}}return[]}; a6=function(O,V,J,y,l,m,H,F){g.K.call(this);var N=this;this.j=O;this.U=V;this.Ql=y;this.Av=l;this.Xj=m;this.gW=H;this.EA=F;this.K=null;J.get().addListener(this);this.addOnDisposeCallback(function(){J.GL()||J.get().removeListener(N)}); y.get().addListener(this);this.addOnDisposeCallback(function(){y.GL()||y.get().removeListener(N)})}; fk=function(O,V,J){var y=O.Av.get().getCurrentTimeSec(1,!1);O.Xj.get().G.Y().Sq()&&xW(O.gW.get(),"sdai","onopp.1;evt."+J.event+";start."+J.startSecs.toFixed(3)+";d."+J.rN.toFixed(3));Bb(O.j.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var l=O.U.get(),m=V.adPlacementRenderer.renderer.adBreakServiceRenderer,H=V.contentCpn,F=V.adPlacementRenderer.adSlotLoggingData;bz(O.Xj.get());var N=O.gW;var x=l.Xj.get();x=g.Ry(x.G.Y().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var W=l.Xj.get();var U=g.Ry(W.G.Y().experiments,"min_prefetch_offset_sec_for_livestream_optimization");W=J.startSecs*1E3;W={QQ:new zh(W,W+J.rN*1E3),WS:!1,cueProcessedMs:y*1E3};var Z=J.startSecs+J.rN;if(y===0)W.xV=new zh(0,Z*1E3);else{U=J.startSecs-U;var z=U-y;W.xV=z<=0?new zh(U*1E3,Z*1E3):new zh(Math.floor(y+Math.random()*Math.min(z,x))*1E3,Z*1E3)}m=RM(l,m,H,W,F,[new l_(J)]);pk(l.Xj.get())&&xW(N.get(),"abrsm","cpi."+J.identifier+";cps."+J.startSecs+";cpd."+J.rN+";cts."+y+";rbf."+W.xV.start);N.get().G.Jq(J.startSecs- y,W.xV.start/1E3-y);return[m]})}; hm=function(O){var V,J=(V=G_(O.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current;if(!J)return null;V=G_(O.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var y=O.layoutId,l=G_(O.clientMetadata,"metadata_type_content_cpn"),m=G_(O.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),H=G_(O.clientMetadata,"metadata_type_player_overlay_layout_renderer"),F=G_(O.clientMetadata,"metadata_type_player_underlay_renderer"),N=G_(O.clientMetadata, "metadata_type_ad_placement_config"),x=G_(O.clientMetadata,"metadata_type_video_length_seconds");var W=Es(O.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?G_(O.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Es(O.clientMetadata,"metadata_type_layout_enter_ms")&&Es(O.clientMetadata,"metadata_type_layout_exit_ms")?(G_(O.clientMetadata,"metadata_type_layout_exit_ms")-G_(O.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{L4:y,contentCpn:l,A5:J,sf:V,instreamAdPlayerOverlayRenderer:m, playerOverlayLayoutRenderer:H,instreamAdPlayerUnderlayRenderer:F,adPlacementConfig:N,videoLengthSeconds:x,jF:W,inPlayerLayoutId:G_(O.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:G_(O.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; iFV=function(O,V){return rAr(O,V)}; RCV=function(O,V){V=rAr(O,V);if(!V)return null;var J;V.jF=(J=G_(O.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:J.adBreakRemainingLengthSeconds;return V}; rAr=function(O,V){var J,y=(J=G_(O.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!y)return null;J=vbr(O,V);return{dU:obX(O,V),adPlacementConfig:G_(O.clientMetadata,"metadata_type_ad_placement_config"),rU:J,contentCpn:G_(O.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:G_(O.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:G_(O.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:G_(O.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,jF:void 0,A5:y,L4:O.layoutId,videoLengthSeconds:G_(O.clientMetadata,"metadata_type_video_length_seconds")}}; o6=function(O,V,J,y,l,m,H,F,N){g.K.call(this);this.D=O;this.V=V;this.W=J;this.U=y;this.K=l;this.j=m;this.zG=H;this.Xj=F;this.CD=N;this.mJ=!0}; Bu7=function(O,V,J){return QSX(O.K.get(),V.contentCpn,V.L4,function(y){return GUU(O.j.get(),y.slotId,J,V.adPlacementConfig,V.L4,i_(O.zG.get(),y))})}; vY=function(O,V,J,y,l,m,H){g.K.call(this);this.j=O;this.K=V;this.U=J;this.D=y;this.CD=l;this.Av=m;this.GK=H}; wj=function(O){g.K.call(this);this.K=O}; Bb=function(O,V,J,y){O.K().nu(V,y);J=J();O=O.K();O.Cs.K("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",V,y,J);V=g.n(J);for(J=V.next();!J.done;J=V.next())a:{y=O;J=J.value;Wb(y.Cs,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",J);Wb(y.Cs,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",J);try{var l=y.K;if(g.Ku(J.slotId))throw new P("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(y9(l,J))throw new P("Duplicate registration for slot.",{slotId:J.slotId,slotEntryTriggerType:J.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!l.uB.Vm.has(J.slotType))throw new P("No fulfillment adapter factory registered for slot of type: "+J.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!l.uB.fI.has(J.slotType))throw new P("No SlotAdapterFactory registered for slot of type: "+J.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");eS(l,"TRIGGER_CATEGORY_SLOT_ENTRY",J.slotEntryTrigger?[J.slotEntryTrigger]:[]);eS(l,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", J.slotFulfillmentTriggers);eS(l,"TRIGGER_CATEGORY_SLOT_EXPIRATION",J.slotExpirationTriggers);var m=y.K,H=J.slotType+"_"+J.slotPhysicalPosition,F=ZQ(m,H);if(y9(m,J))throw new P("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");F.set(J.slotId,new am5(J));m.K.set(H,F)}catch(D){D instanceof P&&D.Pc?(DP(y.Cs,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",D.Pc,J),DJ(D,J,void 0,void 0,D.p5)):(DP(y.Cs,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", J),DJ(D,J));break a}y9(y.K,J).V=!0;try{var N=y.K,x=y9(N,J),W=J.slotEntryTrigger,U=N.uB.A$.get(W.triggerType);U&&(U.LK("TRIGGER_CATEGORY_SLOT_ENTRY",W,J,null),x.fD.set(W.triggerId,U));for(var Z=g.n(J.slotFulfillmentTriggers),z=Z.next();!z.done;z=Z.next()){var c=z.value,Y=N.uB.A$.get(c.triggerType);Y&&(Y.LK("TRIGGER_CATEGORY_SLOT_FULFILLMENT",c,J,null),x.KD.set(c.triggerId,Y))}for(var b=g.n(J.slotExpirationTriggers),M=b.next();!M.done;M=b.next()){var w=M.value,L=N.uB.A$.get(w.triggerType);L&&(L.LK("TRIGGER_CATEGORY_SLOT_EXPIRATION", w,J,null),x.qX.set(w.triggerId,L))}var X=N.uB.Vm.get(J.slotType).get().build(N.U,J);x.S=X;var u=N.uB.fI.get(J.slotType).get().build(N.W,J);u.init();x.j=u}catch(D){D instanceof P&&D.Pc?(DP(y.Cs,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",D.Pc,J),DJ(D,J,void 0,void 0,D.p5)):(DP(y.Cs,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",J),DJ(D,J));O5(y,J,!0);break a}Wb(y.Cs,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",J);y.K.PC(J);for(var G=g.n(y.j),k=G.next();!k.done;k= G.next())k.value.PC(J);Hb(y,J)}}; Ms=function(O,V,J,y,l){g.K.call(this);var m=this;this.j=O;this.U=V;this.X5=J;this.context=l;this.K=new Map;y.get().addListener(this);this.addOnDisposeCallback(function(){y.GL()||y.get().removeListener(m)})}; R6X=function(O,V){var J=0x8000000000000,y=0,l=0x8000000000000;var m=g.n(V.slotFulfillmentTriggers);for(var H=m.next();!H.done;H=m.next())if(H=H.value,H instanceof ie){var F=H.K.start;J=Math.min(J,F);y=Math.max(y,H.K.end);H.visible&&(l=Math.min(l,F))}else DJ("Found unexpected fulfillment trigger for throttled slot.",V,null,{fulfillmentTrigger:H});m=J;l=l<0x8000000000000&&J0&&NM(O.V(),J)}; PY=function(O,V,J,y,l){for(var m=[],H=g.n(O.Ls.values()),F=H.next();!F.done;F=H.next()){var N=F=F.value,x=N.trigger;N=N.slot;if(x.triggerType===V){if(x instanceof ue||x instanceof A2||x instanceof RI){if(l&&x.breakDurationMs!==J)continue;if(!l&&x.breakDurationMs===J)continue;if(y.has(N.slotId))continue}m.push(F)}}m.length>0&&NM(O.V(),m)}; $Mr=function(O,V){V=(V.rN+1)*1E3;var J=void 0;O=g.n(O.Ls.values());for(var y=O.next();!y.done;y=O.next()){var l=y.value;y=l.trigger;l=l.slot;y instanceof ue&&y.breakDurationMs<=V&&(!J||y.breakDurationMs>J.trigger.breakDurationMs)&&(J={slot:l,trigger:y})}return J}; Hmd=function(O){O=O.adPlacementRenderer.config.adPlacementConfig;if(!O.prefetchModeConfig||!O.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;O=Number(O.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(O)||O<=0?0:Math.floor(Math.random()*O)}; jn5=function(O){O=O.adPlacementRenderer.config.adPlacementConfig;if(O.prefetchModeConfig&&O.prefetchModeConfig.cacheFetchRefreshDurationMs&&(O=Number(O.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(O)||O<=0)))return O}; k8=function(O){O.K=null;O.Ls.clear();O.j&&O.j.stop();O.W&&O.W.stop();var V;(V=O.U)==null||V.stop();delete O.U}; yur=function(O){var V=[];O=g.n(O.Ls.values());for(var J=O.next();!J.done;J=O.next())J=J.value.trigger,J instanceof ue&&V.push(J.breakDurationMs);return V}; SE=function(O){g.K.call(this);this.U=O;this.mJ=!0;this.Ls=new Map;this.K=new Map;this.j=new Map}; CYr=function(O,V){var J=[];if(V=O.K.get(V.layoutId)){V=g.n(V);for(var y=V.next();!y.done;y=V.next())(y=O.j.get(y.value.triggerId))&&J.push(y)}return J}; Dg=function(){g.K.call(this);this.Ls=new Map}; AN=function(O){switch(O){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"}}; F9V=function(O){switch(O){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Nz5=function(O,V){var J={slotId:Pb(V,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],PE:"surface",clientMetadata:new Q5([])},y=Object,l=y.assign;V=MM(V,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",J.slotId);V={layoutId:V,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",D4:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], PE:"surface",clientMetadata:new Q5([]),IB:H25(!1,J.slotId,J.slotType,J.slotPhysicalPosition,J.PE,J.slotEntryTrigger,J.slotFulfillmentTriggers,J.slotExpirationTriggers,V,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return l.call(y,{},O,{zKL:!0,slot:J,layout:V})}; DFX=function(O,V,J,y){var l=O.kind;y=y?!1:!O.hideCueRangeMarker;switch(l){case "AD_PLACEMENT_KIND_START":return y={QQ:new zh(-0x8000000000000,-0x8000000000000),WS:y},J!=null&&(y.xV=new zh(-0x8000000000000,-0x8000000000000)),y;case "AD_PLACEMENT_KIND_END":return y={QQ:new zh(0x7ffffffffffff,0x8000000000000),WS:y},J!=null&&(y.xV=new zh(Math.max(0,V-J),0x8000000000000)),y;case "AD_PLACEMENT_KIND_MILLISECONDS":l=O.adTimeOffset;l.offsetStartMilliseconds||DJ("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); l.offsetEndMilliseconds||DJ("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");O=Number(l.offsetStartMilliseconds);l=Number(l.offsetEndMilliseconds);l===-1&&(l=V);if(Number.isNaN(O)||Number.isNaN(l)||O>l)return new P("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:O,offsetEndMs:l},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",l===V&&O-500<=l);y={QQ:new zh(O,l),WS:y};if(J!=null){O=Math.max(0,O-J);if(O===l)return y;y.xV=new zh(O,l)}return y; default:return new P("AdPlacementKind not supported in convertToRange.",{kind:l,adPlacementConfig:O})}}; xMV=function(O){if(!O||!O.adPlacements&&!O.adSlots)return!1;for(var V=g.n(O.adPlacements||[]),J=V.next();!J.done;J=V.next())if(J=J.value)if(J=J.adPlacementRenderer,J!=null&&(J.config&&J.config.adPlacementConfig&&J.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;O=g.n(O.adSlots||[]);for(V=O.next();!V.done;V=O.next()){var y=J=void 0;if(((J=g.e(V.value,dh))==null?void 0:(y=J.adSlotMetadata)==null?void 0:y.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; OM=function(O){this.Xj=O;this.j=new Map;this.K=new Map;this.U=new Map}; Pb=function(O,V){if(V8(O.Xj.get())){var J=O.j.get(V)||0;J++;O.j.set(V,J);return V+"_"+J}return g.mR(16)}; MM=function(O,V,J){if(V8(O.Xj.get())){var y=O.K.get(V)||0;y++;O.K.set(V,y);return J+"_"+V+"_"+y}return g.mR(16)}; UE=function(O,V){if(V8(O.Xj.get())){var J=O.U.get(V)||0;J++;O.U.set(V,J);return V+"_"+J}return g.mR(16)}; W9h=function(O){var V=[new Bf(O.L4),new Os(O.A5),new wF(O.adPlacementConfig),new $s(O.videoLengthSeconds),new Ys(O.jF)];O.instreamAdPlayerOverlayRenderer&&V.push(new gF(O.instreamAdPlayerOverlayRenderer));O.playerOverlayLayoutRenderer&&V.push(new q9(O.playerOverlayLayoutRenderer));O.sf&&V.push(new XS(O.sf));return V}; UMo=function(O,V,J,y,l,m){O=J.inPlayerLayoutId?J.inPlayerLayoutId:MM(m,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",O);var H,F,N=J.instreamAdPlayerOverlayRenderer?(H=J.instreamAdPlayerOverlayRenderer)==null?void 0:H.adLayoutLoggingData:(F=J.playerOverlayLayoutRenderer)==null?void 0:F.adLayoutLoggingData;H={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",PE:V};return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",D4:new Map,layoutExitNormalTriggers:[new Kx(function(x){return UE(m, x)},J.L4)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:V,clientMetadata:y,IB:l(H),adLayoutLoggingData:N}}; JJ=function(O){var V=this;this.j=O;this.K=function(J){return UE(V.j.get(),J)}}; GUU=function(O,V,J,y,l,m){J=new Q5([new QK(J),new wF(y)]);V=MM(O.j.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",V);y={layoutId:V,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",PE:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",D4:new Map,layoutExitNormalTriggers:[new Kx(function(H){return UE(O.j.get(),H)},l)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:J,IB:m(y),adLayoutLoggingData:void 0}}; $8=function(O,V,J,y,l){var m=W9h(y);return UMo(V,J,y,new Q5(m),l,O.j.get())}; Zm1=function(O,V,J,y,l){var m=W9h(y);m.push(new oS(y.dU));m.push(new vf(y.rU));return UMo(V,J,y,new Q5(m),l,O.j.get())}; I6=function(O,V,J,y,l,m,H,F,N,x){V=MM(O.j.get(),J,V);var W={layoutId:V,layoutType:J,PE:"core"},U=new Map;H&&U.set("impression",H);H=[new BT(O.K,l,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];x&&H.push(new GC(O.K,x,["normal"]));return{layoutId:V,layoutType:J,D4:U,layoutExitNormalTriggers:H,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([y,new wF(m),new Bf(l)]),IB:F(W),adLayoutLoggingData:N}}; Y8=function(O,V,J,y,l,m,H,F,N){V=MM(O.j.get(),J,V);var x={layoutId:V,layoutType:J,PE:"core"},W=[new BT(O.K,l,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];N&&W.push(new GC(O.K,N,["normal"]));return{layoutId:V,layoutType:J,D4:new Map,layoutExitNormalTriggers:W,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([y,new wF(m),new Bf(l)]),IB:H(x),adLayoutLoggingData:F}}; zj=function(O,V,J){var y=[];y.push(new PT(O.K,J));V&&y.push(V);return y}; Zg=function(O,V,J,y,l,m,H){var F={layoutId:V,layoutType:J,PE:"core"};return{layoutId:V,layoutType:J,D4:new Map,layoutExitNormalTriggers:H,layoutExitSkipTriggers:[new Eu(O.K,V)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([new bc(y),new wF(l)]),IB:m(F),adLayoutLoggingData:y.adLayoutLoggingData}}; Jm=function(O,V,J,y,l,m,H,F){var N={layoutId:V,layoutType:m,PE:"core"};return{layoutId:V,layoutType:m,D4:new Map,layoutExitNormalTriggers:[new Kx(O.K,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([new wF(y)].concat(g.q(H))),IB:l(N),adLayoutLoggingData:F}}; eCV=function(O,V,J,y,l,m,H,F,N,x,W,U){O=cY(O,V,J,y,l,m,H,F,W,U);V=O.UU;J=new kL(O.T5);y=O.layoutExitSkipTriggers;N>0&&(V.push(J),V.push(new nR(N)),y=[]);V.push(new LR(x));return{HC:{layoutId:O.layoutId,layoutType:O.layoutType,D4:O.D4,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:O.PE,clientMetadata:new Q5(V),IB:O.IB,adLayoutLoggingData:O.adLayoutLoggingData},Ek:y,qj:O.layoutExitMuteTriggers, Wd:O.layoutExitUserInputSubmittedTriggers,Db:O.layoutExitUserCancelledTriggers,yl:O.yl}}; bF7=function(O,V,J,y,l,m,H,F,N){V=cY(O,V,J,y,l,new Map,m,function(x){return H(x,F)}); O=new H3(O.K,V.T5);J=new kL(V.T5);N=new LR(N);return{HC:{layoutId:V.layoutId,layoutType:V.layoutType,D4:V.D4,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:V.PE,clientMetadata:new Q5([].concat(g.q(V.UU),[J,N])),IB:V.IB,adLayoutLoggingData:V.adLayoutLoggingData},Ek:V.layoutExitSkipTriggers,qj:V.layoutExitMuteTriggers,Wd:[].concat(g.q(V.layoutExitUserInputSubmittedTriggers),[O]),Db:V.layoutExitUserCancelledTriggers, yl:V.yl}}; cY=function(O,V,J,y,l,m,H,F,N,x){V=MM(O.j.get(),"LAYOUT_TYPE_MEDIA_BREAK",V);var W={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",PE:"adapter"};F=F(V);var U=G_(F.clientMetadata,"metadata_type_fulfilled_layout");U||DJ("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var Z=U?U.layoutId:"";J=[new wF(J),new ay(y),new fF(l)];U&&J.push(new Sm(U.layoutType));x&&J.push(new xs(x));return{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",D4:m,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new Ol(O.K,Z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"adapter",UU:J,IB:H(W),adLayoutLoggingData:N,yl:F,T5:Z}}; gLh=function(O,V,J,y,l,m,H,F,N,x,W){O=zMY(O,V,"core",J,y,l,m,H,F,N,x,void 0,W);return{layoutId:O.layoutId,layoutType:O.layoutType,D4:O.D4,layoutExitNormalTriggers:O.layoutExitNormalTriggers,layoutExitSkipTriggers:O.layoutExitSkipTriggers,layoutExitMuteTriggers:O.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:O.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:O.layoutExitUserCancelledTriggers,PE:O.PE,clientMetadata:new Q5(O.j5),IB:O.IB,adLayoutLoggingData:O.adLayoutLoggingData}}; Esh=function(O,V,J,y,l,m,H,F,N,x,W,U,Z){V=zMY(O,V,"adapter",J,y,l,m,H,F,N,W,U,Z);y=V.layoutExitSkipTriggers;l=V.j5;J.adPodSkipTarget&&J.adPodSkipTarget>0&&(l.push(x),l.push(new nR(J.adPodSkipTarget)),y=[]);l.push(new LR(F.adPodIndex));J.isCritical&&(y=[new GC(O.K,V.layoutId,["error"])].concat(g.q(y)));return{HC:{layoutId:V.layoutId,layoutType:V.layoutType,D4:V.D4,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], PE:V.PE,clientMetadata:new Q5(l),IB:V.IB,adLayoutLoggingData:V.adLayoutLoggingData},Ek:y,qj:V.layoutExitMuteTriggers,Wd:V.layoutExitUserInputSubmittedTriggers,Db:V.layoutExitUserCancelledTriggers}}; zMY=function(O,V,J,y,l,m,H,F,N,x,W,U,Z){var z={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",PE:J};l=[new wF(l),new M9(N),new Ex(y.externalVideoId),new dF(F),new fF({impressionCommands:y.impressionCommands,abandonCommands:y.onAbandonCommands,completeCommands:y.completeCommands,progressCommands:y.adVideoProgressCommands}),new H0(m),new V5({current:null}),new $s(H)];(m=y.playerOverlay.instreamAdPlayerOverlayRenderer)&&l.push(new gF(m));(H=y.playerOverlay.playerOverlayLayoutRenderer)&&l.push(new q9(H)); U&&l.push(new jq(U));(U=y.playerUnderlay)&&l.push(new QK(U));F=Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER");U=(U=m?m.elementId:H==null?void 0:H.layoutId)?U:MM(O.j.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",F);l.push(new kL(U));l.push(new DK(F));l.push(new xs(N.adPodIndex));y.adNextParams&&l.push(new YL(y.adNextParams));y.shrunkenPlayerBytesConfig&&l.push(new to(y.shrunkenPlayerBytesConfig));y.clickthroughEndpoint&&l.push(new aS(y.clickthroughEndpoint));y.legacyInfoCardVastExtension&&l.push(new b_(y.legacyInfoCardVastExtension)); y.sodarExtensionData&&l.push(new CF(y.sodarExtensionData));W&&l.push(new Iy(W));l.push(new v0(mY(y.pings)));N=$p(y.pings);if(Z){a:{Z=g.n(Z);for(W=Z.next();!W.done;W=Z.next())if(W=W.value,W.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(m=g.e(W.fulfillmentContent.fulfilledLayout,XG))&&(m=g.e(m.renderingContent,L6))&&m.associatedPlayerBytesLayoutId===V){Z=W;break a}Z=void 0}Z&&l.push(new GU(Z))}return{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",D4:N,layoutExitNormalTriggers:[new kW(O.K,V)],layoutExitSkipTriggers:y.skipOffsetMilliseconds? [new Ol(O.K,U)]:[],layoutExitMuteTriggers:[new Ol(O.K,U)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:J,j5:l,IB:x(z),adLayoutLoggingData:y.adLayoutLoggingData}}; hXo=function(O,V,J,y,l,m,H,F,N){y.every(function(W){return du(W,[],["LAYOUT_TYPE_MEDIA"])})||DJ("Unexpect subLayout type for DAI composite layout"); V=MM(O.j.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",V);var x={layoutId:V,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",PE:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D4:new Map,layoutExitNormalTriggers:[new t2(O.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],PE:"core",clientMetadata:new Q5([new F7(J),new Nd(F),new y5(y),new wF(l),new z_(m),new W0({}),new Md(N)]),IB:H(x)}}; Yx5=function(O){return O!=null}; y8=function(O,V,J){var y=this;this.j=O;this.U=V;this.Xj=J;this.K=function(l){return UE(y.j.get(),l)}}; AAd=function(O,V,J,y,l,m,H){if(!J.prefetchModeConfig)return new P("AdPlacementConfig for Live Prefetch is missing prefetch_config");J=J.prefetchModeConfig;y*=1E3;var F=[];if(!J.breakLengthMs)return new P("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var N=g.n(J.breakLengthMs),x=N.next();!x.done;x=N.next())if(x=x.value,Number(x)>0){var W=y+Number(J.startTimeOffsetMs),U=W+Number(J.cacheFetchSmearingDurationMs);x={QQ:new zh(U,U+Number(x)),WS:!1,xV:new zh(Math.floor(W+Math.random()* Number(J.cacheFetchSmearingDurationMs)),U),cueProcessedMs:y?y:W};W=[];W.push(new X7({}));U=[];U.push(new DM(O.K));U.push(new xFX(O.K));H&&W.push(new W0({}));F.push(RM(O,V,l,x,m,W,U))}return F}; RM=function(O,V,J,y,l,m,H){m=m===void 0?[]:m;var F=Pb(O.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST");H||(H=[],y.xV&&y.xV.start!==y.QQ.start&&H.push(new ie(O.K,J,new zh(y.xV.start,y.QQ.start),!1)),H.push(new ie(O.K,J,new zh(y.QQ.start,y.QQ.end),y.WS)));y={getAdBreakUrl:V.getAdBreakUrl,qx:y.QQ.start,pG:y.QQ.end,cueProcessedMs:y.cueProcessedMs};V=new lf(O.K,F);m=[new T_(y)].concat(g.q(m));return{slotId:F,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:H, slotExpirationTriggers:[new Sy(O.K,J),new JE(O.K,F),new yQ(O.K,F)],PE:"core",clientMetadata:new Q5(m),adSlotLoggingData:l}}; snp=function(O,V,J){var y=[];J=g.n(J);for(var l=J.next();!l.done;l=J.next())y.push(cuX(O,V,l.value));return y}; cuX=function(O,V,J){return J.triggeringSlotId!=null&&J.triggeringSlotId===O?J.clone(V):J}; NFV=function(O,V,J,y,l){return Tz5(O,V,J,y,l)}; IPY=function(O,V,J,y){var l=Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER");return Tz5(O,l,V,J,y)}; Tz5=function(O,V,J,y,l){var m=new Qp(O.K,J),H=[new VQ(O.K,V)];O=[new JE(O.K,V),new Sy(O.K,y)];return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:H,slotExpirationTriggers:O,PE:"core",clientMetadata:new Q5([new c0(l({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:m,slotFulfillmentTriggers:H,slotExpirationTriggers:O},J))]),adSlotLoggingData:void 0}}; ddd=function(O,V,J,y,l,m){var H=Pb(O.j.get(),"SLOT_TYPE_PLAYER_BYTES"),F=Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER"),N=MM(O.j.get(),"LAYOUT_TYPE_SURVEY",F);y=lO(O,V,J,y);var x=[new VQ(O.K,H)];J=[new JE(O.K,H),new Sy(O.K,J),new Eu(O.K,N)];if(y instanceof P)return y;m=m({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:y,slotFulfillmentTriggers:x,slotExpirationTriggers:J},{slotId:F,layoutId:N});F=m.bDl;return[{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:y,slotFulfillmentTriggers:x,slotExpirationTriggers:J,PE:"core",clientMetadata:new Q5([new c0(m.QBW),new nF({ph:O.ph(V)})]),adSlotLoggingData:l},F]}; qx1=function(O,V,J,y,l){l=l?l:Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER");J=new Qp(O.K,J);var m=[new VQ(O.K,l)];O=[new Sy(O.K,V),new JE(O.K,l)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:m,slotExpirationTriggers:O,PE:"core",clientMetadata:new Q5([new c0(y({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:J,slotFulfillmentTriggers:m,slotExpirationTriggers:O}))])}}; QSX=function(O,V,J,y){var l=Pb(O.j.get(),"SLOT_TYPE_PLAYER_UNDERLAY");J=new Qp(O.K,J);var m=[new VQ(O.K,l)];O=[new Sy(O.K,V),new JE(O.K,l)];return{slotId:l,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:m,slotExpirationTriggers:O,PE:"core",clientMetadata:new Q5([new c0(y({slotId:l,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:J,slotFulfillmentTriggers:m,slotExpirationTriggers:O}))])}}; wfY=function(O,V,J,y,l,m,H){var F=Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER"),N=MM(O.j.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",F);y=eM5(O,y,m,H,N);if(y instanceof P)return y;H=[new VQ(O.K,F)];l=[new Sy(O.K,m),new VQ(O.K,l),new $T(O.K,l)];J=i_(J,{slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:y,slotFulfillmentTriggers:H,slotExpirationTriggers:l});O=O.U.get();m={layoutId:N,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",PE:"core"};V={layoutId:N,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", D4:new Map,layoutExitNormalTriggers:[new e6l(O.K,N,V.durationMs)],layoutExitSkipTriggers:[new YBl(O.K,N,V.durationMs)],layoutExitUserCancelledTriggers:[new IaY(O.K,N)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PE:"core",clientMetadata:new Q5([new pF(V)]),IB:J(m)};return{slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:y,slotFulfillmentTriggers:H,slotExpirationTriggers:l,clientMetadata:new Q5([new c0(V)])}}; sy5=function(O,V,J,y,l,m){V=lO(O,V,J,y);if(V instanceof P)return V;var H=V instanceof ie?new cdX(O.K,J,V.K):null;y=Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER");var F=[new VQ(O.K,y)];O=[new Sy(O.K,J),new JE(O.K,y)];m=m({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:V,slotFulfillmentTriggers:F,slotExpirationTriggers:O},H);return m instanceof qd?new P(m):{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:F,slotExpirationTriggers:O, PE:"core",clientMetadata:new Q5([new c0(m)]),adSlotLoggingData:l}}; zCo=function(O,V,J,y){var l=Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER"),m=new XD(O.K,V),H=[new m3(O.K,l)];O=[new Sy(O.K,V),new JE(O.K,l)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:H,slotExpirationTriggers:O,PE:"core",clientMetadata:new Q5([new c0(y({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:m,slotFulfillmentTriggers:H,slotExpirationTriggers:O}))]),adSlotLoggingData:J}}; coh=function(O,V,J,y){var l=Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER");J=new Qp(O.K,J);var m=[new VQ(O.K,l)],H=[new JE(O.K,l),new Sy(O.K,V)];m={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:J,slotFulfillmentTriggers:m,slotExpirationTriggers:H};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:[new VQ(O.K,l)],slotExpirationTriggers:[new Sy(O.K,V),new JE(O.K,l)],PE:"core",clientMetadata:new Q5([new c0(y(m))])}}; U9d=function(O,V,J,y,l){var m=Pb(O.j.get(),"SLOT_TYPE_IN_PLAYER");J=new qN(O.K,y,J);y=[new VQ(O.K,m)];O=[new Sy(O.K,V)];return{slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:y,slotExpirationTriggers:O,PE:"core",clientMetadata:new Q5([new c0(l({slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:J,slotFulfillmentTriggers:y,slotExpirationTriggers:O}))])}}; jSh=function(O,V,J,y,l,m){var H=Pb(O.j.get(),V);return m6(O,H,V,new Qp(O.K,y),[new Sy(O.K,J),new JE(O.K,H),new GC(O.K,y,["error"])],l,m)}; HR5=function(O,V,J,y,l,m,H){var F=Pb(O.j.get(),V);return m6(O,F,V,new GC(O.K,l,["normal"]),[new Sy(O.K,J),new JE(O.K,F),new GC(O.K,y,["error"])],m,H)}; yon=function(O,V,J,y,l){var m=Pb(O.j.get(),V);return m6(O,m,V,new XD(O.K,J),[new Sy(O.K,J),new JE(O.K,m)],y,l)}; xd1=function(O,V,J,y,l){J=J?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var m=Pb(O.j.get(),J);V=new XD(O.K,V);var H=[new VQ(O.K,m)];O=[new JE(O.K,m)];return{slotId:m,slotType:J,slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:H,slotExpirationTriggers:O,PE:"core",clientMetadata:new Q5([new c0(l({slotId:m,slotType:J,slotPhysicalPosition:1,PE:"core",slotEntryTrigger:V,slotFulfillmentTriggers:H,slotExpirationTriggers:O}))]),adSlotLoggingData:y}}; aKV=function(O,V,J,y,l){var m=Pb(O.j.get(),"SLOT_TYPE_PLAYER_BYTES"),H=new ro(O.K),F=[new m3(O.K,m)];O=[new Sy(O.K,V)];V=[];V.push(new c0(y({slotId:m,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:H,slotFulfillmentTriggers:F,slotExpirationTriggers:O})));V.push(new W0({}));l&&V.push(new mJ({current:l}));return{slotId:m,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:F,slotExpirationTriggers:O,PE:"core",clientMetadata:new Q5(V), adSlotLoggingData:J}}; MqH=function(O,V){return tqn(O.Xj.get())?new GC(O.K,V,["normal","error","skipped"]):new GC(O.K,V,["normal"])}; Xfd=function(O,V,J,y,l){V=MqH(O,V);O=sE(O,V,J);l=l({slotId:O.slotId,slotType:O.slotType,slotPhysicalPosition:O.slotPhysicalPosition,slotEntryTrigger:O.slotEntryTrigger,slotFulfillmentTriggers:O.slotFulfillmentTriggers,slotExpirationTriggers:O.slotExpirationTriggers,PE:O.PE});return l instanceof P?l:{PR:Object.assign({},O,{clientMetadata:new Q5([new c0(l.layout)]),adSlotLoggingData:y}),F6:l.F6}}; EL1=function(O,V,J,y,l,m,H){J=LJH(O,V,J,y);if(J instanceof P)return J;H=H({slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:J.slotExpirationTriggers,PE:J.PE});if(H instanceof P)return H;O=[new c0(H.layout),new nF({ph:O.ph(V)})];m&&O.push(new hA({}));return{PR:{slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:J.slotEntryTrigger, slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:J.slotExpirationTriggers,PE:J.PE,clientMetadata:new Q5(O),adSlotLoggingData:l},F6:H.F6}}; sE=function(O,V,J){var y=Pb(O.j.get(),"SLOT_TYPE_PLAYER_BYTES"),l=[new VQ(O.K,y)];O=[new JE(O.K,y),new Sy(O.K,J)];return{slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:l,slotExpirationTriggers:O,PE:"core"}}; LJH=function(O,V,J,y){V=lO(O,V,J,y);return V instanceof P?V:sE(O,V,J)}; Udp=function(O,V,J,y,l,m){var H=Pb(O.j.get(),"SLOT_TYPE_FORECASTING");V=lO(O,V,J,y);if(V instanceof P)return V;y=[new VQ(O.K,H)];O=[new JE(O.K,H),new Sy(O.K,J)];return{slotId:H,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:y,slotExpirationTriggers:O,PE:"core",clientMetadata:new Q5([new c0(m({slotId:H,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,PE:"core",slotEntryTrigger:V,slotFulfillmentTriggers:y,slotExpirationTriggers:O}))]),adSlotLoggingData:l}}; IQU=function(O,V,J,y,l){var m=!V.hideCueRangeMarker;switch(V.kind){case "AD_PLACEMENT_KIND_START":return new XD(O.K,J);case "AD_PLACEMENT_KIND_MILLISECONDS":return O=DFX(V,y),O instanceof P?O:l(O.QQ,m);case "AD_PLACEMENT_KIND_END":return new go(O.K,J,m);default:return new P("Cannot construct entry trigger",{kind:V.kind})}}; eM5=function(O,V,J,y,l){return IQU(O,V,J,y,function(m,H){return new z6o(O.K,J,m,H,l)})}; lO=function(O,V,J,y){return IQU(O,V,J,y,function(l,m){return new ie(O.K,J,l,m)})}; m6=function(O,V,J,y,l,m,H){O=[new m3(O.K,V)];return{slotId:V,slotType:J,slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:O,slotExpirationTriggers:l,PE:"core",clientMetadata:new Q5([new c0(H({slotId:V,slotType:J,slotPhysicalPosition:1,PE:"core",slotEntryTrigger:y,slotFulfillmentTriggers:O,slotExpirationTriggers:l}))]),adSlotLoggingData:m}}; j4h=function(){}; $H=function(O,V){g.K.call(this);this.Xj=O;this.j=V;this.eventCount=0;this.U=Cir()()}; Wb=function(O,V,J){O.K(V,void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData)}; lY=function(O,V,J,y){O.K(V,void 0,void 0,void 0,J,y?y:void 0,void 0,void 0,J.adSlotLoggingData,y?y.adLayoutLoggingData:void 0);J=c5().resolve(xt(O8))==null?void 0:Vz();V=J==null?void 0:J.adsSeenHotConfig;J=J==null?void 0:J.adsHotConfig;(V==null?0:V.logOnAdsSeen)&&(J==null?0:J.webEnablePremiumAdsSeenLogging)&&Y5h(O,y?y:void 0)}; Z2o=function(O,V,J,y){wz(O.Xj.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",J,"slot:",V,"layout:",y);ru(O.j.get())&&O.K("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,V,y?y:void 0,void 0,J,V.adSlotLoggingData,y?y.adLayoutLoggingData:void 0)}; DP=function(O,V,J,y,l){O.K("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,y,l,void 0,void 0,y.adSlotLoggingData,l?l.adLayoutLoggingData:void 0,{errorType:V,errorMessage:J})}; Y5h=function(O,V){if(V){var J=V.adLayoutLoggingData;g.AG(g.ij(),function(){O.U!=null&&J&&g.l6("adsSeenClientLogging",{serializedAdServingDataEntry:J.serializedAdServingDataEntry})},0)}}; H_=function(O,V,J){$H.call(this,O,V);this.Xj=O;this.CD=J}; jl=function(){this.K=new Map}; C9=function(O,V){return O.K.get(V)||null}; FL=function(O){this.K="pending";this.j=[];this.U=[];try{O(this.D.bind(this),this.reject.bind(this))}catch(V){this.reject(V)}}; aQd=function(){var O,V;return{oI:new FL(function(J,y){O=J;V=y}), resolve:O,reject:V}}; W_=function(O){return NP(O)?O:xH(O)?new FL(function(V,J){O.then(V,J)}):new FL(function(V){V(O)})}; UM=function(O){return new FL(function(V,J){J(O)})}; ZA=function(O){try{return W_(O())}catch(V){return UM(V)}}; pbH=function(O){return g.Q(function(V){return V.return(bm1(O))})}; c_=function(O,V,J){var y=aQd(),l=y.oI,m=y.resolve,H=y.reject;O.j.push(function(F){if(V)try{var N=V(F);m(N)}catch(x){H(x)}else m(F)}); O.U.push(function(F){if(J)try{var N=J(F);m(N)}catch(x){H(x)}else H(F)}); zI(O);return l}; sM=function(O,V){return c_(O,void 0,V)}; fQ1=function(O,V){c_(O,function(J){return c_(W_(V()),function(){return J})},function(J){return c_(W_(V()),function(){return UM(J)})})}; zI=function(O){if(O.K==="fulfilled"){var V=O.j;O.j=[];O.U=[];V=g.n(V);for(var J=V.next();!J.done;J=V.next())J=J.value,J(O.result)}else if(O.K==="rejected")for(V=O.U,O.j=[],O.U=[],V=g.n(V),J=V.next();!J.done;J=V.next())J=J.value,J(O.error)}; bm1=function(O){return new Promise(function(V,J){c_(O,V,J)})}; TI=function(O,V){return hMl(V.call(O))}; el=function(O){return function J(){return Hn(J,function(y){if(y.j==1)return y.fD(2),y.K({oI:W_(O)},4);if(y.j!=2)return y.return(y.U);y.T();return y.qX(0)})}()}; hMl=function(O){return ZA(function(){return Ii(O,O.next())})}; Ii=function(O,V){return V.done?W_(V.value):sM(c_(V.value.oI,function(J){return Ii(O,O.next(J))}),function(J){return Ii(O,O.throw(J))})}; wbd=function(O){var V=ovn(O);return c_(vvr(V),function(){return V.map(function(J){return J.state()})})}; vvr=function(O){if(O.length===0)return W_(NaN);var V=aQd(),J=V.oI,y=V.resolve,l=O.length;O=g.n(O.entries());var m=O.next();for(V={};!m.done;V={bP:void 0},m=O.next()){var H=g.n(m.value);m=H.next().value;H=H.next().value;V.bP=m;fQ1(H,function(F){return function(){J.K==="pending"&&(MSH(void 0)&&(void 0)(F.bP)&&J.K==="pending"?y(F.bP):(--l,l===0&&y(NaN)))}}(V))}return J}; ovn=function(O){return O.map(function(V){return W_(V)})}; YH=function(O){return window.Int32Array?new Int32Array(O):Array(O)}; oi=function(O){g.K.call(this);this.counter=[0,0,0,0];this.j=new Uint8Array(16);this.K=16;if(!L9X){var V,J=new Uint8Array(256),y=new Uint8Array(256);var l=1;for(V=0;V<256;V++)J[l]=V,y[V]=l,l^=l<<1^(l>>7&&283);ai=new Uint8Array(256);bO=YH(256);p9=YH(256);f9=YH(256);hJ=YH(256);for(var m=0;m<256;m++){l=m?y[255^J[m]]:0;l^=l<<1^l<<2^l<<3^l<<4;l=l&255^l>>>8^99;ai[m]=l;V=l<<1^(l>>7&&283);var H=V^l;bO[m]=V<<24|l<<16|l<<8|H;p9[m]=H<<24|bO[m]>>>8;f9[m]=l<<24|p9[m]>>>8;hJ[m]=l<<24|f9[m]>>>8}L9X=!0}l=YH(44);for(J= 0;J<4;J++)l[J]=O[4*J]<<24|O[4*J+1]<<16|O[4*J+2]<<8|O[4*J+3];for(y=1;J<44;J++)O=l[J-1],J%4||(O=(ai[O>>16&255]^y)<<24|ai[O>>8&255]<<16|ai[O&255]<<8|ai[O>>>24],y=y<<1^(y>>7&&283)),l[J]=l[J-4]^O;this.key=l}; nvY=function(O){for(var V=O.key,J=O.counter[0]^V[0],y=O.counter[1]^V[1],l=O.counter[2]^V[2],m=O.counter[3]^V[3],H=3;H>=0&&!(O.counter[H]=-~O.counter[H]);H--);for(var F,N,x=4;x<40;)H=bO[J>>>24]^p9[y>>16&255]^f9[l>>8&255]^hJ[m&255]^V[x++],F=bO[y>>>24]^p9[l>>16&255]^f9[m>>8&255]^hJ[J&255]^V[x++],N=bO[l>>>24]^p9[m>>16&255]^f9[J>>8&255]^hJ[y&255]^V[x++],m=bO[m>>>24]^p9[J>>16&255]^f9[y>>8&255]^hJ[l&255]^V[x++],J=H,y=F,l=N;O=O.j;H=V[40];O[0]=ai[J>>>24]^H>>>24;O[1]=ai[y>>16&255]^H>>16&255;O[2]=ai[l>>8&255]^ H>>8&255;O[3]=ai[m&255]^H&255;H=V[41];O[4]=ai[y>>>24]^H>>>24;O[5]=ai[l>>16&255]^H>>16&255;O[6]=ai[m>>8&255]^H>>8&255;O[7]=ai[J&255]^H&255;H=V[42];O[8]=ai[l>>>24]^H>>>24;O[9]=ai[m>>16&255]^H>>16&255;O[10]=ai[J>>8&255]^H>>8&255;O[11]=ai[y&255]^H&255;H=V[43];O[12]=ai[m>>>24]^H>>>24;O[13]=ai[J>>16&255]^H>>16&255;O[14]=ai[y>>8&255]^H>>8&255;O[15]=ai[l&255]^H&255}; MP=function(){if(!v_&&!g.d9){if(wX)return wX;var O;wX=(O=window.crypto)==null?void 0:O.subtle;var V,J,y;if(((V=wX)==null?0:V.importKey)&&((J=wX)==null?0:J.sign)&&((y=wX)==null?0:y.encrypt))return wX;wX=void 0}}; g.XL=function(O){var V=MP();V&&(this.K=new L9(O,V));this.j=new g.n9(O)}; L9=function(O,V){this.j=O;this.subtleCrypto=V}; Xb1=function(O,V,J){var y,l;return g.Q(function(m){switch(m.j){case 1:if(O.K){m.uw(2);break}return m.K(O.subtleCrypto.importKey("raw",O.j,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:O.K=m.U;case 2:return y={name:"AES-CTR",counter:J,length:128},m.K(O.subtleCrypto.encrypt(y,O.K,V),4);case 4:return l=m.U,m.return(new Uint8Array(l))}})}; g.n9=function(O){this.j=O}; EM=function(O){this.W=new Uint8Array(64);this.U=new Uint8Array(64);this.D=0;this.V=new Uint8Array(64);this.j=0;this.W.set(O);this.U.set(O);for(O=0;O<64;O++)this.W[O]^=92,this.U[O]^=54;this.reset()}; Evp=function(O,V,J){for(var y=O.S,l=O.K[0],m=O.K[1],H=O.K[2],F=O.K[3],N=O.K[4],x=O.K[5],W=O.K[6],U=O.K[7],Z,z,c,Y=0;Y<64;)Y<16?(y[Y]=c=V[J]<<24|V[J+1]<<16|V[J+2]<<8|V[J+3],J+=4):(Z=y[Y-2],z=y[Y-15],c=y[Y-7]+y[Y-16]+((Z>>>17|Z<<15)^(Z>>>19|Z<<13)^Z>>>10)+((z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3),y[Y]=c),Z=U+dX[Y]+c+((N>>>6|N<<26)^(N>>>11|N<<21)^(N>>>25|N<<7))+(N&x^~N&W),z=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&m^l&H^m&H),U=Z+z,F+=Z,Y++,Y<16?(y[Y]=c=V[J]<<24|V[J+1]<<16|V[J+2]<<8|V[J+3],J+=4):(Z= y[Y-2],z=y[Y-15],c=y[Y-7]+y[Y-16]+((Z>>>17|Z<<15)^(Z>>>19|Z<<13)^Z>>>10)+((z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3),y[Y]=c),Z=W+dX[Y]+c+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&N^~F&x),z=((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+(U&l^U&m^l&m),W=Z+z,H+=Z,Y++,Y<16?(y[Y]=c=V[J]<<24|V[J+1]<<16|V[J+2]<<8|V[J+3],J+=4):(Z=y[Y-2],z=y[Y-15],c=y[Y-7]+y[Y-16]+((Z>>>17|Z<<15)^(Z>>>19|Z<<13)^Z>>>10)+((z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3),y[Y]=c),Z=x+dX[Y]+c+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&F^ ~H&N),z=((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+(W&U^W&l^U&l),x=Z+z,m+=Z,Y++,Y<16?(y[Y]=c=V[J]<<24|V[J+1]<<16|V[J+2]<<8|V[J+3],J+=4):(Z=y[Y-2],z=y[Y-15],c=y[Y-7]+y[Y-16]+((Z>>>17|Z<<15)^(Z>>>19|Z<<13)^Z>>>10)+((z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3),y[Y]=c),Z=N+dX[Y]+c+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&H^~m&F),z=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+(x&W^x&U^W&U),c=U,U=F,F=c,c=W,W=H,H=c,c=x,x=m,m=c,N=l+Z,l=Z+z,Y++;O.K[0]=l+O.K[0]|0;O.K[1]=m+O.K[1]|0;O.K[2]=H+O.K[2]|0;O.K[3]= F+O.K[3]|0;O.K[4]=N+O.K[4]|0;O.K[5]=x+O.K[5]|0;O.K[6]=W+O.K[6]|0;O.K[7]=U+O.K[7]|0}; gvo=function(O){var V=new Uint8Array(32),J=64-O.j;O.j>55&&(J+=64);var y=new Uint8Array(J);y[0]=128;for(var l=O.D*8,m=1;m<9;m++){var H=l%256;y[J-m]=H;l=(l-H)/256}O.update(y);for(J=0;J<8;J++)V[J*4]=O.K[J]>>>24,V[J*4+1]=O.K[J]>>>16&255,V[J*4+2]=O.K[J]>>>8&255,V[J*4+3]=O.K[J]&255;dMn(O);return V}; dMn=function(O){O.K=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];O.S=[];O.S.length=64;O.D=0;O.j=0}; q5U=function(O){this.K=O}; Qn1=function(O,V,J){O=new EM(O.K);O.update(V);O.update(J);V=gvo(O);O.update(O.W);O.update(V);V=gvo(O);O.reset();return V}; Gdh=function(O,V){this.j=O;this.subtleCrypto=V}; K95=function(O,V,J){var y,l,m;return g.Q(function(H){switch(H.j){case 1:if(O.K){H.uw(2);break}return H.K(O.subtleCrypto.importKey("raw",O.j,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:O.K=H.U;case 2:return y=new Uint8Array(V.length+J.length),y.set(V),y.set(J,V.length),l={name:"HMAC",hash:"SHA-256"},H.K(O.subtleCrypto.sign(l,O.K,y),4);case 4:return m=H.U,H.return(new Uint8Array(m))}})}; tSY=function(O){this.K=O}; u0n=function(O,V,J,y){return g.Q(function(l){O.j||(O.j=new Gdh(O.K,y));return l.return(K95(O.j,V,J))})}; Aud=function(O,V,J){O.U||(O.U=new q5U(O.K));return Qn1(O.U,V,J)}; rul=function(O,V,J){var y,l;return g.Q(function(m){if(m.j==1){y=MP();if(!y)return m.return(Aud(O,V,J));m.W(3);return m.K(u0n(O,V,J,y),5)}if(m.j!=3)return m.return(m.U);l=m.D();g.en(l);v_=!0;return m.return(Aud(O,V,J))})}; gX=function(){var O=im5;var V=V===void 0?[]:V;var J=J===void 0?[]:J;V=j8Y.apply(null,[CFh.apply(null,g.q(V))].concat(g.q(J)));this.store=N41(O,void 0,V)}; g.qP=function(O,V,J){for(var y=Object.assign({},O),l=g.n(Object.keys(V)),m=l.next();!m.done;m=l.next()){m=m.value;var H=O[m],F=V[m];if(F===void 0)delete y[m];else if(H===void 0)y[m]=F;else if(Array.isArray(F)&&Array.isArray(H))y[m]=J?[].concat(g.q(H),g.q(F)):F;else if(!Array.isArray(F)&&g.YE(F)&&!Array.isArray(H)&&g.YE(H))y[m]=g.qP(H,F,J);else if(typeof F===typeof H)y[m]=F;else return V=new g.pn("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:m,plX:H,updateValue:F}),g.sk(V), O}return y}; Q8=function(O){var V=this;O=O===void 0?[]:O;this.K=[];this.U=this.j=0;this.D=void 0;this.totalLength=0;O.forEach(function(J){V.append(J)})}; RMr=function(O,V){return O.K.length===0?!1:(O=O.K[O.K.length-1])&&O.buffer===V.buffer&&O.byteOffset+O.length===V.byteOffset}; GI=function(O,V){V=g.n(V.K);for(var J=V.next();!J.done;J=V.next())O.append(J.value)}; K9=function(O,V,J){return O.split(V).AR.split(J).mF}; tJ=function(O){O.D=void 0;O.j=0;O.U=0}; uO=function(O,V,J){O.isFocused(V);return V-O.U+J<=O.K[O.j].length}; Bzr=function(O){if(!O.D){var V=O.K[O.j];O.D=new DataView(V.buffer,V.byteOffset,V.length)}return O.D}; PYV=function(O,V,J){V=V===void 0?0:V;J=J===void 0?-1:J;if(!O.totalLength||!J)return new DataView(new ArrayBuffer(0));J<0&&(J=O.totalLength-V);O.focus(V);if(!uO(O,V,J)){var y=O.j,l=O.U;O.focus(V+J-1);l=new Uint8Array(O.U+O.K[O.j].length-l);for(var m=0,H=y;H<=O.j;H++)l.set(O.K[H],m),m+=O.K[H].length;O.K.splice(y,O.j-y+1,l);tJ(O);O.focus(V)}y=O.K[O.j];return new DataView(y.buffer,y.byteOffset+V-O.U,J)}; AJ=function(O,V,J){O=PYV(O,V===void 0?0:V,J===void 0?-1:J);return new Uint8Array(O.buffer,O.byteOffset,O.byteLength)}; rX=function(O,V,J){O=AJ(O,V===void 0?0:V,J===void 0?-1:J);V=new Uint8Array(O.length);try{V.set(O)}catch(y){for(J=0;J>10;m=56320|m&1023}P_[l++]=m}}m=String.fromCharCode.apply(String,P_); l<1024&&(m=m.substring(0,l));J.push(m)}return J.join("")}; DA=function(O,V){var J;if((J=Sl)==null?0:J.encodeInto)return V=Sl.encodeInto(O,V),V.read>6|192:((l&64512)===55296&&y+1>18|240,V[J++]=l>>12&63|128):V[J++]=l>>12|224,V[J++]=l>>6&63|128),V[J++]=l&63|128)}return J}; OC=function(O){if(Sl)return Sl.encode(O);var V=new Uint8Array(Math.ceil(O.length*1.2)),J=DA(O,V);V.lengthJ&&(V=V.subarray(0,J));return V}; Vh=function(O){this.K=O;this.pos=0;this.j=-1}; Jh=function(O){var V=iO(O.K,O.pos);++O.pos;if(V<128)return V;for(var J=V&127,y=1;V>=128;)V=iO(O.K,O.pos),++O.pos,y*=128,J+=(V&127)*y;return J}; yh=function(O,V){var J=O.j;for(O.j=-1;O.pos+1<=O.K.totalLength;){J<0&&(J=Jh(O));var y=J>>3,l=J&7;if(y===V)return!0;if(y>V){O.j=J;break}J=-1;switch(l){case 0:Jh(O);break;case 1:O.pos+=8;break;case 2:y=Jh(O);O.pos+=y;break;case 5:O.pos+=4}}return!1}; sS=function(O,V){if(yh(O,V))return Jh(O)}; w3=function(O,V){if(yh(O,V))return V=AJ(O.K,O.pos,8),O.pos+=8,(new DataView(V.buffer,V.byteOffset,V.byteLength)).getFloat64(0,!0)}; nN=function(O,V){if(yh(O,V))return!!Jh(O)}; fN=function(O,V){if(yh(O,V)){V=Jh(O);var J=AJ(O.K,O.pos,V);O.pos+=V;return J}}; TR=function(O,V){if(O=fN(O,V))return g.kH(O)}; vg=function(O,V,J){if(O=fN(O,V))return J(new Vh(new Q8([O])))}; MI=function(O,V){for(var J=[];yh(O,V);)J.push(Jh(O));return J.length?J:void 0}; XE=function(O,V,J){for(var y=[],l;l=fN(O,V);)y.push(J(new Vh(new Q8([l]))));return y.length?y:void 0}; lV=function(O,V){O=O instanceof Uint8Array?new Q8([O]):O;return V(new Vh(O))}; DM5=function(O,V){O=new Uint8Array(O);V&&O.set(V);return O}; OE5=function(O){this.pos=0;this.j=[];this.K=DM5(O===void 0?4096:O);this.view=new DataView(this.K.buffer,this.K.byteOffset,this.K.byteLength)}; b$=function(O,V){V=O.pos+V;if(!(O.K.length>=V)){for(var J=O.K.length*2;J268435455){b$(O,4);for(var J=V&1073741823,y=0;y<4;y++)O.view.setUint8(O.pos,J&127|128),J>>=7,O.pos+=1;V=Math.floor(V/268435456)}for(b$(O,4);V>127;)O.view.setUint8(O.pos,V&127|128),V>>=7,O.pos+=1;O.view.setUint8(O.pos,V);O.pos+=1}; zR=function(O,V,J){J!==void 0&&(ak(O,V*8),ak(O,J))}; Y7=function(O,V,J){J!==void 0&&zR(O,V,J?1:0)}; x7=function(O,V,J){J!==void 0&&(ak(O,V*8+2),V=J.length,ak(O,V),b$(O,V),O.K.set(J,O.pos),O.pos+=V)}; US=function(O,V,J){J!==void 0&&(VPV(O,V,Math.ceil(Math.log2(J.length*4+2)/7)),b$(O,J.length*1.2),V=DA(J,O.K.subarray(O.pos)),O.pos+V>O.K.length&&(b$(O,V),V=DA(J,O.K.subarray(O.pos))),O.pos+=V,JYr(O))}; VPV=function(O,V,J){J=J===void 0?2:J;ak(O,V*8+2);O.j.push(O.pos);O.j.push(J);O.pos+=J}; JYr=function(O){for(var V=O.j.pop(),J=O.j.pop(),y=O.pos-J-V;V--;){var l=V?128:0;O.view.setUint8(J++,y&127|l);y>>=7}}; FE=function(O,V,J,y,l){J&&(VPV(O,V,l===void 0?3:l),y(O,J),JYr(O))}; g.mH=function(O,V){var J=new OE5(4096);V(J,O);return new Uint8Array(J.K.buffer,J.K.byteOffset,J.pos)}; g.$y=function(O){var V=new Vh(new Q8([EA(decodeURIComponent(O))]));O=TR(V,2);V=sS(V,4);var J=yYU[V];if(typeof J==="undefined")throw O=new g.pn("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:V}),g.sk(O),O;return{Ng:V,entityType:J,entityId:O}}; g.Hq=function(O,V){var J=J===void 0?0:J;var y=new OE5;x7(y,2,OC(O));O=$Lp[V];if(typeof O==="undefined")throw J=new g.pn("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:V}),g.sk(J),J;zR(y,4,O);zR(y,5,1);V=new Uint8Array(y.K.buffer,y.K.byteOffset,y.pos);return encodeURIComponent(g.nD(V,J))}; jk=function(O,V,J,y){if(y===void 0)return y=Object.assign({},O[V]||{}),J=(delete y[J],y),y={},Object.assign({},O,(y[V]=J,y));var l={},m={};return Object.assign({},O,(m[V]=Object.assign({},O[V],(l[J]=y,l)),m))}; HE7=function(O,V,J,y,l){var m=O[V];if(m==null||!m[J])return O;y=g.qP(m[J],y,l==="REPEATED_FIELDS_MERGE_OPTION_APPEND");l={};m={};return Object.assign({},O,(m[V]=Object.assign({},O[V],(l[J]=y,l)),m))}; jEn=function(O,V){O=O===void 0?{}:O;switch(V.type){case "ENTITY_LOADED":return V.payload.reduce(function(y,l){var m,H=(m=l.options)==null?void 0:m.persistenceOption;if(H&&H!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&H!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return y;if(!l.entityKey)return g.sk(Error("Missing entity key")),y;if(l.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!l.payload)return l=new g.pn("REPLACE entity mutation is missing a payload",{entityKey:l.entityKey}),g.sk(l),y;var F=g.U2(l.payload); return jk(y,F,l.entityKey,l.payload[F])}if(l.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{l=l.entityKey;try{var N=g.$y(l).entityType;F=jk(y,N,l);break a}catch(U){if(U instanceof Error){l=new g.pn("Failed to deserialize entity key",{entityKey:l,originalMessage:U.message});g.sk(l);F=y;break a}throw U;}F=void 0}return F}if(l.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!l.payload)return l=new g.pn("UPDATE entity mutation is missing a payload",{entityKey:l.entityKey}),g.sk(l),y;F=g.U2(l.payload);var x,W;return HE7(y, F,l.entityKey,l.payload[F],(x=l.fieldMask)==null?void 0:(W=x.mergeOptions)==null?void 0:W.repeatedFieldsMergeOption)}return y},O); case "REPLACE_ENTITY":var J=V.payload;return jk(O,J.entityType,J.key,J.Mg);case "REPLACE_ENTITIES":return Object.keys(V.payload).reduce(function(y,l){var m=V.payload[l];return Object.keys(m).reduce(function(H,F){return jk(H,l,F,m[F])},y)},O); case "UPDATE_ENTITY":return J=V.payload,HE7(O,J.entityType,J.key,J.Mg,J.Hh5);default:return O}}; Ce=function(O,V,J){return O[V]?O[V][J]||null:null}; Ni=function(O){var V=O.hours||0;var J=O.minutes||0,y=O.seconds||0;V=y+J*60+V*3600+(O.days||0)*86400+(O.weeks||0)*604800+(O.months||0)*2629800+(O.years||0)*31557600;V<=0?V={hours:0,minutes:0,seconds:0}:(O=V,V=Math.floor(O/3600),O%=3600,J=Math.floor(O/60),y=Math.floor(O%60),V={hours:V,minutes:J,seconds:y});var l=V.hours===void 0?0:V.hours;J=V.minutes===void 0?0:V.minutes;O=V.seconds===void 0?0:V.seconds;y=l>0;V=[];if(y){l=(new Intl.NumberFormat("en-u-nu-latn")).format(l);var m=["fr"],H="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(" "); l="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(Fp)?l.replace(",","\u00a0"):m.includes(Fp)?l.replace(",","\u202f"):H.includes(Fp)?l.replace(",","."):l;V.push(l)}y=y===void 0?!1:y;J=(["af","be","lt"].includes(Fp)||y)&&J<10?C35().format(J):(new Intl.NumberFormat("en-u-nu-latn")).format(J);V.push(J);J=C35().format(O);V.push(J);J=":";"da fi id si sr sr-Latn".split(" ").includes(Fp)&&(J=".");return V.join(J)}; C35=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; FYp=function(O,V){var J,y;O=((J=O.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(y=J.videoAuthorizationToken)==null?void 0:y.credentialTransferTokens)||[];for(J=0;JV;O=J}else O=!1;return O}; g.vq=function(O,V){return O.bV+"timedtext_video?ref=player&v="+V.videoId}; g.vp7=function(O){var V=this;this.videoData=O;O={};this.K=(O.c1a=function(){var J=[];if(g.hh.isInitialized()){var y="";V.videoData&&V.videoData.aN&&(y=V.videoData.aN+("&r1b="+V.videoData.clientPlaybackNonce));var l={};y=(l.atr_challenge=y,l);ac("bg_v",void 0,"player_att");(y=opV(y))?(ac("bg_s",void 0,"player_att"),J.push("r1a="+y)):(ac("bg_e",void 0,"player_att"),J.push("r1c=2"))}else ac("bg_e",void 0,"player_att"),window.trayride||window.botguard?J.push("r1c=1"):J.push("r1c=4");J.push("r1d="+g.hh.getState()); return J.join("&")},O.c6a=function(J){return"r6a="+(Number(J.c)^Ox())},O.c6b=function(J){return"r6b="+(Number(J.c)^Number(g.ts("CATSTAT",0)))},O); this.videoData&&this.videoData.aN?this.Td=y7(this.videoData.aN):this.Td={}}; g.wEH=function(O){if(O.videoData&&O.videoData.aN){for(var V=[O.videoData.aN],J=g.n(Object.keys(O.K)),y=J.next();!y.done;y=J.next())y=y.value,O.Td[y]&&O.K[y]&&(y=O.K[y](O.Td))&&V.push(y);return V.join("&")}return null}; g.wl=function(O,V){htr(O,{tEw:g.Ry(V.experiments,"bg_vm_reinit_threshold"),cspNonce:V.cspNonce,bV:V.bV||""})}; MPo=function(){var O=XMLHttpRequest.prototype.fetch;return!!O&&O.length===3}; npY=function(O){LYY=2592E3*(O||1)}; XEr=function(O){g.oH("yt-player-bandwidth",O,2592E3)}; Mi=function(O){O=O===void 0?LYY:O;if(O>0&&!(pP7()>(0,g.cH)()-O*1E3))return 0;O=g.vC("yt-player-quality");if(typeof O==="string"){if(O=g.g3[O],O>0)return O}else if(O instanceof Object)return O.quality;return 0}; Le=function(){var O=g.vC("yt-player-proxima-pref");return O==null?null:O}; EpH=function(){var O=g.vC("yt-player-quality");if(O instanceof Object&&O.quality&&O.previousQuality){if(O.quality>O.previousQuality)return 1;if(O.quality0&&V[0]?O.getAutoplayPolicy(V[0]):O.getAutoplayPolicy("mediaelement");if(tPV[J])return tPV[J]}}catch(y){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Qh=function(O){return O.eq||O.ZI||O.mutedAutoplay}; ujX=function(O,V){return Qh(O)?V!==1&&V!==2&&V!==0?"AUTOPLAY_STATUS_UNAVAILABLE":O.nm?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; AYX=function(O,V,J){var y=V.Y();O.thirdParty||(O.thirdParty={});O.thirdParty=Object.assign({},O.thirdParty,{embedUrl:y.loaderUrl});y.ancestorOrigins&&(O.thirdParty.embeddedPlayerContext=Object.assign({},O.thirdParty.embeddedPlayerContext,{ancestorOrigins:y.ancestorOrigins}));y.QD!=null&&(O.thirdParty.embeddedPlayerContext=Object.assign({},O.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(y.QD)}));y.SK&&(O.thirdParty.embeddedPlayerContext=Object.assign({},O.thirdParty.embeddedPlayerContext, {visibilityFractionSource:y.SK}));O.thirdParty.embeddedPlayerContext=Object.assign({},O.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:qi(),autoplayIntended:Qh(V),autoplayStatus:ujX(V,J)})}; rY5=function(O){var V=[];O=g.n(O.split(","));for(var J=O.next();!J.done;J=O.next()){var y=J.value;y&&((J=y.startsWith("!"))&&(y=y.substring(1)),y=y.split("-"),y.length<3||V.push({W9:y[0],platform:y[1],deviceVersion:y[2],oo:J}))}return V}; BLh=function(O){return rY5(O).map(function(V){return{deviceInterface:iEp[Rt1[V.W9]]||0,deviceVersion:V.deviceVersion||"",isSleeping:V.oo}})}; g.GX=function(O,V){this.id=O;this.wC=V;this.captionTracks=[];this.U=this.D=null;this.xtags="";this.V=this.W=!1;this.K=null;this.j="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";O=this.wC.id.split(".");O.length>1&&(this.W=O[1]==="2",this.V=O[1]==="4")}; Ke=function(O,V,J,y,l){this.j=O;this.K=V;this.U=J;this.reason=y;this.jq=l===void 0?0:l}; g.th=function(O,V,J,y){return new Ke(g.g3[O]||0,g.g3[V]||0,J,y)}; Ah=function(O){if(uV&&O.jq)return!1;var V=g.g3.auto;return O.j===V&&O.K===V}; iV=function(O){return rl[O.K||O.j]||"auto"}; P3U=function(O,V){V=g.g3[V];return O.j<=V&&(!O.K||O.K>=V)}; RY=function(O,V,J,y){this.videoInfos=O;this.K=V;this.audioTracks=[];this.j=y||[];if(this.K){O=new Set;J==null||J({ainfolen:this.K.length});V=g.n(this.K);for(y=V.next();!y.done;y=V.next())if(y=y.value,!y.wC||O.has(y.wC.id)){var l=void 0,m=void 0,H=void 0;(H=J)==null||H({atkerr:!!y.wC,itag:y.itag,xtag:y.K,lang:((l=y.wC)==null?void 0:l.name)||"",langid:((m=y.wC)==null?void 0:m.id)||""})}else l=new g.GX(y.id,y.wC),O.add(y.wC.id),this.audioTracks.push(l);J==null||J({atklen:this.audioTracks.length})}}; Bq=function(){g.K.apply(this,arguments);this.j=null;this.K=new Map}; VXY=function(O,V,J,y,l,m,H){if(O.j)return O.j;var F={},N=new Set,x={};if(Pq(y)){for(var W in y.K)y.K.hasOwnProperty(W)&&(O=y.K[W],x[O.info.al]=[O.info]);return x}W=kN7(V,y,F);m&&l({aftsrt:ky(W)});for(var U={},Z=g.n(Object.keys(W)),z=Z.next();!z.done;z=Z.next()){z=z.value;for(var c=g.n(W[z]),Y=c.next();!Y.done;Y=c.next()){Y=Y.value;var b=Y.itag,M=SIh(z,Y);if(U.hasOwnProperty(M))U[M]===!0?x[z].push(Y):F[b]=U[M];else{var w=Sk(V,Y,J,y.isLive,N);w!==!0?(H.add(z),F[b]=w,w==="disablevp9hfr"&&(U[M]="disablevp9hfr")): (x[z]=x[z]||[],x[z].push(Y),U[M]=!0)}}}m&&l({bfflt:ky(x)});for(var L in x)x.hasOwnProperty(L)&&(y=L,x[y]&&x[y][0].z3()&&(x[y]=x[y],x[y]=DLr(V,x[y],F),x[y]=ONV(x[y],F)));m&&Object.keys(F).length>0&&l({rjr:SP(F)});V=g.n(N.values());for(y=V.next();!y.done;y=V.next())(y=J.U.get(y.value))&&--y.Ik;m&&l({aftflt:ky(x)});O.j=g.xm(x,function(X){return!!X.length}); return O.j}; yqU=function(O,V,J,y,l,m,H,F){F=F===void 0?!1:F;if(V.MI&&H&&H.length>1&&!(V.FF>0||V.T)){for(var N=V.K||!!l,x=N&&V.aB?m:void 0,W=kN7(V,y),U=[],Z=[],z={},c=0;c0&&c&&Z&&(W=[H,O],X=Z.concat(c).filter(function(u){return u})); if(X.length&&!V.yQ){VA(X,W);if(N){N=[];V=g.n(X);for(y=V.next();!y.done;y=V.next())N.push(y.value.itag);m({hbdfmt:N.join(".")})}return hy(new RY(X,l,x,J))}X=WgY(V);X=g.Qs(X,F);if(!X){if(U[H])return m=U[H],VA(m),hy(new RY(m,l,x,J));N&&m({novideo:1});return fW()}X!=="1"&&X!=="1h"||!U[O]||(H=JC(U[X]),W=JC(U[O]),W>H?X=O:W===H&&UIh(U[O])&&(X=O));X==="9"&&U.h&&JC(U.h)>JC(U["9"])&&(X="h");V.Xs&&y.isLive&&X==="("&&U.H&&JC(U["("])<1440&&(X="H");N&&m({vfmly:yA(X)});V=U[X];if(!V.length)return N&&m({novfmly:yA(X)}), fW();VA(V);return hy(new RY(V,l,x,J))}; N3p=function(O,V,J){var y,l=((y=J.video)==null?void 0:y.fps)||0;y=V+"_"+l;var m=!!J.audio,H=O.K.get(y);a:{var F=O.K.get(y),N=!!J.audio;if(F){if(N){var x=!1;break a}var W;if(!N&&((x=J.video)==null?0:x.height)&&F.maxHeight&&F.maxHeight>=((W=J.video)==null?void 0:W.height)){x=!1;break a}}x=!0}x&&(x=J.itag,V=H?H:{itag:x,al:V,jE:m},m?V.numChannels=J.audio.numChannels:(m=J.video,V.maxWidth=m==null?void 0:m.width,V.maxHeight=m==null?void 0:m.height,V.maxFramerate=l,V.maxBitrateBps=J.jq*8,V.b7=m==null?void 0: m.isHdr()),O.K.set(y,V))}; Ow=function(O){for(var V=[],J=g.n(O.K.keys()),y=J.next();!y.done;y=J.next()){y=y.value;var l=O.K.get(y);V.push(y+"_"+l.maxWidth+"_"+l.maxHeight)}return V.join(".")}; mIr=function(O,V){var J=!(!O.m&&!O.M),y=!(!O.mac3&&!O.MAC3),l=!(!O.meac3&&!O.MEAC3);O=!(!O.i&&!O.I);V.Jg=O;return J||y||l||O}; UIh=function(O){O=g.n(O);for(var V=O.next();!V.done;V=O.next())if(V=V.value,V.itag&&ZNV.has(V.itag))return!0;return!1}; HNh=function(O){O=g.n(O);for(var V=O.next();!V.done;V=O.next())if(V.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; yA=function(O){switch(O){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return O}}; SIh=function(O,V){var J,y;return O+"_"+Number(((J=V.video)==null?void 0:J.fps)||0)+"_"+!((y=V.audio)==null||!y.j)}; ky=function(O){var V=[],J;for(J in O)if(O.hasOwnProperty(J)){var y=J;V.push(yA(y));y=g.n(O[y]);for(var l=y.next();!l.done;l=y.next())V.push(l.value.itag)}return V.join(".")}; l$V=function(O,V,J,y,l,m){var H={},F={};g.YY(V,function(N,x){N=N.filter(function(W){var U=W.itag;if(!W.AL)return F[U]="noenc",!1;if(m.NH&&W.al==="(h"&&m.UR)return F[U]="lichdr",!1;if(!O.D&&W.al==="1e")return F[U]="noav1enc",!1;if(W.al==="("||W.al==="(h"){if(O.j&&J&&J.flavor==="widevine"){var Z=W.mimeType+"; experimental=allowed";(Z=!!W.AL[J.flavor]&&!!J.K[Z])||(F[U]=W.AL[J.flavor]?"unspt":"noflv");return Z}if(!lE(O,mW.CRYPTOBLOCKFORMAT)&&!O.O5||O.lw)return F[U]=O.lw?"disvp":"vpsub",!1}return J&&W.AL[J.flavor]&& J.K[W.mimeType]?!0:(F[U]=J?W.AL[J.flavor]?"unspt":"noflv":"nosys",!1)}); N.length&&(H[x]=N)}); y&&Object.entries(F).length&&l({rjr:SP(F)});return H}; ONV=function(O,V){var J=pD(O,function(y,l){return l.video.fps>32?Math.min(y,l.video.width):y},Infinity); J32||y.video.widthO.V)return"max"+O.V;if(O.eB&&V.al==="h"&&V.video&&V.video.qualityOrdinal>1080)return"blkhigh264";if(V.al==="(h"&&!J.V)return"enchdr";if((y===void 0?0:y)&&Vod(V)&&!O.yz)return"blk51live";if((V.al==="MAC3"||V.al==="mac3")&&!O.D)return"blkac3";if((V.al==="MEAC3"||V.al==="meac3")&&!O.W)return"blkeac3";if(V.al==="M"||V.al==="m")return"blkaac51"; if((V.al==="so"||V.al==="sa")&&!O.KD)return"blkamb";if(!O.NH&&OJY(V)&&(!J.D||V.al!=="1e"))return"cbc";if(!J.D&&OJY(V)&&V.al==="1e")return"cbcav1";if((V.al==="i"||V.al==="I")&&!O.WB)return"blkiamf";var m;if(O.yc&&((m=V.audio)==null?void 0:m.j)===!0)return"blkvbcabr";var H,F;if(O.zL&&(V.al==="1"||V.al==="1h"||J.D&&V.al==="1e")&&((H=V.video)==null?0:H.qualityOrdinal)&&((F=V.video)==null?void 0:F.qualityOrdinal)>O.zL)return"av1cap";y=J.U.get(V.al);if(!O.oB&&y&&y.Ik>0)return l.add(V.al),"byerr";var N; if((N=V.video)==null?0:N.fps>32){if(!J.fD&&!lE(J,mW.FRAMERATE))return"capHfr";if(O.TL&&V.video.qualityOrdinal>=4320)return"blk8khfr";if(u$(V)&&O.DD&&V.AL&&V.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(O.jq&&V.jq>O.jq)return"ratecap";if(O.fD>0&&V.z3()&&V.video.height>O.fD)return"mvhcap";O=zAY(J,V);return O!==!0?O:!0}; VA=function(O,V){V=V===void 0?[]:V;g.m$(O,function(J,y){var l=y.jq-J.jq;if(!J.z3()||!y.z3())return l;var m=y.video.height*y.video.width-J.video.height*J.video.width;!m&&V&&V.length>0&&(J=V.indexOf(J.al)+1,y=V.indexOf(y.al)+1,m=J===0||y===0?y||-1:J-y);m||(m=l);return m})}; $4=function(O,V,J,y,l,m,H,F,N){this.wW=O;this.startTime=V;this.duration=J;this.ingestionTime=y;this.sourceURL=l;this.lO=N;this.endTime=V+J;this.K=H||0;this.range=m||null;this.pending=F||!1;this.lO=N||null}; g.HX=function(){this.segments=[];this.K=null;this.j=!0;this.U=""}; cqX=function(O,V){if(V>O.bR())O.segments=[];else{var J=dV(O.segments,function(y){return y.wW>=V},O); J>0&&O.segments.splice(0,J)}}; js=function(O,V,J,y,l){l=l===void 0?!1:l;this.data=O;this.offset=V;this.size=J;this.type=y;this.K=(this.j=l)?0:8;this.dataOffset=this.offset+this.K}; Cf=function(O){var V=O.data.getUint8(O.offset+O.K);O.K+=1;return V}; F2=function(O){var V=O.data.getUint16(O.offset+O.K);O.K+=2;return V}; NO=function(O){var V=O.data.getInt32(O.offset+O.K);O.K+=4;return V}; x4=function(O){var V=O.data.getUint32(O.offset+O.K);O.K+=4;return V}; WX=function(O){var V=O.data;var J=O.offset+O.K;V=V.getUint32(J)*4294967296+V.getUint32(J+4);O.K+=8;return V}; Uw=function(O,V){V=V===void 0?NaN:V;if(isNaN(V))var J=O.size;else for(J=O.K;J1?Math.ceil(l*V):Math.floor(l*V))}O.skip(1);J=Cf(O)<<16|F2(O);if(J&256){y=J&1;l=J&4;var m=J&512,H=J&1024,F=J&2048;J=x4(O);y&&O.skip(4);l&&O.skip(4);y=(m?4:0)+(H?4:0)+(F?4:0);for(l=0;l1?Math.ceil(H*V):Math.floor(H*V)),O.skip(y)}}}; aW=function(O){O=new DataView(O.buffer,O.byteOffset,O.byteLength);return(O=g.IW(O,0,1836476516))?g.Y4(O):NaN}; v7V=function(O){var V=g.IW(O,0,1937011556);if(!V)return null;V=bE(O,V.dataOffset+8,1635148593)||bE(O,V.dataOffset+8,1635135537);if(!V)return null;var J=bE(O,V.dataOffset+78,1936995172),y=bE(O,V.dataOffset+78,1937126244);if(!y)return null;V=null;if(J)switch(J.skip(4),Cf(J)){default:V=0;break;case 1:V=2;break;case 2:V=1;break;case 3:V=255}var l=J=null,m=null;if(y=bE(O,y.dataOffset,1886547818)){var H=bE(O,y.dataOffset,1886546020),F=bE(O,y.dataOffset,2037673328);if(!F&&(F=bE(O,y.dataOffset,1836279920), !F))return null;H&&(H.skip(4),J=NO(H)/65536,m=NO(H)/65536,l=NO(H)/65536);O=sko(F);O=new DataView(O.buffer,O.byteOffset+8,O.byteLength-8);return new hAl(V,J,m,l,O)}return null}; bE=function(O,V,J){for(;pf(O,V);){var y=ff(O,V);if(y.type===J)return y;V+=y.size}return null}; g.IW=function(O,V,J){for(;pf(O,V);){var y=ff(O,V);if(y.type===J)return y;V=hC(y.type)?V+8:V+y.size}return null}; g.oW=function(O){if(O.data.getUint8(O.dataOffset)){var V=O.data;O=O.dataOffset+4;V=V.getUint32(O)*4294967296+V.getUint32(O+4)}else V=O.data.getUint32(O.dataOffset+4);return V}; ff=function(O,V){var J=O.getUint32(V),y=O.getUint32(V+4);return new js(O,V,J,y)}; g.Y4=function(O){var V=O.data.getUint8(O.dataOffset)?20:12;return O.data.getUint32(O.dataOffset+V)}; wgH=function(O){O=new js(O.data,O.offset,O.size,O.type,O.j);var V=Cf(O);O.skip(7);var J=x4(O);if(V===0){V=x4(O);var y=x4(O)}else V=WX(O),y=WX(O);O.skip(2);for(var l=F2(O),m=[],H=[],F=0;F122)return!1}return!0}; hC=function(O){return O===1701082227||O===1836019558||O===1836019574||O===1835297121||O===1835626086||O===1937007212||O===1953653094||O===1953653099||O===1836475768}; MXd=function(O){O.skip(4);return{dUW:Uw(O,0),value:Uw(O,0),timescale:x4(O),fmw:x4(O),eventDuration:x4(O),id:x4(O),w2:Uw(O),offset:O.offset}}; g.Lgo=function(O){var V=bE(O,0,1701671783);if(!V)return null;var J=MXd(V),y=J.dUW;J=es(J.w2);if(O=bE(O,V.offset+V.size,1701671783))if(O=MXd(O),O=es(O.w2),J&&O){V=g.n(Object.keys(O));for(var l=V.next();!l.done;l=V.next())l=l.value,J[l]=O[l]}return J?new TP(J,y):null}; vX=function(O,V){for(var J=bE(O,0,V);J;){var y=J;y.type=1936419184;y.data.setUint32(y.offset+4,1936419184);J=bE(O,J.offset+J.size,V)}}; g.wI=function(O,V){for(var J=0,y=[];pf(O,J);){var l=ff(O,J);l.type===V&&y.push(l);J=hC(l.type)?J+8:J+l.size}return y}; n7d=function(O,V){var J=g.IW(O,0,1937011556),y=g.IW(O,0,1953654136);if(!J||!y||O.getUint32(J.offset+12)>=2)return null;var l=new DataView(V.buffer,V.byteOffset,V.length),m=g.IW(l,0,1937011556);if(!m)return null;V=l.getUint32(m.dataOffset+8);y=l.getUint32(m.dataOffset+12);if(y!==1701733217&&y!==1701733238)return null;y=new T31(O.byteLength+V);Z7(y,O,0,J.offset+12);y.data.setInt32(y.offset,2);y.offset+=4;Z7(y,O,J.offset+16,J.size-16);Z7(y,l,l.byteOffset+m.dataOffset+8,V);Z7(y,O,J.offset+J.size,O.byteLength- (J.offset+J.size));J=g.n([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(l=J.next();!l.done;l=J.next())l=g.IW(O,0,l.value),y.data.setUint32(l.offset,l.size+V);O=g.IW(y.data,0,1953654136);y.data.setUint32(O.offset+16,2);return y.data}; Xg1=function(O){var V=g.IW(O,0,1937011556);if(!V)return null;var J=O.getUint32(V.dataOffset+12);if(J!==1701733217&&J!==1701733238)return null;V=bE(O,V.offset+24+(J===1701733217?28:78),1936289382);if(!V)return null;J=bE(O,V.offset+8,1935894637);if(!J||O.getUint32(J.offset+12)!==1667392371)return null;V=bE(O,V.offset+8,1935894633);if(!V)return null;V=bE(O,V.offset+8,1952804451);if(!V)return null;J=new Uint8Array(16);for(var y=0;y<16;y++)J[y]=O.getInt8(V.offset+16+y);return J}; MO=function(O,V){this.K=O;this.pos=0;this.start=V||0}; Lf=function(O){return O.pos>=O.K.byteLength}; gI=function(O,V,J){var y=new MO(J);if(!nf(y,O))return!1;y=X2(y);if(!Ew(y,V))return!1;for(O=0;V;)V>>>=8,O++;V=y.start+y.pos;var l=dI(y,!0);y=O+(y.start+y.pos-V)+l;y=y>9?E7p(y-9,8):E7p(y-2,1);O=V-O;J.setUint8(O++,236);for(V=0;VJ;l++)J=J*256+tC(O),y*=128;return V?J-y:J}; QA=function(O){var V=dI(O,!0);O.pos+=V}; qSo=function(O){if(!Ew(O,440786851,!0))return null;var V=O.pos;dI(O,!1);var J=dI(O,!0)+O.pos-V;O.pos=V+J;if(!Ew(O,408125543,!1))return null;dI(O,!0);if(!Ew(O,357149030,!0))return null;var y=O.pos;dI(O,!1);var l=dI(O,!0)+O.pos-y;O.pos=y+l;if(!Ew(O,374648427,!0))return null;var m=O.pos;dI(O,!1);var H=dI(O,!0)+O.pos-m,F=new Uint8Array(J+12+l+H),N=new DataView(F.buffer);F.set(new Uint8Array(O.K.buffer,O.K.byteOffset+V,J));N.setUint32(J,408125543);N.setUint32(J+4,33554431);N.setUint32(J+8,4294967295); F.set(new Uint8Array(O.K.buffer,O.K.byteOffset+y,l),J+12);F.set(new Uint8Array(O.K.buffer,O.K.byteOffset+m,H),J+12+l);return F}; uE=function(O){var V=O.pos;O.pos=0;var J=1E6;nf(O,[408125543,357149030,2807729])&&(J=qO(O));O.pos=V;return J}; Qkr=function(O,V){var J=O.pos;O.pos=0;if(O.K.getUint8(O.pos)!==160&&!AC(O)||!Ew(O,160))return O.pos=J,NaN;dI(O,!0);var y=O.pos;if(!Ew(O,161))return O.pos=J,NaN;dI(O,!0);tC(O);var l=tC(O)<<8|tC(O);O.pos=y;if(!Ew(O,155))return O.pos=J,NaN;y=qO(O);O.pos=J;return(l+y)*V/1E9}; AC=function(O){if(!GRp(O)||!Ew(O,524531317))return!1;dI(O,!0);return!0}; GRp=function(O){if(O.Fk()){if(!Ew(O,408125543))return!1;dI(O,!0)}return!0}; nf=function(O,V){for(var J=0;J0){var y=ap(89,V.substring(J+1));g.YY(y,function(l,m){this.set(m,l)},O); V=V.substring(0,J)}V=Ip(1,V);g.YY(V,function(l,m){this.set(m,l)},O)}; tXV=function(O){var V=O.ZK.Cv(),J=[];g.YY(O.K,function(l,m){J.push(m+"="+l)}); if(!J.length)return V;var y=J.join("&");O=Ip(24,O.ZK)?"&":"?";return V+O+y}; iE=function(O,V){var J=new g.Nl(V);(V=J.get("req_id"))&&O.set("req_id",V);g.YY(O.K,function(y,l){J["set"](l,null)}); return J}; uEo=function(){this.D=this.U=this.K=this.timedOut=this.started=this.W=this.j=0}; RW=function(O){O.W=(0,g.cH)();O.started=0;O.timedOut=0;O.K=0}; BX=function(O,V){var J=O.started+O.K*4;V&&(J+=O.U);J=Math.max(0,J-3);return Math.pow(1.6,J)}; PX=function(O,V){O[V]||(O[V]=new uEo);return O[V]}; k4=function(O){this.qX=this.S=this.W=this.U=0;this.T=this.V=!1;this.K=O;this.j=O.clone()}; AqU=function(O,V,J){if(Ip(36,O.K))return!1;var y=PX(J,ap(77,O.K));if(y.timedOut<1&&y.K<1)return!1;y=y.timedOut+y.K;O=Ss(O,V);J=PX(J,ap(29,O));return J.timedOut+J.K+01?V=V.Ha:(J=PX(J,OO(O,O.zP(V,J),V)),V=Math.max(O.W,J.timedOut)+V.mM*(O.U-O.W)+.25*O.S,V=V>3?1E3*Math.pow(1.6,V-3):0);return V===0?!0:O.qX+V<(0,g.cH)()}; rqh=function(O,V,J){O.K.set(V,J);O.j.set(V,J);O.D&&O.D.set(V,J)}; iNX=function(O,V,J,y,l){++O.U;V&&++O.W;ap(21,J.ZK).startsWith("redirector.")&&(O.K=O.j.clone(),delete O.D,y.KM&&delete l[ap(21,O.K)])}; Ji=function(O){return O?(O.itag||"")+";"+(O.lmt||0)+";"+(O.xtags||""):""}; yB=function(O,V,J,y){this.initRange=J;this.indexRange=y;this.K=null;this.U=!1;this.V=0;this.D=this.Sd=this.j=null;this.info=V;this.uh=new k4(O)}; lQ=function(O,V){return Ji(g.k7(O.info,V))}; mB=function(O,V){this.start=O;this.end=V;this.length=V-O+1}; $3=function(O){O=O.split("-");var V=Number(O[0]),J=Number(O[1]);if(!isNaN(V)&&!isNaN(J)&&O.length===2&&(O=new mB(V,J),!isNaN(O.start)&&!isNaN(O.end)&&!isNaN(O.length)&&O.length>0))return O}; HK=function(O,V){return new mB(O,O+V-1)}; RAd=function(O){return O.end==null?{start:String(O.start)}:{start:String(O.start),end:String(O.end)}}; j3=function(O){if(!O)return new mB(0,0);var V=Number(O.start);O=Number(O.end);if(!isNaN(V)&&!isNaN(O)&&(V=new mB(V,O),V.length>0))return V}; Ch=function(O,V,J,y,l,m,H,F,N,x,W,U){y=y===void 0?"":y;this.type=O;this.vE=V;this.range=J;this.source=y;this.Yn=W;this.clipId=U===void 0?"":U;this.T=[];this.V="";this.wW=-1;this.qX=0;this.V=y;this.wW=l>=0?l:-1;this.startTime=m||0;this.duration=H||0;this.K=F||0;this.j=N>=0?N:this.range?this.range.length:NaN;this.U=this.range?this.K+this.j===this.range.length:x===void 0?!!this.j:x;this.range?(this.D=this.startTime+this.duration*this.K/this.range.length,this.S=this.duration*this.j/this.range.length, this.W=this.D+this.S):B3X(this)}; B3X=function(O){O.D=O.startTime;O.S=O.duration;O.W=O.D+O.S}; P$p=function(O,V,J){var y=!(!V||V.vE!==O.vE||V.type!==O.type||V.wW!==O.wW);return J?y&&!!V&&(O.range&&V.range?V.range.end===O.range.end:V.range===O.range)&&V.K+V.j===O.K+O.j:y}; Fr=function(O){return O.type===1||O.type===2}; NT=function(O){return O.type===3||O.type===6}; x3=function(O,V){return O.vE===V.vE?O.range&&V.range?O.range.start+O.K+O.j===V.range.start+V.K:O.wW===V.wW?O.K+O.j===V.K:O.wW+1===V.wW&&V.K===0&&O.U:!1}; SS1=function(O,V){return O.wW!==V.wW&&V.wW!==O.wW+1||O.type!==V.type?!1:x3(O,V)?!0:Math.abs(O.D-V.D)<=1E-6&&O.wW===V.wW?!1:kRd(O,V)}; kRd=function(O,V){return x3(O,V)||Math.abs(O.W-V.D)<=1E-6||O.wW+1===V.wW&&V.K===0&&O.U?!0:!1}; WK=function(O){return O.wW+(O.U?1:0)}; DIU=function(O){O.length===1||g.bA(O,function(J){return!!J.range}); for(var V=1;V=V.range.start+V.K&&O.range.start+O.K+O.j<=V.range.start+V.K+V.j:O.wW===V.wW&&O.K>=V.K&&(O.K+O.j<=V.K+V.j||V.U)}; $8X=function(O,V){return O.vE!==V.vE?!1:O.type===4&&V.type===3&&O.vE.lk()?(O=O.vE.uJ(O),P$(O,function(J){return $8X(J,V)})):O.wW===V.wW&&!!V.j&&V.K+V.j>O.K&&V.K+V.j<=O.K+O.j}; Zd=function(O,V){var J=V.wW;O.V="updateWithSegmentInfo";O.wW=J;if(O.startTime!==V.startTime||O.duration!==V.duration)O.startTime=V.startTime,O.duration=V.duration,B3X(O)}; zQ=function(O,V){var J=this;this.BE=O;this.D=this.K=null;this.W=this.jz=NaN;this.zP=this.requestId=null;this.Ty={aLn:function(){return J.range}}; this.uh=O[0].vE.uh;this.j=V||"";this.BE[0].range&&this.BE[0].j>0&&(OrX(O)?(this.range=DIU(O),this.U=this.range.length):(this.range=this.BE[this.BE.length-1].range,this.U=VCY(O)))}; cK=function(O){return!Fr(O.BE[O.BE.length-1])}; sO=function(O){return O.BE[O.BE.length-1].type===4}; g.TQ=function(O,V,J){J=O.zP===null?O.uh.zP(V,J,O.BE[0].type):O.zP;if(O.K){V=J?Uo(37,O.K,V.YJ):O.K;var y=new rI(V);y.get("alr")||y.set("alr","yes");O.j&&KgX(y,O.j)}else/http[s]?:\/\//.test(O.j)?y=new rI(new g.Nl(O.j)):(y=D7(O.uh,J,V),O.j&&KgX(y,O.j));(V=O.range)?y.set("range",V.toString()):O.BE[0].vE.sP()&&O.BE.length===1&&O.BE[0].K&&y.set("range",O.BE[0].K+"-");O.requestId&&y.set("req_id",O.requestId);isNaN(O.jz)||y.set("headm",O.jz.toString());isNaN(O.W)||y.set("mffa",O.W+"ms");O.urlParams&&g.YY(O.urlParams, function(l,m){y.set(m,l)}); return y}; Hr7=function(O){if(O.range)return O.U;O=O.BE[0];return Math.round(O.S*O.vE.info.jq)}; jw7=function(O,V){return Math.max(0,O.BE[0].D-V)}; C7H=function(O,V){O=g.n(O.BE);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.type===3&&V>=J.D&&V<=J.W)return!0;return!1}; e3=function(O,V,J,y,l,m){m=m===void 0?0:m;yB.call(this,O,V,y,void 0);this.W=J;this.M8=m;this.index=l||new g.HX}; FTn=function(O,V,J,y,l){this.wW=O;this.startSecs=V;this.rN=J;this.K=y||NaN;this.j=l||NaN}; Io=function(O,V,J){for(;O;O=O.parentNode)if(O.attributes&&(!J||O.nodeName===J)){var y=O.getAttribute(V);if(y)return y}return""}; Y3=function(O,V){for(;O;O=O.parentNode){var J=O.getElementsByTagName(V);if(J.length>0)return J[0]}return null}; NQr=function(O){if(!O)return 0;var V=O.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(O)|0}; x87=function(O){return O.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?O+"Z":O}; ao=function(){this.K=[];this.j=null;this.V=0;this.U=[];this.W=!1;this.S="";this.D=-1}; WT1=function(O){var V=O.U;O.U=[];return V}; U8h=function(){this.D=[];this.K=null;this.j={};this.U={}}; swl=function(O,V){var J=[];V=Array.from(V.getElementsByTagName("SegmentTimeline"));V=g.n(V);for(var y=V.next();!y.done;y=V.next()){y=y.value;var l=y.parentNode.parentNode,m=null;l.nodeName==="Period"?m=Zrd(O):l.nodeName==="AdaptationSet"?(l=l.getAttribute("id")||l.getAttribute("mimetype")||"",m=zDh(O,l)):l.nodeName==="Representation"&&(l=l.getAttribute("id")||"",m=cNr(O,l));if(m==null)return;m.update(y);g.SF(J,WT1(m))}g.SF(O.D,J);JIr(O.D,function(H){return H.startSecs*1E3+H.K})}; TQH=function(O){O.K&&(O.K.K=[]);g.YY(O.j,function(V){V.K=[]}); g.YY(O.U,function(V){V.K=[]})}; Zrd=function(O){O.K||(O.K=new ao);return O.K}; zDh=function(O,V){O.j[V]||(O.j[V]=new ao);return O.j[V]}; cNr=function(O,V){O.U[V]||(O.U[V]=new ao);return O.U[V]}; ph=function(O){var V=O===void 0?{}:O;O=V.M8===void 0?0:V.M8;var J=V.Mc===void 0?!1:V.Mc;var y=V.qs===void 0?0:V.qs;var l=V.rD===void 0?0:V.rD;var m=V.j4===void 0?Infinity:V.j4;var H=V.Qr===void 0?0:V.Qr;var F=V.FR===void 0?!1:V.FR;V=V.IP===void 0?!1:V.IP;g.HX.call(this);this.tR=this.b2=-1;this.fu=O;this.qs=y;this.Mc=J;this.rD=l;this.j4=m;this.Qr=H;((this.FR=F)||isFinite(m)&&this.j4>0)&&J&&bQ&&(this.j=!1,this.U="postLive");this.IP=V}; fh=function(O,V){return l2(O.segments,function(J){return V-J.wW})}; hi=function(O,V,J){J=J===void 0?{}:J;e3.call(this,O,V,"",void 0,void 0,J.M8||0);this.index=new ph(J)}; oo=function(O,V,J){yB.call(this,O,V);this.W=J;O=this.index=new g.HX;O.j=!1;O.U="d"}; eDr=function(O,V,J){var y=O.index.MM(V),l=O.index.getStartTime(V),m=O.index.getDuration(V);J?m=J=0:J=O.info.jq*m;return new zQ([new Ch(3,O,void 0,"otfCreateRequestInfoForSegment",V,l,m,0,J)],y)}; Irr=function(O,V){if(!O.index.isLoaded()){var J=[],y=V.D;V=V.W.split(",").filter(function(W){return W.length>0}); for(var l=0,m=0,H=0,F=/^(\d+)/,N=/r=(\d+)/,x=0;x0&&(l.K=Math.min(l.K+H,10),l.j=m);l.K>0?(l.K--,l=!0):l=!1;if(l)typeof y==="function"&&(y=y()),console.log("plyr."+V,y);else{var F;y=((F=hDU.get(V))!=null?F:0)+1;hDU.set(V,y);y%100===1&&console.warn("plyr","plyr."+V+" is chatty, dropping logs.")}}}; frp=function(){this.K=10;this.j=Date.now()}; MT=function(O,V){this.info=O;this.j=V;this.K=null;this.D=this.U=-1;this.timestampOffset=0;this.isLocked=this.V=!1;this.W=this.info.vE.oy()&&!this.info.K}; g.Lh=function(O){return PYV(O.j)}; ofd=function(O,V){V=Math.min(V,O.info.j);var J=O.j.split(V),y=J.AR;J=new MT(new Ch(O.info.type,O.info.vE,O.info.range,O.info.V,O.info.wW,O.info.startTime,O.info.duration,O.info.K,V,!1,O.info.Yn,O.info.clipId),J.mF);J.D=O.D;J.U=O.U;V=new MT(new Ch(O.info.type,O.info.vE,O.info.range,O.info.V,O.info.wW,O.info.startTime,O.info.duration,O.info.K+V,O.info.j-V,O.info.U,O.info.Yn,O.info.clipId),y);V.D=O.D;V.U=O.U;return[J,V]}; g.nh=function(O,V,J,y){J=J===void 0?!1:J;y=y===void 0?0:y;if(O.isLocked||V.isLocked||!x3(O.info,V.info)||O.info.U)return null;if(y){if(O.j.totalLength+V.j.totalLength>y)return null}else if(J&&(J=O.j,y=V.j,J=!(y.K.length?RMr(J,y.K[0]):1)),J)return null;J=new Ch(O.info.type,O.info.vE,O.info.range,O.info.V,O.info.wW,O.info.startTime,O.info.duration,O.info.K,O.info.j,O.info.U,O.info.Yn,O.info.clipId);y=V.info;J.j+=y.j;J.range&&(J.S+=y.S);J.W=y.W;J.U=y.U;y=new Q8;GI(y,O.j);GI(y,V.j);J=new MT(J,y);J.K!= null&&V.K!=null&&g.ww("dash",414627957,"merged slice emsg overridden; prev: "+J.K.n5()+" next: "+V.K.n5());J.K=V.K||O.K;J.U=O.U!==-1?O.U:V.U;J.D=O.D!==-1?O.D:V.D;return J}; g.Xr=function(O){g.Bg(O.info.vE.info)||O.info.vE.info.ey();if(O.U!==-1)return O.U;if(O.K&&YSr(O.K))return O.U=YSr(O.K),O.U;if(g.Bg(O.info.vE.info)){var V=g.Lh(O);for(var J=O.info.vE.K,y=NaN,l=NaN,m=0;pf(V,m);){var H=ff(V,m);H.type===1936286840?l=H.data.getUint32(H.dataOffset+8):H.type===1836476516?l=g.Y4(H):H.type===1952867444&&isNaN(y)&&(y=g.oW(H));m=hC(H.type)?m+8:m+H.size}!l&&J&&(l=aW(J));V=y/l}else V=new MO(g.Lh(O)),J=O.W?V:new MO(new DataView(O.info.vE.K.buffer)),y=uE(J),J=V.pos,V.pos=0,AC(V)? Ew(V,231)?(y=qO(V)*y/1E9,V.pos=J,V=y):(V.pos=J,V=NaN):(V.pos=J,V=NaN);O.U=V||O.info.D;return O.U}; wsr=function(O,V){O.timestampOffset>0&&(V-=O.timestampOffset);var J=g.Xr(O)+V;vfn(O,J);O.timestampOffset=V}; vfn=function(O,V){g.Bg(O.info.vE.info)||O.info.vE.info.ey();O.U=V;if(g.Bg(O.info.vE.info)){var J=g.Lh(O);O=O.info.vE.K;for(var y=NaN,l=NaN,m=0;pf(J,m);){var H=ff(J,m);isNaN(y)&&(H.type===1936286840?y=H.data.getUint32(H.dataOffset+8):H.type===1836476516&&(y=g.Y4(H)));if(H.type===1952867444){!y&&O&&(y=aW(O));var F=g.oW(H);isNaN(l)&&(l=Math.round(V*y)-F);var N=H;F+=l;if(N.data.getUint8(N.dataOffset)){var x=N.data;N=N.dataOffset+4;x.setUint32(N,Math.floor(F/4294967296));x.setUint32(N+4,F&4294967295)}else N.data.setUint32(N.dataOffset+ 4,F)}m=hC(H.type)?m+8:m+H.size}return!0}J=new MO(g.Lh(O));O=O.W?J:new MO(new DataView(O.info.vE.K.buffer));y=uE(O);O=J.pos;J.pos=0;if(AC(J)&&Ew(J,231))if(l=dI(J,!0),V=Math.floor(V*1E9/y),Math.ceil(Math.log(V)/Math.log(2)/8)>l)V=!1;else{for(y=l-1;y>=0;y--)J.K.setUint8(J.pos+y,V&255),V>>>=8;J.pos=O;V=!0}else V=!1;return V}; dw=function(O,V){V=V===void 0?!1:V;var J=EO(O);O=V?0:O.info.S;return J||O}; EO=function(O){g.Bg(O.info.vE.info)||O.info.vE.info.ey();if(O.K&&O.info.type===6)return O.K.M8;if(g.Bg(O.info.vE.info)){var V=g.Lh(O);var J=0;V=g.wI(V,1936286840);V=g.n(V);for(var y=V.next();!y.done;y=V.next())y=wgH(y.value),J+=y.BU[0]/y.timescale;J=J||NaN;if(!(J>=0))a:{J=g.Lh(O);V=O.info.vE.K;for(var l=y=0,m=0;pf(J,y);){var H=ff(J,y);if(H.type===1836476516)l=g.Y4(H);else if(H.type===1836019558){!l&&V&&(l=aW(V));if(!l){J=NaN;break a}var F=bE(H.data,H.dataOffset,1953653094),N=F;F=l;var x=bE(N.data, N.dataOffset,1952868452);N=bE(N.data,N.dataOffset,1953658222);var W=NO(x);NO(x);W&2&&NO(x);x=W&8?NO(x):0;var U=NO(N),Z=U&1;W=U&4;var z=U&256,c=U&512,Y=U&1024;U&=2048;var b=x4(N);Z&&NO(N);W&&NO(N);for(var M=Z=0;M2048?"":V.indexOf("https://")===0?V:""}; ti=function(O,V,J){V.match(KTl);return O(V,J).then(function(y){var l=g.GMn(y.xhr);return l?ti(O,l,J):y.xhr})}; iQ=function(O,V,J){O=O===void 0?"":O;V=V===void 0?null:V;J=J===void 0?!1:J;g.BF.call(this);var y=this;this.sourceUrl=O;this.isLivePlayback=J;this.yz=this.duration=0;this.isPremiere=this.FR=this.S=this.isLiveHeadPlayable=this.isLive=this.j=!1;this.j4=this.rD=0;this.isOtf=this.Gy=!1;this.ol=(0,g.cH)();this.lw=Infinity;this.K={};this.U=new Map;this.state=this.FD=0;this.V=null;this.isManifestless=!1;this.O5=[];this.D=null;this.dW=0;this.W="";this.Vz=NaN;this.u_=this.zX=this.timestampOffset=this.T=0;this.rV= this.EF=NaN;this.oN=0;this.LD=this.KD=!1;this.E5=[];this.nD={};this.zL=this.fD=NaN;this.Ty={tMj:function(F){uQ(y,F)}}; var l;this.TL=(l=V)==null?void 0:l.Jv("html5_use_network_error_code_enums");tC1=!!V&&V.Jv("html5_modern_vp9_mime_type");var m;Ai=!((m=V)==null||!m.Jv("html5_enable_flush_during_seek"))&&g.KW();var H;rw=!((H=V)==null||!H.Jv("html5_enable_reset_audio_decoder"))&&g.KW()}; uUl=function(O){return g.eV(O.K,function(V){return!!V.info.video&&V.info.video.qualityOrdinal>=2160})}; xIh=function(O){return g.eV(O.K,function(V){return!!V.info.video&&V.info.video.isHdr()})}; D9=function(O){return g.eV(O.K,function(V){return!!V.info.AL})}; g.ANp=function(O){return g.eV(O.K,function(V){return O4(V.info.mimeType)})}; rNX=function(O){return g.eV(O.K,function(V){return V.info.video?V.info.video.projectionType==="EQUIRECTANGULAR":!1})}; irV=function(O){return g.eV(O.K,function(V){return V.info.video?V.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; RD7=function(O){return g.eV(O.K,function(V){return V.info.video?V.info.video.projectionType==="MESH":!1})}; BQo=function(O){return g.eV(O.K,function(V){return V.info.video?V.info.video.stereoLayout===1:!1})}; P7o=function(O){return HdX(O.K,function(V){return V.info.video?V.ut():!0})}; Pq=function(O){return g.eV(O.K,function(V){return Ip(52,V.uh.K)})}; uQ=function(O,V){O.K[V.info.id]=V;O.U.set(lQ(V,O.Gy),V)}; PK=function(O,V,J){J=J===void 0?0:J;var y=O.mimeType||"",l=O.itag;var m=O.xtags;l=l?l.toString():"";m&&(l+=";"+m);m=l;if(D$(y)){var H=O.width||640;l=O.height||360;var F=O.fps,N=O.qualityLabel,x=O.qualityOrdinal,W=O.colorInfo,U=O.projectionType,Z;O.stereoLayout&&(Z=kMH[O.stereoLayout]);var z=q45(O)||void 0;if(W==null?0:W.primaries)var c=S4p[W.primaries]||void 0;H=new qI(H,l,F,U,Z,void 0,N,x&&D8Y[x],z,c);y=Ro(y,H,KN[O.itag||""]);Ai&&(y+="; enableflushduringseek=true");rw&&(y+="; enableresetaudiodecoder=true")}var Y; if(SX(y)){var b=O.audioSampleRate;Z=O.audioTrack;b=new CN(b?+b:void 0,O.audioChannels,O.spatialAudioType,O.isDrc,O.loudnessDb,O.trackAbsoluteLoudnessLkfs,O.audioQuality||"AUDIO_QUALITY_UNKNOWN",O.isVb);Z&&(c=Z.displayName,l=Z.id,F=Z.audioIsDefault,Z=Z.isAutoDubbed,c&&(Y=new g.Kh(c,l||"",!!F,!!Z)))}var M;O.captionTrack&&(N=O.captionTrack,Z=N.displayName,c=N.vssId,l=N.languageCode,F=N.kind,N=N.id,Z&&c&&l&&(M=new d8r(Z,c,l,F,O.xtags,N)));Z=Number(O.bitrate)/8;c=Number(O.contentLength);l=Number(O.lastModified); N=O.drmFamilies;F=O.type;J=J&&c?c/J:0;O=Number(O.approxDurationMs);if(V&&N){var w={};N=g.n(N);for(x=N.next();!x.done;x=N.next())(x=BK[x.value])&&(w[x]=V[x])}return new tq(m,y,{audio:b,video:H,wC:Y,AL:w,jq:Z,eW:J,contentLength:c,lastModified:l,captionTrack:M,streamType:F,approxDurationMs:O})}; k3=function(O,V,J){J=J===void 0?0:J;var y=O.type;var l=O.itag;var m=O.xtags;m&&(l=O.itag+";"+m);if(D$(y)){var H=(O.size||"640x360").split("x");H=new qI(+H[0],+H[1],+O.fps,O.projection_type,+O.stereo_layout,void 0,O.quality_label,+O.quality_ordinal,O.eotf,O.primaries);y=Ro(y,H,KN[O.itag]);Ai&&(y+="; enableflushduringseek=true");rw&&(y+="; enableresetaudiodecoder=true")}var F;if(SX(y)){var N=new CN(+O.audio_sample_rate||void 0,+O.audio_channels||0,O.spatial_audio_type,!!O.drc);O.name&&(F=new g.Kh(O.name, O.audio_track_id,O.isDefault==="1",O.isAutoDubbed==="1"))}var x;O.caption_display_name&&O.caption_vss_id&&O.caption_language_code&&(x=new d8r(O.caption_display_name,O.caption_vss_id,O.caption_language_code,O.caption_kind,O.xtags,O.caption_id));m=Number(O.bitrate)/8;var W=Number(O.clen),U=Number(O.lmt);J=J&&W?W/J:0;if(V&&O.drm_families){var Z={};for(var z=g.n(O.drm_families.split(",")),c=z.next();!c.done;c=z.next())c=c.value,Z[c]=V[c]}return new tq(l,y,{audio:N,video:H,wC:F,AL:Z,jq:m,eW:J,contentLength:W, lastModified:U,captionTrack:x,streamType:O.stream_type,approxDurationMs:Number(O.approx_duration_ms)})}; Oxr=function(O){return P$(O,function(V){return"FORMAT_STREAM_TYPE_OTF"===V.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; VyV=function(O){return P$(O,function(V){return"FORMAT_STREAM_TYPE_OTF"===V.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; J2o=function(O,V){return O.V?D1(O.V.D,V):O.O5.length?D1(O.O5,V):[]}; S3=function(O,V,J){V=V===void 0?"":V;J=J===void 0?"":J;O=new g.Nl(O,!0);O.set("alr","yes");J&&(J=Eo(19,decodeURIComponent(J)),O[C[34]](V,encodeURIComponent(J)));return O}; $N7=function(O,V){var J=Io(V,"id");J=J.replace(":",";");var y=Io(V,"mimeType"),l=Io(V,"codecs");y=l?y+'; codecs="'+l+'"':y;l=Number(Io(V,"bandwidth"))/8;var m=Number(Y3(V,"BaseURL").getAttribute(O.W+":contentLength")),H=O.duration&&m?m/O.duration:0;if(D$(y)){var F=Number(Io(V,"width"));var N=Number(Io(V,"height")),x=Number(Io(V,"frameRate")),W=y2r(Io(V,O.W+":projectionType"));a:switch(Io(V,O.W+":stereoLayout")){case "layout_left_right":var U=1;break a;case "layout_top_bottom":U=2;break a;default:U= 0}F=new qI(F,N,x,W,U)}if(SX(y)){var Z=Number(Io(V,"audioSamplingRate"));var z=Number(Io(V.getElementsByTagName("AudioChannelConfiguration")[0],"value"));N=lMV(Io(V,O.W+":spatialAudioType"));Z=new CN(Z,z,N);a:{z=Io(V,"lang")||"und";if(N=Y3(V,"Role"))if(W=Io(N,"value")||"",g.s2(mN5,W)){N=z+"."+mN5[W];x=W==="main";O=Io(V,O.W+":langName")||z+" - "+W;z=new g.Kh(O,N,x);break a}z=void 0}}if(V=Y3(V,"ContentProtection"))if(V.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var c={};for(V= V.firstChild;V!=null;V=V.nextSibling)V instanceof Element&&/SystemURL/.test(V.nodeName)&&(O=V.getAttribute("type"),N=V.textContent,O&&N&&(c[O]=N.trim()))}else c=void 0;return new tq(J,y,{audio:Z,video:F,wC:z,AL:c,jq:l,eW:H,contentLength:m})}; y2r=function(O){switch(O){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"}}; lMV=function(O){switch(O){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"}}; jI7=function(O,V){V=V===void 0?"":V;O.state=1;O.ol=(0,g.cH)();return Qwl(V||O.sourceUrl).then(function(J){if(!O.GL()){O.FD=J.status;J=J.responseText;var y=new DOMParser;J=ED(y,zhr(J),"text/xml").getElementsByTagName("MPD")[0];O.lw=NQr(Io(J,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(J.attributes){y=g.n(J.attributes);for(var l=y.next();!l.done;l=y.next())if(l=l.value,l.value==="http://youtube.com/yt/2012/10/10"){y=l.name.split(":")[1];break b}}y=""}O.W=y;O.isLive=O.lw=O.lw}; Hx5=function(O){var V=O.lw;isFinite(V)&&(Dd(O)?O.refresh():(V=Math.max(0,O.ol+V-(0,g.cH)()),O.D||(O.D=new g.t_(O.refresh,V,O),g.t(O,O.D)),O.D.start(V)))}; FoX=function(O){O=O.K;for(var V in O){var J=O[V].index;if(J.isLoaded())return J.bR()+1}return 0}; O_=function(O){return O.zX?O.zX-(O.T||O.timestampOffset):0}; VY=function(O){return O.u_?O.u_-(O.T||O.timestampOffset):0}; JT=function(O){if(!isNaN(O.Vz))return O.Vz;var V=O.K,J;for(J in V){var y=V[J].index;if(y.isLoaded()&&!O4(V[J].info.mimeType)){V=0;for(J=y.mC();J<=y.bR();J++)V+=y.getDuration(J);V/=y.Hd();V=Math.round(V/.5)*.5;y.Hd()>10&&(O.Vz=V);return V}if(O.isLive&&(y=V[J],y.M8))return y.M8}return NaN}; Nop=function(O,V){O=Cml(O.K,function(y){return y.index.isLoaded()}); if(!O)return NaN;O=O.index;var J=O.tO(V);return O.getStartTime(J)===V?V:J=0&&l.segments.splice(m,1)}}}; Wo1=function(O){for(var V in O.K)O4(O.K[V].info.mimeType)||cqX(O.K[V].index,Infinity)}; mc=function(O,V,J){for(var y in O.K){var l=O.K[y].index,m=V,H=J;l.Mc&&(m&&(l.b2=Math.max(l.b2,m)),H&&(l.tR=Math.max(l.tR||0,H)))}J&&(O.fD=J/1E3)}; UN1=function(O,V,J,y){y!==void 0&&y&&J===O.zL||(O.O5.push(V),O.zL=J,O.publish("cuepointsadded",J))}; Zx7=function(O){O.u_=0;O.zX=0;O.oN=0}; $A=function(O){return O.LD&&O.isManifestless?O.isLiveHeadPlayable:O.isLive}; Ro=function(O,V,J){Hj===null&&(Hj=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(tC1&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Hj||J!=="9"&&J!=="("?Hj||J!=="9h"&&J!=="(h"||(O='video/webm; codecs="vp9.2"'):O='video/webm; codecs="vp9"',O;if(!Hj&&!jU||O!=='video/webm; codecs="vp9"'&&O!=='video/webm; codecs="vp9.2"')return O; J="00";var y="08",l="01",m="01",H="01";O==='video/webm; codecs="vp9.2"'&&(J="02",y="10",V.primaries==="bt2020"&&(H=l="09"),V.K==="smpte2084"&&(m="16"),V.K==="arib-std-b67"&&(m="18"));return'video/webm; codecs="'+["vp09",J,"51",y,"01",l,m,H,"00"].join(".")+'"'}; FZ=function(O,V,J){O=""+O+(V>49?"p60":V>32?"p48":"");V=ne()[O];if(V!=null&&V>0)return V;V=Cs.get(O);if(V!=null&&V>0)return V;J=J==null?void 0:J.get(O);return J!=null&&J>0?J:8192}; c2V=function(O){this.WE=O;this.wX=this.yQ=this.ol=this.W=this.D=this.O5=this.nD=this.KD=!1;this.S=this.V=0;this.eB=!1;this.lw=!0;this.TL=!1;this.FF=0;this.E5=this.yz=this.z7=this.dW=!1;this.j={};this.oB=this.yc=this.dX=this.disableAv1=this.UR=this.Jg=this.Ks=this.Xs=this.K=this.T=!1;this.fD=0;this.zK=this.WE.L("html5_disable_aac_preference");this.eq=Infinity;this.Vz=0;this.aB=this.WE.Sq();this.NH=this.WE.experiments.Jv("html5_enable_vp9_fairplay");this.Wf=this.WE.L("html5_force_av1_for_testing"); this.HK=this.WE.gC().K.s5(zqo);this.zL=g.Ry(this.WE.experiments,"html5_av1_ordinal_cap");this.DD=this.WE.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.MI=this.WE.L("html5_account_onesie_format_selection_during_format_filter");this.jq=g.Ry(this.WE.experiments,"html5_max_byterate");this.WB=this.WE.L("html5_enable_iamf_audio");this.LD=this.WE.experiments.Jv("html5_allow_capability_merge");this.xr=this.WE.L("html5_enable_encrypted_av1")}; WgY=function(O){if(O.nD)return["f"];if(g.Qd("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var V=["9h","9","h","8"];O.xr&&V.push("1e");V=V.concat(["(h","(","H","*"]);O.dW&&(V.unshift("1"),V.unshift("1h"));O.yQ&&V.unshift("h");O.qX&&(V=(sIH[O.qX]||[O.qX]).concat(V));return V}; $IH=function(O){var V=["o","a","A"];O.Vz===1&&(O.D&&(V=["mac3","MAC3"].concat(V)),O.W&&(V=["meac3","MEAC3"].concat(V)),O.WB&&(V=["i","I"].concat(V)));O.KD&&(V=["so","sa"].concat(V));!O.wX||O.ol||O.U||O.zK||V.unshift("a");O.U&&(V=(sIH[O.U]||[O.U]).concat(V));return V}; NS=function(O,V,J,y){V=V===void 0?{}:V;if(y===void 0?0:y)return V.disabled=1,0;if(lE(O.W,mW.AV1_CODECS)&&lE(O.W,mW.HEIGHT)&&lE(O.W,mW.BITRATE))return V.isCapabilityUsable=1,8192;y=1080;var l=navigator.hardwareConcurrency;l<=2&&(y=480);V.coreCount=l;if(l=g.Ry(O.experiments,"html5_default_av1_threshold"))y=V["default"]=l;if(O=O.W.KD)V.mcap=O,y=Math.max(y,O);if(J){var m,H;if(O=(m=J.videoInfos.find(function(F){return i$(F)}))==null?void 0:(H=m.j)==null?void 0:H.powerEfficient)y=8192,V.isEfficient=1; J=J.videoInfos[0].video;m=Math.min(FZ("1",J.fps),FZ("1",30));V.perfCap=m;y=Math.min(y,m);J.isHdr()&&!O&&(V.hdr=1,y*=.75)}else J=FZ("1",30),V.perfCap30=J,y=Math.min(y,J),J=FZ("1",60),V.perfCap60=J,y=Math.min(y,J);return V.av1Threshold=y}; xA=function(O,V,J,y){this.flavor=O;this.keySystem=V;this.j=J;this.experiments=y;this.K={};this.Zq=this.keySystemAccess=null;this.OX=this.AV=-1;this.qT=null;this.U=!!y&&y.Jv("edge_nonprefixed_eme");y&&y.Jv("html5_enable_vp9_fairplay")}; U_=function(O){return O.U?!1:!O.keySystemAccess&&!!Wj()&&O.keySystem==="com.microsoft.playready"}; Zb=function(O){return O.keySystem==="com.microsoft.playready"}; zA=function(O){return!O.keySystemAccess&&!!Wj()&&O.keySystem==="com.apple.fps.1_0"}; cj=function(O){return O.keySystem==="com.youtube.fairplay"}; s_=function(O){return O.keySystem==="com.youtube.fairplay.sbdl"}; g.TA=function(O){return O.flavor==="fairplay"}; Wj=function(){var O=window,V=O.MSMediaKeys;Ay()&&!V&&(V=O.WebKitMediaKeys);return V&&V.isTypeSupported?V:null}; I2=function(O){return navigator.requestMediaKeySystemAccess?g.l$&&!g.KW()?sg("45"):g.d9||g.HM?O.Jv("edge_nonprefixed_eme"):g.eU?sg("47"):g.CH&&O.Jv("html5_enable_safari_fairplay")?!1:!0:!1}; Tor=function(O,V,J,y){var l=ty(),m=(J=l||J&&Ay())?["com.youtube.fairplay"]:["com.widevine.alpha"];V&&m.unshift("com.youtube.widevine.l3");l&&y&&m.unshift("com.youtube.fairplay.sbdl");return J?m:O?[].concat(g.q(m),g.q(YA.playready)):[].concat(g.q(YA.playready),g.q(m))}; a2=function(O,V,J,y,l){y=y===void 0?!1:y;g.K.call(this);this.WE=V;this.useCobaltWidevine=y;this.jB=l;this.j=[];this.U={};this.K={};this.callback=null;this.W=!1;this.D=[];this.initialize(O,!J)}; IMY=function(O,V){O.callback=V;O.D=[];I2(O.WE.experiments)?b8(O):eqU(O)}; b8=function(O){if(!O.GL())if(O.j.length===0)O.callback(O.D);else{var V=O.j[0],J=O.U[V],y=Yu1(O,J);if(ps&&ps.keySystem===V&&ps.RXW===JSON.stringify(y))O.jB("remksa",{re:!0}),aMV(O,J,ps.keySystemAccess);else{var l,m;O.jB("remksa",{re:!1,ok:(m=(l=ps)==null?void 0:l.keySystem)!=null?m:""});ps=void 0;navigator.requestMediaKeySystemAccess(V,y).then(UC(function(H){aMV(O,J,H,y)}),UC(function(){O.W=!O.W&&O.U[O.j[0]].flavor==="widevine"; O.W||O.j.shift();b8(O)}))}}}; aMV=function(O,V,J,y){if(!O.GL()){y&&(ps={keySystem:V.keySystem,keySystemAccess:J,RXW:JSON.stringify(y)});V.keySystemAccess=J;if(Zb(V)){J=Jq();y=g.n(Object.keys(O.K[V.flavor]));for(var l=y.next();!l.done;l=y.next())l=l.value,V.K[l]=!!J.canPlayType(l)}else{J=V.keySystemAccess.getConfiguration();if(J.audioCapabilities)for(y=g.n(J.audioCapabilities),l=y.next();!l.done;l=y.next())V.K[l.value.contentType]=!0;if(J.videoCapabilities)for(J=g.n(J.videoCapabilities),y=J.next();!y.done;y=J.next())V.K[y.value.contentType]= !0}O.D.push(V);O.useCobaltWidevine||O.L("html5_enable_vp9_fairplay")&&s_(V)?(O.j.shift(),b8(O)):O.callback(O.D)}}; Yu1=function(O,V){var J={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(O.L("html5_enable_vp9_fairplay")&&cj(V))return J.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),J.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[J];Zb(V)&&(J.initDataTypes=["keyids","cenc"]);for(var y=g.n(Object.keys(O.K[V.flavor])),l=y.next();!l.done;l=y.next()){l=l.value;var m=l.indexOf("audio/")===0,H=m?J.audioCapabilities:J.videoCapabilities;V.flavor!== "widevine"||O.W?H.push({contentType:l}):m?H.push({contentType:l,robustness:"SW_SECURE_CRYPTO"}):(g.l$&&g.Qd("windows nt")&&!O.L("html5_drm_enable_moho")||H.push({contentType:l,robustness:"HW_SECURE_ALL"}),m=l,O.WE.W.j&&l.includes("vp09")&&(m=l+"; experimental=allowed"),H.push({contentType:m,robustness:"SW_SECURE_DECODE"}),fs(O.WE)==="MWEB"&&(kg()||G8())&&(O.jB("swcrypto",{}),H.push({contentType:l,robustness:"SW_SECURE_CRYPTO"})))}return[J]}; eqU=function(O){if(Wj()&&(g.CH||iM))O.D.push(new xA("fairplay","com.apple.fps.1_0","",O.WE.experiments));else{var V=bxd(),J=g.Qs(O.j,function(y){var l=O.U[y],m=!1,H=!1,F;for(F in O.K[l.flavor])V(F,y)&&(l.K[F]=!0,m=m||F.indexOf("audio/")===0,H=H||F.indexOf("video/")===0);return m&&H}); J&&O.D.push(O.U[J]);O.j=[]}O.callback(O.D)}; bxd=function(){var O=Wj();if(O){var V=O.isTypeSupported;return function(y,l){return V(l,y)}}var J=Jq(); return J&&(J.addKey||J.webkitAddKey)?function(y,l){return!!J.canPlayType(y,l)}:function(){return!1}}; hT=function(O){var V;O=Bw((V=O.serializedClientExperimentFlags)!=null?V:"","&");this.flags=new Map(Object.entries(O).map(function(J){var y=g.n(J);J=y.next().value;y=y.next().value;return typeof y==="string"?[J,y]:[J,y[0]]}))}; oWY=function(O,V){switch(V.Gz){case "bool":return O.Jv(V.FY);case "int":return O=pT1(O,V.FY),$2(O);case "double":return pT1(O,V.FY);case "string":return fMU(O,V.FY);case "int32_list":return hq1(O,V.FY);case "int64_list":return hq1(O,V.FY).map(function(J){return $2(J)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; pT1=function(O,V){O=O.flags.get(""+V);return Number(O)||0}; hq1=function(O,V){if(O=O.flags.get(""+V))if(O=O.replace(/\[ *(.*?) *\]/,"$1"))return O.split(",").map(Number);return[]}; fMU=function(O,V){return(O=O.flags.get(""+V))?O.toString():""}; o2=function(O,V,J){this.K=void 0;this.experimentIds=O?O.split(","):[];this.flags=Bw(V||"","&");O={};V=g.n(this.experimentIds);for(var y=V.next();!y.done;y=V.next())O[y.value]=!0;this.experiments=O;J=new hT(J);this.U=new Lzl(J);this.j=new Mao(J)}; g.Ry=function(O,V,J){J=J===void 0?0:J;O=O.s5(V);JSON.stringify(O);return O===void 0?J:Number(O)}; vj=function(O,V){return(O=O.s5(V))?O.toString():""}; vWU=function(O){if(O=O.s5("html5_web_po_experiment_ids"))if(O=O.replace(/\[ *(.*?) *\]/,"$1"))return O.split(",").map(Number);return[]}; wTX=function(O){if(O.K)return O.K;if(O.experimentIds.length<=1)return O.K=O.experimentIds,O.K;var V=[].concat(g.q(O.experimentIds)).map(function(y){return Number(y)}); V.sort();for(var J=V.length-1;J>0;--J)V[J]-=V[J-1];O.K=V.map(function(y){return y.toString()}); O.K.unshift("v1");return O.K}; Lod=function(O){return MyX.then(O)}; w$=function(O,V,J){this.experiments=O;this.fD=V;this.O5=J===void 0?!1:J;this.T=!!g.cn("cast.receiver.platform.canDisplayType");this.S={};this.qX=!1;this.U=new Map;this.V=!0;this.K=this.j=!1;this.KD=0;this.lw=this.experiments.Jv("html5_disable_vp9_encrypted");this.D=this.experiments.Jv("html5_enable_encrypted_av1");O=g.cn("cast.receiver.platform.getValue");this.W=!this.T&&O&&O("max-video-resolution-vpx")||null;nWY(this);this.j=!!(ty()&&qz()>=21)}; zAY=function(O,V,J){J=J===void 0?1:J;var y=V.itag;if(y==="0")return!0;var l=V.mimeType;if(V.al==="1e"&&!O.D)return"dav1enc";if(i$(V)&&O.qX)return"dav1";if(V.video&&(V.video.isHdr()||V.video.primaries==="bt2020")&&!(lE(O,mW.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(y==="338"&&!(g.l$?sg(53):g.eU&&sg(64)))return"dopus";var m=J;m=m===void 0?1: m;J={};V.video&&(V.video.width&&(J[mW.WIDTH.name]=V.video.width),V.video.height&&(J[mW.HEIGHT.name]=V.video.height),V.video.fps&&(J[mW.FRAMERATE.name]=V.video.fps*m),V.video.K&&(J[mW.EOTF.name]=V.video.K),V.jq&&(J[mW.BITRATE.name]=V.jq*8*m),V.al==="("&&(J[mW.CRYPTOBLOCKFORMAT.name]="subsample"),V.video.projectionType==="EQUIRECTANGULAR"||V.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||V.video.projectionType==="MESH")&&(J[mW.DECODETOTEXTURE.name]="true");var H;((H=V.audio)==null?0:H.numChannels)&& V.al!=="i"&&V.al!=="I"&&(J[mW.CHANNELS.name]=V.audio.numChannels);O.j&&u$(V)&&(J[mW.EXPERIMENTAL.name]="allowed");H=g.n(Object.keys(mW));for(m=H.next();!m.done;m=H.next()){m=mW[m.value];var F;if(F=J[m.name])if(F=!(m===mW.EOTF&&V.mimeType.indexOf("vp09.02")>0)){F=m;var N=V;F=!(O.experiments.Jv("html5_ignore_h264_framerate_cap")&&F===mW.FRAMERATE&&DoY(N))}if(F)if(lE(O,m))if(O.W){if(O.W[m.name]1080&&V.AL&&(l+="; hdcp=2.2");return y==="227"?"hqcenc":y!=="585"&&y!=="588"&&y!=="583"&&y!=="586"&&y!=="584"&&y!=="587"&&y!=="591"&&y!=="592"||O.experiments.Jv("html5_enable_new_hvc_enc")?ty()&&qz()>=21&&g.Qd("appletv5")&&(y==="410"||y==="845")?!0:O.isTypeSupported(l)?!0:"tpus":"newhvc"}; MS=function(){var O=G8()&&!sg(29),V=g.Qd("google tv")&&g.Qd("chrome")&&!sg(30);return O||V?!1:$w7()}; XTY=function(O,V,J){var y=480;V=g.n(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;var m=l.video.qualityOrdinal;m<=1080&&m>y&&zAY(O,l,J)===!0&&(y=m)}return y}; g.Ls=function(O,V){V=V===void 0?!1:V;return MS()&&O.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!V&&O.canPlayType(Jq(),"application/x-mpegURL")?!0:!1}; dN1=function(O){EWh(function(){for(var V=g.n(Object.keys(mW)),J=V.next();!J.done;J=V.next())lE(O,mW[J.value])})}; lE=function(O,V){V.name in O.S||(O.S[V.name]=gWn(O,V));return O.S[V.name]}; gWn=function(O,V){if(O.W)return!!O.W[V.name];if(V===mW.BITRATE&&O.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!O.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(V===mW.AV1_CODECS)return O.isTypeSupported("video/mp4; codecs="+V.valid)&&!O.isTypeSupported("video/mp4; codecs="+V.Bs);if(V.video){var J='video/webm; codecs="vp9"';O.isTypeSupported(J)||(J='video/mp4; codecs="avc1.4d401e"')}else J='audio/webm; codecs="opus"', O.isTypeSupported(J)||(J='audio/mp4; codecs="mp4a.40.2"');return O.isTypeSupported(J+"; "+V.name+"="+V.valid)&&!O.isTypeSupported(J+"; "+V.name+"="+V.Bs)}; qu7=function(O,V){var J=0;O.U.has(V)&&(J=O.U.get(V).mL);O.U.set(V,{mL:J+1,Ik:Math.pow(2,J+1)});O.K=!0}; var Wdr=function(O,V){return ch[C[8]](this,2,O,V)}; jk1=function(O,V){for(var J=new Map,y=g.n(V.keys()),l=y.next();!l.done;l=y.next()){l=l.value;var m=l.split("_")[0];O.has(m)||J.set(l,V.get(l))}return J}; Fgr=function(O,V,J){var y,l=((y=V.video)==null?void 0:y.fps)||0;y=O+"_"+l;var m=!!V.audio,H={itag:V.itag,al:O,jE:m};if(m)H.numChannels=V.audio.numChannels;else{var F=V.video;H.maxWidth=F==null?void 0:F.width;H.maxHeight=F==null?void 0:F.height;H.maxFramerate=l;H.maxBitrateBps=V.jq*8;H.b7=F==null?void 0:F.isHdr()}F=J.get(y);F?m||(V=Math.max(F.maxWidth||0,F.maxHeight||0)>Math.max(H.maxWidth||0,H.maxHeight||0)?F:H,O={itag:V.itag,al:O,jE:m,maxWidth:Math.max(F.maxWidth||0,H.maxWidth||0),maxHeight:Math.max(F.maxHeight|| 0,H.maxHeight||0),maxFramerate:l,b7:V.b7},O.maxBitrateBps=V.maxBitrateBps,J.set(y,O)):J.set(y,H)}; nWY=function(O){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(J){J.smooth&&J.powerEfficient&&(O.KD=2160)})}; ns=function(){g.BF.call(this);this.items={}}; XZ=function(O,V){this.K=O;this.cipher=this.K.exports.AES128CTRCipher_create(V.byteOffset)}; d$=function(){this.j=this.f5=0;this.K=Array.from({length:E_.length}).fill(0)}; QId=function(){}; GCY=function(){this.startTimeMs=(0,g.cH)();this.K=!1}; KoV=function(){this.K=new QId}; tyY=function(O,V,J,y){y=y===void 0?1:y;J>=0&&(V in O.K||(O.K[V]=new d$),O.K[V].fB(J,y))}; uDX=function(O,V,J,y,l){var m=(0,g.cH)(),H=l?l(V):void 0,F;l=(F=H==null?void 0:H.f5)!=null?F:1;if(l!==0){var N;F=(N=H==null?void 0:H.profile)!=null?N:J;tyY(O,F,m-y,l)}return V}; A25=function(O,V,J,y,l){if(V&&typeof V==="object"){var m=function(H){return uDX(O,H,J,y,l)}; if(xH(V))return V.then(m);if(NP(V))return c_(V,m)}return uDX(O,V,J,y,l)}; r2X=function(){}; ix5=function(O){var V=window;V.ywc||(V.ywc={});var J=V.ywc[O];if(J)return J;J={};return V.ywc[O]=J}; RqY=function(O){var V=window;V.ywc&&delete V.ywc[O]}; Bon=function(O){var V=ix5(O);if(V.binP)return V.binP;V.binP=Promise.resolve().then(function(){return fetch(O)}).then(function(J){if(!J.ok)throw Error("HTTP"+J.statusText); return J.arrayBuffer()}); V.binP.then(function(J){V.bin=J},function(){RqY(O)}); return V.binP}; SuX=function(O,V){return TI(PeH,function(){var J=this;return function l(){var m,H,F;return Hn(l,function(N){switch(N.j){case 1:N.fD(2);if(!J.K)throw"wasm.ps.ns";m=O;H=Cd;return N.KD(el(kCX(J,V)),4);case 4:F=H(N.U);if(!F)throw"wasm.ps.um";return N.KD(el(WebAssembly.instantiate(F,m)),5);case 5:return N.return(N.U);case 2:N.T(),N.qX(0)}})}()})}; kCX=function(O,V){return TI(O,function(){var J=this;return function l(){var m,H,F,N,x,W,U,Z,z;return Hn(l,function(c){switch(c.j){case 1:c.fD(2);m=[];H=function(){return"wasm.ps.c: ["+m.map(function(Y){return'"'+Y+'"'}).join(", ")+"]"}; F=ix5(V);if(F.mod)return c.return(F.mod);if(!F.modP){c.uw(4);break}c.W(5);N=Cd;return c.KD(el(F.modP),7);case 7:return c.return(N(c.U));case 5:c.D(),m.unshift("pcm");case 4:if((x=F.bin)||!F.binP){c.uw(8);break}c.W(9);W=Cd;return c.KD(el(F.binP),11);case 11:x=W(c.U);c.S(8);break;case 9:c.D(),m.unshift("pfb");case 8:if(x){c.uw(12);break}c.W(13);U=Cd;return c.KD(el(Bon(V)),15);case 15:x=U(c.U);c.S(12);break;case 13:throw c.D(),J.K=!1,m.unshift("fb"),H();case 12:return c.W(16),Z=Cd,c.KD(el(WebAssembly.compile(x)), 18);case 18:return c.return(Z(c.U));case 16:z=c.D(),RqY(V),m.unshift("ca: "+z);case 17:throw H();case 2:c.T(),c.qX(0)}})}()})}; DNU=function(){}; O6X=function(){var O=this;this.proc_exit=function(){}; this.fd_write=function(V,J,y){if(!O.exports)return 1;V=new Uint32Array(O.exports.memory.buffer,J,y*2);J=[];for(var l=0;l0&&SU<=2.3;F=V?V.useNativeControls:O.use_native_controls;this.S=g.R2(this)&&this.j;N=this.j&&!this.S;F=g.Db(this)||!H&&O$(N,F)?"3":"1";this.disableOrganicUi=!(V==null||!V.disableOrganicUi);N=V?V.controlsType:O.controls;this.controlsType=this.disableOrganicUi||N==="0"||N===0?"0":F;this.LP=this.j;this.color=VV("red",V?V.progressBarColor:O.color,U3n);this.MB=this.controlsType==="3";this.NH=!this.D;this.M5=(F=!this.NH&& !Pj(this)&&!this.lw&&!this.V&&!Bj(this))&&!this.MB&&this.controlsType==="1";this.xr=g.Oj(this)&&F&&this.controlsType==="0"&&!this.M5&&!(V==null?0:V.embedsEnableEmc3ds);this.I_=this.nI=H;this.dX=(this.controlsType==="3"||this.j||O$(!1,O.use_media_volume))&&!this.S;this.N5=iM&&!g.RG(601)?!1:!0;this.fJ=this.D||!1;this.OE=Pj(this)?"":(this.loaderUrl||O.post_message_origin||"").substring(0,128);this.widgetReferrer=yV("",V?V.widgetReferrer:O.widget_referrer);var x;V?V.disableCastApi&&(x=!1):x=O.enablecastapi; x=!this.T||O$(!0,x);H=!0;V&&V.disableMdxCast&&(H=!1);this.lM=this.L("enable_cast_for_web_unplugged")&&g.Vw(this)&&H||g.pJ(this)&&H||x&&H&&this.controlsType==="1"&&!this.j&&(Pj(this)||g.Oj(this)||g.JO(this));this.xJ=!!window.document.pictureInPictureEnabled||$7();x=V?!!V.supportsAutoplayOverride:O$(!1,O.autoplayoverride);this.YI=!(this.j&&!g.R2(this))&&!g.Qd("nintendo wiiu")||x;this.MU=(V?!!V.enableMutedAutoplay:O$(!1,O.mutedautoplay))&&!1;x=(Pj(this)||Bj(this))&&this.playerStyle==="blazer";this.PX= V?!!V.disableFullscreen:!O$(!0,O.fs);H=g.HC(g.yw(this))&&g.R2(this);this.Ks=!this.PX&&(x||g.U$())&&!H;this.yq=this.L("html5_picture_in_picture_logging_onresize");var W;this.CI=(W=g.Ry(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?W:.33;this.Ky=this.L("html5_picture_in_picture_blocking_onresize");this.jr=this.L("html5_picture_in_picture_blocking_ontimeupdate");this.GT=this.L("html5_picture_in_picture_blocking_document_fullscreen");this.l2=this.L("html5_picture_in_picture_blocking_standard_api"); W=G8()&&sg(58)&&!kg();x=EN||typeof MediaSource==="undefined";this.cH=this.L("uniplayer_block_pip")&&(W||x)||this.Ky||this.jr||this.l2;W=g.R2(this)&&!this.Zo;var U;V?V.disableRelatedVideos!==void 0&&(U=!V.disableRelatedVideos):U=O.rel;this.wX=W||O$(!this.V,U);this.LG=O$(!1,V?V.enableContentOwnerRelatedVideos:O.co_rel);this.qX=kg()&&SU>0&&SU<=4.4?"_top":"_blank";this.zb=g.JO(this);this.wk=O$(this.playerStyle==="blazer",V?V.enableCsiLogging:O.enablecsi);switch(this.playerStyle){case "blogger":U="bl"; break;case "discover-ads":U="dd";break;case "gmail":U="gm";break;case "gac":U="ga";break;case "ads-preview":U="ap";break;case "ads-fe":U="adfe";break;case "books":U="gb";break;case "docs":case "flix":U="gd";break;case "duo":U="gu";break;case "google-live":U="gl";break;case "google-one":U="go";break;case "play":case "play-ads":U="gp";break;case "chat":U="hc";break;case "hangouts-meet":U="hm";break;case "photos-edu":case "picasaweb":U="pw";break;default:U="yt"}this.KD=U;this.O5=yV("",V?V.authorizedUserIndex: O.authuser);this.yc=g.R2(this)&&(this.aB||!B4V()||this.yz);var Z;V?V.disableWatchLater!==void 0&&(Z=!V.disableWatchLater):Z=O.showwatchlater;this.WB=((U=!this.yc)||!!this.O5&&U)&&O$(!this.lw,this.T?Z:void 0);this.Wf=V?V.isMobileDevice||!!V.disableKeyboardControls:O$(!1,O.disablekb);this.loop=O$(!1,O.loop);this.pageId=yV("",V?V.initialDelegatedSessionId:O.pageid);this.Hl=O$(!0,O.canplaylive);this.tp=this.experiments.Jv("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.iQ=O$(!1,O.livemonitor); this.disableSharing=O$(this.V,V?V.disableSharing:O.ss);(Z=V&&this.L("fill_video_container_size_override_from_wpcc")?V.videoContainerOverride:O.video_container_override)?(U=Z.split("x"),U.length!==2?Z=null:(Z=Number(U[0]),U=Number(U[1]),Z=isNaN(Z)||isNaN(U)||Z*U<=0?null:new g.Op(Z,U))):Z=null;this.TQ=Z;this.mute=V?!!V.startMuted:O$(!1,O.mute);this.storeUserVolume=!this.mute&&O$(this.controlsType!=="0",V?V.storeUserVolume:O.store_user_volume);Z=V?V.annotationsLoadPolicy:O.iv_load_policy;this.annotationsLoadPolicy= this.controlsType==="3"?3:VV(void 0,Z,ld);this.captionsLanguagePreference=V?V.captionsLanguagePreference||"":yV("",O.cc_lang_pref);Z=VV(2,V?V.captionsLanguageLoadPolicy:O.cc_load_policy,ld);this.controlsType==="3"&&Z===2&&(Z=3);this.yD=Z;this.MI=V?V.hl||"en_US":yV("en_US",O.hl);this.region=V?V.contentRegion||"US":yV("US",O.cr);this.hostLanguage=V?V.hostLanguage||"en":yV("en",O.host_language);this.H1=!this.aB&&Math.random()=0&&O0&&O.DC&&(y.sort(),g.en(new g.pn("Player client parameters changed after startup",y)));O.userAge=JG(O.userAge,V.user_age);O.z2=yV(O.z2,V.user_display_email);O.userDisplayImage=yV(O.userDisplayImage,V.user_display_image);g.X0(O.userDisplayImage)||(O.userDisplayImage= "");O.userDisplayName=yV(O.userDisplayName,V.user_display_name);O.NE=yV(O.NE,V.user_gender);O.csiPageType=yV(O.csiPageType,V.csi_page_type);O.csiServiceName=yV(O.csiServiceName,V.csi_service_name);O.wk=O$(O.wk,V.enablecsi);O.pageId=yV(O.pageId,V.pageid);if(J=V.enabled_engage_types)O.enabledEngageTypes=new Set(J.split(","));V.living_room_session_po_token&&(O.bl=V.living_room_session_po_token.toString())}; CT=function(O,V){return!O.V&&G8()&&sg(55)&&O.controlsType==="3"&&!V}; g.Fi=function(O){O=mq(O.bV);return O==="www.youtube-nocookie.com"?"www.youtube.com":O}; NA=function(O,V,J){return O.protocol+"://i1.ytimg.com/vi/"+V+"/"+(J||"hqdefault.jpg")}; x$=function(O){return Pj(O)&&!g.Vw(O)}; g.Db=function(O){return O.L("html5_local_playsinline")?iM&&!g.RG(602)&&!("playsInline"in Jq()):iM&&!O.bW||g.Qd("nintendo wiiu")?!0:!1}; fs=function(O){return O.K.c}; g.F0=function(O){return/^TVHTML5/.test(fs(O))}; WJ=function(O){return fs(O)==="TVHTML5"}; CfU=function(O){return fs(O)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; zsU=function(O){return O.K.cmodel==="CHROMECAST ULTRA/STEAK"||O.K.cmodel==="CHROMECAST/STEAK"}; g.Uj=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Cm=function(O){return/web/i.test(fs(O))}; g.ZG=function(O){return fs(O).toUpperCase()==="WEB"}; HJ=function(O){return fs(O)==="WEB_KIDS"}; g.Vw=function(O){return fs(O)==="WEB_UNPLUGGED"}; z0=function(O){return fs(O)==="TVHTML5_UNPLUGGED"}; g.jS=function(O){return g.Vw(O)||fs(O)==="TV_UNPLUGGED_CAST"||z0(O)}; g.pJ=function(O){return fs(O)==="WEB_REMIX"}; g.cJ=function(O){return fs(O)==="WEB_MUSIC_INTEGRATIONS"}; g.sj=function(O){return fs(O)==="WEB_EMBEDDED_PLAYER"}; g.eN=function(O){return(O.deviceIsAudioOnly||!g.l$||EN||O.controlsType==="3"?!1:g.Pv?O.D&&g.RG(51):!0)||(O.deviceIsAudioOnly||!g.eU||EN||O.controlsType==="3"?!1:g.Pv?O.D&&g.RG(48):g.RG(38))||(O.deviceIsAudioOnly||!g.r$||EN||O.controlsType==="3"?!1:g.Pv?O.D&&g.RG(37):g.RG(27))||!O.deviceIsAudioOnly&&g.T0&&!DUr()&&g.RG(11)||!O.deviceIsAudioOnly&&g.CH&&g.RG("604.4")}; es7=function(O){if(g.Oj(O)&&kA)return!1;if(g.eU){if(!g.RG(47)||!g.RG(52)&&g.RG(51))return!1}else if(g.CH)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Ylo=function(O,V){return O.enabledEngageTypes.has(V.toString())||Ipp.includes(V)}; Pj=function(O){return O.fD==="detailpage"}; g.Oj=function(O){return O.fD==="embedded"}; Ix=function(O){return O.fD==="leanback"}; Bj=function(O){return O.fD==="adunit"||O.playerStyle==="gvn"}; g.JO=function(O){return O.fD==="profilepage"}; g.R2=function(O){return O.D&&g.Oj(O)&&!Bj(O)&&!O.V}; Y$=function(O){if(!O.userDisplayImage)return"";var V=O.userDisplayImage.split("/");if(V.length===5)return O=V[V.length-1].split("="),O[1]="s20-c",V[V.length-1]=O.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.en(new g.pn("Profile image not a FIFE URL.",O.userDisplayImage));return O.userDisplayImage}; g.ax=function(O){var V=g.Fi(O);apX.includes(V)&&(V="www.youtube.com");return O.protocol+"://"+V}; g.bd=function(O,V){V=V===void 0?"":V;if(O.nP){var J=new hN,y,l=O.nP();l.signedOut?y="":l.token?y=l.token:l.pendingResult.then(function(m){l.signedOut?J.resolve(""):J.resolve(m.token)},function(m){g.en(new g.pn("b189348328_oauth_callback_failed",{error:m})); J.resolve(V)}); return y!==void 0?hy(y):new pW(J)}return hy(V)}; pT=function(O,V){V=V===void 0?"":V;return O.rk?W_(!0):sM(c_(W_(g.bd(O,V)),function(J){return W_(!!J)}),function(){return W_(!1)})}; b6h=function(O){var V;return!((V=O.webPlayerContextConfig)==null||!V.enableSelfProfilingLogging)}; p3H=function(O,V){O.eB=V;var J,y;(J=O.eq)!=null&&(y=J.K)!=null&&(y.K=new Ks(V,y.j,y.U),g.t(y,y.K));V.K?O.eM.push("asmjs"):O.eM.push("wasm")}; mq=function(O){var V=g.sd(O);return(O=Number(g.c$(O)[4]||null)||null)?V+":"+O:V}; fT=function(O,V){V=V===void 0?!1:V;var J=KN[O],y=fpr[J],l=hso[O];if(!l||!y)return null;V=new qI(V?l.height:l.width,V?l.width:l.height,l.fps);y=Ro(y,V,J);return new tq(O,y,{video:V,jq:l.bitrate/8})}; vTh=function(O){var V=fpr[KN[O]],J=oT7[O];return J&&V?new tq(O,V,{audio:new CN(J.audioSampleRate,J.numChannels)}):null}; hO=function(O){this.K=O}; ox=function(O,V,J,y){if(J)return fW();J={};var l=Jq();V=g.n(V);for(var m=V.next();!m.done;m=V.next())if(m=m.value,O.canPlayType(l,m.getInfo().mimeType)||y){var H=m.K.video.quality;if(!J[H]||J[H].getInfo().ey())J[H]=m}O=[];J.auto&&O.push(J.auto);y=g.n(Qj);for(l=y.next();!l.done;l=y.next())(l=J[l.value])&&O.push(l);return O.length?hy(O):fW()}; w3l=function(O){this.itag=O.itag;this.url=O.url;this.codecs=O.codecs;this.width=O.width;this.height=O.height;this.fps=O.fps;this.bitrate=O.bitrate;var V;this.j=((V=O.audioItag)==null?void 0:V.split(","))||[];this.eD=O.eD;this.AL=O.AL||"";this.wC=O.wC;this.audioChannels=O.audioChannels;this.K=""}; Mxd=function(O,V,J,y){V=V===void 0?!1:V;J=J===void 0?!0:J;y=y===void 0?{}:y;var l={};O=g.n(O);for(var m=O.next();!m.done;m=O.next()){m=m.value;if(V&&MediaSource&&MediaSource.isTypeSupported){var H=m.type;m.audio_channels&&(H=H+"; channels="+m.audio_channels);if(!MediaSource.isTypeSupported(H)){y[m.itag]="tpus";continue}}if(J||!m.drm_families||m.eotf!=="smpte2084"&&m.eotf!=="arib-std-b67"){H=void 0;var F={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},N=m.type.match(/codecs="([^"]*)"/); N=N?N[1]:"";m.audio_track_id&&(H=new g.Kh(m.name,m.audio_track_id,!!m.is_default));var x=m.eotf;m=new w3l({itag:m.itag,url:m.url,codecs:N,width:Number(m.width),height:Number(m.height),fps:Number(m.fps),bitrate:Number(m.bitrate),audioItag:m.audio_itag,eD:x?F[x]:void 0,AL:m.drm_families,wC:H,audioChannels:Number(m.audio_channels)});l[m.itag]=l[m.itag]||[];l[m.itag].push(m)}else y[m.itag]="enchdr"}return l}; L3X=function(O,V,J,y,l){this.U=O;this.j=V;this.W=J;this.cpn=y;this.V=l;this.D=0;this.K=""}; nTo=function(O,V){O.U.some(function(J){var y;return((y=J.wC)==null?void 0:y.getId())===V}); O.K=V}; vJ=function(O,V,J){O.cpn&&(V=g.pp(V,{cpn:O.cpn}));J&&(V=g.pp(V,{paired:J}));return V}; X3d=function(O,V){O=O.itag.toString();V!==null&&(O+=V.itag.toString());return O}; ET7=function(O){for(var V=[],J=[],y=g.n(O.j),l=y.next();!l.done;l=y.next())l=l.value,l.bitrate<=O.D?V.push(l):J.push(l);V.sort(function(m,H){return H.bitrate-m.bitrate}); J.sort(function(m,H){return m.bitrate-H.bitrate}); O.j=V.concat(J)}; wU=function(O,V,J){this.K=O;this.j=V;this.expiration=J;this.uh=null}; d37=function(O,V){if(!(EN||Ay()||ty()))return null;O=Mxd(V,O.L("html5_filter_fmp4_in_hls"));if(!O)return null;V=[];for(var J={},y=g.n(Object.keys(O)),l=y.next();!l.done;l=y.next()){l=g.n(O[l.value]);for(var m=l.next();!m.done;m=l.next()){var H=m.value;H.wC&&(m=H.wC.getId(),J[m]||(H=new g.GX(m,H.wC),J[m]=H,V.push(H)))}}return V.length>0?V:null}; K3V=function(O,V,J,y,l,m,H){if(!(EN||Ay()||ty()))return fW();var F={},N=gTp(J),x=Mxd(J,O.L("html5_filter_fmp4_in_hls"),O.W.V,F);if(!x)return H({noplst:1}),fW();ql1(x);J={};var W=(J.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",J),U;J=[];var Z=[],z=[],c=null,Y="";y=y&&y.match(/hls_timedtext_playlist/)?new w3l({itag:"0",url:y,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,wC:new g.Kh("English","en",!1)}):null;for(var b=g.n(Object.keys(x)),M=b.next();!M.done;M=b.next())if(M=M.value,!O.L("html5_disable_drm_hfr_1080")|| M!=="383"&&M!=="373"){M=g.n(x[M]);for(var w=M.next();!w.done;w=M.next())if(w=w.value,w.width){for(var L=g.n(w.j),X=L.next();!X.done;X=L.next())if(X=X.value,x[X]){w.K=X;break}w.K||(w.K=QMV(x,w));if(L=x[w.K])if(J.push(w),w.AL==="fairplay"&&(U=W),X="",w.eD==="PQ"?X="smpte2084":w.eD==="HLG"&&(X="arib-std-b67"),X&&(Y=X),z.push(GwV(L,[w],y,m,w.itag,w.width,w.height,w.fps,N,void 0,void 0,U,X)),!c||w.width*w.height*w.fps>c.width*c.height*c.fps)c=w}else Z.push(w)}else F[M]="disdrmhfr";z.reduce(function(u, G){return G.getInfo().isEncrypted()&&u},!0)&&(U=W); l=Math.max(l,0);W=c||{};x=W.fps===void 0?0:W.fps;c=W.width===void 0?0:W.width;W=W.height===void 0?0:W.height;b=O.L("html5_native_audio_track_switching");z.push(GwV(Z,J,y,m,"93",c,W,x,N,"auto",l,U,Y,b));Object.entries(F).length&&H(F);return ox(O.W,z,CT(O,V),!1)}; GwV=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z){for(var c=0,Y="",b=g.n(O),M=b.next();!M.done;M=b.next())M=M.value,Y||(Y=M.itag),M.audioChannels&&M.audioChannels>c&&(c=M.audioChannels,Y=M.itag);l=new tq(l,"application/x-mpegURL",{audio:new CN(0,c),video:new qI(m,H,F,null,void 0,x,void 0,void 0,Z),AL:U,dG:Y});O=new L3X(O,V,J?[J]:[],y,!!z);O.D=W?W:1369843;return new wU(l,O,N)}; gTp=function(O){O=g.n(O);for(var V=O.next();!V.done;V=O.next())if(V=V.value,V.url&&(V=V.url.split("expire/"),!(V.length<=1)))return+V[1].split("/")[0];return NaN}; QMV=function(O,V){for(var J=g.n(Object.keys(O)),y=J.next();!y.done;y=J.next()){y=y.value;var l=O[y][0];if(!l.width&&l.AL===V.AL&&!l.audioChannels)return y}return""}; ql1=function(O){for(var V=new Set,J=g.n(Object.values(O)),y=J.next();!y.done;y=J.next())y=y.value,y.length&&(y=y[0],y.height&&y.codecs.startsWith("vp09")&&V.add(y.height));J=[];if(V.size){y=g.n(Object.keys(O));for(var l=y.next();!l.done;l=y.next())if(l=l.value,O[l].length){var m=O[l][0];m.height&&V.has(m.height)&&!m.codecs.startsWith("vp09")&&J.push(l)}}V=g.n(J);for(J=V.next();!J.done;J=V.next())delete O[J.value]}; MA=function(O,V){this.K=O;this.j=V}; tx7=function(O,V,J,y){var l=[];J=g.n(J);for(var m=J.next();!m.done;m=J.next()){var H=m.value;if(H.url){m=new g.Nl(H.url,!0);if(H.s){var F=m,N=H.sp,x=Eo(18,decodeURIComponent(H.s));F[C[34]](N,encodeURIComponent(x))}F=g.n(Object.keys(y));for(N=F.next();!N.done;N=F.next())N=N.value,m.set(N,y[N]);H=Vr(H.type,H.quality,H.itag,H.width,H.height);l.push(new MA(H,m))}}return ox(O.W,l,CT(O,V),!1)}; LT=function(O,V){this.K=O;this.j=V}; uGr=function(O,V,J){var y=[];J=g.n(J);for(var l=J.next();!l.done;l=J.next())if((l=l.value)&&l.url){var m=Vr(l.type,"medium","0");y.push(new LT(m,l.url))}return ox(O.W,y,CT(O,V),!1)}; AEl=function(O,V){var J=[],y=Vr(V.type,"auto",V.itag);J.push(new LT(y,V.url));return ox(O.W,J,!1,!0)}; i61=function(O){return O&&rEd[O]?rEd[O]:null}; RsX=function(O){switch(O){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return O;default:return"sabr.config"}}; Bh1=function(O){if(O=O.commonConfig)this.url=O.url,this.urlQueryOverride=O.urlQueryOverride,O.ustreamerConfig&&(this.hI=tT(O.ustreamerConfig)||void 0)}; PfY=function(O,V){var J;if(V=V==null?void 0:(J=V.watchEndpointSupportedOnesieConfig)==null?void 0:J.html5PlaybackOnesieConfig)O.MR=new Bh1(V)}; g.nT=function(O){O=O===void 0?{}:O;this.languageCode=O.languageCode||"";this.languageName=O.languageName||null;this.kind=O.kind||"";this.name=O.name===void 0?null:O.name;this.displayName=O.displayName||null;this.id=O.id||null;this.K=O.is_servable||!1;this.isTranslateable=O.is_translateable||!1;this.url=O.url||null;this.vssId=O.vss_id||"";this.isDefault=O.is_default||!1;this.translationLanguage=O.translationLanguage||null;this.xtags=O.xtags||"";this.captionId=O.captionId||""}; g.Ej=function(O){var V={languageCode:O.languageCode,languageName:O.languageName,displayName:g.Xi(O),kind:O.kind,name:O.name,id:O.id,is_servable:O.K,is_default:O.isDefault,is_translateable:O.isTranslateable,vss_id:O.vssId};O.xtags&&(V.xtags=O.xtags);O.captionId&&(V.captionId=O.captionId);O.translationLanguage&&(V.translationLanguage=O.translationLanguage);return V}; g.dU=function(O){return O.translationLanguage?O.translationLanguage.languageCode:O.languageCode}; g.kwo=function(O){var V=O.vssId;O.translationLanguage&&V&&(V="t"+V+"."+g.dU(O));return V}; g.Xi=function(O){var V=[];if(O.displayName)V.push(O.displayName);else{var J=O.languageName||"";V.push(J);O.kind==="asr"&&J.indexOf("(")===-1&&V.push(" (Automatic Captions)");O.name&&V.push(" - "+O.name)}O.translationLanguage&&V.push(" >> "+O.translationLanguage.languageName);return V.join("")}; VEY=function(O,V,J,y){O||(O=V&&SlH.hasOwnProperty(V)&&D3U.hasOwnProperty(V)?D3U[V]+"_"+SlH[V]:void 0);V=O;if(!V)return null;O=V.match(OkV);if(!O||O.length!==5)return null;if(O=V.match(OkV)){var l=Number(O[3]),m=[7,8,10,5,6];O=!(Number(O[1])===1&&l===8)&&m.indexOf(l)>=0}else O=!1;return J||y||O?V:null}; gU=function(O,V){for(var J={},y=g.n(Object.keys(JmX)),l=y.next();!l.done;l=y.next()){l=l.value;var m=V?V+l:l;m=O[m+"_webp"]||O[m];g.X0(m)&&(J[JmX[l]]=m)}return J}; qA=function(O){var V={};if(!O||!O.thumbnails)return V;O=O.thumbnails.filter(function(F){return!!F.url}); O.sort(function(F,N){return F.width-N.width||F.height-N.height}); for(var J=g.n(Object.keys(yml)),y=J.next();!y.done;y=J.next()){var l=Number(y.value);y=yml[l];for(var m=g.n(O),H=m.next();!H.done;H=m.next())if(H=H.value,H.width>=l){l=lgr(H.url);g.X0(l)&&(V[y]=l);break}}(O=O.pop())&&O.width>=1280&&(O=lgr(O.url),g.X0(O)&&(V["maxresdefault.jpg"]=O));return V}; lgr=function(O){return O.startsWith("//")?"https:"+O:O}; Qw=function(O){return O&&O.baseUrl||""}; G0=function(O){O=g.SB(O);for(var V=g.n(Object.keys(O)),J=V.next();!J.done;J=V.next()){J=J.value;var y=O[J];O[J]=Array.isArray(y)?y[0]:y}return O}; $sp=function(O,V){V=g.n(V);for(var J=V.next();!J.done;J=V.next())if(J=J.value.playerAnnotationsUrlsRenderer){J.adsOnly&&(O.tb=!0);if(V=J.loadPolicy)O.annotationsLoadPolicy=msh[V];if(V=J.invideoUrl)O.s1=E5(V);O.dP=!0;break}}; Hkp=function(O,V){O.botguardData=V.playerAttestationRenderer.botguardData;V=V.playerAttestationRenderer.challenge;V!=null&&(O.aN=V)}; Czh=function(O,V){O.captionTracks=[];if(V.captionTracks)for(var J=g.n(V.captionTracks),y=J.next();!y.done;y=J.next()){y=y.value;var l=j6X(y.baseUrl);if(!l)return;l={is_translateable:!!y.isTranslatable,languageCode:y.languageCode,languageName:y.name&&g.yb(y.name),url:l,vss_id:y.vssId,kind:y.kind};l.name=y.trackName;l.displayName=y.name&&g.yb(y.name);O.captionTracks.push(new g.nT(l))}O.FT=V.audioTracks||[];O.JF=V.defaultAudioTrackIndex||0;O.k9=[];if(V.translationLanguages)for(J=g.n(V.translationLanguages), y=J.next();!y.done;y=J.next()){l=y.value;y={};y.languageCode=l.languageCode;y.languageName=g.yb(l.languageName);if(l.translationSourceTrackIndices){y.translationSourceTrackIndices=[];for(var m=g.n(l.translationSourceTrackIndices),H=m.next();!H.done;H=m.next())y.translationSourceTrackIndices.push(H.value)}if(l.excludeAudioTrackIndices)for(y.excludeAudioTrackIndices=[],l=g.n(l.excludeAudioTrackIndices),m=l.next();!m.done;m=l.next())y.excludeAudioTrackIndices.push(m.value);O.k9.push(y)}O.iC=[];if(V.defaultTranslationSourceTrackIndices)for(J= g.n(V.defaultTranslationSourceTrackIndices),y=J.next();!y.done;y=J.next())O.iC.push(y.value);O.ov=!!V.contribute&&!!V.contribute.captionsMetadataRenderer}; F8V=function(O,V,J){var y=V.errorScreen;if(!(y&&(y.playerLegacyDesktopYpcOfferRenderer||y.playerLegacyDesktopYpcTrailerRenderer||y.ypcTrailerRenderer)||J&&J.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(V.status))){O.errorCode=i61(V.errorCode)||"auth";if(J=y&&y.playerErrorMessageRenderer){O.playerErrorMessageRenderer=J;var l=J.reason;l&&(O.errorReason=g.yb(l));if(J=J.subreason)O.h$=g.yb(J),O.rS=J}else O.errorReason=V.reason||null;J=V.status;if(J==="LOGIN_REQUIRED")O.errorDetail= "1";else if(J==="CONTENT_CHECK_REQUIRED")O.errorDetail="2";else if(J==="AGE_CHECK_REQUIRED")V=(V=V.errorScreen)&&V.playerKavRenderer,O.errorDetail=V&&V.kavUrl?"4":"3";else{var m,H,F;y=(F=y==null?void 0:(m=y.playerErrorMessageRenderer)==null?void 0:(H=m.proceedButton)==null?void 0:H.buttonRenderer)==null?void 0:F.command;if(V.isBlockedInRestrictedMode)O.errorDetail="5";else{var N;((N=g.e(y,g.KT))==null?void 0:N.signal)==="RELOAD_PAGE"?O.errorDetail="7":O.errorDetail="0"}}}}; Njn=function(O,V){O.mO=!0;var J=V.heartbeatToken;J&&(O.drmSessionId=V.drmSessionId||"",O.heartbeatToken=J,O.Rh=Number(V.intervalMilliseconds),O.XB=Number(V.maxRetries),O.ud=!!V.softFailOnError,O.Lt=!!V.useInnertubeHeartbeatsForDrm);O.heartbeatServerData=V.heartbeatServerData;var y;O.XG=!((y=V.heartbeatAttestationConfig)==null||!y.requiresAttestation)}; Usd=function(O,V){V=g.n(V);for(var J=V.next();!J.done;J=V.next()){J=J.value;var y=J.interstitials.map(function(H){var F=g.e(H,xs1);if(F)return{is_yto_interstitial:!0,raw_player_response:F};if(H=g.e(H,W85))return Object.assign({is_yto_interstitial:!0},y7(H))}); y=g.n(y);for(var l=y.next();!l.done;l=y.next())switch(l=l.value,J.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":O.interstitials=O.interstitials.concat({time:0,playerVars:l,Bv:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":O.interstitials=O.interstitials.concat({time:0x7ffffffffffff,playerVars:l,Bv:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var m=Number(J.podConfig.timeToInsertAtMillis);O.interstitials=O.interstitials.concat({time:m,playerVars:l, Bv:m===0?5:7})}}}; Zkr=function(O,V){if(V=V.find(function(J){return!(!J||!J.tooltipRenderer)}))O.tooltipRenderer=V.tooltipRenderer}; znn=function(O,V){V.subscribeCommand&&(O.subscribeCommand=V.subscribeCommand);V.unsubscribeCommand&&(O.unsubscribeCommand=V.unsubscribeCommand);V.addToWatchLaterCommand&&(O.addToWatchLaterCommand=V.addToWatchLaterCommand);V.removeFromWatchLaterCommand&&(O.removeFromWatchLaterCommand=V.removeFromWatchLaterCommand);V.getSharePanelCommand&&(O.getSharePanelCommand=V.getSharePanelCommand)}; cmr=function(O,V){V!=null?(O.gb=V,O.tC=!0):(O.gb="",O.tC=!1)}; enr=function(O,V){if(V=V.playerControlsOverlayRenderer)cmr(O,V.controlBgHtml),V.mutedAutoplay?(V=g.e(V.mutedAutoplay,s6Y))&&V.endScreen&&(V=g.e(V.endScreen,Tjp))&&V.text&&(O.Em=g.yb(V.text)):O.mutedAutoplay=!1}; IgU=function(O,V){var J=V.backgroundability;J&&J.backgroundabilityRenderer.backgroundable&&(O.backgroundable=!0);var y,l;if((y=V.offlineability)==null?0:(l=y.offlineabilityRenderer)==null?0:l.offlineable)O.offlineable=!0;if(J=V.contextParams)O.contextParams=J;(J=V.pictureInPicture)&&J.pictureInPictureRenderer.playableInPip&&(O.pipable=!0);V.playableInEmbed&&(O.allowEmbed=!0);if(J=V.ypcClickwrap)V=J.playerLegacyDesktopYpcClickwrapRenderer,J=J.ypcRentalActivationRenderer,V?(O.Jd=V.durationMessage|| "",O.Zm=!0):J&&(V=J.durationMessage,O.Jd=V?g.yb(V):"",O.Zm=!0)}; agY=function(O,V,J){var y=Qw(V.googleRemarketingUrl);y&&(O.googleRemarketingUrl=y);if(y=Qw(V.youtubeRemarketingUrl))O.youtubeRemarketingUrl=y;if(y=V.heartbeatLoggingToken)O.heartbeatLoggingToken=y;y={};var l=Qw(V.ptrackingUrl);if(l){l=G0(l);var m=l.oid;m&&(O.ZE=m);if(m=l.pltype)O.b8=m;if(m=l.ptchn)O.PV=m;if(m=l.ptk)O.tS=encodeURIComponent(m);if(l=l.m)O.qM=l}if(l=Qw(V.qoeUrl)){l=g.SB(l);m=g.n(Object.keys(l));for(var H=m.next();!H.done;H=m.next()){H=H.value;var F=l[H];l[H]=Array.isArray(F)?F.join(","): F}O.ZP=l;if(m=l.cat)O.L("html5_enable_qoe_cat_list")?O.f8=O.f8.concat(m.split(",")):O.eM=m;if(m=l.live)O.Cg=m;if(l=l.drm_product)O.drmProduct=l}if(l=Qw(V.videostatsPlaybackUrl)){l=G0(l);if(m=l.adformat)if(J.adformat=m,H=O.Y(),H=VEY(m,O.bX,H.D,H.T))O.adFormat=H;if(H=l.aqi)J.ad_query_id=H;if(J=l.autoplay)O.ZI=J=="1",O.Ou=J=="1";if(J=l.autonav)O.isAutonav=J=="1";if(J=l.delay)O.kV=Ka(J);if(J=l.ei)O.eventId=J;if(J=tT(l.adcontext))try{var N=YE7(J);N&&(O.O4=N)}catch(x){g.en(Error("Malformed adContext"))}if(J|| m)O.ZI=!0;if(N=l.feature)O.i4=N;if(N=l.list)O.playlistId=N;if(N=l.of)O.Ur=N;if(N=l.osid)O.osid=N;if(N=l.referrer)O.referrer=N;if(N=l.sdetail)O.LF=N;if(N=l.sourceid)O.Xl5=N;if(N=l.ssrt)O.BS=N=="1";if(N=l.subscribed)O.subscribed=N=="1";if(N=l.uga)O.userGenderAge=N;if(N=l.upt)O.LU=N;if(N=l.vm)O.videoMetadata=N;y.playback=l}if(N=Qw(V.videostatsWatchtimeUrl)){N=G0(N);if(J=N.ald)O.Pg=J;y.watchtime=N}if(N=Qw(V.atrUrl))N=G0(N),y.atr=N;if(N=Qw(V.engageUrl))N=G0(N),y.engage=N;O.BO=y;V.promotedPlaybackTracking&& (V=V.promotedPlaybackTracking,V.startUrls&&(O.Oi=V.startUrls),V.firstQuartileUrls&&(O.xO=V.firstQuartileUrls),V.secondQuartileUrls&&(O.y4=V.secondQuartileUrls),V.thirdQuartileUrls&&(O.cA=V.thirdQuartileUrls),V.completeUrls&&(O.LW=V.completeUrls),V.engagedViewUrls&&(V.engagedViewUrls.length>1&&g.en(new g.pn("There are more than one engaged_view_urls.")),O.AE=V.engagedViewUrls[0]))}; bkr=function(O,V,J){V=g.n(V);for(var y=V.next();!y.done;y=V.next())if(y=y.value)if(y=y.playerLegacyDesktopWatchAdsRenderer)if(y=y.playerAdParams){y.autoplay=="1"&&(O.ZI=!0,O.Ou=!0);O.MO=y.encodedAdSafetyReason||null;y.showContentThumbnail!==void 0&&(O.SD=!!y.showContentThumbnail);J.enabled_engage_types=y.enabledEngageTypes;break}}; pYh=function(O,V){var J=V.manifestlessWindowedLiveConfig;if(J){var y=Number(J.minDvrSequence),l=Number(J.maxDvrSequence),m=Number(J.minDvrMediaTimeMs),H=Number(J.maxDvrMediaTimeMs);J=Number(J.startWalltimeMs);y&&(O.rD=y);m&&(O.u_=m/1E3,O.L("html5_sabr_parse_live_metadata_playback_boundaries")&&tO(O)&&(O.EF=m/1E3));l&&(O.j4=l);H&&(O.zX=H/1E3,O.L("html5_sabr_parse_live_metadata_playback_boundaries")&&tO(O)&&(O.rV=H/1E3));J&&(O.oN=J/1E3);(y||m)&&(l||H)&&(O.cX=!0,O.isLivePlayback=!0,O.allowLiveDvr=!0, O.FR=!1)}if(y=V.daiConfig){if(y.enableDai){O.T3=!0;if(l=y.enableServerStitchedDai)O.enableServerStitchedDai=l;if(l=y.enablePreroll)O.hA=l}var F;if(y.daiType==="DAI_TYPE_SS_DISABLED"||((F=y.debugInfo)==null?0:F.isDisabledUnpluggedChannel))O.Aa=!0;y.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(O.Ct=!0);y.allowUstreamerRequestAdconfig&&(O.n0=!0);y.sendSsdaiMissingAdBreakReasons&&(O.JO5=!0)}if(F=V.audioConfig){y=F.loudnessDb;y!=null&&(O.ze=y);y=F.trackAbsoluteLoudnessLkfs;y!=null&&(O.B$=y);y=F.loudnessTargetLkfs; y!=null&&(O.loudnessTargetLkfs=y);F.audioMuted&&(O.hT=!0);F.muteOnStart&&(O.LX=!0);if(y=F.loudnessNormalizationConfig)y.applyStatefulNormalization&&(O.applyStatefulNormalization=!0),y.preserveStatefulLoudnessTarget&&(O.preserveStatefulLoudnessTarget=!0),l=y.minimumLoudnessTargetLkfs,l!=null&&(O.minimumLoudnessTargetLkfs=l),y=y.maxStatefulTimeThresholdSec,y!=null&&(O.maxStatefulTimeThresholdSec=y);F.playAudioOnly&&(O.St=!0)}if(y=V.playbackEndConfig)F=y.endSeconds,y=y.limitedPlaybackDurationInSeconds, O.mutedAutoplay&&(F&&(O.endSeconds=F),y&&(O.limitedPlaybackDurationInSeconds=y));if(F=V.fairPlayConfig){if(y=F.certificate)O.Zq=tT(y);y=Number(F.keyRotationPeriodMs);y>0&&(O.AV=y);F=Number(F.keyPrefetchMarginMs);F>0&&(O.OX=F)}if(F=V.playbackStartConfig){O.q4=Number(F.startSeconds);l=F.liveUtcStartSeconds;y=!!O.liveUtcStartSeconds&&O.liveUtcStartSeconds>0;l&&!y&&(O.liveUtcStartSeconds=Number(l));if(l=F.startPosition)if((m=l.utcTimeMillis)&&!y&&(O.liveUtcStartSeconds=Number(m)*.001),y=l.streamTimeMillis)O.Fl= Number(y)*.001;O.progressBarStartPosition=F.progressBarStartPosition;O.progressBarEndPosition=F.progressBarEndPosition}else if(F=V.skippableSegmentsConfig){if(y=F.introSkipDurationMs)O.W_=Number(y)/1E3;if(F=F.outroSkipDurationMs)O.jR=Number(F)/1E3}if(y=V.skippableIntroConfig)F=Number(y.startMs),y=Number(y.endMs),isNaN(F)||isNaN(y)||(O.MN=F,O.tW=y);if(F=V.streamSelectionConfig)O.r5=Number(F.maxBitrate);if(F=V.vrConfig)O.Oz=F.partialSpherical=="1";if(F=V.webDrmConfig){F.skipWidevine&&(O.lc=!0);if(y= F.widevineServiceCert)O.qT=tT(y);F.useCobaltWidevine&&(O.useCobaltWidevine=!0);F.startWithNoQualityConstraint&&(O.VG=!0)}if(F=V.mediaCommonConfig){if(y=F.dynamicReadaheadConfig){O.maxReadAheadMediaTimeMs=y.maxReadAheadMediaTimeMs||NaN;O.minReadAheadMediaTimeMs=y.minReadAheadMediaTimeMs||NaN;O.readAheadGrowthRateMs=y.readAheadGrowthRateMs||NaN;var N;if(y=F==null?void 0:(N=F.mediaUstreamerRequestConfig)==null?void 0:N.videoPlaybackUstreamerConfig)O.Fb=tT(y);if((N=F==null?void 0:F.sabrContextUpdates)&& N.length>0)for(N=g.n(N),y=N.next();!y.done;y=N.next())y=y.value,y.type&&y.value&&(l={type:y.type,scope:y.scope,value:tT(y.value)||void 0,sendByDefault:y.sendByDefault},O.sabrContextUpdates.set(y.type,l))}if(N=F.serverPlaybackStartConfig)O.serverPlaybackStartConfig=N;F.useServerDrivenAbr&&(O.o0=!0);if(N=F.requestPipeliningConfig)O.requestPipeliningConfig=N}if(N=V.inlinePlaybackConfig)O.Yt=!!N.showAudioControls;if(N=V.embeddedPlayerConfig){O.embeddedPlayerConfig=N;if(F=N.embeddedPlayerMode)y=O.Y(), y.dW=F,y.U=F==="EMBEDDED_PLAYER_MODE_PFL";if(N=N.permissions)O.allowImaMonetization=!!N.allowImaMonetization}if(V=V.webPlayerConfig)V.gatewayExperimentGroup&&(O.gatewayExperimentGroup=V.gatewayExperimentGroup),V.isProximaEligible&&(O.isProximaLatencyEligible=!0)}; fgh=function(O,V,J){var y=V.formats;if(y){for(var l=[],m=g.n(y),H=m.next();!H.done;H=m.next())H=H.value,l.push(H.itag+"/"+H.width+"x"+H.height);O.Vd=l.join(",");l=[];y=g.n(y);for(m=y.next();!m.done;m=y.next()){H=m.value;m={itag:H.itag,type:H.mimeType,quality:H.quality};var F=H.url;F&&(m.url=F);H=Uo(32,H);F=H.dR;var N=H.jL,x=H.s;H.BF&&(m.url=F,m.sp=N,m.s=x);l.push(g.bp(m))}O.xj=l.join(",")}if(m=V.hlsFormats){l={};if(J&&(J=J.audioPairingConfig)&&J.pairs)for(J=g.n(J.pairs),y=J.next();!y.done;y=J.next())y= y.value,H=y.videoItag,l[H]||(l[H]=[]),l[H].push(y.audioItag);J={};y=g.n(m);for(H=y.next();!H.done;H=y.next())H=H.value,J[H.itag]=H.bitrate;y=[];m=g.n(m);for(H=m.next();!H.done;H=m.next()){H=H.value;F={itag:H.itag,type:H.mimeType,url:H.url,bitrate:H.bitrate,width:H.width,height:H.height,fps:H.fps};if(N=H.audioTrack)if(x=N.displayName)F.name=x,F.audio_track_id=N.id,N.audioIsDefault&&(F.is_default="1");if(H.drmFamilies){N=[];x=g.n(H.drmFamilies);for(var W=x.next();!W.done;W=x.next())N.push(BK[W.value]); F.drm_families=N.join(",")}(N=l[H.itag])&&N.length&&(F.audio_itag=N.join(","),(N=J[N[0]])&&(F.bitrate+=N));(N=q45(H))&&(F.eotf=N);H.audioChannels&&(F.audio_channels=H.audioChannels);y.push(g.bp(F))}O.hlsFormats=y.join(",")}if((J=V.licenseInfos)&&J.length>0){l={};J=g.n(J);for(y=J.next();!y.done;y=J.next())m=y.value,y=m.drmFamily,m=m.url,y&&m&&(l[BK[y]]=m);O.AL=l}if(l=V.drmParams)O.drmParams=l;if(l=V.dashManifestUrl)O.ev=g.pp(l,{cpn:O.clientPlaybackNonce});if(l=V.hlsManifestUrl)O.hlsvp=l;if(l=V.probeUrl)O.probeUrl= E5(g.pp(l,{cpn:O.clientPlaybackNonce}));if(V=V.serverAbrStreamingUrl)O.f1=new g.Nl(V,!0)}; o8X=function(O,V,J){var y=V.videoId;y&&(O.videoId=y,J.video_id||(J.video_id=y));if(y=V.title)O.title=y,J.title||(J.title=y);if(y=V.lengthSeconds)O.lengthSeconds=Number(y),J.length_seconds||(J.length_seconds=y);if(y=V.keywords)O.keywords=hnV(y);if(y=V.channelId)O.iL=y,J.ucid||(J.ucid=y);if(y=V.viewCount)O.rawViewCount=Number(y);if(y=V.author)O.author=y,J.author||(J.author=y);if(J=V.shortDescription)O.shortDescription=J;if(J=V.isCrawlable)O.isListed=J;if(J=V.musicVideoType)O.musicVideoType=J;J=V.isLive; J!=null&&(O.isLivePlayback=J);if(J||V.isUpcoming)O.isPremiere=!V.isLiveContent;if(J=V.thumbnail)O.CE=qA(J);if(J=V.isExternallyHostedPodcast)O.isExternallyHostedPodcast=J;(J=V.stationType)&&J!=="STATION_TYPE_UNKNOWN"&&(O.qRW=!0);V=V.viewerLivestreamJoinPosition;if(V==null?0:V.utcTimeMillis)O.HZ=Ka(V.utcTimeMillis)}; MEo=function(O,V){if(V.playerLegacyDesktopYpcTrailerRenderer){var J=V.playerLegacyDesktopYpcTrailerRenderer;O.Br=J.trailerVideoId||"";var y=(y=V.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&y.ypcTrailerRenderer}else if(V.playerLegacyDesktopYpcOfferRenderer)J=V.playerLegacyDesktopYpcOfferRenderer;else if(V.ypcTrailerRenderer){y=V.ypcTrailerRenderer;V=y.fullVideoMessage;O.zw=V?g.yb(V):"";var l,m;O.Br=((l=g.e(y,v8h))==null?void 0:(m=l.videoDetails)==null?void 0:m.videoId)||""}J&&(O.aP=J.itemTitle|| "",J.itemUrl&&(O.Ts=J.itemUrl),J.itemBuyUrl&&(O.Me=J.itemBuyUrl),O.Ne=J.itemThumbnail||"",O.zs=J.offerHeadline||"",O.td=J.offerDescription||"",O.Km=J.offerId||"",O.Jy=J.offerButtonText||"",O.SS=J.offerButtonFormattedText||null,O.sZ=J.overlayDurationMsec||NaN,O.zw=J.fullVideoMessage||"",O.GD=!0);y&&((J=g.e(y,v8h))?O.j0={raw_player_response:J}:(J=g.e(y,wYh),O.j0=J?y7(J):null),O.GD=!0)}; n8Y=function(O,V,J,y){V.isLiveDefaultBroadcast&&(O.isLiveDefaultBroadcast=!0);V.isUpcoming&&(O.isUpcoming=!0);if(V.isPostLiveDvr){O.FR=!0;if(y=V.latencyClass)O.latencyClass=L8Y[y]||"UNKNOWN";V.isLowLatencyLiveStream&&(O.isLowLatencyLiveStream=!0)}else{var l=!1;O.iQ?(O.allowLiveDvr=MS()?!0:RN&&ud<5?!1:!0,O.isLivePlayback=!0):V.isLive?(y.livestream="1",O.allowLiveDvr=V.isLiveDvrEnabled?MS()?!0:RN&&ud<5?!1:!0:!1,O.partnerId=27,l=!0):V.isUpcoming&&(l=!0);if(V.isLive||O.iQ){V.isLowLatencyLiveStream&&(O.isLowLatencyLiveStream= !0);var m=V.latencyClass;m&&(O.latencyClass=L8Y[m]||"UNKNOWN");if(V=V.liveChunkReadahead)O.liveChunkReadahead=V;if(V=J&&J.livePlayerConfig){V.hasSubfragmentedFmp4&&(O.hasSubfragmentedFmp4=!0);V.hasSubfragmentedWebm&&(O.wh=!0);V.defraggedFromSubfragments&&(O.defraggedFromSubfragments=!0);if(J=V.liveExperimentalContentId)O.liveExperimentalContentId=Number(J);V=V.isLiveHeadPlayable;O.L("html5_live_head_playable")&&V!=null&&(O.isLiveHeadPlayable=V)}}l&&(O.isLivePlayback=!0,y.adformat&&y.adformat.split("_")[1]!== "8"||O.nw.push("heartbeat"))}}; AO=function(O,V){this.type=O||"";this.id=V||""}; rU=function(O){return new AO(O.substring(0,2),O.substring(2))}; id=function(O,V){this.WE=O;this.author="";this.Z5=null;this.playlistLength=0;this.K=this.sessionData=null;this.CE={};this.title="";if(V){this.author=V.author||V.playlist_author||"";this.title=V.playlist_title||"";if(O=V.session_data)this.sessionData=Bw(O,"&");var J;this.K=((J=V.thumbnail_ids)==null?void 0:J.split(",")[0])||null;this.CE=gU(V,"playlist_");this.videoId=V.video_id||void 0;if(J=V.list)switch(V.listType){case "user_uploads":this.playlistId=(new AO("UU","PLAYER_"+J)).toString();break;default:if(O= V.playlist_length)this.playlistLength=Number(O)||0;this.playlistId=rU(J).toString();if(V=V.video)this.videoId=(V[0]||null).video_id||void 0}else V.playlist&&(this.playlistLength=V.playlist.toString().split(",").length)}}; Rx=function(O,V){this.WE=O;this.B1=this.author="";this.Z5=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.lj=this.lengthText="";this.sessionData=null;this.CE={};this.title="";if(V){this.ariaLabel=V.aria_label||void 0;this.author=V.author||"";this.B1=V.B1||"";if(O=V.endscreen_autoplay_session_data)this.Z5=Bw(O,"&");this.Gm=V.Gm;this.isLivePlayback=V.live_playback==="1";this.isUpcoming=!!V.isUpcoming;if(O=V.length_seconds)this.lengthSeconds=typeof O==="string"?Number(O):O;this.lengthText= V.lengthText||"";this.lj=V.lj||"";this.publishedTimeText=V.publishedTimeText||void 0;if(O=V.session_data)this.sessionData=Bw(O,"&");this.shortViewCount=V.short_view_count_text||void 0;this.CE=gU(V);this.title=V.title||"";this.videoId=V.docid||V.video_id||V.videoId||V.id||void 0;this.watchUrl=V.watchUrl||void 0}}; XY1=function(O){var V,J,y=(V=O.getWatchNextResponse())==null?void 0:(J=V.contents)==null?void 0:J.twoColumnWatchNextResults,l,m,H,F,N;O=(l=O.getWatchNextResponse())==null?void 0:(m=l.playerOverlays)==null?void 0:(H=m.playerOverlayRenderer)==null?void 0:(F=H.endScreen)==null?void 0:(N=F.watchNextEndScreenRenderer)==null?void 0:N.results;if(!O){var x,W;O=y==null?void 0:(x=y.endScreen)==null?void 0:(W=x.endScreen)==null?void 0:W.results}return O}; g.PJ=function(O){var V,J,y;O=g.e((V=O.getWatchNextResponse())==null?void 0:(J=V.playerOverlays)==null?void 0:(y=J.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,BJ);return g.e(O==null?void 0:O.playerBar,E8r)}; ds7=function(O){this.K=O.playback_progress_0s_url;this.U=O.playback_progress_2s_url;this.j=O.playback_progress_10s_url}; g8V=function(){if(k$===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(V){}a:{try{var O=!!self.localStorage}catch(V){O=!1}if(O&&(O=g.vM(g.Gb()+"::yt-player"))){k$=new vS(O);break a}k$=void 0}}return k$}; g.SN=function(){var O=g8V();if(!O)return{};try{var V=O.get("yt-player-lv");return JSON.parse(V||"{}")}catch(J){return{}}}; g.qEX=function(O){var V=g8V();V&&(O=JSON.stringify(O),V.set("yt-player-lv",O))}; g.DG=function(O){return g.SN()[O]||0}; g.Oy=function(O,V){var J=g.SN();V!==J[O]&&(V!==0?J[O]=V:delete J[O],g.qEX(J))}; g.V1=function(O){return g.Q(function(V){return V.return(g.LH(Q6d(),O))})}; y1=function(O,V,J,y,l,m,H,F){var N,x,W,U,Z,z;return g.Q(function(c){switch(c.j){case 1:return N=g.DG(O),N===4?c.return(4):c.K(g.Gf(),2);case 2:x=c.U;if(!x)throw g.NV("wiac");if(!F||H===void 0){c.uw(3);break}return c.K(GjU(F,H),4);case 4:H=c.U;case 3:return W=J.lastModified||"0",c.K(g.V1(x),5);case 5:return U=c.U,c.W(6),Jz++,c.K(g.aj(U,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",cY:!0},function(Y){if(m!==void 0&&H!==void 0){var b=""+O+"|"+V.id+"|"+W+"|"+String(m).padStart(10, "0");b=Y.objectStore("media").put(H,b)}else b=g.WH.resolve(void 0);var M=K8o(O,V.z3()),w=K8o(O,!V.z3()),L={fmts:tEX(y),format:J||{}};M=Y.objectStore("index").put(L,M);var X=y.downloadedEndTime===-1;L=X?Y.objectStore("index").get(w):g.WH.resolve(void 0);var u={fmts:"music",format:{}};Y=X&&l&&!V.z3()?Y.objectStore("index").put(u,w):g.WH.resolve(void 0);return g.WH.all([Y,L,b,M]).then(function(G){G=g.n(G);G.next();G=G.next().value;Jz--;var k=g.DG(O);if(k!==4&&X&&l||G!==void 0&&g.uqn(G.fmts))k=1,g.Oy(O, k);return k})}),8); case 8:return c.return(c.U);case 6:Z=c.D();Jz--;z=g.DG(O);if(z===4)return c.return(z);g.Oy(O,4);throw Z;}})}; g.Amn=function(O){var V,J;return g.Q(function(y){if(y.j==1)return y.K(g.Gf(),2);if(y.j!=3){V=y.U;if(!V)throw g.NV("ri");return y.K(g.V1(V),3)}J=y.U;return y.return(g.aj(J,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(l){var m=IDBKeyRange.bound(O+"|",O+"~");return l.objectStore("index").getAll(m).then(function(H){return H.map(function(F){return F?F.format:{}})})}))})}; ikh=function(O,V,J,y,l){var m,H,F;return g.Q(function(N){if(N.j==1)return N.K(g.Gf(),2);if(N.j!=3){m=N.U;if(!m)throw g.NV("rc");return N.K(g.V1(m),3)}H=N.U;F=g.aj(H,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(x){var W=""+O+"|"+V+"|"+J+"|"+String(y).padStart(10,"0");return x.objectStore("media").get(W)}); return l?N.return(F.then(function(x){if(x===void 0)throw Error("No data from indexDb");return rmH(l,x)}).catch(function(x){throw new g.pn("Error while reading chunk: "+x.name+", "+x.message); })):N.return(F)})}; g.uqn=function(O){return O?O==="music"?!0:O.includes("dlt=-1")||!O.includes("dlt="):!1}; K8o=function(O,V){return""+O+"|"+(V?"v":"a")}; tEX=function(O){var V={};return Pw((V.dlt=O.downloadedEndTime.toString(),V.mket=O.maxKnownEndTime.toString(),V.avbr=O.averageByteRate.toString(),V))}; BjV=function(O){var V={},J={};O=g.n(O);for(var y=O.next();!y.done;y=O.next()){var l=y.value,m=l.split("|");l.match(g.Rnr)?(y=Number(m.pop()),isNaN(y)?J[l]="?":(m=m.join("|"),(l=V[m])?(m=l[l.length-1],y===m.end+1?m.end=y:l.push({start:y,end:y})):V[m]=[{start:y,end:y}])):J[l]="?"}O=g.n(Object.keys(V));for(y=O.next();!y.done;y=O.next())y=y.value,J[y]=V[y].map(function(H){return H.start+"-"+H.end}).join(","); return J}; lb=function(O){g.BF.call(this);this.K=null;this.U=new Lv;this.K=null;this.V=new Set;this.crossOrigin=O||""}; Pzd=function(O,V,J){for(J=ml(O,J);J>=0;){var y=O.levels[J];if(y.isLoaded($Z(y,V))&&(y=g.HL(y,V)))return y;J--}return g.HL(O.levels[0],V)}; SEo=function(O,V,J){J=ml(O,J);for(var y,l;J>=0;J--)if(y=O.levels[J],l=$Z(y,V),!y.isLoaded(l)){y=O;var m=J,H=m+"-"+l;y.V.has(H)||(y.V.add(H),y.U.enqueue(m,{qW:m,CO:l}))}kjH(O)}; kjH=function(O){if(!O.K&&!O.U.isEmpty()){var V=O.U.remove();O.K=Ds7(O,V)}}; Ds7=function(O,V){var J=document.createElement("img");O.crossOrigin&&(J.crossOrigin=O.crossOrigin);J.src=O.levels[V.qW].Cv(V.CO);J.onload=function(){var y=V.qW,l=V.CO;O.K!==null&&(O.K.onload=null,O.K=null);y=O.levels[y];y.loaded.add(l);kjH(O);var m=y.columns*y.rows;l*=m;y=Math.min(l+m-1,y.ys()-1);l=[l,y];O.publish("l",l[0],l[1])}; return J}; g.jW=function(O,V,J,y){this.level=O;this.D=V;this.loaded=new Set;this.level=O;this.D=V;O=J.split("#");this.width=Math.floor(Number(O[0]));this.height=Math.floor(Number(O[1]));this.frameCount=Math.floor(Number(O[2]));this.columns=Math.floor(Number(O[3]));this.rows=Math.floor(Number(O[4]));this.K=Math.floor(Number(O[5]));this.U=O[6];this.signature=O[7];this.videoLength=y}; $Z=function(O,V){return Math.floor(V/(O.columns*O.rows))}; g.HL=function(O,V){V>=O.xD()&&O.HI();var J=$Z(O,V),y=O.columns*O.rows,l=V%y;V=l%O.columns;l=Math.floor(l/O.columns);var m=O.HI()+1-y*J;if(m1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; O97=function(O,V,J){return(O=O.levels[V])?O.VN(J):-1}; ml=function(O,V){var J=O.D.get(V);if(J)return J;J=O.levels.length;for(var y=0;y=V)return O.D.set(V,y),y;O.D.set(V,J-1);return J-1}; Fd=function(O,V,J,y){J=J.split("#");J=[J[1],J[2],0,J[3],J[4],-1,J[0],""].join("#");g.jW.call(this,O,V,J,0);this.j=null;this.W=y?2:0}; Nu=function(O,V,J,y){C7.call(this,O,0,void 0,V,!(y===void 0||!y));for(O=0;O30?O.limitedPlaybackDurationInSeconds=30:J<30&&J>10&&(O.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":O.limitedPlaybackDurationInSeconds=J*.2}}; Z2=function(O,V){var J=V.raw_watch_next_response;if(!J){var y=V.watch_next_response;y&&(J=JSON.parse(y))}if(J){O.fD=J;var l=O.fD.playerCueRangeSet;l&&g.sy(O,l);var m=O.fD.playerOverlays;if(m){var H=m.playerOverlayRenderer;if(H){var F=H.autonavToggle;F&&(O.autoplaySwitchButtonRenderer=g.e(F,NX1),O.L("web_player_autonav_use_server_provided_state")&&T9(O)&&(O.autonavState=O.autoplaySwitchButtonRenderer.enabled?2:1));var N=H.videoDetails;if(N){var x=N.embeddedPlayerOverlayVideoDetailsRenderer;var W=N.playerOverlayVideoDetailsRenderer; W&&(W.title&&(V.title=g.yb(W.title)),W.subtitle&&(V.subtitle=g.yb(W.subtitle)))}g.Oj(O.WE)&&(O.WB=!!H.addToMenu);xPY(O,H.shareButton);H.startPosition&&H.endPosition&&(O.progressBarStartPosition=H.startPosition,O.progressBarEndPosition=H.endPosition);var U=H.gatedActionsOverlayRenderer;U&&(O.n$=g.e(U,W6n));var Z,z,c,Y=g.e((Z=O.getWatchNextResponse())==null?void 0:(z=Z.playerOverlays)==null?void 0:(c=z.playerOverlayRenderer)==null?void 0:c.infoPanel,UPh);if(Y){O.DC=Number(Y==null?void 0:Y.durationMs)|| NaN;if(Y==null?0:Y.infoPanelOverviewViewModel)O.NH=Y==null?void 0:Y.infoPanelOverviewViewModel;if(Y==null?0:Y.infoPanelDetailsViewModel)O.OE=Y==null?void 0:Y.infoPanelDetailsViewModel}O.showSeekingControls=!!H.showSeekingControls}}var b,M,w=(b=O.getWatchNextResponse())==null?void 0:(M=b.contents)==null?void 0:M.twoColumnWatchNextResults;if(w){var L=w.desktopOverlay&&g.e(w.desktopOverlay,Z9d);L&&(L.suppressShareButton&&(O.showShareButton=!1),L.suppressWatchLaterButton&&(O.WB=!1))}x&&zb5(O,V,x);var X= JG(0,V.autoplay_count),u=O.getWatchNextResponse(),G,k=(G=u.contents)==null?void 0:G.twoColumnWatchNextResults,D,Oo,md,xY=(D=u.playerOverlays)==null?void 0:(Oo=D.playerOverlayRenderer)==null?void 0:(md=Oo.autoplay)==null?void 0:md.playerOverlayAutoplayRenderer,V7=XY1(O),Tr,Rp=(Tr=u.contents)==null?void 0:Tr.singleColumnWatchNextResults;if(Rp){var ys;if(((ys=Rp.autoplay)==null?0:ys.autoplay)&&!Rp.playlist){var JI=Rp.autoplay.autoplay.sets,uX={},nn=new Rx(O.Y()),im=null,fd;if(JI){for(var h=g.n(JI),X1= h.next();!X1.done;X1=h.next()){var AI=X1.value.autoplayVideoRenderer;if(AI&&AI.compactVideoRenderer){im=AI.compactVideoRenderer;break}}if(fd=JI[0].autoplayVideo){var gV=fd.clickTrackingParams;gV&&(uX.itct=gV);uX.autonav="1";uX.playnext=String(X)}}else uX.feature="related-auto";var lX=g.e(fd,g.eW);if(im){nn.videoId=im.videoId;var az=im.shortBylineText;az&&(nn.author=g.yb(az));var p=im.title;p&&(nn.title=g.yb(p))}else lX!=null&&lX.videoId&&(nn.videoId=lX.videoId);nn.Z5=uX;O.suggestions=[];O.VD=nn}}if(V7){for(var Jr= [],Ht=g.n(V7),wT=Ht.next();!wT.done;wT=Ht.next()){var HZ=wT.value,sz=void 0,Ml=null;if(HZ.endScreenVideoRenderer){var ZZ=HZ.endScreenVideoRenderer,Mk=ZZ.title;Ml=new Rx(O.Y());Ml.videoId=ZZ.videoId;Ml.lengthSeconds=ZZ.lengthInSeconds||0;var f=ZZ.publishedTimeText;f&&(Ml.publishedTimeText=g.yb(f));var a=ZZ.shortBylineText;a&&(Ml.author=g.yb(a));var v=ZZ.shortViewCountText;v&&(Ml.shortViewCount=g.yb(v));if(Mk){Ml.title=g.yb(Mk);var E=Mk.accessibility;if(E){var d=E.accessibilityData;d&&d.label&&(Ml.ariaLabel= d.label)}}var Hh=ZZ.navigationEndpoint;if(Hh){sz=Hh.clickTrackingParams;var B=g.e(Hh,g.eW),A=g.e(Hh,g.fI);B?Ml.Gm=B:A!=null&&(Ml.watchUrl=A.url)}var jV=ZZ.thumbnailOverlays;if(jV)for(var op=g.n(jV),Bh=op.next();!Bh.done;Bh=op.next()){var xE=Bh.value.thumbnailOverlayTimeStatusRenderer;if(xE)if(xE.style==="LIVE"){Ml.isLivePlayback=!0;break}else if(xE.style==="UPCOMING"){Ml.isUpcoming=!0;break}}Ml.CE=qA(ZZ.thumbnail)}else if(HZ.endScreenPlaylistRenderer){var w5=HZ.endScreenPlaylistRenderer,lm=w5.navigationEndpoint; if(!lm)continue;var bX=g.e(lm,g.eW);if(!bX)continue;var rT=bX.videoId;Ml=new id(O.Y());Ml.playlistId=w5.playlistId;Ml.playlistLength=Number(w5.videoCount)||0;Ml.K=rT||null;Ml.videoId=rT;var hr=w5.title;hr&&(Ml.title=g.yb(hr));var Rz=w5.shortBylineText;Rz&&(Ml.author=g.yb(Rz));sz=lm.clickTrackingParams;Ml.CE=qA(w5.thumbnail)}Ml&&(sz&&(Ml.sessionData={itct:sz}),Jr.push(Ml))}O.suggestions=Jr}if(xY){O.N9=!!xY.preferImmediateRedirect;O.UR=O.UR||!!xY.webShowNewAutonavCountdown;O.Z_=O.Z_||!!xY.webShowBigThumbnailEndscreen; if(O.UR||O.Z_){var vh=k||null,fu=new Rx(O.Y());fu.videoId=xY.videoId;var Uz=xY.videoTitle;if(Uz){fu.title=g.yb(Uz);var Q7=Uz.accessibility;if(Q7){var Ph=Q7.accessibilityData;Ph&&Ph.label&&(fu.ariaLabel=Ph.label)}}var Y_=xY.byline;Y_&&(fu.author=g.yb(Y_));var Pn=xY.publishedTimeText;Pn&&(fu.publishedTimeText=g.yb(Pn));var yU=xY.shortViewCountText;yU&&(fu.shortViewCount=g.yb(yU));var qW=xY.thumbnailOverlays;if(qW)for(var wV=g.n(qW),MW=wV.next();!MW.done;MW=wV.next()){var i2=MW.value.thumbnailOverlayTimeStatusRenderer; if(i2)if(i2.style==="LIVE"){fu.isLivePlayback=!0;break}else if(i2.style==="UPCOMING"){fu.isUpcoming=!0;break}else if(i2.style==="DEFAULT"&&i2.text){fu.lengthText=g.yb(i2.text);var x2=i2.text.accessibility;if(x2){var AU=x2.accessibilityData;AU&&AU.label&&(fu.lj=AU.label||"")}break}}fu.CE=qA(xY.background);var LK=xY.nextButton;if(LK){var VJ=LK.buttonRenderer;if(VJ){var J4=VJ.navigationEndpoint;if(J4){var yI=g.e(J4,g.eW);yI&&(fu.Gm=yI)}}}if(xY.topBadges){var T5=xY.topBadges[0];if(T5){var yJ=g.e(T5,cJh); yJ&&yJ.style==="BADGE_STYLE_TYPE_PREMIUM"&&(fu.ZEN=!0)}}var ly=xY.alternativeTitle;ly&&(fu.B1=g.yb(ly));var rN={autonav:"1",playnext:String(X)};fu.playlistId&&(rN.autoplay="1");if(vh){var m7,nK,XW,$1,EG=(m7=vh.autoplay)==null?void 0:(nK=m7.autoplay)==null?void 0:(XW=nK.sets)==null?void 0:($1=XW[0])==null?void 0:$1.autoplayVideo;if(EG){var H8=EG.clickTrackingParams;H8&&(rN.itct=H8);var ji=g.e(EG,g.eW);ji&&(fu.Qf=ji)}}else if(xY){var C5,FX,N1,YK=(C5=xY.nextButton)==null?void 0:(FX=C5.buttonRenderer)== null?void 0:(N1=FX.navigationEndpoint)==null?void 0:N1.clickTrackingParams;YK&&(rN.itct=YK)}rN.itct||(rN.feature="related-auto");fu.Z5=rN;O.suggestions||(O.suggestions=[]);O.VD=fu}xY.countDownSecs!=null&&(O.PL=xY.countDownSecs*1E3);xY.countDownSecsForFullscreen!=null&&(O.TQ=xY.countDownSecsForFullscreen>=0?xY.countDownSecsForFullscreen*1E3:-1);O.L("web_autonav_color_transition")&&xY.watchToWatchTransitionRenderer&&(O.watchToWatchTransitionRenderer=g.e(xY.watchToWatchTransitionRenderer,si5))}var aa= XY1(O);if(aa){var x1,oV,OT,va=aa==null?void 0:(x1=aa[0])==null?void 0:(oV=x1.endScreenVideoRenderer)==null?void 0:(OT=oV.navigationEndpoint)==null?void 0:OT.clickTrackingParams,Wl=g.IT(O);va&&Wl&&(Wl.sessionData={itct:va})}O.fD.currentVideoThumbnail&&(O.CE=qA(O.fD.currentVideoThumbnail));var w2,M$,Un,ZS,z2,UL=(w2=O.fD)==null?void 0:(M$=w2.contents)==null?void 0:(Un=M$.twoColumnWatchNextResults)==null?void 0:(ZS=Un.results)==null?void 0:(z2=ZS.results)==null?void 0:z2.contents;if(UL&&UL[0]){var DN= UL[0].videoPrimaryInfoRenderer;DN&&DN&&DN.subtitle&&(O.gA=g.yb(DN.subtitle))}if(UL&&UL[1]){var AD,aw,r9,b7,cw=(AD=UL[1].videoSecondaryInfoRenderer)==null?void 0:(aw=AD.owner)==null?void 0:(r9=aw.videoOwnerRenderer)==null?void 0:(b7=r9.thumbnail)==null?void 0:b7.thumbnails;cw&&cw.length&&(O.profilePicture=cw[cw.length-1].url)}var a0=m2(V),pr,iH=(pr=O.getWatchNextResponse())==null?void 0:pr.onResponseReceivedEndpoints;if(iH)for(var lOH=g.n(iH),rY=lOH.next();!rY.done;rY=lOH.next()){var RX=rY.value;g.e(RX, YZ)&&(O.X9=g.e(RX,YZ));var M7=g.e(RX,TXH),mLY=void 0;if((mLY=M7)==null?0:mLY.entityKeys)O.Ip=M7.entityKeys||[],M7.visibleOnLoadKeys&&(O.visibleOnLoadKeys=M7.visibleOnLoadKeys)}if(O.L("web_key_moments_markers")){var Xpz=g.aT.getState().entities,Ead=g.Hq("visibility_override","markersVisibilityOverrideEntity");var fr=Ce(Xpz,"markersVisibilityOverrideEntity",Ead);O.Vz=(fr==null?void 0:fr.videoId)===(O.videoId||a0)&&(fr==null?0:fr.visibilityOverrideMarkersKey)?fr.visibilityOverrideMarkersKey:O.visibleOnLoadKeys; O.visibleOnLoadKeys=[].concat(g.q(O.Vz))}}}; lAn=function(O,V){if(V=V.raw_reel_item_watch_response)O.reelItemWatchResponse=V}; eb5=function(O){return!!O&&isFinite(O)&&O>1E9}; T9=function(O){var V;return((V=O.autoplaySwitchButtonRenderer)==null?void 0:V.enabled)!==void 0}; bb=function(O){return!!(O.U&&O.U.videoInfos&&O.U.videoInfos.length)}; g.vL=function(O){var V=O.S;O.L("html5_gapless_unlimit_format_selection")&&p7(O)&&(V=!1);var J=!!O.K&&O.K.Gy,y=O.WE,l=O.pg(),m=f7(O),H=O.O5,F=V,N=O.isOtf();V=O.z7();var x=O.iQ,W=O.getUserAudio51Preference(),U=hz(O),Z=oT(O),z=new c2V(y);if(y.Sq()||y.L("html5_logging_format_selection"))z.K=!0;z.nD=m;z.O5=H&&y.T;z.Vz=W;g.Qd("windows nt 5.1")&&!g.eU&&(z.yQ=!0);if(m=l)m=g.eN(y)?es7(y):!1;m&&(z.KD=!0);F&&(z.yQ=!0,z.wX=!0);N&&!y.L("html5_otf_prefer_vp9")&&(z.yQ=!0);y.playerStyle==="picasaweb"&&(N&&(z.yQ= !1),z.lw=!1);x&&(z.yQ=!0);lE(y.W,mW.CHANNELS)&&(y.L("html5_enable_ac3")&&(z.D=!0),y.L("html5_enable_eac3")&&(z.W=!0),y.L("html5_enable_ac3_gapless")&&(z.ol=!0));y.L("html5_block_8k_hfr")&&(z.TL=!0);z.V=g.Ry(y.experiments,"html5_max_selectable_quality_ordinal");z.S=g.Ry(y.experiments,"html5_min_selectable_quality_ordinal");AT&&(z.eq=480);if(J||l)z.lw=!1;z.eB=!1;z.disableAv1=U;J=NS(y,z.j,void 0,z.disableAv1);J>0&&J<2160&&(U4()||y.L("html5_format_hybridization"))&&(z.j.supportsChangeType=+U4(),z.FF= J);J>=2160&&(z.dW=!0);z.z7=V;z.E5=g.d9||S8()&&!V?!1:!0;z.T=y.L("html5_format_hybridization");z.Xs=y.L("html5_disable_encrypted_vp9_live_non_2k_4k");z.oB=Z;tO(O)&&(z.dX=!0);ty()&&O.playerResponse&&O.playerResponse.playerConfig&&O.playerResponse.playerConfig.webPlayerConfig&&O.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(z.D=!0,z.W=!0);O.S&&O.isAd()&&(O.dk&&(z.qX=O.dk),O.fP&&(z.U=O.fP));O.xb()&&(z.fD=g.Ry(O.WE.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts")); z.yz=O.isLivePlayback&&O.Ji()&&O.WE.L("html5_drm_live_audio_51");z.UR=O.Mx;z.yc=!tO(O);return O.zL=z}; IA1=function(O){var V,J,y,l;return(l=(V=O.playerResponse)==null?void 0:(J=V.playerConfig)==null?void 0:(y=J.compositeVideoConfig)==null?void 0:y.sourceConfigs)!=null?l:[]}; hz=function(O){return O.WE.L("html5_disable_av1")?!0:!1}; YMX=function(O){sB("drm_pb_s",void 0,O.qX);O.Zq||O.K&&D9(O.K);var V={};O.K&&(V=VXY(O.MU,g.vL(O),O.WE.W,O.K,function(J){return O.publish("ctmp","fmtflt",J)},!0,new Set)); V=new a2(V,O.WE,O.lc,O.useCobaltWidevine?ty()?w0(O):!1:!1,function(J,y){O.jB(J,y)}); g.t(O,V);O.NE=!1;O.loading=!0;IMY(V,function(J){sB("drm_pb_f",void 0,O.qX);for(var y=g.n(J),l=y.next();!l.done;l=y.next())switch(l=l.value,l.flavor){case "fairplay":l.Zq=O.Zq;l.AV=O.AV;l.OX=O.OX;break;case "widevine":l.qT=O.qT}O.J0=J;if(O.J0.length>0&&(O.W=O.J0[0],O.WE.Sq())){J={};y=g.n(Object.entries(O.W.K));for(l=y.next();!l.done;l=y.next()){var m=g.n(l.value);l=m.next().value;m=m.next().value;var H="unk";(l=l.match(/(.*)codecs="(.*)"/))&&(H=l[2]);J[H]=m}O.jB("drmProbe",J)}O.Jf()})}; aAo=function(O,V){if(V.length===0||Mu(O))return null;O.WE.W.j&&(jU=!0);var J=O.AL;var y=O.lengthSeconds,l=O.isLivePlayback,m=O.FR,H=O.WE,F=VyV(V);if(l||m){H=H.experiments;y=new iQ("",H,!0);y.j=!m;y.Gy=!0;y.isManifestless=!0;y.isLive=!m;y.FR=m;l=g.n(V);for(F=l.next();!F.done;F=l.next()){var N=F.value;F=PK(N,J);var x=Uo(1,N);x=S3(x.dR||N.url||"",x.jL,x.s);var W=x.get("id");W&&W.includes("%7E")&&(y.KD=!0);var U=void 0;W=(U=H)==null?void 0:U.Jv("html5_max_known_end_time_rebase");U=Number(N.targetDurationSec|| 5);N=Number(N.maxDvrDurationSec||14400);var Z=Number(x.get("mindsq")||x.get("min_sq")||"0"),z=Number(x.get("maxdsq")||x.get("max_sq")||"0")||Infinity;y.rD=y.rD||Z;y.j4=y.j4||z;var c=!O4(F.mimeType);x&&uQ(y,new hi(x,F,{M8:U,Mc:c,qs:N,rD:Z,j4:z,Qr:300,FR:m,IP:W}))}J=y}else if(F==="FORMAT_STREAM_TYPE_OTF"){y=y===void 0?0:y;m=new iQ("",H.experiments,!1);m.duration=y||0;H=g.n(V);for(y=H.next();!y.done;y=H.next())y=y.value,l=PK(y,J,m.duration),F=Uo(8,y),(F=S3(F.dR||y.url||"",F.jL,F.s))&&(l.streamType=== "FORMAT_STREAM_TYPE_OTF"?uQ(m,new oo(F,l,"sq/0")):uQ(m,new GQ(F,l,j3(y.initRange),j3(y.indexRange))));m.isOtf=!0;J=m}else{y=y===void 0?0:y;m=new iQ("",H.experiments,!1);m.duration=y||0;H=g.n(V);for(y=H.next();!y.done;y=H.next())x=y.value,y=PK(x,J,m.duration),l=j3(x.initRange),F=j3(x.indexRange),W=Uo(33,x),(x=S3(W.dR||x.url||"",W.jL,W.s))&&uQ(m,new GQ(x,y,l,F));J=m}V.length>0&&(V=V[0],cL(O)&&V.url&&(O.Wf=O.Wf||jiV(V.url)));V=O.isLivePlayback&&!O.FR&&!O.cX&&!O.isPremiere;O.L("html5_live_head_playable")&& (!L7(O)&&V&&O.jB("missingLiveHeadPlayable",{}),O.WE.KD==="yt"&&(J.LD=!0));return J}; b9Y=function(O){var V,J,y=((V=O.playerResponse)==null?void 0:(J=V.streamingData)==null?void 0:J.adaptiveFormats)||[];V=null;if(y.length>0)V=aAo(O,y);else if(!O.L("html5_deprecate_adaptive_formats_string")){O.jB("pafmtstr",{s:O.adaptiveFormats.substring(0,50)});if((y=O.adaptiveFormats)&&!Mu(O)){O.WE.W.j&&(jU=!0);y=n7(y);V=O.AL;var l=O.lengthSeconds,m=O.isLivePlayback;J=O.FR;var H=O.WE,F=Oxr(y);if(m||J){H=H==null?void 0:H.experiments;l=new iQ("",H,!0);l.Gy=!0;l.isManifestless=!0;l.j=!J;l.isLive=!J; l.FR=J;m=g.n(y);for(F=m.next();!F.done;F=m.next()){var N=F.value;F=k3(N,V);var x=S3(N.url,N.sp,N.s),W=x.get("id");W&&W.includes("%7E")&&(l.KD=!0);var U=void 0;W=(U=H)==null?void 0:U.Jv("html5_max_known_end_time_rebase");U=Number(N.target_duration_sec)||5;N=Number(N.max_dvr_duration_sec)||14400;var Z=Number(x.get("mindsq")||x.get("min_sq")||"0"),z=Number(x.get("maxdsq")||x.get("max_sq")||"0")||Infinity;l.rD=l.rD||Z;l.j4=l.j4||z;var c=!O4(F.mimeType);x&&uQ(l,new hi(x,F,{M8:U,Mc:c,qs:N,rD:Z,j4:z,Qr:300, FR:J,IP:W}))}V=l}else if(F==="FORMAT_STREAM_TYPE_OTF"){l=l===void 0?0:l;J=new iQ("",H==null?void 0:H.experiments,!1);J.duration=l||0;H=g.n(y);for(l=H.next();!l.done;l=H.next())if(x=l.value,l=k3(x,V,J.duration),m=S3(x.url,x.sp,x.s))l.streamType==="FORMAT_STREAM_TYPE_OTF"?uQ(J,new oo(m,l,"sq/0")):(F=$3(x.init),x=$3(x.index),uQ(J,new GQ(m,l,F,x)));J.isOtf=!0;V=J}else{l=l===void 0?0:l;J=new iQ("",H==null?void 0:H.experiments,!1);J.duration=l||0;H=g.n(y);for(l=H.next();!l.done;l=H.next())x=l.value,l=k3(x, V,J.duration),m=$3(x.init),F=$3(x.index),(x=S3(x.url,x.sp,x.s))&&uQ(J,new GQ(x,l,m,F));V=J}y.length>0&&(y=y[0],cL(O)&&y.url&&(O.Wf=O.Wf||jiV(y.url)));y=O.isLivePlayback&&!O.FR&&!O.cX&&!O.isPremiere;O.L("html5_live_head_playable")&&(!L7(O)&&y&&O.jB("missingLiveHeadPlayable",{}),O.WE.KD==="yt"&&(V.LD=!0))}else V=null;O.jB("pafmts",{isManifestFilled:!!V})}if(!V)return!1;Xd(O,V);return!0}; Mu=function(O){return ty()?!w0(O):Ay()?!(!O.Zq||!O.L("html5_enable_safari_fairplay")&&MS()):!1}; w0=function(O){return O.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.sy=function(O,V){V=g.n(V);for(var J=V.next();!J.done;J=V.next())if(J=J.value,J.cueRangeSetIdentifier){var y=void 0;O.CP.set(J.cueRangeSetIdentifier,(y=J.playerCueRanges)!=null?y:[])}}; Ey=function(O){return!(!O.K||!O.K.isManifestless)}; d0=function(O){return O.nD?O.isLowLatencyLiveStream&&O.K!=null&&JT(O.K)>=5:O.isLowLatencyLiveStream&&O.K!=void 0&&JT(O.K)>=5}; p_5=function(O){return ty()&&w0(O)?!1:Mu(O)&&(g.jS(O.WE)?!O.isLivePlayback:O.hlsvp)||!MS()||O.YJ?!0:!1}; hb7=function(O){O.loading=!0;O.wX=!1;if(fAn(O))g.Amn(O.videoId).then(function(y){var l;if((l=O.playerResponse)!=null&&l.streamingData){l=[];y=g.n(y);for(var m=y.next();!m.done;m=y.next())m=Object.assign({},m.value),m.signatureCipher="",l.push(m);l.length<2&&O.jB("offmlf",{len:l.length});l=aAo(O,l);f7(O)&&xNn(l,!1);Xd(O,l);O.jB("dlr",{})}else O.jB("offsdm",{cotn:O.Pl?O.Pl.cotn:"0",cpn:O.clientPlaybackNonce})}).then(function(){O.Jf()}); else{Wh(O.ev)||g.en(new g.pn("DASH MPD Origin invalid: ",O.ev));var V=O.ev,J=g.Ry(O.WE.experiments,"dash_manifest_version")||4;V=g.pp(V,{mpd_version:J});O.isLowLatencyLiveStream&&O.latencyClass!=="NORMAL"||(V=g.pp(V,{pacing:0}));CeV(V,O.WE.experiments,O.isLivePlayback).then(function(y){O.GL()||(Xd(O,y,!0),sB("mrc",void 0,O.qX),O.Jf())},function(y){O.GL()||(O.loading=!1,O.publish("dataloaderror",new g.DO("manifest.net.retryexhausted",{backend:"manifest", rc:y.status},1)))}); sB("mrs",void 0,O.qX)}}; oHh=function(O){var V;return!((V=O.WE.getWebPlayerContextConfig())==null||!V.enableProximaLowLatency)}; g0=function(O){if(!O.isProximaLatencyEligible)return 0;var V=Le();return oHh(O)?2:V===1?1:O.L("html5_enable_proxima")?2:0}; Xd=function(O,V,J){J=J===void 0?!1:J;O.gk=void 0;O.K=V;g.t(O,V);V.rD=O.rD;V.j4=O.j4;V.u_=O.u_;V.zX=O.zX;V.oN=O.oN;O.f1&&(V.qX=new k4(O.f1));(O.pg()||g.qu(O))&&O.nw.push("webgl");O.K.isLive||(O.isLivePlayback=!1);var y=V.sourceUrl.split("/");if(O.nD?y.indexOf("manifest_duration")!==-1:y.indexOf("manifest_duration")!=-1)O.yD=Number(y[y.indexOf("manifest_duration")+1]);if(V.j||V.isManifestless)V.subscribe("clienttemp",O.jB,O),J?V.subscribe("refresh",O.q$,O):V.subscribe("cuepointsadded",O.hF,O);D9(V)? O.NE=!0:ps=void 0;O.cX&&(V.S=O.cX,V.isLive=!0,O.isLivePlayback=!0);V.isPremiere=O.isPremiere;V.isLiveHeadPlayable=O.isLiveHeadPlayable}; vHr=function(O,V){var J=V||p_5(O)||O.isExternallyHostedPodcast;if(!O.K||J)return O.jB("skipDash",{dm:!!O.K,air:V,dd:O.YJ,mss:MS(),"3pp":O.isExternallyHostedPodcast}),fW();f7(O)&&xNn(O.K,O.isLivePlayback);return hy().then(function(){return yqU(O.MU,g.vL(O),O.WE.W,O.K,O.W,function(y){return O.publish("ctmp","fmtflt",y)},O.Hl,Q1(O)).then(function(y){O.tE(y); O.MU.j=null;/^av/.test(O.clientPlaybackNonce)&&O.zL&&O.jB("av1",O.zL.j)})})}; Ml1=function(O,V){if(V&&O.hlsvp)return fW();if(O.hlsFormats){if(V=n7(O.hlsFormats)){for(var J=[],y=g.n(V),l=y.next();!l.done;l=y.next()){l=l.value;l.url&&(l.url=JJU(l.url));var m=void 0;((m=O.zL)==null?0:m.K)&&J.push(l.itag)}var H;((H=O.zL)==null?0:H.K)&&J.length>0&&O.jB("hlsfmt",{itags:J.join(".")})}O.xr=d37(O.WE,V);O.xr&&w_H(O,O.xr);H=O.clientPlaybackNonce;var F,N,x,W;return K3V(O.WE,O.isAd(),V,(W=(F=O.playerResponse)==null?void 0:(N=F.captions)==null?void 0:(x=N.playerCaptionsRenderer)==null?void 0: x.baseUrl)!=null?W:null,O.r5,H,function(U){return O.publish("ctmp","hlsflt",U)}).then(function(U){for(var Z=0,z=[],c=g.n(U),Y=c.next();!Y.done;Y=c.next()){Y=Y.value; var b=void 0;z.push((b=Y.getInfo())==null?void 0:b.itag);var M=b=void 0;((b=Y.getInfo())==null?void 0:(M=b.audio)==null?void 0:M.numChannels)>Z&&(Z=Y.getInfo().audio.numChannels)}Z>2&&O.jB("hlschl",{mn:Z});var w;((w=O.zL)==null?0:w.K)&&O.jB("hlsfmtaf",{itags:z.join(".")});var L;if(O.L("html5_enable_vp9_fairplay")&&((L=O.W)==null?0:s_(L)))for(O.jB("drm",{sbdlfbk:1}),Z=g.n(O.J0),z=Z.next();!z.done;z=Z.next())if(z=z.value,cj(z)){O.W=z;break}G9(O,U)})}return fW()}; L6H=function(O){if(O.isExternallyHostedPodcast&&O.xj){var V=n7(O.xj);if(!V[0])return fW();O.jA=V[0];return AEl(O.WE,V[0]).then(function(J){G9(O,J)})}return O.qq&&O.uF?uGr(O.WE,O.isAd(),O.qq).then(function(J){G9(O,J)}):fW()}; X_d=function(O){if(O.isExternallyHostedPodcast)return fW();var V=n7(O.xj,O.Vd);if(O.hlsvp){var J=VlV(O.hlsvp,O.clientPlaybackNonce,O.r5);V.push(J)}return tx7(O.WE,O.isAd(),V,nHX(O)).then(function(y){G9(O,y)})}; G9=function(O,V){O.eB=V;O.tE(new RY(g.Ia(O.eB,function(J){return J.getInfo()})))}; nHX=function(O){var V={cpn:O.clientPlaybackNonce,c:O.WE.K.c,cver:O.WE.K.cver};O.tS&&(V.ptk=O.tS,V.oid=O.ZE,V.ptchn=O.PV,V.pltype=O.b8,O.qM&&(V.m=O.qM));return V}; g.K7=function(O){return Mu(O)&&O.Zq?(O={},O.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",O):O.j&&O.j.AL||null}; EH1=function(O){var V=tz(O);return V&&V.text?g.yb(V.text):O.paidContentOverlayText}; dPX=function(O){var V=tz(O);return V&&V.durationMs?Ka(V.durationMs):O.paidContentOverlayDurationMs}; tz=function(O){var V,J,y;return O.playerResponse&&O.playerResponse.paidContentOverlay&&O.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.e((V=O.fD)==null?void 0:(J=V.playerOverlays)==null?void 0:(y=J.playerOverlayRenderer)==null?void 0:y.playerDisclosure,gHn)||null}; qMH=function(O){if(!O)return null;O=g.n(O);for(var V=O.next();!V.done;V=O.next()){var J=void 0,y=void 0;if(V=(J=V.value.adPlacementRenderer)==null?void 0:(y=J.renderer)==null?void 0:y.videoAdTrackingRenderer)return V}return null}; ub=function(O){var V="";if(O.Cg)return O.Cg;O.isLivePlayback&&(V=O.allowLiveDvr?"dvr":O.isPremiere?"lp":O.cX?"window":"live");O.FR&&(V="post");return V}; g.Az=function(O,V){return typeof O.keywords[V]!=="string"?null:O.keywords[V]}; QiY=function(O){return!!O.AE||!!O.LG||!!O.Oi||!!O.SK||O.RU}; g.r0=function(O){return!!(O.ev||O.xj||O.qq||O.hlsvp||O.EP())}; Uy=function(O){if(O.L("html5_onesie")&&O.errorCode)return!1;var V=g.Kd(O.nw,"ypc");O.ypcPreview&&(V=!1);return O.wN()&&!O.loading&&(g.r0(O)||g.Kd(O.nw,"heartbeat")||V)}; n7=function(O,V){O=kC(O);var J={};if(V){V=g.n(V.split(","));for(var y=V.next();!y.done;y=V.next())(y=y.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(J[y[1]]={width:y[2],height:y[3]})}V=g.n(O);for(y=V.next();!y.done;y=V.next()){y=y.value;var l=J[y.itag];l&&(y.width=l.width,y.height=l.height)}return O}; xPY=function(O,V){O.showShareButton=!!V;var J,y,l=((J=g.e(V,tE))==null?void 0:J.navigationEndpoint)||((y=g.e(V,tE))==null?void 0:y.command);l&&(O.lM=!!g.e(l,GIp))}; yJd=function(O,V){var J=V.raw_embedded_player_response;if(!J){var y=V.embedded_player_response;y&&(J=JSON.parse(y))}J&&(O.VO=J);if(O.VO){O.embeddedPlayerConfig=O.VO.embeddedPlayerConfig||null;if(J=O.VO.videoFlags)J.playableInEmbed&&(O.allowEmbed=!0),J.isPrivate&&(O.isPrivate=!0),J.userDisplayName&&(V.user_display_name=J.userDisplayName),J.userDisplayImage&&(V.user_display_image=J.userDisplayImage);if((J=O.VO.embedPreview)&&J.thumbnailPreviewRenderer){J=J.thumbnailPreviewRenderer;cmr(O,J.controlBgHtml); if(y=J.defaultThumbnail)O.CE=qA(y);O.L("embeds_web_enable_search_button")&&J.searchButton&&(y=g.e(J.searchButton,tE))&&(O.rP=g.e(y.navigationEndpoint,g.ib));(y=g.e(J==null?void 0:J.videoDetails,K61))&&zb5(O,V,y);y=g.e(J==null?void 0:J.videoDetails,tlU);O.WB=!!J.addToWatchLaterButton;xPY(O,J.shareButton);if(y==null?0:y.musicVideoType)O.musicVideoType=y.musicVideoType;var l,m,H,F,N;if(y=g.e((l=O.getEmbeddedPlayerResponse())==null?void 0:(m=l.embedPreview)==null?void 0:(H=m.thumbnailPreviewRenderer)== null?void 0:(F=H.playButton)==null?void 0:(N=F.buttonRenderer)==null?void 0:N.navigationEndpoint,g.eW))PfY(O,y),O.videoId=y.videoId||O.videoId;J.videoDurationSeconds&&(O.lengthSeconds=Ka(J.videoDurationSeconds));J.webPlayerActionsPorting&&znn(O,J.webPlayerActionsPorting);if(l=g.e(J==null?void 0:J.playlist,uLY)){O.zb=!0;m=[];H=Number(l.currentIndex);if(l.contents)for(F=0,N=l.contents.length;F0:O.aB?!1:O.WE.YI||O.WE.MU||!g.R2(O.WE)?!0:!1:(O.aB?0:O.eq)&&g.R2(O.WE)?!0:!1;O.L("html5_log_detailpage_autoplay")&&y_(O)==="detailpage"&&O.jB("autoplay_info",{autoplay:O.ZI,autonav:O.isAutonav,wasDompaused:O.aB,result:V});return V}; g.He=function(O){return O.oauthToken||O.WE.J0}; Oel=function(O){if(O.L("html5_stateful_audio_normalization")){var V=1,J=g.Ry(O.WE.experiments,"html5_default_ad_gain");J&&O.isAd()&&(V=J);var y,l;J=(l=(y=O.D)==null?void 0:y.audio.D)!=null?l:O.B$;if(J==null||isNaN(J))O=DPU(O);else{y=(0,g.cH)();O.TM=1;l=y-O.WE.gk<=O.maxStatefulTimeThresholdSec*1E3;O.applyStatefulNormalization&&l?O.TM=2:l||(O.WE.VD=Infinity,O.WE.gk=NaN);l=(O.TM===2?g.BZ(O.WE.VD,O.minimumLoudnessTargetLkfs,O.loudnessTargetLkfs):O.loudnessTargetLkfs)-J;if(O.TM!==2){var m,H,F,N,x=((m= O.playerResponse)==null?void 0:(H=m.playerConfig)==null?void 0:(F=H.audioConfig)==null?void 0:(N=F.loudnessNormalizationConfig)==null?void 0:N.statelessLoudnessAdjustmentGain)||0;l+=x}l=Math.min(l,0);O.preserveStatefulLoudnessTarget&&(O.WE.VD=J+l,O.WE.gk=y);O=Math.min(1,Math.pow(10,l/20))||V}}else O=DPU(O);return O}; DPU=function(O){var V=1,J=g.Ry(O.WE.experiments,"html5_default_ad_gain");J&&O.isAd()&&(V=J);var y,l;J=((y=O.D)==null?void 0:y.audio.U)!=null?(l=O.D)==null?void 0:l.audio.U:O.ze;isNaN(J)||(O.TM=4);return Math.min(1,Math.pow(10,-J/20))||V}; f7=function(O){var V=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],J=fs(O.WE)==="TVHTML5_SIMPLY"&&O.WE.K.ctheme==="MUSIC";!O.St&&(g.pJ(O.WE)||g.cJ(O.WE)||J)&&(V.includes(O.musicVideoType)||O.isExternallyHostedPodcast)&&(O.St=!0);if(V=g.KW())V=/Starboard\/([0-9]+)/.exec(g.Pt()),V=(V?parseInt(V[1],10):NaN)<10;J=O.WE;J=(fs(J)==="TVHTML5_CAST"||fs(J)==="TVHTML5"&&(J.K.cver.startsWith("6.20130725")||J.K.cver.startsWith("6.20130726")))&&O.WE.K.ctheme==="MUSIC";var y;if(y=!O.St)J||(J= O.WE,J=fs(J)==="TVHTML5"&&J.K.cver.startsWith("7")),y=J;y&&!V&&(V=O.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",J=(O.L("cast_prefer_audio_only_for_atv_and_uploads")||O.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&O.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",V||J||O.isExternallyHostedPodcast)&&(O.St=!0);return O.WE.deviceIsAudioOnly||O.St&&O.WE.T}; oT=function(O){var V,J,y;return((V=O.playerResponse)==null?void 0:(J=V.playerConfig)==null?void 0:(y=J.compositeVideoConfig)==null?void 0:y.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; Vko=function(O){var V,J,y,l=(V=O.playerResponse)==null?void 0:(J=V.playerConfig)==null?void 0:(y=J.compositeVideoConfig)==null?void 0:y.sourceConfigs,m,H,F;O=(m=O.playerResponse)==null?void 0:(H=m.playerConfig)==null?void 0:(F=H.compositeVideoConfig)==null?void 0:F.defaultActiveSourceVideoId;if(!l||!l.length)return"";O||(O=l[0].videoId||"");l=g.n(l);for(m=l.next();!m.done;m=l.next())if(m=m.value,m.videoId===O&&m.audioTracks)for(m=g.n(m.audioTracks),H=m.next();!H.done;H=m.next())if(H=H.value,H.isDefaultForSource)return H.id|| "";return""}; g.Jh5=function(O){return O.Gy()&&tO(O)}; ju=function(O){var V,J,y;return!!((V=O.playerResponse)==null?0:(J=V.playerConfig)==null?0:(y=J.mediaCommonConfig)==null?0:y.splitScreenEligible)}; Cj=function(O){var V;return!((V=O.playerResponse)==null||!V.compositePlayabilityStatus)}; yhr=function(O){return isNaN(O)?0:Math.max((Date.now()-O)/1E3-30,0)}; Fb=function(O){return!(!O.wk||!O.WE.T)&&O.EP()}; N7=function(O){return O.hA&&O.enableServerStitchedDai}; l9l=function(O){return O.o0&&!O.f1}; tO=function(O){var V=O.L("html5_enable_sabr_on_drive")&&O.WE.KD==="gd";if(O.Jw)return O.o0&&O.jB("fds",{fds:!0},!0),!1;if(O.WE.KD!=="yt"&&!V)return O.o0&&O.jB("dsvn",{ns:O.WE.KD},!0),!1;if(O.cotn||!O.K||O.K.isOtf&&!O.L("html5_enable_sabr_otf_in_client")||O.U&&!O.U.K||O.Ct&&!O.L("html5_enable_sabr_csdai"))return!1;if(O.L("html5_use_sabr_requests_for_debugging"))return!0;O.o0&&O.jB("esfw",{usbc:O.o0,hsu:!!O.f1},!0);if(O.o0&&O.f1)return!0;if(O.L("html5_remove_client_sabr_determination"))return!1;var J= !O.K.Gy&&!O.Ji();V=J&&xD&&O.L("html5_enable_sabr_vod_streaming_xhr");J=J&&!xD&&O.L("html5_enable_sabr_vod_non_streaming_xhr");var y=We(O),l=O.L("html5_enable_sabr_drm_vod_streaming_xhr")&&xD&&O.Ji()&&!O.K.Gy&&(O.drmProduct==="1"?!1:!0);(V=V||J||y||l)&&!O.f1&&O.jB("sabr",{loc:"m"},!0);return V&&!!O.f1}; We=function(O){var V;if(!(V=xD&&O.Gy()&&O.Ji()&&(O.drmProduct==="1"?!1:!0)&&O.L("html5_sabr_live_drm_streaming_xhr"))){V=O.Gy()&&!O.Ji()&&xD;var J=O.Gy()&&O.latencyClass!=="ULTRALOW"&&!O.isLowLatencyLiveStream&&O.L("html5_sabr_live_normal_latency_streaming_xhr"),y=O.isLowLatencyLiveStream&&O.L("html5_sabr_live_low_latency_streaming_xhr"),l=O.latencyClass==="ULTRALOW"&&O.L("html5_sabr_live_ultra_low_latency_streaming_xhr");V=V&&(J||y||l)}J=V;V=O.enableServerStitchedDai&&J&&O.L("html5_enable_sabr_ssdai_streaming_xhr"); J=!O.enableServerStitchedDai&&J;y=O.Gy()&&!xD&&O.L("html5_enable_sabr_live_non_streaming_xhr");O=xD&&(O.Yr()||ju(O)&&O.L("html5_enable_sabr_for_lifa_eligible_streams"));return V||J||y||O}; Q1=function(O){var V=O.L("html5_enable_server_format_filter")&&!O.Ji(),J=O.L("html5_enable_server_format_filter_for_drm")&&O.Ji();return tO(O)&&(V||J)}; fAn=function(O){var V;if(V=!!O.cotn)V=O.videoId,V=!!V&&g.DG(V)===1;return V&&!O.wk}; g.UJ=function(O){if(!O.K||!O.j||!O.D)return!1;var V=O.K.K,J=!!V[O.j.id]&&Ip(19,V[O.j.id].uh.K);V=!!V[O.D.id]&&Ip(43,V[O.D.id].uh.K);return(O.j.itag==="0"||J)&&V}; Zk=function(O){return O.QD?["OK","LIVE_STREAM_OFFLINE"].includes(O.QD.status):!0}; AJr=function(O){return(O=O.z2)&&O.showError?O.showError:!1}; zc=function(O,V){return O.L(V)?!0:(O.fflags||"").includes(V+"=true")}; H9p=function(O,V){V.inlineMetricEnabled&&(O.inlineMetricEnabled=!0);V.playback_progress_0s_url&&(O.SK=new ds7(V));if(V=V.video_masthead_ad_quartile_urls)O.LG=V.quartile_0_url,O.lH=V.quartile_25_url,O.Rn=V.quartile_50_url,O.UD=V.quartile_75_url,O.hd=V.quartile_100_url,O.Oi=V.quartile_0_urls,O.xO=V.quartile_25_urls,O.y4=V.quartile_50_urls,O.cA=V.quartile_75_urls,O.LW=V.quartile_100_urls}; hnV=function(O){var V={};O=g.n(O);for(var J=O.next();!J.done;J=O.next()){J=J.value;var y=J.split("=");y.length===2?V[y[0]]=y[1]:V[J]=!0}return V}; j6X=function(O){if(O){if(umn(O))return O;O=VV1(O);if(umn(O,!0))return O}return""}; g.miU=function(O){return O.captionsLanguagePreference||O.WE.captionsLanguagePreference||g.Az(O,"yt:cc_default_lang")||O.WE.MI}; ce=function(O){return!(!O.isLivePlayback||!O.hasProgressBarBoundaries())}; g.IT=function(O){var V;return O.VD||((V=O.suggestions)==null?void 0:V[0])||null}; $iX=function(O,V){return V!=null?O$(O.S,V):O.S?O.S:O.WE.preferGapless&&O.WE.supportsGaplessShorts()}; g.sJ=function(O){var V,J;return!!((V=O.embeddedPlayerConfig)==null?0:(J=V.embeddedPlayerFlags)==null?0:J.enableMusicUx)}; HeV=function(O){return O.S||O.L("web_player_media_session_infinity")&&O.isLivePlayback}; Tc=function(O){return O.WE.D&&O.isPrivate}; jYU=function(O){var V,J;return((V=O.playerResponse)==null?0:(J=V.playerConfig)==null?0:J.daiConfig)?O.Aa?1:O.GT?2:0:3}; g.I9=function(O){var V=O.Y(),J=g.eu(V),y=V.OE;g.Oj(V)&&(y&&(J.thirdParty=Object.assign({},J.thirdParty,{embedUrl:y})),AYX(J,O));if(y=O.KD)J.clickTracking={clickTrackingParams:y};else if(g.Oj(O.Y())&&g.ts("EVENT_ID"))J.clickTracking={clickTrackingParams:g.ts("EVENT_ID")};else if(V.L("html5_log_missing_itct")){var l;y=new g.pn("Missing ITCT in InnerTubeContext",{isAd:O.isAd(),dxX:(l=V.getWebPlayerContextConfig())==null?void 0:l.contextId});g.sk(y)}l=J.client||{};y="EMBED";var m=y_(O);m==="leanback"? y="WATCH":V.L("gvi_channel_client_screen")&&m==="profilepage"?y="CHANNEL":O.iQ?y="LIVE_MONITOR":m==="detailpage"?y="WATCH_FULL_SCREEN":m==="adunit"?y="ADUNIT":m==="sponsorshipsoffer"&&(y="UNKNOWN");l.clientScreen=y;if(y=O.kidsAppInfo)l.kidsAppInfo=JSON.parse(y);(m=O.CI)&&!y&&(l.kidsAppInfo={contentSettings:{ageUpMode:CVh[m]}});if(y=O.cI)l.unpluggedAppInfo={enableFilterMode:!0};(m=O.unpluggedFilterModeType)&&!y&&(l.unpluggedAppInfo={filterModeType:FHo[m]});if(y=O.Xs)l.unpluggedLocationInfo=y;J.client= l;l=J.request||{};O.zK&&(l.isPrefetch=!0);if(y=O.mdxEnvironment)l.mdxEnvironment=y;if(y=O.mdxControlMode)l.mdxControlMode=Nl1[y];J.request=l;l=J.user||{};if(y=O.lw)l.credentialTransferTokens=[{token:y,scope:"VIDEO"}];if(y=O.TL)l.delegatePurchases={oauthToken:y},l.kidsParent={oauthToken:y};var H;if(V=(H=V.getWebPlayerContextConfig())==null?void 0:H.userContentRating)l.serializedUserContentRating=V;J.user=l;if(H=O.contextParams)J.activePlayers=[{playerContextParams:H}];if(O=O.clientScreenNonce)J.clientScreenNonce= O;return J}; g.eu=function(O){var V=g.GE(),J=V.client||{};if(O.forcedExperiments){var y=O.forcedExperiments.split(","),l=[];y=g.n(y);for(var m=y.next();!m.done;m=y.next())l.push(Number(m.value));J.experimentIds=l}if(l=O.homeGroupInfo)J.homeGroupInfo=JSON.parse(l);if(l=O.getPlayerType())J.playerType=l;if(l=O.K.ctheme)J.theme=l;if(l=O.livingRoomAppMode)J.tvAppInfo=Object.assign({},J.tvAppInfo,{livingRoomAppMode:l});l=O.deviceYear;O.L("html5_propagate_device_year")&&l&&(J.tvAppInfo=Object.assign({},J.tvAppInfo,{deviceYear:l})); if(l=O.livingRoomPoTokenId)J.tvAppInfo=Object.assign({},J.tvAppInfo,{livingRoomPoTokenId:l});V.client=J;l=V.user||{};O.enableSafetyMode&&(l=Object.assign({},l,{enableSafetyMode:!0}));var H;((H=J.tvAppInfo)==null?0:H.usePageidAsHeader)||!O.pageId||(l=Object.assign({},l,{onBehalfOfUser:O.pageId}));V.user=l;return V}; chr=function(O,V,J){var y=O.videoId,l=g.I9(O),m=O.Y(),H={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(C2()),referer:document.location.toString(),signatureTimestamp:20480},F=g.E$();O.isAutonav&&(H.autonav=!0);F.s5(141)&&(H.autonavState=F.s5(140)?"STATE_OFF":"STATE_ON");H.autoCaptionsDefaultOn=F.s5(66);SMd(O)&&(H.autoplay=!0);m.T&&O.cycToken&&(H.cycToken=O.cycToken);m.enablePrivacyFilter&&(H.enablePrivacyFilter=!0);O.isFling&&(H.fling=!0);var N=O.forceAdsUrl;if(N){F={};var x=[];N=N.split(","); N=g.n(N);for(var W=N.next();!W.done;W=N.next()){W=W.value;var U=W.split("|");U.length!==3||W.includes("=")||(U[0]="breaktype="+U[0],U[1]="offset="+U[1],U[2]="url="+U[2]);W={adtype:"video_ad"};U=g.n(U);for(var Z=U.next();!Z.done;Z=U.next()){var z=g.n(Z.value.split("="));Z=z.next().value;z=LdX(z);W[Z]=z.join("=")}U=W.url;Z=W.presetad;z=W.viralresponseurl;var c=Number(W.campaignid),Y=W.bibliotecaadid;if(W.adtype==="in_display_ad")U&&(F.url=U),Z&&(F.presetAd=Z),z&&(F.viralAdResponseUrl=z),c&&(F.viralCampaignId= String(c)),Y&&(F.bibliotecaAdId=Y);else if(W.adtype==="video_ad"){var b={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(W.offset)||0)}};if(W=xiH[W.breaktype])b.breakType=W;U&&(b.url=U);Z&&(b.presetAd=Z);z&&(b.viralAdResponseUrl=z);c&&(b.viralCampaignId=String(c));Y&&(b.bibliotecaAdId=Y);x.push(b)}}H.forceAdParameters={videoAds:x,inDisplayAd:F}}O.isInlinePlaybackNoAd&&(H.isInlinePlaybackNoAd=!0);O.isLivingRoomDeeplink&&(H.isLivingRoomDeeplink=!0);F=O.bU;if(F!=null){F={startWalltime:String(F)}; if(x=O.yD)F.manifestDuration=String(x||14400);H.liveContext=F}if(O.mutedAutoplay){H.mutedAutoplay=!0;F=m.getWebPlayerContextConfig();var M,w;(F==null?0:(M=F.embedsHostFlags)==null?0:M.allowMutedAutoplayDurationMode)&&(F==null?0:(w=F.embedsHostFlags)==null?0:w.allowMutedAutoplayDurationMode.includes(WHd[O.mutedAutoplayDurationMode]))&&(H.mutedAutoplayDurationMode=WHd[O.mutedAutoplayDurationMode])}if(O.aB?0:O.eq)H.splay=!0;M=O.vnd;M===5&&(H.vnd=M);M={};if(w=O.isMdxPlayback)M.triggeredByMdx=w;if(w=O.rR)M.skippableAdsSupported= w.split(",").includes("ska");if(x=O.yI){w=O.xJ;F=[];x=g.n(rY5(x));for(N=x.next();!N.done;N=x.next()){N=N.value;W=N.platform;N={applicationState:N.oo?"INACTIVE":"ACTIVE",clientFormFactor:Uio[W]||"UNKNOWN_FORM_FACTOR",clientName:Rt1[N.W9]||"UNKNOWN_INTERFACE",clientVersion:N.deviceVersion||"",platform:Zeo[W]||"UNKNOWN_PLATFORM"};W={};if(w){U=void 0;try{U=JSON.parse(w)}catch(X){g.en(X)}U&&(W={params:[{key:"ms",value:U.ms}]},U.advertising_id&&(W.advertisingId=U.advertising_id),U.limit_ad_tracking!==void 0&& U.limit_ad_tracking!==null&&(W.limitAdTracking=U.limit_ad_tracking),N.osName=U.os_name,N.userAgent=U.user_agent,N.windowHeightPoints=U.window_height_points,N.windowWidthPoints=U.window_width_points)}F.push({adSignalsInfo:W,remoteClient:N})}M.remoteContexts=F}w=O.sourceContainerPlaylistId;F=O.serializedMdxMetadata;if(w||F)x={},w&&(x.mdxPlaybackContainerInfo={sourceContainerPlaylistId:w}),F&&(x.serializedMdxMetadata=F),M.mdxPlaybackSourceContext=x;H.mdxContext=M;M=V.width;M>0&&(H.playerWidthPixels= Math.round(M));if(V=V.height)H.playerHeightPixels=Math.round(V);J!==0&&(H.vis=J);if(J=m.widgetReferrer)H.widgetReferrer=J.substring(0,128);g.R2(m)&&H&&(H.ancestorOrigins=m.ancestorOrigins);O.defaultActiveSourceVideoId&&(H.compositeVideoContext={defaultActiveSourceVideoId:O.defaultActiveSourceVideoId});if(m=m.getWebPlayerContextConfig())H.encryptedHostFlags=m.encryptedHostFlags;y={videoId:y,context:l,playbackContext:{contentPlaybackContext:H}};if(O.t0){var L;y.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:(L=O.t0)==null?void 0:L.reloadPlaybackParams}}O.contentCheckOk&&(y.contentCheckOk=!0);if(L=O.clientPlaybackNonce)y.cpn=L;if(L=O.playerParams)y.params=L;if(L=O.playlistId)y.playlistId=L;O.racyCheckOk&&(y.racyCheckOk=!0);L=O.Y();l=L.embedConfig;O.LP&&L.L("embeds_enable_per_video_embed_config")?y.serializedThirdPartyEmbedConfig=O.LP:l&&(y.serializedThirdPartyEmbedConfig=l);y.captionParams={};l=g.E$().s5(65);O.deviceCaptionsOn!=null?y.captionParams.deviceCaptionsOn=O.deviceCaptionsOn: g.ZG(L)&&(y.captionParams.deviceCaptionsOn=l!=null?!l:!1);O.HL&&(y.captionParams.deviceCaptionsLangPref=O.HL);O.YF.length?y.captionParams.viewerSelectedCaptionLangs=O.YF:g.ZG(L)&&(l=g.EC(),l==null?0:l.length)&&(y.captionParams.viewerSelectedCaptionLangs=l);l=O.fetchType==="onesie"&&O.L("html5_onesie_attach_po_token");H=O.fetchType!=="onesie"&&O.L("html5_non_onesie_attach_po_token");if(l||H)l=O.Y(),l.bl&&(y.serviceIntegrityDimensions={},y.serviceIntegrityDimensions.poToken=l.bl);L.L("fetch_att_independently")&& (y.attestationRequest={omitBotguardData:!0});y.playbackContext||(y.playbackContext={});y.playbackContext.devicePlaybackCapabilities=zJr(O);y.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&O.jB("noVp9",{});return y}; zJr=function(O){var V=!(O==null?0:O.z7())&&(O==null?void 0:O.Gy())&&S8(),J;if(!(J=O==null)){J=g.vL(O);O=O.Y().W;var y=fT("243");J=!(y&&Sk(J,y,O,!0)===!0)}return{supportsVp9Encoding:!(J||V),supportXhr:xD}}; Tlr=function(O,V){var J,y,l;return g.Q(function(m){if(m.j==1)return J={context:g.eu(O.Y()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:O.videoId,cpn:O.clientPlaybackNonce}}]},y=g.u1(sYV),m.K(g.fU(V,J,y),2);l=m.U;return m.return(l)})}; eJ1=function(O,V,J){var y=g.Ry(V.experiments,"bg_vm_reinit_threshold");(!oY||(0,g.cH)()-oY>y)&&Tlr(O,J).then(function(l){l&&(l=l.botguardData)&&g.wl(l,V)},function(l){O.GL()||(l=Vj(l),O.jB("attf",l.details))})}; YD=function(O,V){g.K.call(this);this.app=O;this.state=V}; bJ=function(O,V,J){O.state.K.hasOwnProperty(V)||a9(O,V,J);O.state.V[V]=function(){return J.apply(O,g.jF.apply(0,arguments))}; O.state.T.add(V)}; pj=function(O,V,J){O.state.K.hasOwnProperty(V)||a9(O,V,J);O.app.Y().T&&(O.state.S[V]=function(){return J.apply(O,g.jF.apply(0,arguments))},O.state.T.add(V))}; a9=function(O,V,J){O.state.K[V]=function(){return J.apply(O,g.jF.apply(0,arguments))}}; g.fj=function(O,V,J){return O.state.K[V].apply(O.state.K,g.q(J))}; h1=function(){g.Th.call(this);this.W=new Map}; o9=function(){g.K.apply(this,arguments);this.element=null;this.T=new Set;this.V={};this.S={};this.K={};this.qX=new Set;this.U=new h1;this.j=new h1;this.D=new h1;this.W=new h1}; I9Y=function(O,V,J){typeof O==="string"&&(O={mediaContentUrl:O,startSeconds:V,suggestedQuality:J});a:{if((V=O.mediaContentUrl)&&(V=/\/([ve]|embed)\/([^#?]+)/.exec(V))&&V[2]){V=V[2];break a}V=null}O.videoId=V;return ve(O)}; ve=function(O,V,J){if(typeof O==="string")return{videoId:O,startSeconds:V,suggestedQuality:J};V={};J=g.n(YCo);for(var y=J.next();!y.done;y=J.next())y=y.value,O[y]&&(V[y]=O[y]);if(O=O.embedConfig||O.embed_config)if(typeof O==="string")V.embed_config=O;else if(g.YE(O))try{var l=JSON.stringify(O);V.embed_config=l}catch(m){console.error("Invalid embedConfig JSON",m)}return V}; a95=function(O,V,J,y){if(g.YE(O)&&!Array.isArray(O)){V="playlist list listType index startSeconds suggestedQuality".split(" ");J={};for(y=0;y32&&y.push("hfr");V.isHdr()&&y.push("hdr");V.primaries==="bt2020"&&y.push("wcg");J.video_quality_features=y}}if(O=O.getPlaylistId())J.list=O;return J}; dA=function(){wA.apply(this,arguments)}; gA=function(O,V){var J={};if(O.app.Y().lw){O=g.n(hJn);for(var y=O.next();!y.done;y=O.next())y=y.value,V.hasOwnProperty(y)&&(J[y]=V[y]);if(V=J.qoe_cat)O="",typeof V==="string"&&V.length>0&&(O=V.split(",").filter(function(l){return oy1.includes(l)}).join(",")),J.qoe_cat=O; vyH(J)}else for(O=g.n(wqX),y=O.next();!y.done;y=O.next())y=y.value,V.hasOwnProperty(y)&&(J[y]=V[y]);return J}; vyH=function(O){var V=O.raw_player_response;if(!V){var J=O.player_response;J&&(V=JSON.parse(J))}delete O.player_response;delete O.raw_player_response;if(V){O.raw_player_response={streamingData:V.streamingData,playerConfig:V.playerConfig};var y;if((y=V.playbackTracking)==null?0:y.qoeUrl)O.raw_player_response=Object.assign({},O.raw_player_response,{playbackTracking:{qoeUrl:V.playbackTracking.qoeUrl}});V.videoDetails&&(V.videoDetails.videoId||V.videoDetails.lengthSeconds)&&(J={},V.videoDetails.videoId&& (J.videoId=V.videoDetails.videoId),V.videoDetails.lengthSeconds&&(J.lengthSeconds=V.videoDetails.lengthSeconds),O.raw_player_response=Object.assign({},O.raw_player_response,{videoDetails:J}))}}; LH5=function(O){var V=V===void 0?5:V;return O?MkH[O]||V:V}; g.q7=function(){dA.apply(this,arguments)}; nyo=function(O){a9(O,"getInternalApiInterface",O.getInternalApiInterface);a9(O,"getTrustedApi",O.getTrustedApi);a9(O,"addEventListener",O.kB);a9(O,"removeEventListener",O.hcL);a9(O,"cueVideoByPlayerVars",O.OL);a9(O,"loadVideoByPlayerVars",O.AxB);a9(O,"preloadVideoByPlayerVars",O.Ckw);a9(O,"getAdState",O.getAdState);a9(O,"sendAbandonmentPing",O.sendAbandonmentPing);a9(O,"setLoopRange",O.setLoopRange);a9(O,"getLoopRange",O.getLoopRange);a9(O,"setAutonavState",O.setAutonavState);a9(O,"seekTo",O.rOj); a9(O,"seekBy",O.OEW);a9(O,"seekToLiveHead",O.seekToLiveHead);a9(O,"requestSeekToWallTimeSeconds",O.requestSeekToWallTimeSeconds);a9(O,"seekToStreamTime",O.seekToStreamTime);a9(O,"prefetchKeyPlay",O.prefetchKeyPlay);a9(O,"startSeekCsiAction",O.startSeekCsiAction);a9(O,"getStreamTimeOffset",O.getStreamTimeOffset);a9(O,"isOrchestrationLeader",O.isOrchestrationLeader);a9(O,"getVideoData",O.sS);a9(O,"setInlinePreview",O.setInlinePreview);a9(O,"getAppState",O.getAppState);a9(O,"updateLastActiveTime",O.updateLastActiveTime); a9(O,"setBlackout",O.setBlackout);a9(O,"setUserEngagement",O.setUserEngagement);a9(O,"updateSubtitlesUserSettings",O.updateSubtitlesUserSettings);a9(O,"getPresentingPlayerType",O.cF);a9(O,"canPlayType",O.canPlayType);a9(O,"updatePlaylist",O.updatePlaylist);a9(O,"updateVideoData",O.updateVideoData);a9(O,"updateEnvironmentData",O.updateEnvironmentData);a9(O,"sendVideoStatsEngageEvent",O.k25);a9(O,"productsInVideoVisibilityUpdated",O.productsInVideoVisibilityUpdated);a9(O,"setSafetyMode",O.setSafetyMode); a9(O,"isAtLiveHead",function(V){return O.isAtLiveHead(void 0,V)}); a9(O,"getVideoAspectRatio",O.getVideoAspectRatio);a9(O,"getPreferredQuality",O.getPreferredQuality);a9(O,"getPlaybackQualityLabel",O.getPlaybackQualityLabel);a9(O,"setPlaybackQualityRange",O.IsW);a9(O,"onAdUxClicked",O.onAdUxClicked);a9(O,"getFeedbackProductData",O.getFeedbackProductData);a9(O,"getStoryboardFrame",O.getStoryboardFrame);a9(O,"getStoryboardFrameIndex",O.getStoryboardFrameIndex);a9(O,"getStoryboardLevel",O.getStoryboardLevel);a9(O,"getNumberOfStoryboardLevels",O.getNumberOfStoryboardLevels); a9(O,"getCaptionWindowContainerId",O.getCaptionWindowContainerId);a9(O,"getAvailableQualityLabels",O.getAvailableQualityLabels);a9(O,"addCueRange",O.addCueRange);a9(O,"addUtcCueRange",O.addUtcCueRange);a9(O,"showAirplayPicker",O.showAirplayPicker);a9(O,"dispatchReduxAction",O.dispatchReduxAction);a9(O,"getPlayerResponse",O.Zp);a9(O,"getWatchNextResponse",O.q5N);a9(O,"getHeartbeatResponse",O.SP);a9(O,"getCurrentTime",O.LS);a9(O,"getDuration",O.uG);a9(O,"getPlayerState",O.getPlayerState);a9(O,"getPlayerStateObject", O.bf);a9(O,"getVideoLoadedFraction",O.getVideoLoadedFraction);a9(O,"getProgressState",O.getProgressState);a9(O,"getVolume",O.getVolume);a9(O,"setVolume",O.qe);a9(O,"isMuted",O.isMuted);a9(O,"mute",O.ub);a9(O,"unMute",O.wK);a9(O,"loadModule",O.loadModule);a9(O,"unloadModule",O.unloadModule);a9(O,"getOption",O.wJ);a9(O,"getOptions",O.getOptions);a9(O,"setOption",O.setOption);a9(O,"loadVideoById",O.Um);a9(O,"loadVideoByUrl",O.fO);a9(O,"playVideo",O.di);a9(O,"loadPlaylist",O.loadPlaylist);a9(O,"nextVideo", O.nextVideo);a9(O,"previousVideo",O.previousVideo);a9(O,"playVideoAt",O.playVideoAt);a9(O,"getDebugText",O.getDebugText);a9(O,"getWebPlayerContextConfig",O.getWebPlayerContextConfig);a9(O,"notifyShortsAdSwipeEvent",O.notifyShortsAdSwipeEvent);a9(O,"getVideoContentRect",O.getVideoContentRect);a9(O,"setSqueezeback",O.setSqueezeback);a9(O,"toggleSubtitlesOn",O.toggleSubtitlesOn);a9(O,"isSubtitlesOn",O.isSubtitlesOn);a9(O,"getAudioTrack",O.F_);a9(O,"setAudioTrack",O.Vzn);a9(O,"getAvailableAudioTracks", O.GS);a9(O,"reportPlaybackIssue",O.reportPlaybackIssue);a9(O,"setAutonav",O.setAutonav);a9(O,"isNotServable",O.isNotServable);a9(O,"channelSubscribed",O.channelSubscribed);a9(O,"channelUnsubscribed",O.channelUnsubscribed);a9(O,"togglePictureInPicture",O.togglePictureInPicture);a9(O,"supportsGaplessAudio",O.supportsGaplessAudio);a9(O,"supportsGaplessShorts",O.supportsGaplessShorts);a9(O,"enqueueVideoByPlayerVars",function(V){return void O.enqueueVideoByPlayerVars(V)}); a9(O,"clearQueue",O.clearQueue);a9(O,"getMaxPlaybackQuality",O.getMaxPlaybackQuality);a9(O,"getUserPlaybackQualityPreference",O.getUserPlaybackQualityPreference);a9(O,"getSubtitlesUserSettings",O.getSubtitlesUserSettings);a9(O,"resetSubtitlesUserSettings",O.resetSubtitlesUserSettings);a9(O,"setMinimized",O.setMinimized);a9(O,"setOverlayVisibility",O.setOverlayVisibility);a9(O,"confirmYpcRental",O.confirmYpcRental);a9(O,"queueNextVideo",O.queueNextVideo);a9(O,"handleExternalCall",O.handleExternalCall); a9(O,"logApiCall",O.logApiCall);a9(O,"isExternalMethodAvailable",O.isExternalMethodAvailable);a9(O,"setScreenLayer",O.setScreenLayer);a9(O,"getCurrentPlaylistSequence",O.getCurrentPlaylistSequence);a9(O,"getPlaylistSequenceForTime",O.getPlaylistSequenceForTime);a9(O,"shouldSendVisibilityState",O.shouldSendVisibilityState);a9(O,"syncVolume",O.syncVolume);a9(O,"highlightSettingsMenuItem",O.highlightSettingsMenuItem);a9(O,"openSettingsMenuItem",O.openSettingsMenuItem);a9(O,"getEmbeddedPlayerResponse", O.getEmbeddedPlayerResponse);a9(O,"getVisibilityState",O.getVisibilityState);a9(O,"isMutedByMutedAutoplay",O.isMutedByMutedAutoplay);a9(O,"isMutedByEmbedsMutedAutoplay",O.isMutedByEmbedsMutedAutoplay);a9(O,"setGlobalCrop",O.setGlobalCrop);a9(O,"setInternalSize",O.setInternalSize);a9(O,"setFauxFullscreen",O.setFauxFullscreen);a9(O,"setAppFullscreen",O.setAppFullscreen)}; Gc=function(O,V,J){O=g.Q_(O.Sy(),V);return J?(J.addOnDisposeCallback(O),null):O}; g.Kj=function(O,V,J){return O.app.Y().Wf?V:g.kv("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:V,SHORTCUT:J})}; XqY=function(O){O.Sy().element.setAttribute("aria-live","polite")}; g.t1=function(O,V){g.q7.call(this,O,V);nyo(this);pj(this,"addEventListener",this.Vt);pj(this,"removeEventListener",this.pKW);pj(this,"cueVideoByPlayerVars",this.Ah);pj(this,"loadVideoByPlayerVars",this.rxi);pj(this,"preloadVideoByPlayerVars",this.E3D);pj(this,"loadVideoById",this.Um);pj(this,"loadVideoByUrl",this.fO);pj(this,"playVideo",this.di);pj(this,"loadPlaylist",this.loadPlaylist);pj(this,"nextVideo",this.nextVideo);pj(this,"previousVideo",this.previousVideo);pj(this,"playVideoAt",this.playVideoAt); pj(this,"getVideoData",this.Eh);pj(this,"seekBy",this.AOK);pj(this,"seekTo",this.iEl);pj(this,"showControls",this.showControls);pj(this,"hideControls",this.hideControls);pj(this,"cancelPlayback",this.cancelPlayback);pj(this,"getProgressState",this.getProgressState);pj(this,"isInline",this.isInline);pj(this,"setInline",this.setInline);pj(this,"setLoopVideo",this.setLoopVideo);pj(this,"getLoopVideo",this.getLoopVideo);pj(this,"getVideoContentRect",this.getVideoContentRect);pj(this,"getVideoStats",this.eP); pj(this,"getCurrentTime",this.y5);pj(this,"getDuration",this.uG);pj(this,"getPlayerState",this.Y$);pj(this,"getVideoLoadedFraction",this.Bo);pj(this,"mute",this.ub);pj(this,"unMute",this.wK);pj(this,"setVolume",this.qe);pj(this,"loadModule",this.loadModule);pj(this,"unloadModule",this.unloadModule);pj(this,"getOption",this.wJ);pj(this,"getOptions",this.getOptions);pj(this,"setOption",this.setOption);pj(this,"addCueRange",this.addCueRange);pj(this,"getDebugText",this.getDebugText);pj(this,"getStoryboardFormat", this.getStoryboardFormat);pj(this,"toggleFullscreen",this.toggleFullscreen);pj(this,"isFullscreen",this.isFullscreen);pj(this,"getPlayerSize",this.getPlayerSize);pj(this,"toggleSubtitles",this.toggleSubtitles);pj(this,"setCenterCrop",this.setCenterCrop);pj(this,"setFauxFullscreen",this.setFauxFullscreen);pj(this,"setSizeStyle",this.setSizeStyle);pj(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);pj(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);pqn(this)}; g.uJ=function(O){O=O.Fs();var V=O.UE.get("endscreen");return V&&V.uL()?!0:O.sF()}; g.A1=function(O,V){O.getPresentingPlayerType()===3?O.publish("mdxautoplaycancel"):O.MX("onAutonavCancelled",V)}; g.iJ=function(O){var V=rA(O.Fs());return O.app.GP&&!O.isFullscreen()||O.getPresentingPlayerType()===3&&V&&V.hasNext()&&V.hasPrevious()||!!O.getPlaylist()}; g.R9=function(O,V){g.fj(O,"addEmbedsConversionTrackingParams",[V])}; g.Pe=function(O){return(O=g.Be(O.Fs()))?O.JV():{}}; g.EyY=function(O){O=(O=O.getVideoData())&&O.j;return!!O&&!(!O.audio||!O.video)&&O.mimeType!=="application/x-mpegURL"}; g.kD=function(O,V,J){O=O.tv().element;var y=l2(O.children,function(l){l=Number(l.getAttribute("data-layer"));return J-l||1}); y<0&&(y=-(y+1));po(O,V,y);V.setAttribute("data-layer",String(J))}; g.Su=function(O){var V=O.Y();if(!V.zK)return!1;var J=O.getVideoData();if(!J||O.getPresentingPlayerType()===3)return!1;var y=(!J.isLiveDefaultBroadcast||V.L("allow_poltergust_autoplay"))&&!ce(J);y=J.isLivePlayback&&(!V.L("allow_live_autoplay")||!y);var l=J.isLivePlayback&&V.L("allow_live_autoplay_on_mweb");O=O.getPlaylist();O=!!O&&O.hasNext();var m=J.fD&&J.fD.playerOverlays||null;m=!!(m&&m.playerOverlayRenderer&&m.playerOverlayRenderer.autoplay);m=J.tC&&m;return!J.ypcPreview&&(!y||l)&&!g.Kd(J.nw,"ypc")&& !O&&(!g.R2(V)||m)}; gyU=function(O,V){O=diV(O.app.Ic().W);O=g.n(O);for(var J=O.next();!J.done;J=O.next()){J=J.value;var y=J.getAvailableAudioTracks(),l=null;y=g.n(y);for(var m=y.next();!m.done;m=y.next())if(m=m.value,m.getLanguageInfo().getId()===V){l=m;break}l&&J.FW(l,!0)}}; Dk=function(){nz.apply(this,arguments);this.requestHeaders={}}; Vc=function(){Oc||(Oc=new Dk);return Oc}; J9=function(O,V){V?O.requestHeaders.Authorization="Bearer "+V:delete O.requestHeaders.Authorization}; qC5=function(O){this.experiments=O;this.K=2048;this.D=0;this.KD=(this.S=this.L("html5_streaming_resilience"))?.5:.25;var V=V===void 0?0:V;this.U=g.Ry(this.experiments,"html5_media_time_weight_prop")||V;this.qX=(this.W=this.experiments.Jv("html5_consider_end_stall"))&&xD;this.j=this.experiments.Jv("html5_measure_max_progress_handling");this.T=this.L("html5_treat_requests_pre_elbow_as_metadata");this.V=this.L("html5_media_time_weight")||!!this.U;this.L("html5_sabr_live_audio_early_return_fix")&&xD&& (this.K=65536)}; g.yc=function(O){g.K.call(this);var V=this;this.pD=O;this.Ty={uP:function(){return V.pD}}}; lg=function(){this.licenseRequest=this.mediaKeys=this.K=this.certificate=null;this.j=!1}; me=function(O,V,J,y){y=y===void 0?!1:y;g.OF.call(this,V);var l=this;this.G=O;this.KD=y;this.W=new g.jX(this);this.fade=new g.AV(this,J,!0,void 0,void 0,function(){l.lG()}); g.t(this,this.W);g.t(this,this.fade)}; $G=function(O){var V=O.G.getRootNode();return O.G.L("web_watch_pip")||O.G.L("web_shorts_pip")?jg(V):document}; QYH=function(O){O.sourceElement&&(document.activeElement&&g.h8(O.element,document.activeElement)&&O.sourceElement.focus(),O.sourceElement.setAttribute("aria-expanded","false"),O.sourceElement=void 0);g.fz(O.W);O.V=void 0}; HI=function(O,V,J){O.fK()?O.x8():O.Zg(V,J)}; j9=function(O,V,J,y){y=new g.r({X:"div",Fj:["ytp-linked-account-popup-button"],Rl:y,N:{role:"button",tabindex:"0"}});V=new g.r({X:"div",C:"ytp-linked-account-popup",N:{role:"dialog","aria-modal":"true",tabindex:"-1"},J:[{X:"div",C:"ytp-linked-account-popup-title",Rl:V},{X:"div",C:"ytp-linked-account-popup-description",Rl:J},{X:"div",C:"ytp-linked-account-popup-buttons",J:[y]}]});me.call(this,O,{X:"div",C:"ytp-linked-account-popup-container",J:[V]},100);var l=this;this.dialog=V;g.t(this,this.dialog); y.listen("click",function(){l.x8()}); g.t(this,y);g.kD(this.G,this.element,4);this.hide()}; g.Ft=function(O,V,J,y){g.OF.call(this,O);this.priority=V;J&&g.Cc(this,J);y&&this.setContent(y)}; g.Ny=function(O,V,J,y){O=O===void 0?{}:O;V=V===void 0?[]:V;J=J===void 0?!1:J;y=y===void 0?!1:y;V.push("ytp-menuitem");var l=O;"role"in l||(l.role="menuitem");J||(l=O,"tabindex"in l||(l.tabindex="0"));O={X:J?"a":"div",Fj:V,N:O,J:[{X:"div",C:"ytp-menuitem-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-menuitem-label",Rl:"{{label}}"},{X:"div",C:"ytp-menuitem-content",Rl:"{{content}}"}]};y&&O.J.push({X:"div",C:"ytp-menuitem-secondary-icon",Rl:"{{secondaryIcon}}"});return O}; g.Cc=function(O,V){O.updateValue("label",V)}; xG=function(O){g.Ft.call(this,g.Ny({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var V=this;this.G=O;this.j=this.K=!1;this.mp=O.gq();O.createServerVe(this.element,this,!0);this.Z(this.G,"settingsMenuVisibilityChanged",function(J){V.lR(J)}); this.Z(this.G,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; WI=function(O){return O?g.yb(O):""}; Uc=function(O){g.K.call(this);this.api=O}; Zs=function(O){Uc.call(this,O);var V=this;a9(O,"setAccountLinkState",function(J){V.setAccountLinkState(J)}); a9(O,"updateAccountLinkingConfig",function(J){V.updateAccountLinkingConfig(J)}); O.addEventListener("videodatachange",function(J,y){V.onVideoDataChange(y)}); O.addEventListener("settingsMenuInitialized",function(){V.menuItem=new xG(V.api);g.t(V,V.menuItem)})}; ze=function(O){Uc.call(this,O);var V=this;this.K=null;this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"applicationvideodatachange",function(){V.Up()})}; GXV=function(O){this.api=O;this.K={}}; cI=function(O,V,J,y){V in O.K||(J=new g.gz(J,y,{id:V,priority:2,namespace:"appad"}),O.api.aG([J],1),O.K[V]=J)}; sc=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(this);g.t(this,this.events);this.K=new GXV(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){V.K.K={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(J){var y=V.K;cI(y,"part2viewed",1,0x8000000000000);cI(y,"engagedview",Math.max(1,J.kV*1E3),0x8000000000000);if(!J.isLivePlayback){var l=J.lengthSeconds*1E3;p7(J)&&y.api.L("html5_shorts_gapless_ads_duration_fix")&&(l=y.api.getProgressState().seekableEnd*1E3-J.yN);cI(y,"videoplaytime25",l*.25,l);cI(y,"videoplaytime50",l*.5,l);cI(y,"videoplaytime75",l*.75,l);cI(y,"videoplaytime100",l,0x8000000000000);cI(y,"conversionview",l,0x8000000000000); cI(y,"videoplaybackstart",1,l);cI(y,"videoplayback2s",2E3,l);cI(y,"videoplayback10s",1E4,l)}}); this.events.Z(this.api,g.Q9("appad"),this.j);this.events.Z(this.api,g.Gd("appad"),this.j)}; Ah7=function(O,V,J){if(!(J in V))return!1;V=V[J];Array.isArray(V)||(V=[V]);V=g.n(V);for(J=V.next();!J.done;J=V.next()){J=J.value;var y={CPN:O.api.getVideoData().clientPlaybackNonce};J=g.bL(J,y);y=void 0;y=y===void 0?!1:y;(y=Lm(nm(J,KHd),J,y,"Active View 3rd Party Integration URL"))||(y=void 0,y=y===void 0?!1:y,y=Lm(nm(J,tkU),J,y,"Google/YouTube Brand Lift URL"));y||(y=void 0,y=y===void 0?!1:y,y=Lm(nm(J,upY),J,y,"Nielsen OCR URL"));g.hS(J,void 0,y)}return!0}; Te=function(O,V){rhH(O,V).then(function(J){g.hS(V,void 0,void 0,J)})}; e9=function(O,V){V.forEach(function(J){Te(O,J)})}; rhH=function(O,V){return g.F0(O.api.Y())&&yd(V)&&Jy(V)?g.bd(O.api.Y(),g.He(O.api.getVideoData())).then(function(J){var y;J&&(y={Authorization:"Bearer "+J});return y},void 0):hy()}; iel=function(O){Uc.call(this,O);this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"videoready",function(V){if(O.getPresentingPlayerType()===1){var J,y,l={playerDebugData:{pmlSignal:!!((J=V.getPlayerResponse())==null?0:(y=J.adPlacements)==null?0:y.some(function(m){var H;return m==null?void 0:(H=m.adPlacementRenderer)==null?void 0:H.renderer})), contentCpn:V.clientPlaybackNonce}};g.l6("adsClientStateChange",l)}})}; I3=function(O,V){g.Ft.call(this,g.Ny({role:"menuitemcheckbox","aria-checked":"false"}),V,O,{X:"div",C:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; YG=function(O,V){O.checked=V;O.element.setAttribute("aria-checked",String(O.checked))}; RJp=function(O){var V=!O.Y().PX&&O.getPresentingPlayerType()!==3;return O.isFullscreen()||V}; g.a3=function(O,V,J,y){var l=O.currentTarget;if((J===void 0||!J)&&g.xo(O))return O.preventDefault(),!0;V.pauseVideo();O=l.getAttribute("href");g.LJ(O,y,!0);return!1}; g.bg=function(O,V,J){if(x$(V.Y())&&V.getPresentingPlayerType()!==2){if(g.xo(J))return V.isFullscreen()&&!V.Y().externalFullscreen&&V.toggleFullscreen(),J.preventDefault(),!0}else{var y=g.xo(J);y&&V.pauseVideo();g.LJ(O,void 0,!0);y&&(g.nJ(O),J.preventDefault())}return!1}; BlU=function(O){O=pc.includes("en")?O.L("delhi_modern_web_player_icons")?CI():{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,N:{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"}}]}:O.L("delhi_modern_web_player_icons")?cGH():{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,N:{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"}}]};O.C="ytp-subtitles-button-icon"; return O}; PVo=function(O){return pc.includes("en")?O?CI():{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:O?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},J:[{X:"path",N:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; fc=function(){return{X:"div",C:"ytp-spinner-container",J:[{X:"div",C:"ytp-spinner-rotator",J:[{X:"div",C:"ytp-spinner-left",J:[{X:"div",C:"ytp-spinner-circle"}]},{X:"div",C:"ytp-spinner-right",J:[{X:"div",C:"ytp-spinner-circle"}]}]}]}}; h9=function(O){if(document.createRange){var V=document.createRange();V&&(V.selectNodeContents(O),O=window.getSelection())&&(O.removeAllRanges(),O.addRange(V))}}; vI=function(O,V){var J=O.L("web_fix_annotations")?"Annotated Overlays":"Annotations";I3.call(this,J,g.o3.H3);this.G=O;this.mp=V;this.K=!1;O.L("web_settings_menu_icons")&&(V=O.L("delhi_modern_web_player_icons")?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(V));this.Z(O,"videodatachange",this.Qz);this.Z(O,"onApiChange",this.Qz);this.subscribe("select",this.onSelect,this);this.Qz()}; kXh=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);O.addEventListener("settingsMenuInitialized",function(){var J=new vI(V.api,V.api.gq());g.t(V,J)})}; My=function(O){var V=this;this.K={};this.U={};this.Ty={jqE:function(){return V.K}}; this.videoData=O;var J,y=(J=O.U)==null?void 0:J.j;y&&y.length>0?this.j=y:(O=O.getAvailableAudioTracks(),this.j=O.length>0?SCV(O):[]);O=g.n(ws);for(J=O.next();!J.done;J=O.next())J=J.value,this.K[J]=DiX[J](this.j);this.eE()}; Ofn=function(O,V){var J=V.getAudioTrack();return J.id!=="und"?g.L1(O,function(y){var l;return((l=y.wC)==null?void 0:l.name)===J.getLanguageInfo().name}):O}; Vsp=function(O,V){return V.getUserAudio51Preference()?g.L1(O,Lc):O}; SCV=function(O){return O.map(function(V){return new tq(V.id,"application/x-mpegURL",{wC:V.wC})})}; JC1=function(O){return g.vC("yt-player-drc-pref")?g.L1(O,nc):O}; yC1=function(O){return GN1()===2?g.L1(O,Xt):O}; l75=function(O){return KYX()===1?g.L1(O,Ec):O}; Ec=function(O){var V;return((V=O.audio)==null?void 0:V.audioQuality)==="AUDIO_QUALITY_HIGH"&&!Rk(O)}; nc=function(O){var V;return((V=O.audio)==null?void 0:V.K)===!0}; Lc=function(O){return Rk(O)}; mOn=function(O){return O.wC!==void 0}; Xt=function(O){var V;return((V=O.audio)==null?void 0:V.j)===!0}; ds=function(O,V){if(O.length<2)return!1;var J=V(O[0]);return O.some(function(y){return V(y)!==J})}; $Oh=function(O,V){O=new Set(O.map(V));O.delete(void 0);return O.size>=2}; gs=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);var J=this.api.L("html5_enable_audio_quality_setting_feature");a9(this.api,"getUserAudioQualitySetting",function(){return J?V.getUserAudioQualitySetting():2}); a9(this.api,"setUserAudioQualitySetting",function(y){J&&V.setUserAudioQualitySetting(y)}); a9(this.api,"hasHqaAudioTrack",function(){return J?V.hasHqaAudioTrack():!1}); a9(this.api,"getAudioQualitySettingState",function(){return J?V.api.qP(4):1}); this.tp=KYX();this.updateEnvironmentData()}; HfX=function(O){Uc.call(this,O);var V=this;a9(this.api,"getAudioTrackState",function(){return V.api.qP(0)})}; qy=function(O){g.r.call(this,{X:"button",Fj:["ytp-button","ytp-autonav-toggle"],N:{title:O.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},J:[{X:"div",C:"ytp-autonav-toggle-button-container",J:[{X:"div",C:"ytp-autonav-toggle-button",N:{"aria-checked":"true"}}]}]});this.G=O;this.j=[];this.K=!1;this.isChecked=!0;O.createClientVe(this.element,this, 113681);this.Z(O,"presentingplayerstatechange",this.yB);this.listen("click",this.onClick);this.j.push(this.Z(this.G,"videodatachange",this.yB));this.j.push(this.Z(this.G,"videoplayerreset",this.yB));this.j.push(this.Z(this.G,"onPlaylistUpdate",this.yB));this.j.push(this.Z(this.G,"autonavchange",this.eN));O.L("delhi_fast_follow_autonav_toggle")&&this.element.classList.add("delhi-fast-follow-autonav-toggle");Gc(O,this.element,this);this.yB()}; jWd=function(O){O.isChecked=O.isChecked;O.DN("ytp-autonav-toggle-button").setAttribute("aria-checked",String(O.isChecked));var V=O.isChecked?"Autoplay is on":"Autoplay is off";O.G.Y().L("player_tooltip_data_title_killswitch")?O.update({title:V,label:V}):O.update({"data-tooltip-title":V,label:V});O.G.s7()}; CEH=function(O){return O.G.Y().L("web_player_autonav_use_server_provided_state")&&T9(O.hC())}; FWh=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"standardControlsInitialized",function(){var J=new qy(O);g.t(V,J);O.tT(J,"RIGHT_CONTROLS_LEFT")})}; Ge=function(O){var V=O.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";I3.call(this,V,g.o3.pN);var J=this;this.G=O;this.K=!1;this.j=new g.t_(function(){g.Vf(J.element,"ytp-menuitem-highlighted")},0); this.mp=O.gq();O=O.L("delhi_modern_web_player_icons")?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(O);this.subscribe("select",this.U,this);this.listen(Qc,this.D);g.t(this,this.j)}; Kc=function(O){Uc.call(this,O);var V=this;this.K=!1;O.addEventListener("settingsMenuInitialized",function(){NI7(V)}); O.addEventListener("highlightSettingsMenu",function(J){NI7(V);var y=V.menuItem;J==="menu_item_cinematic_lighting"&&(g.D0(y.element,"ytp-menuitem-highlighted"),g.D0(y.element,"ytp-menuitem-highlight-transition-enabled"),y.j.start())}); a9(O,"updateCinematicSettings",function(J){V.updateCinematicSettings(J)})}; NI7=function(O){O.menuItem||(O.menuItem=new Ge(O.api),g.t(O,O.menuItem),O.menuItem.Qz(O.K))}; xOr=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"applicationvideodatachange",function(J,y){y=y.clipConfig;J==="dataloaded"&&y&&y.startTimeMs!=null&&y.endTimeMs!=null&&V.api.setLoopRange({startTimeMs:Math.floor(Number(y.startTimeMs)),endTimeMs:Math.floor(Number(y.endTimeMs)),postId:y.postId,type:"clips"})})}; t9=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);a9(O,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));a9(O,"setCreatorEndscreenHideButton",this.K.bind(this));this.L("web_fix_annotations")&&this.events.Z(O,"annotationvisibility",function(J){V.setCreatorEndscreenVisibility(!J);V.hideButton&&g.CD(V.hideButton,J)})}; UOr=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"videodatachange",function(){var J=V.api.getRootNode(),y=V.api.Y();g.D0(J,"ytp-delhi-modern");y.L("delhi_modern_web_player_icons")&&g.D0(J,"ytp-delhi-modern-icons");y.L("delhi_modern_web_player_horizontal_volume_controls")&&g.D0(J,"ytp-delhi-horizontal-volume-controls");y.L("delhi_modern_web_player_compact_controls")&&g.D0(J,"ytp-delhi-modern-compact-controls");y.L("delhi_modern_web_player_big_mode_consistent_pill_height")&& g.D0(J,"ytp-big-mode-consistent-pill-height");switch(vj(y.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.D0(J,"ytp-delhi-modern-with-luminosity");break;case "difference":g.D0(J,"ytp-delhi-modern-with-difference");break;case "exclusion":g.D0(J,"ytp-delhi-modern-with-exclusion")}J=V.api.isHdr()||V.api.L("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";V.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",J);WW5(V)}); this.events.Z(O,"resize",function(){WW5(V)})}; WW5=function(O){var V=O.api.L("delhi_modern_web_player_compact_controls"),J=g.Ry(O.api.Y().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),y=V||J>0&&O.api.getPlayerSize().width<=J;V=O.api.getRootNode();V.classList.toggle("ytp-delhi-modern-compact-controls",y);J=y?"40px":"48px";var l=y?"8px":"12px",m=y?"56px":"72px",H=y?"56px":"64px",F=y?"48px":"56px",N=y?"12px":"20px";y=y?"72px":"96px";O.api.L("delhi_modern_web_player_big_mode_consistent_pill_height")&&(F="56px",N="12px", y="80px");V.style.setProperty("--yt-delhi-pill-height",J);V.style.setProperty("--yt-delhi-pill-top-height",l);V.style.setProperty("--yt-delhi-bottom-controls-height",m);V.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",H);V.style.setProperty("--yt-delhi-big-mode-pill-height",F);V.style.setProperty("--yt-delhi-big-mode-pill-top-height",N);V.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",y)}; ug=function(O,V,J,y,l){var m=O.L("html5_enable_new_audio_settings_menu");I3.call(this,"Stable Volume",m?Zfo.C$:g.o3.C$);this.G=O;this.D=V;this.j=J;this.hasDrcAudioTrack=y;this.getDrcState=l;this.U=this.enableNewAudioSettingsMenu=this.K=!1;g.D0(this.element,"ytp-drc-menu-item");this.mp=(this.enableNewAudioSettingsMenu=m)?O.gq().jU:O.gq();O.L("html5_enable_voice_boost")?(this.U=!0,this.Z(O,"onFilterAudioFeatures",this.La)):O.addEventListener("videodatachange",this.La.bind(this));O.L("mta_drc_mutual_exclusion_removal")&& this.Z(O,"onPlaybackAudioChange",this.La);O.createClientVe(this.element,this,273317);this.listen("click",this.V);V=this.j()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(O=O.L("delhi_modern_web_player_icons")?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(O));this.subscribe("select",this.W,this);this.enableNewAudioSettingsMenu||this.U?this.La():(this.setEnabled(this.hasDrcAudioTrack()),YG(this,V),this.mp.sR(this))}; A9=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);O.L("html5_show_drc_toggle")&&O.addEventListener("settingsMenuInitialized",function(){V.menuItem||(V.menuItem=new ug(V.api,V.setDrcUserPreference.bind(V),V.getDrcUserPreference.bind(V),V.IQ.bind(V),V.getDrcState.bind(V)),g.t(V,V.menuItem))}); a9(this.api,"setDrcUserPreference",function(y){V.setDrcUserPreference(y)}); a9(this.api,"getDrcUserPreference",function(){return V.getDrcUserPreference()}); a9(this.api,"hasDrcAudioTrack",function(){return V.IQ()}); a9(this.api,"getDrcState",function(){return V.getDrcState()}); var J;this.K=(J=g.vC("yt-player-drc-pref"))!=null?J:1;this.updateEnvironmentData()}; rs=function(O){Uc.call(this,O);var V=this;this.K={};this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"videodatachange",function(){V.onVideoDataChange()}); this.events.Z(O,g.Q9("embargo"),function(J){V.api.Zc(!0);var y,l=(y=V.K[J.id])!=null?y:[];y=g.n(l);for(l=y.next();!l.done;l=y.next()){var m=l.value;V.api.hideControls();V.api.Hf("auth",2,"This video isn't available in your current playback area",SP({embargoed:1,id:J.id,idx:J.j,start:J.start}));l=void 0;(m=(l=m.embargo)==null?void 0:l.onTrigger)&&V.api.MX("innertubeCommand",m)}})}; zfr=function(O,V){var J;return(J=V.onEnter)==null?void 0:J.some(O.j)}; cCd=function(O,V){V=g.n(V);for(var J=V.next();!J.done;J=V.next()){J=J.value;var y=void 0,l=Number((y=J.playbackPosition)==null?void 0:y.utcTimeMillis)/1E3,m=void 0;y=l+Number((m=J.duration)==null?void 0:m.seconds);m="embargo_"+l;O.api.addUtcCueRange(m,l,y,"embargo",!1);J.onEnter&&(O.K[m]=J.onEnter.filter(O.j))}}; ig=function(O){Uc.call(this,O);var V=this;this.K=[];this.events=new g.jX(O);g.t(this,this.events);a9(O,"addEmbedsConversionTrackingParams",function(J){V.addEmbedsConversionTrackingParams(J)}); this.events.Z(O,"veClickLogged",function(J){V.api.hasVe(J)&&(J=J.visualElement.getAsJspb(),J=g.Qa(J,2),V.K.push(J))})}; sWr=function(O){Uc.call(this,O);a9(O,"isEmbedsShortsMode",function(){return O.isEmbedsShortsMode()}); a9(O,"getReelItemWatchResponse",function(){var V,J;return(J=(V=O.getVideoData({playerType:1}))==null?void 0:V.getReelItemWatchResponse())!=null?J:null})}; TI1=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"initialvideodatacreated",function(J){ek(TX(),16623);V.K=g.Fe();var y=O.Y().YI&&!J.aB;if($D(J)&&y){ek(TX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(J.getWatchNextResponse()){var l,m=(l=J.getWatchNextResponse())==null?void 0:l.trackingParams;m&&Yy(m)}if(J.getPlayerResponse()){var H;(J=(H=J.getPlayerResponse())==null?void 0:H.trackingParams)&&Yy(J)}}else ek(TX(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),J.getEmbeddedPlayerResponse()&&(H=(m=J.getEmbeddedPlayerResponse())==null?void 0:m.trackingParams)&&Yy(H)}); this.events.Z(O,"loadvideo",function(){ek(TX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:V.K})}); this.events.Z(O,"cuevideo",function(J){J===1&&ek(TX(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:V.K})}); this.events.Z(O,"largeplaybuttonclicked",function(J){ek(TX(),27240,J.visualElement)}); this.events.Z(O,"playlistnextbuttonclicked",function(J){ek(TX(),27240,J.visualElement)}); this.events.Z(O,"playlistprevbuttonclicked",function(J){ek(TX(),27240,J.visualElement)}); this.events.Z(O,"playlistautonextvideo",function(){ek(TX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; R3=function(O,V){g.K.call(this);var J=this;this.K=null;this.U=V;V=[];for(var y=0;y<=100;y++)V.push(y/100);V={threshold:V,trackVisibility:!0,delay:1E3};(this.j=window.IntersectionObserver?new IntersectionObserver(function(l){l=l[l.length-1];var m=null;typeof l.isVisible==="undefined"?document.visibilityState==="visible"&&l.isIntersecting&&l.intersectionRatio>0?m=l.intersectionRatio:document.visibilityState==="hidden"?m=0:m=null:m=l.isVisible?l.intersectionRatio:0;m!=null&&(m=Math.max(m,0),m=Math.min(m, 1));J.K=m;typeof J.U==="function"&&J.U(J.K)},V):null)&&this.j.observe(O)}; I7Y=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"applicationInitialized",function(){efr(V)})}; efr=function(O){var V=O.api.getRootNode(),J,y=O.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((J=V.parentElement)==null?void 0:J.parentElement)||V:V;O.K=new R3(y,function(l){l!=null&&(O.api.Y().QD=l,O.api.Y().SK="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.t(O,O.K);O.events.Z(O.api,"videoStatsPingCreated",function(l){var m=O.K;m=m.K==null?null:Math.round(m.K*100)/100;l.inview=m!=null?m:void 0;m=O.api.getPlayerSize();if(m.height>0&&m.width>0){m=[Math.round(m.width),Math.round(m.height)];var H=g.Uj();H>1&&m.push(H);m=m.join(":")}else m=void 0;l.size=m})}; BI=function(O){Uc.call(this,O);var V=this;a9(this.api,"dismissFeaturedProductOverlay",function(){V.dismissFeaturedProductOverlay()})}; Ywl=function(O){var V;return((V=((O==null?void 0:O.messageRenderers)||[]).find(function(J){return!!J.timeCounterRenderer}))==null?void 0:V.timeCounterRenderer)||null}; PI=function(O){g.r.call(this,{X:"div",Fj:["ytp-player-content","ytp-iv-player-content"],J:[{X:"div",C:"ytp-free-preview-countdown-timer",J:[{X:"span",Rl:"{{label}}"},{X:"span",C:"ytp-free-preview-countdown-timer-separator",Rl:"\u2022"},{X:"span",Rl:"{{duration}}"}]}]});this.api=O;this.K=null;this.U=this.j=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; bfX=function(O,V){O.K||(O.j=V,O.U=(0,g.cH)(),O.K=new g.KZ(function(){a7n(O)},null),a7n(O))}; a7n=function(O){var V=Math,J=V.round,y=Math.min((0,g.cH)()-O.U,O.j);V=J.call(V,(O.j-y)/1E3);O.updateValue("duration",Ni({seconds:V}));V<=0&&O.K?O.stopTimer():O.K&&O.K.start()}; pX5=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"basechromeinitialized",function(){V.K=new PI(O);g.t(V,V.K);g.kD(O,V.K.element,4);V.K.hide()})}; kG=function(O){g.r.call(this,{X:"button",Fj:["ytp-fullerscreen-edu-button","ytp-button"],J:[{X:"div",Fj:["ytp-fullerscreen-edu-text"],Rl:"Scroll for details"},{X:"div",Fj:["ytp-fullerscreen-edu-chevron"],J:[iWd()]}],N:{"data-priority":"2"}});this.cE=O;this.fade=new g.AV(this,250,void 0,100);this.j=this.K=!1;O.createClientVe(this.element,this,61214);g.t(this,this.fade);this.Z(O,"fullscreentoggled",this.Qz);this.Z(O,"presentingplayerstatechange",this.Qz);this.listen("click",this.onClick);this.Qz()}; S9=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);a9(this.api,"updateFullerscreenEduButtonSubtleModeState",function(y){V.updateFullerscreenEduButtonSubtleModeState(y)}); a9(this.api,"updateFullerscreenEduButtonVisibility",function(y){V.updateFullerscreenEduButtonVisibility(y)}); var J=O.Y();O.L("external_fullscreen_with_edu")&&J.externalFullscreen&&x$(J)&&J.controlsType==="1"&&this.events.Z(O,"standardControlsInitialized",function(){V.K=new kG(O);g.t(V,V.K);O.tT(V.K)})}; f7X=function(O){g.r.call(this,{X:"div",C:"ytp-gated-actions-overlay",J:[{X:"div",C:"ytp-gated-actions-overlay-background",J:[{X:"div",C:"ytp-gated-actions-overlay-background-overlay"}]},{X:"button",Fj:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],N:{"aria-label":"Close"},J:[g.je()]},{X:"div",C:"ytp-gated-actions-overlay-bar",J:[{X:"div",C:"ytp-gated-actions-overlay-text-container",J:[{X:"div",C:"ytp-gated-actions-overlay-title",Rl:"{{title}}"},{X:"div",C:"ytp-gated-actions-overlay-subtitle", Rl:"{{subtitle}}"}]},{X:"div",C:"ytp-gated-actions-overlay-button-container"}]}]});var V=this;this.api=O;this.background=this.DN("ytp-gated-actions-overlay-background");this.j=this.DN("ytp-gated-actions-overlay-button-container");this.K=[];this.Z(this.DN("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){V.api.MX("onCloseMiniplayer")}); this.hide()}; o4d=function(O,V){var J=0;J=0;for(var y={};J l&&(l=F.width,m="url("+F.url+")")}J.background.style.backgroundImage=m;o4d(J,y.actionButtons||[]);J.show()}else J.hide()}); g.kD(this.api,this.K.element,4)}; Ds=function(O){Uc.call(this,O);var V=this;pj(this.api,"getSphericalProperties",function(){return V.getSphericalProperties()}); pj(this.api,"setSphericalProperties",function(){V.setSphericalProperties.apply(V,g.q(g.jF.apply(0,arguments)))}); bJ(this.api,"getSphericalProperties",function(){return V.api.getPresentingPlayerType()===2?{}:V.getSphericalProperties()}); bJ(this.api,"setSphericalProperties",function(){var J=g.jF.apply(0,arguments);V.api.getPresentingPlayerType()!==2&&V.setSphericalProperties.apply(V,g.q(J))})}; O0=function(O){Uc.call(this,O);a9(O,"createClientVe",this.createClientVe.bind(this));a9(O,"createServerVe",this.createServerVe.bind(this));a9(O,"destroyVe",this.destroyVe.bind(this));a9(O,"hasVe",this.hasVe.bind(this));a9(O,"logClick",this.logClick.bind(this));a9(O,"logVisibility",this.logVisibility.bind(this));a9(O,"setTrackingParams",this.setTrackingParams.bind(this))}; VR=function(O,V,J,y){function l(H){var F=!(H.status!==204&&H.status!==200&&!H.response),N;H={succ:""+ +F,rc:H.status,lb:((N=H.response)==null?void 0:N.byteLength)||0,rt:((0,g.cH)()-m).toFixed(),shost:g.sd(O),trigger:V};wXH(H,O);J&&J(H);y&&!F&&y(new g.DO("pathprobe.net",H))} var m=(0,g.cH)();g.e8(O,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:l,onTimeout:l})}; wXH=function(O,V){var J;((J=window.performance)==null?0:J.getEntriesByName)&&(V=performance.getEntriesByName(V))&&V.length&&(V=V[0],O.pedns=(V.domainLookupEnd-V.startTime).toFixed(),O.pecon=(V.connectEnd-V.domainLookupEnd).toFixed(),O.perqs=(V.requestStart-V.connectEnd).toFixed())}; J$=function(O,V){this.Ax=O;this.policy=V;this.playbackRate=1}; Msp=function(O,V){var J=Math.min(2.5,yR(O.Ax));O=lv(O);return V-J*O}; $X=function(O,V,J,y,l){l=l===void 0?!1:l;if(O.policy.Hl)return Math.ceil(O.policy.Hl*V);O.policy.M5&&(y=Math.abs(y));y/=O.playbackRate;var m=1/mD(O.Ax);J=Math.max(.9*(y-3),yR(O.Ax)+O.Ax.j.K*m)/m*.8/(V+J);J=Math.min(J,y);O.policy.rk>0&&l&&(J=Math.max(J,O.policy.rk));return LWY(O,J,V)}; LWY=function(O,V,J){return Math.ceil(Math.max(Math.max(O.policy.Ip,O.policy.H5*J),Math.min(Math.min(O.policy.nD,31*J),Math.ceil(V*J))))||O.policy.Ip}; lv=function(O){return mD(O.Ax,!O.policy.VD,O.policy.RU)}; Hd=function(O){return lv(O)/O.playbackRate}; jK=function(O,V,J){var y=O.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],l=O.policy.playbackStartPolicy.startMinReadaheadPolicy||[];O=Infinity;V=g.n(V&&y.length>0?y:l);for(y=V.next();!y.done;y=V.next())y=y.value,l=y.minReadaheadMs||0,J<(y.minBandwidthBytesPerSec||0)||O>l&&(O=l);return O0&&(this.j=J.In)}; E4r=function(O,V,J,y,l){if(!y.info.U){if(J.length===0)J.push(y);else{var m;(O=(m=J.pop())==null?void 0:g.nh(m,y))?J.push(O):J.push(y)}return l}var H;(J=(H=J.pop())==null?void 0:g.nh(H,y))||(J=y);if(J.info.K)return O.logger&&O.logger({incompleteSegment:J.info.rX()}),l;y=O.U0(J);l=y.wW;y={clipId:y.clipId,formatId:y.formatId,startTimeMs:y.startTimeMs,durationMs:y.cD,Dc:l,Hn:l};l=n4n(V,y.startTimeMs);if(m=J=l>=0?V[l]:null){m=y;var F=l;H=J.startTimeMs+J.durationMs;var N=m.startTimeMs+m.durationMs;if(m.startTimeMs- H>O.j)m=!1;else if(XX1(O,J.formatId,m.formatId))J.durationMs=Math.max(H,N)-J.startTimeMs,J.Hn=Math.max(J.Hn,m.Hn),m=!0;else if(Math.abs(J.startTimeMs-m.startTimeMs)<=O.j)if(J.durationMs>m.durationMs+O.j){var x=J.formatId,W=J.Dc;F=J.Hn;J.formatId=m.formatId;J.durationMs=m.durationMs;J.Dc=m.Dc;J.Hn=m.Hn;m.formatId=x;m.startTimeMs=N;m.durationMs=H-N;m.Dc=W;m.Hn=F;m=!1}else J.formatId=m.formatId,m=!0;else H>m.startTimeMs&&(H>N&&(V.splice(F+1,0,{formatId:J.formatId,startTimeMs:N,durationMs:H-N,Dc:m.Hn+ 1,Hn:J.Hn}),O.logger&&O.logger({splitOldStart:(x=J.startTimeMs)==null?void 0:x.toFixed(3),splitOldEnd:H==null?void 0:H.toFixed(3),splitNewStart:(W=m.startTimeMs)==null?void 0:W.toFixed(3),splitNewEnd:N==null?void 0:N.toFixed(3)})),J.durationMs=m.startTimeMs-J.startTimeMs,J.Hn=m.Dc-1),m=!1}m?y=J:(l+=1,V.splice(l,0,y));x=0;for(W=l+1;W=N+J.j?J=!0:F+J.j=0?O:-O-2}; dO7=function(O,V){if(O.Z4){var J=O.Z4.hL();if(J.length!==0){if(O.U&&V){var y=O.U,l=y.info.D;!mT(J,l)&&y.info.S>0&&(0,g.cH)()-O.V<5E3&&(O.logger&&O.logger({dend:y.info.rX()}),J=lfY(J,l,l+.01))}O.policy.Zo&&O.logger&&O.logger({cbri:""+O.K});y=[];for(var m=l=0;l=H){var W=Object.assign({},O.Dg[m]),U=O.xi.U.get(Ji(O.Dg[m].formatId)),Z=Math.max(N,H);H=U.index.tO(Z+O.j/ 1E3);N=U.index.getStartTime(H);var z=H+ +(Math.abs(N-Z)>O.j/1E3);Z=z+O.D;z=U.index.getStartTime(z)*1E3;m!==O.K||V?(W.Dc=Z,W.startTimeMs=z):(O.logger&&O.logger({pEvict:"1",og:W.startTimeMs,adj:N*1E3}),W.Dc=H+O.D,W.startTimeMs=N*1E3);H=void 0;N=((H=O.U)==null?void 0:H.info.duration)||11;m===O.K&&FO.j/1E3);H=N+O.D;U=U.index.MV(N)*1E3;W.Hn=H;W.durationMs=U-W.startTimeMs;W.Dc<=W.Hn&&y.push(W)}x=0&&U0(O.audioTrack,O.targetTime)>=0&&m?((O.videoTrack.D||O.audioTrack.D)&&O.loader.jB("iterativeSeeking",{status:"done",count:O.seekCount}),O.videoTrack.D=!1,O.audioTrack.D=!1):y&&g.YS(function(){if(O.K||!O.policy.Xs)cd(O);else{var H=V.startTime,F=V.duration;if(!O.policy.V){var N=O.videoTrack.W!==-1&&O.audioTrack.W!==-1,x=!O.videoTrack.lw&&!O.audioTrack.lw;(J?O.videoTrack.D:O.audioTrack.D)&&N&&x&&(O.targetTime>= H&&O.targetTime432E3&&Zx7(O.xi);O.j&&(l=O.j,O.j=0);g.YS(function(){O.policy.V||s0(O,l,102)}); O.loader.jB("initManifestlessSync",{st:l,ost:l+O.loader.HY(),a:O.audioTrack.W,v:O.videoTrack.W});O.U&&(O.U.resolve(l+.1),O.U=null);O.policy.V&&s0(O,l,102)}}}; YX=function(){this.data=new Uint8Array(2048);this.pos=0;IO||(IO=OC("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; bv=function(O,V){var J=this;this.Il=O;this.requestNumber=++PEn;this.K=this.now();this.T=this.qX=NaN;this.S=this.K;this.U=this.NH=this.W=0;this.V=this.K;this.TL=this.lw=this.Vz=this.eq=this.aB=this.O5=this.j=this.D=0;this.KD=this.isActive=!1;this.Xs=this.eB=0;this.Ty={w0L:function(){return J.J$}}; this.Ax=V.Ax;this.snapshot=aO(this.Ax);this.policy=this.Ax.j;this.VL=!!V.VL;this.s3=V.s3;this.pB=V.pB||0;this.fu=V.fu||0;V.Bx&&(this.dW=new YX);var y;this.J$=(y=V.J$)!=null?y:!1;this.VL||kP5(this.Ax)}; Sw1=function(O){O.Vz=Math.max(O.Vz,O.W-O.aB);O.lw=Math.max(O.lw,O.S-O.eq);O.O5=0}; p8=function(O,V,J){DOl(O.Ax,V);O.dW&&(O.dW.add(Math.ceil(V)-Math.ceil(O.S)),O.dW.add(Math.max(0,Math.ceil(J/1024)-Math.ceil(O.W/1024))));var y=V-O.S,l=J-O.W;O.NH=l;O.TL=Math.max(O.TL,l/(y+.01)*1E3);O.S=V;O.W=J;O.O5&&J>O.O5&&Sw1(O)}; Oh5=function(O,V){O.url=V;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; f8=function(O,V){bv.call(this,O,V);this.Ks=this.oB=!1;this.ol=this.fD=Infinity;this.LD=NaN;this.UR=!1;this.zL=NaN;this.WB=this.yz=this.E5=0;this.gs=V.gs||1;this.mY=V.mY||this.gs;this.ek=V.ek;this.wW=V.wW;this.jz=V.jz;V37(this);this.Mn(this.K);this.yc=(this.zL-this.K)/1E3}; Jih=function(O){var V=O.yz||O.E5;return V?O.snapshot.delay+Math.min(O.fu,(O.T-O.qX)/1E3)+V:O.yc}; oO=function(O,V,J){if(!O.VL){V=Math.max(V,.01);var y=O.pB?Math.max(V,J/O.pB):V,l=O.Ax.j.U;l&&(y=V,O.pB&&(y=Math.max(V,J/O.pB*l)));h$(O.Ax,V,J,y)}}; yin=function(O){return(O.V-O.K)/1E3}; V37=function(O){O.LD=O.K+O.snapshot.delay*1E3;O.UR=!1}; vd=function(O,V){if(O.ek&&O.wW!==void 0&&O.jz!==void 0){var J=Math,y=J.min,l=O.fD;var m=O.ek;var H=O.K;if(ldr(m,O.wW))m=V;else{var F=0;m.XF&&(F=.2);m=H+(m.fu+F)*1E3}O.fD=y.call(J,l,m);J=Math;y=J.min;l=O.ol;m=O.ek;H=O.K;F=mTp(m,O.wW,O.jz);F!==2&&(V=F?V:H+m.fu*1E3,m.XF&&(V+=m.fu*1E3));O.ol=y.call(J,l,V);O.fD<=O.K?V37(O):(O.LD=O.fD,O.UR=!0)}}; $Tr=function(O,V){if(V+1<=O.totalLength){var J=iO(O,V);J=J<128?1:J<192?2:J<224?3:J<240?4:5}else J=0;if(J<1||!(V+J<=O.totalLength))return[-1,V];if(J===1)O=iO(O,V++);else if(J===2)J=iO(O,V++),O=iO(O,V++),O=(J&63)+64*O;else if(J===3){J=iO(O,V++);var y=iO(O,V++);O=iO(O,V++);O=(J&31)+32*(y+256*O)}else if(J===4){J=iO(O,V++);y=iO(O,V++);var l=iO(O,V++);O=iO(O,V++);O=(J&15)+16*(y+256*(l+256*O))}else J=V+1,O.focus(J),uO(O,J,4)?O=Bzr(O).getUint32(J-O.U,!0):(y=iO(O,J+2)+256*iO(O,J+3),O=iO(O,J)+256*(iO(O,J+1)+ 256*y)),V+=5;return[O,V]}; wJ=function(O){this.Il=O;this.K=new Q8}; MR=function(O,V){this.info=O;this.callback=V;this.state=1;this.B_=this.Qg=!1;this.Bn=null}; Hho=function(O){return g.bA(O.info.BE,function(V){return V.type===3})}; L8=function(O,V,J,y){var l=this;y=y===void 0?{}:y;this.policy=V;this.Il=J;this.status=0;this.K=new Q8;this.j=0;this.GL=this.D=this.U=!1;this.xhr=new XMLHttpRequest;this.xhr.open(y.method||"GET",O);if(y.headers)for(O=y.headers,V=g.n(Object.keys(O)),J=V.next();!J.done;J=V.next())J=J.value,this.xhr.setRequestHeader(J,O[J]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return l.zv()}; this.xhr.onload=function(){return l.onDone()}; this.xhr.onerror=function(){return l.onError()}; this.xhr.fetch(function(m){l.K.append(m);l.j+=m.length;m=(0,g.cH)();l.Il.zk(m,l.j)},function(){},y.body||null)}; jor=function(O,V){this.j=(new TextEncoder).encode(O);this.K=(new TextEncoder).encode(V)}; GjU=function(O,V){var J;return g.Q(function(y){if(!V)return y.return(V);J=new g.XL(O.j);return y.return(J.encrypt(V,O.K))})}; rmH=function(O,V){var J;return g.Q(function(y){if(y.j==1){if(!V)return y.return(V);J=new g.XL(O.j);return y.K(J.decrypt(V,O.K),2)}return y.return(y.U)})}; CQp=function(O,V){var J=this;this.K=O;this.Il=V;this.loaded=this.status=0;this.error="";O=$3(this.K.get("range")||"");if(!O)throw Error("bad range");this.range=O;this.j=new Q8;this.run().then(function(){J.Il.xP()},function(y){J.error=""+y||"unknown_err"; J.Il.xP()})}; Nw7=function(O,V,J,y){var l=this;y=y===void 0?{}:y;this.policy=V;this.Il=J;this.V=y;this.status=0;this.response=void 0;this.j=0;this.aborted=this.W=!1;this.errorMessage="";this.T=function(m){if(m)if(l.status=m.status,m.ok&&m.body&&l.status!==204)l.status=l.status||242,l.U=m.body.getReader(),l.GL()?l.U.cancel().catch(function(){}):(l.responseHeaders=m.headers,l.Il.ZC(),FBV(l)); else l.onDone();else l.onError(Error("null_response"))}; this.S=function(m){var H=(0,g.cH)();l.GL()||(m.done?(l.U=void 0,l.onDone()):(m=m.value,l.j+=m.length,l.K.append(m),FBV(l),l.Il.zk(H,l.j)))}; this.onError=function(m){l.errorMessage=String(m);l.W=!0;l.onDone()}; this.K=new Q8;this.D=window.AbortController?new AbortController:void 0;this.start(O)}; FBV=function(O){O.U.read().then(O.S,O.onError).then(void 0,TK)}; xT5=function(O,V,J){var y=this;J=J===void 0?{}:J;this.Il=V;this.j=this.status=0;this.GL=this.K=!1;this.xhr=new XMLHttpRequest;this.xhr.open(J.method||"GET",O);if(J.headers){O=J.headers;V=g.n(Object.keys(O));for(var l=V.next();!l.done;l=V.next())l=l.value,this.xhr.setRequestHeader(l,O[l])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(m){y.zv(m)}; O=UC(function(m){y.onDone(m)}); this.xhr.addEventListener("load",O,!1);this.xhr.addEventListener("error",O,!1);J.body?this.xhr.send(J.body):this.xhr.send();this.xhr.addEventListener("progress",UC(function(m){y.onProgress(m)}),!1)}; n8=function(O,V,J,y,l){if(Ip(20,O.ZK))return new CQp(O,J);O=O.Cv();return y?MPo()?new L8(O,V,J,l):new Nw7(O,V,J,l):new xT5(O,J,l)}; XH=function(O,V){g.K.call(this);var J=this;this.policy=O;this.BE=V;this.j=0;this.K=null;this.gD=[];this.U=null;this.Ty={vv:function(){return J.BE}}; this.BE.length===1||g.bA(this.BE,function(y){return!!y.range})}; E0=function(O,V,J){O.K&&(GI(O.K,V),V=O.K,O.K=null);for(var y=0,l=0,m=g.n(O.BE),H=m.next();!H.done;H=m.next())if(H=H.value,H.range&&y+H.j<=O.j)y+=H.j;else{if(Fr(H)&&!J&&O.j+V.totalLength-l=400?(O.lastError="net.badstatus",!0):(l===void 0?0:l)?(O.lastError="ump.spsrejectfailure",!0):J||y!==void 0&&y?!1:(O.lastError=V===204?"net.nocontent":"net.connect",!0)}; K8=function(O,V){if(O.policy.yN)return!1;var J=V.getResponseHeader("content-type"),y=V.s6();O=!y||y<=O.policy.yS;return(!V.Xe()||!J||J.indexOf("text/plain")!==-1)&&O}; ciV=function(O,V){var J="";V=V.pF();V.totalLength<=O.policy.yS&&(O=AJ(V),O=B_(O),J=Wh(O)?O:"");return J}; gJ=function(O){return PX(O.D,ap(21,O.oG.ZK))}; sor=function(O){var V=O.timing.Zr();V.shost=ap(85,O.oG.ZK);O.policy.Pn&&O.policy.jr&&(V.csrc=1);return V}; Twl=function(O,V){return(O==null?void 0:O.maxWidth)>(V==null?void 0:V.maxWidth)||(O==null?void 0:O.maxHeight)>(V==null?void 0:V.maxHeight)}; e2X=function(O,V){for(var J=g.n(V.keys()),y=J.next();!y.done;y=J.next())if(y=V.get(y.value),y.length!==0){g.m$(y,function(F,N){return N.maxFramerate-F.maxFramerate}); for(var l=[y[0]],m=0,H=1;HO.K||J.push(y)}return J}; t$=function(O,V,J){var y=adU[O]||[];J.L("html5_shorts_onesie_mismatched_fix")&&(y=bhU[O]||[]);V.push.apply(V,g.q(y));J.L("html5_early_media_for_drm")&&V.push.apply(V,g.q(pK5[O]||[]))}; M3X=function(O,V){var J=g.vL(O),y=O.Y(),l=y.W;y=y.L("html5_shorts_onesie_mismatched_fix");var m=O.xb();if(y){if(!l.K){if(m&&uv)return uv;if(A$)return A$}}else if(A$&&!l.K)return A$;var H=[],F=[],N={},x=rJ.concat(fdr);y&&(x=rJ.concat(h2d));O.L("html5_early_media_for_drm")&&(x=x.concat(o3r),O.L("allow_vp9_1080p_mq_enc")&&x.push(v3r));var W=[].concat(g.q(wK7));O.L("html5_iamf_audio_onesie_fmt")&&W.push(["773"]);x=g.n(x);for(var U=x.next();!U.done;U=x.next()){var Z=!1;U=g.n(U.value);for(var z=U.next();!z.done;z= U.next()){z=z.value;var c=fT(z,m&&y);if(c&&c.video&&!(i$(c)&&!J.dW&&c.video.qualityOrdinal>J.FF)){var Y=g.Ry(O.Y().experiments,"html5_drm_byterate_soft_cap");Y>0&&Jgo(c)&&c.jq>Y||(Z?(H.push(z),t$(z,H,O)):(c=Sk(J,c,l),c===!0?(Z=!0,H.push(z),t$(z,H,O)):N[z]=c))}}}W=g.n(W);for(x=W.next();!x.done;x=W.next())for(x=g.n(x.value),Z=x.next();!Z.done;Z=x.next())if(Z=Z.value,(U=vTh(Z))&&U.audio&&(O.L("html5_onesie_51_audio")||!Rk(U)))if(U=Sk(J,U,l),U===!0){F.push(Z);t$(Z,F,O);break}else N[Z]=U;if(!O.L("html5_enable_audio_quality_setting"))for(O= g.n(["141","774"]),W=O.next();!W.done;W=O.next())W=W.value,F.includes(W)&&(g.um(F,W),N[W]="blkhqa");J.K&&V("orfmts",N);if(y)return l.K&&(l.K=!1,uv=A$=void 0),m?uv={video:H,audio:F}:A$={video:H,audio:F};A$={video:H,audio:F};l.K=!1;return A$}; g.XKY=function(O,V,J){var y=J.W,l=[],m=[],H=J.L("html5_shorts_onesie_mismatched_fix");O=O.xb();var F=rJ.concat(fdr);H&&(F=rJ.concat(h2d));J.L("html5_early_media_for_drm")&&(F=F.concat(o3r),J.L("allow_vp9_1080p_mq_enc")&&F.push(v3r));var N=[].concat(g.q(wK7));J.L("html5_iamf_audio_onesie_fmt")&&N.push(["773"]);F=g.n(F);for(var x=F.next();!x.done;x=F.next()){x=g.n(x.value);for(var W=x.next();!W.done;W=x.next()){W=W.value;var U=fT(W,O&&H);if(U&&U.video){var Z=g.Ry(J.experiments,"html5_drm_byterate_soft_cap"); if(!(Z>0&&Jgo(U)&&U.jq>Z)&&Sk(V,U,y)===!0){l.push({videoCodec:LBV[KN[W]],maxWidth:U.video.width,maxHeight:U.video.height,maxFramerate:U.video.fps});break}}}}H=g.n(N);for(O=H.next();!O.done;O=H.next())for(O=g.n(O.value),N=O.next();!N.done;N=O.next())if(N=N.value,(F=vTh(N))&&F.audio&&(J.L("html5_onesie_51_audio")||!Rk(F))&&Sk(V,F,y)===!0){m.push({audioCodec:n3Y[KN[N]],numChannels:F.audio.numChannels});break}return{videoFormatCapabilities:l,audioFormatCapabilities:m}}; g3V=function(O){var V,J={},y=O.pD,l=O.WE,m=O.Ax,H=y.getVideoData(),F=Mi(0),N=y.getVisibilityState();l.L("html5_enable_audio_quality_setting")&&(J.tp=l.tp);F&&(J.UHK=F,J.lastManualDirection=EpH(),F=pP7()||0,F>0&&(F=(l.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.cH)())-F,l.L("html5_use_date_now_for_local_storage")?F>0&&(J.timeSinceLastManualFormatSelectionMs=F):J.timeSinceLastManualFormatSelectionMs=F));F=l.L("html5_use_streamer_bandwidth_for_low_latency_live")&&H.isLowLatencyLiveStream; if((m.KD||l.L("html5_sabr_ugc_vod_web_embedded_client_default_bandwidth_on_iphone")&&iM)&&!F){var x;F=l.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!((x=O.Lv)==null||!x.VD):!1;J.Qt=mD(m,!F)}F=g.g3.medium;var W=Math.floor(F*16/9);(x=H.xb())||(H.K&&H.U&&H.U.videoInfos.length!==0?(x=H.U.videoInfos[0],x=!!x.video&&x.video.width0?{authorizedFormats:O.authorizedFormats}:{authorizedFormats:V}; O.sabrLicenseConstraint&&(J.KO.sabrLicenseConstraint=O.sabrLicenseConstraint);if(l.L("html5_onesie_media_capabilities")||Q1(H))J.P5=3;l.L("html5_onesie_audio_only_playback")&&f7(H)&&(J.P5=1);var w;((w=O.Lv)==null?0:w.zK)&&O.tBW&&(J.P5=J.P5===void 0?7:J.P5|4);w=H.zL?H.zL:g.vL(H);l.L("html5_onesie_media_capabilities")&&(J.mediaCapabilities=g.XKY(H,w,l));var L;if((L=O.Lv)==null?0:iv(L)){var X;L=O.aD;V=O.Xl;Z=(X=O.Lv)==null?void 0:X.jq;X=[];z=[];c=new Map;Y=g.n(H.MU.K.values());for(b=Y.next();!b.done;b= Y.next())if(b=b.value,b.jE)z.push({audioCodec:n3Y[b.al],numChannels:b.numChannels,spatialCapabilityBitmask:E3n[b.al]});else{M=LBV[b.al];N=b.maxBitrateBps||0;x=Z?Z*8:0;N={videoCodec:M,maxWidth:V?854:b.maxWidth||0,maxHeight:V?480:b.maxHeight||0,maxFramerate:b.maxFramerate||0,is10BitSupported:b.b7||!1,maxBitrateBps:x&&N?Math.min(x,N):x||N};if(b.al==="1"||b.al==="9")N.efficient=!0;b=M+"_"+b.b7;M=c.get(b)||[];M.push(N);c.set(b,M)}X=e2X(X,c);L=L?[].concat(g.q(L)):[];H.L("html5_ssff_denylist_opus_low")&& L.push(249,350);g.vL(H);J.mediaCapabilities={videoFormatCapabilities:X,audioFormatCapabilities:z,hdrModeBitmask:3,perPlaybackAttributes:L.length?{itagDenylist:L}:{}}}var u;if((u=O.Lv)==null?0:u.K){J.yQ=w.yQ;var G;J.FF=(G=O.Lv)==null?void 0:G.FF}l.Z_&&(J.yh=l.Z_);J.Fn=O.Hx;J.WO=O.WO;J.X8=O.X8;J.dM=O.dM;O.Ee&&(J.DEw=(0,g.cH)()-O.Ee);O.wB&&(J.wB=O.wB);xD||(J.bsD=!0);u=yR(m)*1E3;u>0&&(J.K9=u);var k;((k=O.Lv)==null?0:k.Jw)&&O.rd&&O.rd0?D:m.interruptions[0]||0;var Oo;if((Oo=O.Lv)==null?0:Oo.NH)J.Da=O.Da;l.zL&&(J.audioTrackId=l.zL);Cj(H)&&!J.audioTrackId&&(l.L("html5_fill_default_mosaic_audio_track_id")||(O=Vko(H),J.audioTrackId=O),H==null||H.jB("misstrkchg",{"default":J.audioTrackId}));if(O=KV7())J.detailedNetworkType= dTX[O]||dTX.other;!l.L("html5_enable_voice_boost")||H.xb()||H.isAd()||(J.J0l=l.zQ);return J}; RO=function(O,V,J,y,l,m,H){var F={};V&&(F.eY=V);if(!O)return F;F.playbackCookie=J==null?void 0:J.playbackCookie;l&&(F.l4=l);F.z6=[];F.Uq=[];if(H==null?0:H.size)for(V=g.n(H.values()),J=V.next();!J.done;J=V.next())F.Uq.push(J.value);if(O.sabrContextUpdates.size>0)for(V=g.n(O.sabrContextUpdates.values()),J=V.next();!J.done;J=V.next())qOl(F,J.value,y);tO(O)&&m&&qOl(F,m,y);y=O.Y().K;F.clientInfo={clientName:QoH[y.c.toUpperCase()]||0};y.cbrand&&(F.clientInfo.deviceMake=y.cbrand);y.cmodel&&(F.clientInfo.deviceModel= y.cmodel);y.cver&&(F.clientInfo.clientVersion=y.cver);y.cos&&(F.clientInfo.osName=y.cos);y.cosver&&(F.clientInfo.osVersion=y.cosver);y=O.Y();y.L("html5_sabr_enable_server_xtag_selection")&&y.MI&&(F.clientInfo.hl=y.MI);O.hI&&(F.hI=O.hI);return F}; qOl=function(O,V,J){var y=V.type||0;(J==null?0:J.has(y))?O.Uq.push(V):O.z6.push(y)}; xX=function(O,V,J,y,l,m){var H=m===void 0?{}:m;var F=H.hc===void 0?[]:H.hc;var N=H.vr===void 0?!1:H.vr;var x=H.l5===void 0?0:H.l5;var W=H.poToken===void 0?"":H.poToken;var U=H.CQ===void 0?void 0:H.CQ;var Z=H.vS===void 0?"":H.vS;var z=H.AO===void 0?0:H.AO;var c=H.Fb===void 0?new Uint8Array(0):H.Fb;var Y=H.Xw===void 0?!1:H.Xw;m=H.tj===void 0?0:H.tj;H=H.eY===void 0?void 0:H.eY;MR.call(this,V,l);var b=this;this.policy=O;this.logger=new g.vK("dash/request");this.fY=this.FD=0;this.Y6=!1;this.tR=this.b2= null;this.UT=!1;this.Fb=this.AO=null;this.gK=this.l1=!1;this.Wx=null;this.tj=this.dw=0;this.eT=!1;this.Ty={gX:function(w){b.gX(w)}, Bwl:function(){return b.Bn}, ImX:function(w){b.Bn=w}, c3j:function(w){b.FD=w}, y3W:function(w){b.iR.lastError=w}, dT:function(){return b.xhr}}; this.timing=new f8(this,J);this.vr=N;this.AO=z;this.Fb=c;this.oG=g.TQ(this.info,this.policy,y);this.oG.set("rn",this.Lw().toString());this.oG.set("rbuf",(x*1E3).toFixed().toString());this.vr&&this.oG.set("smb","1");this.policy.TQ&&W&&this.oG.set("pot",W);Z&&this.oG.set("bbs",Z);this.policy.useUmp&&!Ip(11,this.oG.ZK)&&(this.Fp=new wJ(this),this.oG.set("ump","1"),this.oG.set("srfvp","1"));if(O=this.policy.aT?this.policy.Rg&&!isNaN(this.info.jz)&&this.info.jz>this.policy.a4?!1:!0:!1)V=null,this.policy.rP&& this.policy.jk?V=[1]:Y&&(V=[]),V!=null&&(this.policy.tX&&V.push(2),this.oG.set("defsel",V.join(",")));this.iR=new dJ(this,this.policy,this.oG,this.info.uh,this.timing,this.logger,y,U);this.hc=F||null;this.B_=GQr(this);WB7(this.iR);y=void 0;if(this.policy.zav||this.Fp||this.policy.yz)y={method:"POST"},F=(0,g.Bd)([120,0]),U={},H&&(H=RO(void 0,H),U.Dh=H),this.policy.UF&&this.Fb&&(U.videoPlaybackUstreamerConfig=this.Fb),this.policy.yz&&(H=this.info.D)&&Object.assign(U,H),Object.keys(U).length>0?y.body= g.mH(U,g.ok):y.body=F;if(this.AO&&this.Fb){this.oG.set("iwts","1");y={method:"POST"};H={dM:this.AO*1E3};var M;F=(M=this.info.D)==null?void 0:M.QI;M=g.mH({Aj:H,QI:F||void 0,videoPlaybackUstreamerConfig:this.Fb},g.ok);y.body=M}try{this.xhr=n8(this.oG,this.policy.T,this.timing,O,y),this.iR.j.start(),m&&(this.Lh=new g.t_(this.kz,m,this),this.Lh.start(m+(this.timing.Ax.T.cC()||0)*1E3)),g.YS(function(){})}catch(w){KBH(this,w,!0)}}; GQr=function(O){if(!(sO(O.info)&&O.info.J$()&&O.policy.dD&&O.hc)||O.info.uh.U>=2||Mi()>0||!QEo())return!1;var V=O.oG.get("aitags");if(!V)return!1;V=gO(V).split(",");for(var J=[],y=g.n(O.hc),l=y.next();!l.done;l=y.next())l=l.value,g.Kd(V,l)&&J.push(l);if(!J.length)return!1;O.oG.set("altitags",g.dO(J.join(",")));return!0}; KBH=function(O,V,J){J=J===void 0?!1:J;g.sk(V);O.iR.lastError="player.exception";O.errorMessage=V.name+"_"+V.message;J?g.YS(function(){QR(O.iR)}):QR(O.iR)}; t3p=function(O,V){O.timing.KD=!0;O.xhr.Xe()&&O.timing.T$();if(O.policy.MI){var J;(J=O.Lh)==null||J.stop()}E0(O.Bn,V,!1)}; ur7=function(O){O.dw&&(O.xhr.status=O.dw,O.FD=O.dw)}; Pd=function(O,V){bv.call(this,O,V);this.ol=!0;this.fD=!1;this.yz=this.LD=0;this.E5=NaN}; Ai5=function(O,V,J){var y=O.pB?Math.max(V,J/O.pB):V,l=O.Ax.j.U;l&&(y=V,O.pB&&(y=Math.max(V,J/O.pB*l)));h$(O.Ax,V,J,y)}; kX=function(O,V){this.Il=V;this.j={};this.logger=new g.vK(O)}; SK=function(O){kX.call(this,"sabr",O);this.Il=O;this.K=[]}; rir=function(O,V,J){switch(V){case 35:O.q5(J);break;case 44:O.PO(J);break;case 43:O.NZ(J);break;case 53:O.H8(J);break;case 56:O.EH();break;case 57:O.I1(J);break;case 42:O.oa(J);break;case 45:O.lW(J);break;case 59:O.nV(J);break;case 51:O.HO(J);break;case 49:O.Mk(J);break;case 50:O.Qx(J);break;case 47:O.ZZ(J);break;case 58:O.nh(J);break;case 61:O.Il.sA.Ov((0,g.cH)());break;case 66:O.JU(J);break;case 46:O.Sc(J);break;case 67:O.onSnackbarMessage(J);break;case 71:V=lV(J,AVr),O.Il.Qe(V)}}; Dz=function(O){g.K.call(this);this.D=O;this.logger=new g.vK("onesie");this.cB=new Map;this.j=this.K=!1;this.Lv=this.xi=null;this.U=!1}; ihp=function(O,V,J){O.cB.get(V).onProgress=J}; JK=function(O,V){O.cB.has(V)&&(O1?O.cB.get(V).Iz.clear():O.cB.get(V).gD=new Q8,VG(O,V),O.j=!0)}; R2o=function(O){for(var V=g.n(O.cB),J=V.next();!J.done;J=V.next()){var y=g.n(J.value);J=y.next().value;y=y.next().value;y.sD||JK(O,J)}}; Bwp=function(O,V){V=O.cB.get(V);if(!V)return 0;O=0;if(V.BE.length>0){V=g.n(V.BE);for(var J=V.next();!J.done;J=V.next()){var y=void 0;O+=((y=J.value.range)==null?void 0:y.length)||0}return O}if(V.dn.length>0)for(J=g.n(V.dn),y=J.next();!y.done;y=J.next())O+=y.value.R_||0;return O+V.Gl}; yG=function(O,V){if(O1){var J=0;O=O.cB.get(V);if(O==null||!O.Iz)return 0;O=g.n(O.Iz.values());for(V=O.next();!V.done;V=O.next())J+=V.value.data.totalLength;return J}return((J=O.cB.get(V))==null?void 0:J.gD.totalLength)||0}; lC=function(O,V){O=O.cB.get(V);if(O1){if(O==null||!O.sD)return!1;V=O.Iz.size>0;return O.Xg.length>0||V}return!(O==null||!O.sD)&&!(O==null||!O.gD.totalLength)}; PQ5=function(O,V){var J=O.cB.get(V),y=Bwp(O,V),l=!y&&!!J.bytesReceived;if(O1){var m;if((m=O.xi)==null?0:m.Gy){O=g.n(J.Iz.values());for(V=O.next();!V.done;V=O.next())if(!V.value.t7)return!1;return l}}else if(m=O.NN(V),l&&O.K&&m!==void 0)return m;return(l||J.bytesReceived===y)&&J.KY+yG(O,V)===J.bytesReceived}; kQo=function(O,V,J,y){J.BE.push.apply(J.BE,g.q(y));if(O1){J.KZ.has(V)||J.KZ.set(V,[]);var l;(l=J.KZ.get(V)).push.apply(l,g.q(y))}else if(J.Bn)for(O=g.n(y),V=O.next();!V.done;V=O.next())J.Bn.BE.push(V.value);else{J.Bn=new XH(O.Lv,[].concat(g.q(J.BE)));var m;((m=O.Lv)==null?0:m.SK)&&g.t(O,J.Bn)}}; SOY=function(O,V,J){var y,l=(y=O.xi)==null?void 0:y.U.get(V);if(!l)return[];if(J.Fk){var m;return((m=l.ST(0,J.clipId))==null?void 0:m.BE)||[]}if(l.e8()){var H=J.startMs,F=J.durationMs;y=1E3;var N;if(((N=O.Lv)==null?0:N.K)&&J.timeRange){var x;H=(x=J.timeRange.startTicks)!=null?x:-1;var W;F=(W=J.timeRange.XY)!=null?W:-1;var U;y=(U=J.timeRange.timescale)!=null?U:-1}if(J.FG<0||J.Wh<0||F<0||H<0||J.R_<0||y<0)return JK(O,V),[];O=HK(J.FG,J.R_);V=J.oY||0;return[new Ch(3,l,O,"makeSliceInfosMediaBytes",J.Wh- 1,H/y,F/y,V,O.length-V,void 0,J.Yn,J.clipId)]}if(J.Wh<0)return JK(O,V),[];var Z;return((Z=O.xi)==null?0:Z.Gy)?(V=l.M8,N=V*l.info.jq,x=J.oY,((H=O.Lv)==null?0:H.K)&&O.D.lP()!=="ONESIE"&&J.timeRange&&!x&&(F=J.timeRange.startTicks/J.timeRange.timescale),[new Ch(3,l,void 0,"makeSliceInfosMediaBytes",J.Wh,F,V,x,N,!0,J.Yn,J.clipId)]):[]}; DTY=function(O,V,J){O.xi=V;O.Lv=J;V=g.n(O.cB);for(J=V.next();!J.done;J=V.next()){var y=g.n(J.value);J=y.next().value;y=y.next().value;for(var l=g.n(y.WU),m=l.next();!m.done;m=l.next()){m=m.value;var H=SOY(O,J,m);kQo(O,m.d6,y,H)}}}; m0=function(O,V,J,y){(O=O.cB.get(J))&&!O.Qu&&(O1?(O.Iz.has(V)||O.Iz.set(V,{data:new Q8,vx:0,t7:!1}),GI(O.Iz.get(V).data,y)):GI(O.gD,y),O.bytesReceived+=y.totalLength,O.gi=!0)}; VG=function(O,V){if((V=O.cB.get(V))&&!V.Qu){V.Qu=!0;if(V.onProgress)V.onProgress();a:{V=g.n(O.cB.values());for(var J=V.next();!J.done;J=V.next())if(!J.value.Qu){V=!1;break a}V=!0}V&&O.D.NW()}}; Osr=function(O){O1=O}; $l=function(O,V,J,y,l,m,H){g.K.call(this);this.policy=O;this.info=V;this.xi=J;this.Il=l;this.logger=new g.vK("sabr");this.Fp=new wJ(this);this.fR=new SK(this);this.Ca=new Dz(this);this.state=1;this.eJ=!1;this.Tr=0;this.clipId="";this.Dq=-1;this.Gx=0;this.e1=-1;this.Kg=this.M7=this.eT=this.Gn=!1;this.policy.Ex?this.sA=new Pd(this,m):this.sA=new f8(this,m);this.oG=this.policy.NH?V.M3:VUd(V,this.policy,y);this.oG.set("rn",""+this.Lw());this.oG.set("alr","yes");DTY(this.Ca,J,O);this.iR=new dJ(this,this.policy, this.oG,V.uh,this.sA,this.logger,y,H,this.policy.enableServerDrivenRequestCancellation);WB7(this.iR);var F;if((F=this.policy)==null?0:F.SK)g.t(this,this.Ca),g.t(this,this.iR);O=V.j;V={method:"POST",body:O};O&&(this.Gx=O.length);try{this.xhr=n8(this.oG,this.policy.T,this.sA,xD,V),this.iR.j.start()}catch(N){g.en(N)}}; JTX=function(O){O.policy.uF&&O.Zy&&!O.M7?O.M7=!0:O.sA.T$()}; yTY=function(O,V){var J=-1,y=-1,l=-1,m;if((m=O.Nn)==null?0:m.items)for(O=g.n(O.Nn.items),m=O.next();!m.done;m=O.next())m=m.value,V=F,N=O.xi.isManifestless,H){var x;if(((x=O.K)==null?void 0:x.lO.event)==="predictStart"&&O.K.wWO.W&&(O.W=NaN,O.V=NaN);if(O.K&&O.K.wW===V){if(y=O.K,!O.policy.W||!O.policy.j)if(l&&y){var H=y.lO;m=l.SJ(H);H.event==="predictStart"&&(O.KD=V);O.jB("sdai",{onqevt:H.event,sq:V,mt:J,gab:m,cst:H.startSecs,cueid:O.policy.x_&&(m||H.event==="start")?H.identifier:void 0},!0);if(m)if(H.event!=="predictStart")H.event==="start"&&O.KD===V-1&&O.jB("sdai", {gabonstart:V}),y.n5?FF(O,4,"cue"):(O.W=V,O.V=J,O.jB("sdai",{joinad:O.j,sg:O.W,st:O.V.toFixed(3)}),O.T=Date.now(),FF(O,2,O.j===3?"staftpred":"join"),Wc5(l,y.lO));else{var F=US1(O);V+=Math.max(Math.ceil(-H.K/F),1);H=Math.floor(J-H.K/1E3);O.policy.j?O.U=H:O.D=V;O.jB("sdai",{onpred:J,estsq:V,estmt:H.toFixed(3)});N5(O.loader,H,H,V,F);O.T=Date.now();FF(O,3,"predict");Wc5(l,y.lO)}else O.j===1?((F=O.Qc)==null?0:F.sb?0:xl(F,J))?(N5(O.loader,J,J,V),FF(O,4,"sk2head")):FF(O,5,"nogab"):H.event==="predictStart"&& (O.policy.j&&O.U>0?(J=Math.floor(J-H.K/1E3),O.U!==J&&O.jB("sdai",{updateSt:J,old:O.U}),O.U=J):O.D>0&&(J=V+Math.max(Math.ceil(-H.K/US1(O)),1),O.D!==J&&(O.jB("sdai",{updateSt:J,old:O.D}),O.D=J)))}else O.jB("sdai",{nulldec:1,sq:V,mt:J.toFixed(3),evt:(y==null?void 0:(H=y.lO)==null?void 0:H.event)||"none"})}else O.j===1&&FF(O,5,"noad")}; z8Y=function(O,V,J){if(O.policy.Vz?0:O.j===1||O.j===2)return!1;if(O.j!==0&&V===O.audioTrack){if(O.policy.j)return Zs5(O.videoTrack,J)||Zs5(O.videoTrack,J+1);O=W6(O.videoTrack);if(J>(O?O.wW:-1))return!1}return!0}; U1=function(O,V,J){return(J<0||J===O.W)&&!isNaN(O.V)?O.V:V}; US1=function(O){switch(O.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}}; C8r=function(O,V){if(O.K){var J=O.K.lO.rN-(V.startTime+O.S-O.K.lO.startSecs);J<=0||(J=new zP(O.K.lO.startSecs-(isNaN(O.S)?0:O.S),J,O.K.lO.context,O.K.lO.identifier,"stop",O.K.lO.K+V.duration*1E3),O.jB("cuepointdiscontinuity",{segNum:V.wW}),C4(O,J,V.wW))}}; FF=function(O,V,J){O.j!==V&&(O.jB("sdai",{setsst:V,old:O.j,r:J}),O.j=V)}; ZT=function(O,V,J,y){(y===void 0?0:y)?FF(O,1,"seek"):V>0&&Math.abs(V-J)>=5&&O.j===4&&FF(O,5,"sk2t")}; cTY=function(O,V,J,y){var l=this;this.policy=O;this.jB=V;this.S=J;this.K=y;this.D=void 0;this.j=new Set;this.V=-1;this.U=0;this.W=!1;this.Ty={dzv:function(){return l.j}}}; T$r=function(O,V){var J,y=-(((J=V.lO)==null?void 0:J.zi)||0);V.timeRange&&(y+=(V.timeRange.startTicks||0)/(V.timeRange.timescale||1));var l,m,H,F,N;return new zP(y,((l=V.lO)==null?void 0:l.Xhn)||0,((m=V.lO)==null?void 0:m.Fv)||"",((H=V.lO)==null?void 0:H.identifier)||"",s2o((F=V.lO)==null?void 0:F.event),(((N=V.lO)==null?void 0:N.zi)||0)*1E3,O.policy.Eb?V.tileContext:void 0)}; z6=function(O,V){return V?O.policy.Eb&&V.tileContext?V.identifier+";"+V.tileContext:V.identifier:""}; e8o=function(O,V){for(var J="",y=[],l=g.n(O.K.entries()),m=l.next();!m.done;m=l.next()){var H=g.n(m.value);m=H.next().value;H=H.next().value;var F=void 0,N=void 0,x=void 0;((F=H)==null?void 0:F.startTimeSecs)<=V&&V<=((N=H)==null?void 0:N.startTimeSecs)+((x=H)==null?void 0:x.rN)&&y.push(m);N=F=void 0;J+=m+":"+((F=H)==null?void 0:F.startTimeSecs.toFixed(3))+":"+((N=H)==null?void 0:N.rN.toFixed(3))+";"}y.length===0&&O.jB("clsdai",{no_cid:1,mt:V.toFixed(3),adConfigMap:J.substring(0,1024)});return y}; s2o=function(O){if(!O)return"unknown";switch(O){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; Ibn=function(O){switch(O){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; c6=function(O,V,J){this.audio=O;this.video=V;this.reason=J}; s1=function(O,V,J,y){this.K=O;this.reason=V;this.source=J;this.token=y}; T6=function(O,V,J){g.K.call(this);this.policy=O;this.D=V;this.jB=J;this.U=new Map;this.W=0;this.V=!1;this.K="";this.j=!1}; ez=function(O,V,J){if(J===void 0?0:J)O.V=!0;++O.W;J=6E4*Math.pow(2,O.W);J=(0,g.cH)()+J;O.U.set(V.info.id,J)}; IB=function(O){for(var V=g.n(O.U.entries()),J=V.next();!J.done;J=V.next()){var y=g.n(J.value);J=y.next().value;y=y.next().value;y<(0,g.cH)()&&O.U.delete(J)}return O.U}; Yl=function(O,V){O.K!==V&&(O.K=V,O.j=!0)}; Y_5=function(O,V){var J;V&&(J=g.Qs(O.D.K,function(l){return l.id===V})); if(!J&&(J=g.Qs(O.D.K,function(l){var m;return!((m=l.wC)==null||!m.isDefault)}),V)){var y; O.jB("iaf",{id:V,sid:(y=J)==null?void 0:y.id})}return J}; aB=function(O){this.K=this.j=0;this.alpha=Math.exp(Math.log(.5)/O)}; p4=function(O,V,J,y,l,m){var H=this;m=m===void 0?[]:m;this.loader=O;this.fD=V;this.policy=J;this.xi=y;this.V=l;this.ol=m;this.logger=new g.vK("dash/abr");this.K=xZ;this.U=this.S=null;this.qX=-1;this.LD=!1;this.nextVideo=this.j=null;this.D=[];this.E5=new Set;this.Vz={};this.TL=new aB(1);this.T=0;this.nD=this.lw=this.KD=!1;this.O5=0;this.zL=!1;this.dW=new Set;this.yz=!1;this.Ty={Pq:function(){bC(H)}}; this.W=new T6(this.policy,l,function(F,N){H.loader.jB(F,N)})}; h8H=function(O,V,J){f4(O,V);V=Y_5(O.W,J);J||V||(V=abd(O));V=V||O.V.K[0];O.j=O.xi.K[V.id];bC(O);O.S=O.j;bsn(O);O.ol.length&&(O.nextVideo=pjh(O,O.nextVideo,O.V.videoInfos),O.j=pjh(O,O.j,O.V.K));O.U=O.nextVideo;O.S=O.j;return fbo(O)}; vA7=function(O,V){if(oAn(O,V))return null;if(V.reason==="m"&&V.isLocked())return f4(O,V),O.T=O.D.length-1,bC(O),hK(O),O.lw=O.lw||O.U!==O.nextVideo,O.U=O.nextVideo,new c6(O.j,O.U,V.reason);V.reason==="r"&&(O.qX=-1);f4(O,V);hK(O);if(V.reason==="r"&&O.nextVideo===O.U)return new c6(O.j,O.nextVideo,V.reason);O.U&&O.nextVideo&&oB(O,O.U.info)1.5&&O.loader.jB("overshoot",{sq:V.wW,br:J,max:y}))}}; v6=function(O,V,J){ez(O.W,V,J===void 0?!1:J);O.qX=-1;f4(O,O.K)}; Lcn=function(O,V){return new c6(O.S,O.U,V||O.K.reason)}; fbo=function(O){O.LD?O.LD=!1:O.qX=(0,g.cH)();O.KD=!1;O.yz=!1;return new c6(O.S,O.U,O.K.reason)}; nAX=function(O,V){var J={};V=g.n(V);for(var y=V.next();!y.done;y=V.next())if((y=y.value)&&y.video){var l=y.video.qualityOrdinal,m=J[l],H=m&&i$(m)&&m.video.qualityOrdinal>O.policy.FF,F=l<=O.policy.FF?i$(y):u$(y);if(!m||H||F)J[l]=y}return J}; f4=function(O,V){O.K=V;var J=O.V.videoInfos;if(!O.K.isLocked()){var y=(0,g.cH)();J=g.L1(J,function(H){if(H.jq>this.policy.jq)return!1;var F=this.xi.K[H.id];return IB(this.W).get(H.id)>y||F.uh.U>4||F.V>4?!1:this.dW.has(+H.itag)?!1:!0},O); O.W.Xl()&&(J=g.L1(J,function(H){return H.video.width<=854&&H.video.height<=480}))}J.length||(J=O.V.videoInfos); var l=J;O.policy.LG&&(l=XjX(O,l,V));l=g.L1(l,V.D,V);if(O.K.isLocked()&&O.W.K){var m=g.Qs(J,function(H){return H.id===O.W.K}); m?l=[m]:Yl(O.W,"")}O.policy.LG||(l=XjX(O,l,V));l.length||(l=[J[0]]);l.sort(function(H,F){return oB(O,H)-oB(O,F)}); V={};for(J=1;JV.R7.video.width?(g.tI(l,J),J--):oB(O,V.M0)*O.policy.qX>oB(O,V.R7)&&(g.tI(l,J-1),J--);V=l[l.length-1];O.zL=!!O.U&&!!O.U.info&&O.U.info.al!==V.al;O.D=l;O.E5.clear();J=!1;for(m=0;m=1080&&(J=!0);EAp(O.policy,V,O.xi.Gy)}; XjX=function(O,V,J){var y=J.reason==="m"||J.reason==="s";O.policy.Pu&&wn&&g.CH&&(!y||J.K<1080)&&(V=V.filter(function(x){return x.video&&(!x.j||x.j.powerEfficient)})); if(V.length>0)if(U4()){var l=nAX(O,V);V=V.filter(function(x){return!!x&&!!x.video&&x.al===l[x.video.qualityOrdinal].al})}else{var m,H,F=(m=V[0])==null?void 0:(H=m.video)==null?void 0:H.qualityOrdinal; if(F){J=V.filter(function(x){return!!x&&!!x.video&&x.video.qualityOrdinal===F}); var N=nAX(O,J)[F].al;V=V.filter(function(x){return!!x&&!!x.video&&x.al===N})}}return V}; dSn=function(O,V){for(var J=0;J+1y}; bC=function(O){if(!O.j||!O.policy.D&&!O.j.info.wC){var V=O.V.K;O.j&&(V=V.filter(function(y){return y.audio.K===O.j.info.audio.K}),V.length||(V=O.V.K)); O.j=O.xi.K[V[0].id];if(V.length>1&&!O.policy.O5){if(!O.policy.jJ){var J=g.Qs(V,function(y){return y.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); J&&(O.j=O.xi.K[J.id])}J=!1;if(J=O.policy.Jg?!0:O.K.isLocked()?O.K.K<240:dSn(O,O.j))O.j=O.xi.K[g.Ez(V).id]}}}; hK=function(O){if(!O.nextVideo||!O.policy.D)if(O.K.isLocked())O.nextVideo=O.K.K<=360?O.xi.K[O.D[0].id]:O.xi.K[g.Ez(O.D).id];else{for(var V=Math.min(O.T,O.D.length-1),J=Hd(O.fD),y=oB(O,O.j.info),l=J/O.policy.fD-y;V>0&&!(oB(O,O.D[V])<=l);V--);for(J=J/O.policy.qX-y;V=J);V++);O.nextVideo=O.xi.K[O.D[V].id];O.T=V}}; bsn=function(O){var V=O.policy.fD,J=Hd(O.fD)/V-oB(O,O.j.info);V=g.GD(O.D,function(y){return oB(this,y)m?l=0:y[H]>O.buffered[H]&&(H===m-1?l=2:H===m-2&&y[H+1]>O.buffered[H+1]&&(l=3))}O.K.add(V<<3|(J&&4)|l);V=Math.ceil(O.track.Mj()*1E3);O.K.add(V-O.W);O.W=V;if(l===1)for(O.K.add(m),H=V=0;H=2&&O.K.add(y[m- 1]-O.buffered[m-1]);J&&O.K.add(J);O.buffered=y}; gn=function(O,V,J){var y=this;this.policy=O;this.K=V;this.O5=J;this.D=this.j=0;this.Sj=null;this.KD=new Set;this.qX=[];this.indexRange=this.initRange=null;this.T=new hN;this.lw=this.fD=!1;this.Ty={TwX:function(){return y.U}, voz:function(){return y.chunkSize}, p4v:function(){return y.S}, erN:function(){return y.V}}; (V=tU1(this))?(this.chunkSize=V.csz,this.U=Math.floor(V.clen/V.csz),this.S=V.ck,this.V=V.civ):(this.chunkSize=O.QN,this.U=0,this.S=g.mR(16),this.V=g.mR(16));this.W=new Uint8Array(this.chunkSize);this.S&&this.V&&(this.crypto=new jor(this.S,this.V))}; tU1=function(O){if(O.policy.qq&&O.policy.Sn)for(var V=g.n(O.policy.qq),J=V.next(),y={};!J.done;y={c7:void 0,a7:void 0},J=V.next())if(J=g.SB(J.value),y.c7=+J.clen,y.a7=+J.csz,y.c7>0&&y.a7>0&&O.policy.D===J.docid&&O.K.info.id===J.fmtid&&O.K.info.lastModified===+J.lmt)return O={},O.clen=y.c7,O.csz=y.a7,O.ck=J.ck,O.civ=J.civ,O}; q5=function(O){return!!O.Sj&&O.Sj.yZ()}; rT7=function(O,V){if(!q5(O)&&!O.GL()){if(!(O.fD||(O.fD=!0,O.U>0))){var J=QG(O);J=y1(O.policy.D,O.K.info,G6(O),J,O.policy.eB);K4(O,J)}if(V.info.type===1){if(O.Sj){tK(O,Error("Woffle: Expect INIT slices to always start us off"));return}O.initRange=HK(0,V.j.totalLength)}else if(V.info.type===2)O.Sj&&O.Sj.type===1||tK(O,Error("Woffle: Index before init")),O.indexRange=HK(O.initRange.end+1,V.j.totalLength);else if(V.info.type===3){if(!O.Sj){tK(O,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(O.Sj.type===3&&!x3(O.Sj,V.info)&&(O.qX=[],V.info.wW!==WK(O.Sj)||V.info.K!==0))return;if(V.info.U){J=g.n(O.qX);for(var y=J.next();!y.done;y=J.next())uZr(O,y.value);O.qX=[]}else{O.qX.push(V);O.Sj=V.info;return}}else{tK(O,Error("Woffle: Unexpected slice type"));return}O.Sj=V.info;uZr(O,V);ATh(O)}}; uZr=function(O,V){var J=0,y=AJ(V.j);if(O.D=y.length)return;if(J<0)throw Error("Missing data");O.D=O.U;O.j=0}for(l={};J0){var H=y.getUint32(J+28);m+=H*16+4}var F=y.getUint32(J+m-4);try{var N=kA5(V.subarray(J+m,J+m+F));if(N!==null){var x=N;break a}}catch(W){}}J+=l}x=null;break a}catch(W){x=null;break a}x=void 0}if(x!=null)for(V=fK(NH(x,7,void 0,us)),V==null||O.ey||(O.cryptoPeriodIndex=V),V=fK(NH(x,10,void 0,us)),V!=null&&V>0&& !O.ey&&(O.K=V),x=sf(x,2,SDd,void 0===Vgl?2:4),x=g.n(x),y=x.next();!y.done;y=x.next())V=O.U,J=V.push,y=KD(y.value),y=g.nD(y,4),J.call(V,y)}; DSl=function(O){return isNaN(O.cryptoPeriodIndex)?g.nD(O.initData):""+O.cryptoPeriodIndex}; rn=function(O,V,J){var y=J===void 0?{}:J;J=y.videoDuration===void 0?0:y.videoDuration;var l=y.K8===void 0?void 0:y.K8;y=y.fT===void 0?!1:y.fT;this.videoId=O;this.status=V;this.videoDuration=J;this.K8=l;this.fT=y}; OTr=function(O,V,J,y,l){this.videoId=O;this.LC=V;this.j=J;this.bytesDownloaded=y;this.K=l}; iC=function(O){this.K=O;this.offset=0}; RB=function(O){if(O.offset>=O.K.totalLength)throw Error();return iO(O.K,O.offset++)}; VNh=function(O,V){V=V===void 0?!1:V;var J=RB(O);if(J===1){V=-1;for(J=0;J<7;J++){var y=RB(O);V===-1&&y!==255&&(V=0);V>-1&&(V=V*256+y)}return V}y=128;for(var l=0;l<6&&y>J;l++)J=J*256+RB(O),y*=128;return V?J:J-y}; JOo=function(O){try{var V=VNh(O,!0),J=VNh(O,!1);return{id:V,size:J}}catch(y){return{id:-1,size:-1}}}; yOh=function(O){for(var V=new iC(O),J=-1,y=0,l=0;!y||!l;){var m=JOo(V),H=m.id;m=m.size;if(H<0)return;if(H===176){if(m!==2)return;y=V.TR()}else if(H===186){if(m!==2)return;l=V.TR()}H===374648427?J=V.TR()+m:H!==408125543&&H!==174&&H!==224&&V.skip(m)}V=rX(O,0,J);J=new DataView(V.buffer);J.setUint16(y,3840);J.setUint16(l,2160);y=new Q8([V]);GI(y,O);return y}; lGo=function(O,V,J){var y=this;this.loader=O;this.policy=V;this.vE=J;this.logger=new g.vK("dash");this.j=[];this.K=null;this.lw=-1;this.T=0;this.O5=NaN;this.qX=0;this.U=NaN;this.S=this.Vz=0;this.E5=-1;this.dW=this.D=this.W=this.fD=null;this.nD=this.yz=NaN;this.V=this.KD=this.LD=this.zL=null;this.TL=!1;this.ol=this.timestampOffset=0;this.Ty={xE:function(){return y.j}}; if(this.policy.D){var l=this.vE,m=this.policy.D;this.policy.eB&&O.jB("atv",{ap:this.policy.eB});this.V=new gn(this.policy,l,function(H,F,N){O.pD.cR(new rn(y.policy.D,2,{K8:new OTr(m,H,l.info,F,N)}))}); this.V.T.promise.then(function(H){y.V=null;H===1?O.pD.cR(new rn(y.policy.D,H)):y.loader.jB("offlineerr",{status:H.toString()})},function(H){var F=(H.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); H instanceof uC&&!H.K?(y.loader.jB("offlinenwerr",{em:F}),B6(y),O.pD.cR(new rn(y.policy.D,4))):(y.loader.jB("dldbwerr",{em:F}),B6(y),O.pD.cR(new rn(y.policy.D,4,{fT:!0})))})}}; mAd=function(O){return O.j.length?O.j[0]:null}; $An=function(O,V){return O.j.some(function(J){return J.info.wW===V})}; NUV=function(O,V,J,y){y=y===void 0?0:y;if(O.D){var l=O.D.K+O.D.j;if(J.info.K>0)if(J.info.wW===O.D.wW&&J.info.K=0&&O.D.wW>=0&&!x3(O.D,J.info))throw new g.pn("improper_continuation",O.D.rX(),J.info.rX());SS1(O.D,J.info)||P6(O,"d")}else if(J.info.K>0)throw new g.pn("continuation_of_null",J.info.rX());O.D=J.info;O.vE=J.info.vE;if(J.info.K===0){if(O.K)if(!O.loader.isOffline()||O.policy.yD)O.loader.jB("slice_not_fully_processed", {buffered:O.K.info.rX(),push:J.info.rX()});else throw new g.pn("slice_not_fully_processed",O.K.info.rX(),J.info.rX());kl(O);O.Vz=y}else{if(O.Vz&&y&&O.Vz!==y)throw O=new g.pn("lmt_mismatch",J.info.wW,O.Vz,y),O.level="WARNING",O;!J.info.vE.e8()&&O.W&&(y=J.info,l=O.W.Dq,y.V="updateWithEmsg",y.wW=l)}if(O.K){y=g.nh(O.K,J);if(!y)throw new g.pn("failed_to_merge",O.K.info.rX(),J.info.rX());O.K=y}else O.K=J;a:{J=g.Bg(O.K.info.vE.info);if(O.K.info.type!==3){if(!O.K.info.U)break a;O.K.info.type===6?HTh(O,V, O.K):jxd(O,O.K);O.K=null}for(;O.K;){y=O.K.j.totalLength;if(O.lw<=0&&O.T===0){var m=O.K.j,H=-1;l=-1;if(J){for(var F=0;F+80))break;if(U!==408125543)if(U===524531317)F=!0,W>=0&&(l=m.TR()+W,N=!0);else{if(F&&(U===160||U===163)&&(H<0&&(H=x),N))break;U===163&&(H=Math.max(0,H),l=m.TR()+W);if(U===160){H<0&&(l=H= m.TR()+W);break}m.skip(W)}}H<0&&(l=-1)}if(H<0)break;O.lw=H;O.T=l-H}if(O.lw>y)break;O.lw?(y=Cd7(O,O.lw),y.W&&FqH(O,y),HTh(O,V,y),Sz(O,y),O.lw=0):O.T&&(y=Cd7(O,O.T<0?Infinity:O.T),O.T-=y.j.totalLength,Sz(O,y))}}O.K&&O.K.info.U&&(Sz(O,O.K),O.K=null)}; jxd=function(O,V){!V.info.vE.e8()&&V.info.K===0&&(g.Bg(V.info.vE.info)||V.info.vE.info.ey())&&Xsl(V);if(V.info.type===1)try{FqH(O,V),xAr(O,V)}catch(l){g.sk(l);var J=UO(V.info);J.hms="1";O.loader.handleError("fmt.unparseable",J||{},1)}J=V.info.vE;J.oQ(V);O.V&&rT7(O.V,V);if(J.lk()&&O.policy.K)a:{O=O.loader.xi;V=V.info.clipId;J=g.k7(J.info,O.Gy);if(V){var y=Ji({itag:J.itag,lmt:O.Gy?0:J.lmt||0,xtags:J.xtags});if(O.nD[y])break a;O.nD[y]=V}O.E5.push(J)}}; ACV=function(O,V,J){if(O.j.length!==0&&(J||O.j.some(function(m){return m.info.D=OR(H)+F):V=O.getDuration()>=H.getDuration(),V=!V;V&&UA1(J)&&(V=O.fD,DT?(F=LTr(J),H=1/F,F=OR(O,F),V=OR(V)+H-F):V=V.getDuration()- O.getDuration(),V=1+V/J.info.duration,o71(g.Lh(J),V))}else{H=!1;O.W||(Xsl(J),J.K&&(O.W=J.K,H=!0,l=J.info,m=J.K.Dq,l.V="updateWithEmsg",l.wW=m,l=J.K,l.yZ&&(m=O.vE.index,m.j=!l.yZ,m.U="emsg"),l=J.info.vE.info,m=g.Lh(J),g.Bg(l)?vX(m,1701671783):l.ey()&&gI([408125543],307544935,m)));a:if((l=dw(J,O.policy.aB))&&nfX(J))F=ZTV(O,J),O.S+=F,l-=F,O.qX+=l,O.U=O.policy.QD?O.U+l:NaN;else{if(O.policy.Ad){if(m=N=O.loader.DR(g.Xr(J),1),O.U>=0&&J.info.type!==6){if(O.policy.QD&&isNaN(O.yz)){g.en(new g.pn("Missing duration while processing previous chunk", J.info.rX()));O.loader.isOffline()&&!O.policy.yD||zwH(O,J,m);P6(O,"m");break a}y=N-O.U;var x=y-O.S,W=J.info.wW,U=O.dW?O.dW.wW:-1,Z=O.nD,z=O.yz,c=O.policy.L1&&y>O.policy.L1,Y=Math.abs(x)>10,b=Math.abs(O.U-m)<1E-7;if(Math.abs(x)>1E-4){O.ol+=1;var M=(F=O.W)==null?void 0:a$l(F);F={audio:""+ +O.jE(),sq:W.toFixed(),sliceStart:N,lastSq:U.toFixed(),lastSliceStart:Z,lastSliceDuration:z,totalDrift:(y*1E3).toFixed(),segDrift:(x*1E3).toFixed(),skipRewrite:""+ +(c||Y)};if(M==null?0:M.length)F.adCpn=M[0];O.loader.handleError("qoe.avsync", F);O.E5=W}c||Y||b||(m=O.U);F=ZTV(O,J,N);l-=F;O.S=y+F}}else m=isNaN(O.U)?J.info.startTime:O.U;zwH(O,J,m)&&(O.qX+=l,O.U=m+l,O.policy.wA&&O.ol>=O.policy.wA&&(O.ol=0,O.loader.Cr({resetForRewrites:"count"})))}O.dW=J.info;O.yz=EO(J);J.U>=0&&(O.nD=J.U);if(H&&O.W){H=cOo(O,!0);Zd(J.info,H);O.K&&Zd(O.K.info,H);V=g.n(V);for(F=V.next();!F.done;F=V.next())F=F.value,l=void 0,O.policy.V&&F.wW!==((l=O.W)==null?void 0:l.Dq)||Zd(F,H);(J.info.U||O.K&&O.K.info.U)&&J.info.type!==6||(O.KD=H,O.policy.j?(V=sx5(O.W),O.loader.SF(O.vE, H,V)):(V=O.loader,V.xi.isManifestless&&TUV(V,H,null,!!O.vE.info.video)),O.policy.bl||ewn(O))}}xAr(O,J);O.timestampOffset&&wsr(J,O.timestampOffset)}; Sz=function(O,V){if(V.info.U){O.zL=V.info;if(O.W){var J=O.W,y=cOo(O,!1);J=sx5(J);O.loader.SF(O.vE,y,J);O.KD||O.policy.bl||ewn(O);O.KD=null}kl(O)}O.V&&rT7(O.V,V);if(y=O.RN())if(y=g.nh(y,V,O.policy.Kk,O.policy.ul)){O.j.pop();O.j.push(y);return}O.j.push(V)}; sx5=function(O){if(O.n5()){var V=O.data["Stitched-Video-Id"]?O.data["Stitched-Video-Id"].split(",").slice(0,-1):[],J=a$l(O),y=[];if(O.data["Stitched-Video-Duration-Us"])for(var l=g.n(O.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())y.push((Number(m.value)||0)/1E6);l=[];if(O.data["Stitched-Video-Start-Frame-Index"]){m=g.n(O.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var H=m.next();!H.done;H=m.next())l.push(Number(H.value)||0)}l=[]; if(O.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.n(O.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),H=m.next();!H.done;H=m.next())l.push((Number(H.value)||0)/1E6);O=new P8o(V,J,y,l,g.bNV(O),g.pgp(O))}else O=null;return O}; kl=function(O){O.K=null;O.lw=-1;O.T=0;O.W=null;O.O5=NaN;O.qX=0;O.KD=null}; P6=function(O,V){V={rst4disc:V,cd:O.S.toFixed(3),sq:O.dW?O.dW.wW:-1};O.U=NaN;O.S=0;O.E5=-1;O.dW=null;O.nD=NaN;O.yz=NaN;O.LD=null;O.loader.jB("mdstm",V)}; xAr=function(O,V){if(O.isDrm()){if(V.info.vE.info.ey()){var J=new MO(g.Lh(V));if(nf(J,[408125543,374648427,174,28032,25152,20533,18402])){var y=dI(J,!0);J=y!==16?null:Kf(J,y)}else J=null;y="webm"}else V.info.T=R8p(g.Lh(V)),J=B$X(V.info.T),y="cenc";J&&J.length&&(J=new AK(J,y),O.policy.V2&&g.Bg(V.info.vE.info)&&(y=Xg1(g.Lh(V)))&&(J.j=y),J.ey=V.info.vE.info.ey(),V.K&&V.K.cryptoPeriodIndex&&(J.cryptoPeriodIndex=V.K.cryptoPeriodIndex),V.K&&V.K.j&&(J.K=V.K.j),O.loader.Ch(J))}}; ewn=function(O){var V=O.W,J=I$o(V);J&&(J.startSecs+=O.O5,O.loader.Ia(O.vE,J,V.Dq,V.n5()))}; cOo=function(O,V){var J,y=O.W;if(J=I$o(y))J.startSecs+=O.O5;var l=O.O5,m=0;O.vE instanceof e3&&(m=O.vE.M8);return new $4(y.Dq,l,V?m:O.qX,y.ingestionTime,"sq/"+y.Dq,void 0,void 0,V,J)}; zwH=function(O,V,J){if(!vfn(V,J))return V=UO(V.info),V.smst="1",O.loader.handleError("fmt.unparseable",V||{},1),!1;isNaN(O.O5)&&(O.O5=J);return!0}; ZTV=function(O,V,J){var y=0;if(V.info.vE.info.ey()&&!nfX(V))return 0;if(O.fD&&!O.jE()){var l=0;J&&g.Bg(V.info.vE.info)?l=J-O.U:V.info.vE.info.ey()&&(l=O.S);var m=V.info.wW;J=dw(V,O.policy.aB);var H=O.fD;var F=H.E5;H=H.S;var N=Math.abs(H-l)>.02;if((m===F||m>F&&m>O.E5)&&N){y=Math.max(.95,Math.min(1.05,(J-(H-l))/J));if(g.Bg(V.info.vE.info))o71(g.Lh(V),y);else if(V.info.vE.info.ey()&&(m=l-H,!g.Bg(V.info.vE.info)&&(V.info.vE.info.ey(),y=new MO(g.Lh(V)),F=V.W?y:new MO(new DataView(V.info.vE.K.buffer)), dw(V,!0)))){var x=m*1E3,W=uE(F);F=y.pos;y.pos=0;if(y.K.getUint8(y.pos)===160||AC(y))if(Ew(y,160))if(dI(y,!0),Ew(y,155)){if(m=y.pos,N=dI(y,!0),y.pos=m,x=x*1E9/W,W=qO(y),x=W+Math.max(-W*.7,Math.min(W,x)),x=Math.sign(x)*Math.floor(Math.abs(x)),!(Math.ceil(Math.log(x)/Math.log(2)/8)>N)){y.pos=m+1;for(m=N-1;m>=0;m--)y.K.setUint8(y.pos+m,x&255),x>>>=8;y.pos=F}}else y.pos=F;else y.pos=F;else y.pos=F}y=dw(V,O.policy.aB);y=J-y}y&&V.info.vE.info.ey()&&O.loader.jB("webmDurationAdjustment",{durationAdjustment:y, videoDrift:l+y,audioDrift:H})}return y}; UA1=function(O){return O.info.vE.e8()&&O.info.wW===O.info.vE.index.bR()}; OR=function(O,V){V=(V=V===void 0?0:V)?Math.round(O.timestampOffset*V)/V:O.timestampOffset;O.vE.D&&V&&(V+=O.vE.D.K);return V+O.getDuration()}; IGo=function(O,V){V<0||(O.j.forEach(function(J){wsr(J,V)}),O.timestampOffset=V)}; NR=function(O,V,J,y,l){MR.call(this,J,l);var m=this;this.policy=O;this.formatId=V;this.Ca=y;this.lastError=null;this.onProgress=function(){m.GL()||(m.Ca.cB.has(m.formatId)?(m.isComplete()||m.K.start(),lC(m.Ca,m.formatId)&&m.YZ(2),m.Ca.Qu(m.formatId)&&(PQ5(m.Ca,m.formatId)?m.gX(4):(m.lastError="net.closed",m.gX(5)))):(m.lastError="player.exception",m.gX(5)))}; this.K=new g.t_(function(){m.isComplete()||(m.lastError="net.timeout",m.gX(5))},1E3); this.K.start();ihp(this.Ca,this.formatId,this.onProgress);g.YS(this.onProgress)}; VO=function(O,V,J,y){g.K.call(this);var l=this;this.loader=O;this.policy=V;this.vE=J;this.timing=y;this.logger=new g.vK("dash");this.j=[];this.fD=[];this.K=this.Z4=null;this.LD=!1;this.Vz=this.ol=0;this.W=-1;this.lw=!1;this.O5=-1;this.dW=null;this.KD=NaN;this.qX=[];this.Ty={aV:function(){return l.U}, Yd5:function(){return l.j}, mzL:function(){return l.S}}; this.U=new lGo(O,V,J);this.policy.K&&(this.S=new C8(this.U,this.loader.getManifest(),this.policy,function(m){l.policy.I_&&l.jB("buftl",m)})); this.policy.WB&&(this.T=new E1(this));this.jq=J.info.jq;this.V=this.policy.dW?!1:J.dj();this.isManifestless=J.dj();this.D=this.V;g.t(this,this.dW)}; Je=function(O,V,J){J=J===void 0?!1:J;V&&DT&&IGo(O.U,V.Wy());if(!J){var y;(y=O.S)==null||GPH(y)}O.Z4=V;(V=O.S)!=null&&(V.Z4=O.Z4)}; yO=function(O){var V=O.Z4&&O.Z4.So();if(O.policy.Ky){if((O=O.S)==null)O=void 0;else{var J;O=(J=O.U)==null?void 0:J.info}return O||null}return V}; Yjh=function(O){for(var V={},J=0;J4&&O.fD.shift()}; aGU=function(O,V){if(V.Rp()){var J=V.Xp();J=g.n(J);for(var y=J.next();!y.done;y=J.next())y=y.value,O.policy.U&&V instanceof NR&&O.jB("omblss",{s:y.info.rX()}),mk(O,V.info.BE,y,V.f7())}}; mk=function(O,V,J,y){y=y===void 0?0:y;isNaN(O.KD)||(O.jB("aswm",{sq:V[0].wW,id:V[0].vE.info.itag,xtag:V[0].vE.info.K,ep:Date.now()-O.KD}),O.KD=NaN);switch(J.info.type){case 1:case 2:bTo(O,J);break;case 4:var l=J.info.vE,m=l.sy(J),H;((H=O.K)==null?0:H.type===4)&&m8n(J.info,O.K)&&(O.K=l.uJ(O.K).pop());J=g.n(m);for(l=J.next();!l.done;l=J.next())mk(O,V,l.value,y);break;case 3:J.info.vE.info.video?(l=O.timing,l.dW||(l.dW=(0,g.cH)(),g.i7("fvb_r",l.dW,l.K))):(l=O.timing,l.V||(l.V=(0,g.cH)(),g.i7("fab_r", l.V,l.K)));NUV(O.U,V,J,y);O.policy.K&&pJr(O);break;case 6:NUV(O.U,V,J,y),O.K=J.info}}; bTo=function(O,V){if(V.info.type===1)if(V.info.vE.info.video){var J=O.timing;J.ol||(J.ol=(0,g.cH)(),g.i7("vis_r",J.ol,J.K))}else J=O.timing,J.T||(J.T=(0,g.cH)(),g.i7("ais_r",J.T,J.K));jxd(O.U,V);O=O.loader;O.videoTrack.vE.lk()&&O.audioTrack.vE.lk()&&O.policy.K&&!O.xi.Gy&&(V=O.audioTrack.getDuration(),J=O.videoTrack.getDuration(),Math.abs(V-J)>1&&O.jB("trBug",{af:""+g.k7(O.audioTrack.vE.info,!1),vf:""+g.k7(O.videoTrack.vE.info,!1),a:""+V,v:""+J}))}; eK=function(O){return mAd(O.U)}; pJr=function(O){O.j.length?O.K=g.Ez(g.Ez(O.j).info.BE):O.U.j.length?O.K=O.U.RN().info:O.K=yO(O)}; $x=function(O,V){var J={Dg:[],j8:[]},y;if((O=O.S)==null)O=void 0;else{QWH(O,O.Dg,"og");dO7(O,V);QWH(O,O.Dg,"trim");var l=qwn(O);V=l.Dg;l=l.l3;for(var m=[],H=0;H0){var Z=l7(U,N);Z>=0&&(W=(U.end(Z)-N+.1)*1E3)}m.push({formatId:g.k7(F.info.vE.info,O.xi.Gy), Yn:F.info.Yn,sequenceNumber:F.info.wW+O.D,F4:x,pO:F.info.j,zO:W})}O={Dg:V,j8:m}}return(y=O)!=null?y:J}; U0=function(O,V,J){J=J===void 0?!1:J;if(O.Z4){var y=O.Z4.hL(),l=$f(y,V),m=NaN,H=yO(O);H&&(m=$f(y,H.vE.index.getStartTime(H.wW)));if(l===m&&O.K&&O.K.j&&fGd(HN(O),0))return V}O=j7(O,V,J);return O>=0?O:NaN}; zn=function(O,V,J){O.vE.lk();var y=j7(O,V);if(y>=0)return y;var l;(l=O.S)==null||g47(l,V,J);y=Math;l=y.min;var m=O.U;if(m.V)if(m=m.V,m.Sj&&m.Sj.type===3)m=m.Sj.startTime;else if(m.U>0){var H=m.K.index;H=g.J0(H.offsets.subarray(0,H.count),m.U*m.chunkSize);m=m.K.index.getStartTime(H>=0?H:Math.max(0,-H-2))}else m=0;else m=Infinity;V=l.call(y,V,m);O.K=O.policy.dW?null:O.vE.Ed(V).BE[0];CL(O)&&(O.policy.gI&&(J==null?void 0:J.seekSource)===60||O.Z4&&O.Z4.abort(),O.policy.TV&&(J=O.S)!=null&&(J.U=void 0)); O.Vz=0;return O.K?O.K.startTime:V}; tsH=function(O){O.V=!0;O.D=!0;O.W=-1;zn(O,Infinity)}; Fg=function(O){for(var V=0,J=g.n(O.j),y=J.next();!y.done;y=J.next())V+=Hr7(y.value.info);return V+=WqX(O.U)}; xx=function(O,V){V=V===void 0?!1:V;var J=O.loader.getCurrentTime(),y=O.U.RN(),l=(y==null?void 0:y.info.W)||0;if((y==null?0:y.info.vE.dj())&&!y.info.U)if(O.policy.gk)l=y.info.D;else if(O.policy.nI){var m=y.info;l=m.range?m.W:Math.min(m.startTime+Math.min(m.duration*m.K/m.vE.info.jq,m.duration)+(m.range?m.S:Math.min(m.duration,m.duration*m.j/m.vE.info.jq)),m.startTime+m.duration)}if(!O.Z4){if((O.policy.K||O.policy.MB)&&V&&!isNaN(J)){if(y)return l-J;if(O.policy.MB&&O.vE.info.al==="f")return Infinity}return 0}if((m= yO(O))&&Ne(m))return m.W;var H=O.Z4.hL(!0);if(V&&y)return m=0,O.policy.K&&(m=Cr(H,l+.02)),m+l-J;V=Cr(H,J);O.policy.Lk&&m&&(y=l7(H,J),H=l7(H,m.D-.02),y===H&&(J=m.W-J,O.policy.U&&J>V+.02&&O.jB("abh",{bh:V,bhtls:J}),V=Math.max(V,J)));return V}; hwo=function(O){var V=yO(O);return V?V.W-O.loader.getCurrentTime():0}; WN=function(O,V,J,y){if(!O.vE.index.uQ(V,!0))return!1;try{Wd(O);for(var l=O.U,m=null,H=l.j.length-1;H>=0;H--){var F=l.j[H];F.info.wW>=V&&(l.j.pop(),l.U-=dw(F,l.policy.aB),m=F.info)}m&&(l.D=l.j.length>0?l.j[l.j.length-1].info:l.LD,l.j.length!==0||l.D||P6(l,"r"));l.loader.jB("mdstm",{rollbk:1,itag:m?m.vE.info.itag:"",popped:m?m.wW:-1,sq:V,lastslc:l.D?l.D.wW:-1,lastfraget:l.U.toFixed(3)});if(O.policy.K)return O.K=null,!0;y>J?zn(O,y):O.K=O.vE.nG(V-1,!1).BE[0]}catch(N){return V=Vj(N),V.details.reason= "rollbkerr",O.loader.handleError(V.errorCode,V.details,V.severity),!1}return!0}; Z_=function(O,V){var J;for(J=0;J0?J||V.wW>=O.O5:J}; zx=function(O){var V;return CL(O)||Ne((V=O.U.RN())==null?void 0:V.info)}; HN=function(O){var V=[],J=yO(O);J&&V.push(J);V=g.Bn(V,O.U.vv());J=g.n(O.j);for(var y=J.next();!y.done;y=J.next()){y=y.value;for(var l=g.n(y.info.BE),m=l.next(),H={};!m.done;H={yb:void 0},m=l.next())H.yb=m.value,y.Qg&&(V=g.L1(V,function(F){return function(N){return!m8n(N,F.yb)}}(H))),(NT(H.yb)||H.yb.type===4)&&V.push(H.yb)}O.K&&!P$p(O.K,g.Ez(V),O.K.vE.e8())&&V.push(O.K); return V}; fGd=function(O,V){if(!O.length)return!1;for(V+=1;V=V){V=m;break a}}V=l}return V<0?NaN:fGd(O,J?V:0)?O[V].startTime:NaN}; cN=function(O){return!(!O.K||O.K.vE===O.vE)}; o$V=function(O,V,J){return O.policy.K?xx(O,!0)V&&O.W1080&&!O.S0&&(O.E5=36700160,O.UR=5242880,O.nD=Math.max(4194304,O.nD),O.S0=!0);V.video.qualityOrdinal>2160&&!O.Cm&&(O.E5=104857600,O.jq=13107200,O.Cm=!0);g.Ry(O.WE.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?V.isEncrypted()&&g.KW()&&g.Qd("samsung")&&(g.Qd("kant")||g.Qd("muse"))&&(O.jq=g.Ry(O.WE.experiments,"html5_samsung_kant_limit_max_bitrate")):V.isEncrypted()&&g.KW()&&g.Qd("kant")&&(O.jq=1310720);O.TC!==0&&V.isEncrypted()&& (O.jq=O.TC);O.Kh!==0&&V.isEncrypted()&&J&&(O.jq=O.Kh);V.jq&&(O.RU=Math.max(O.Ip,Math.min(O.nD,5*V.jq)))}; iv=function(O){return O.K&&O.t0}; Yx=function(O){return O.K&&O.h0&&O.playbackStartPolicy}; aq=function(O,V,J,y){O.h0&&(O.playbackStartPolicy=V,O.Zu=J,O.nL=y)}; e7=function(O,V,J){J=J===void 0?0:J;return g.Ry(O.WE.experiments,V)||J}; Kq5=function(O){var V=O===void 0?{}:O;O=V.jk;var J=V.XF;var y=V.fu;var l=V.bR;V=V.yG;this.jk=O;this.XF=J;this.fu=y;this.bR=l;this.yG=V}; ldr=function(O,V){if(V<0)return!0;var J=O.bR();return V0)return 2;if(V<0)return 1;J=O.bR();return V(0,g.cH)()?0:1}; fL=function(O,V,J,y,l,m,H,F,N,x,W,U,Z,z){z=z===void 0?null:z;g.K.call(this);var c=this;this.loader=O;this.policy=V;this.videoTrack=J;this.audioTrack=y;this.U=l;this.K=m;this.timing=H;this.D=F;this.schedule=N;this.xi=x;this.j=W;this.qX=U;this.Xw=Z;this.Fb=z;this.KD=!1;this.vS="";this.ek=null;this.jz=NaN;this.lw=!1;this.Qc=null;this.AO=this.T=NaN;this.tj=this.W=0;this.logger=new g.vK("dash");this.Ty={R6:function(Y,b){return c.R6(Y,b)}}; this.policy.cL>0&&(this.vS=g.mR(this.policy.cL));this.policy.NE&&(this.S=new bW(this.loader,this.policy,this.schedule),g.t(this,this.S))}; iTX=function(O,V,J){var y=V.K?V.K.vE.uh:V.vE.uh;var l=O.U,m;(m=!O.policy.T8)||(m=ap(85,y.K)===ap(21,y.j));m?y=!1:(l=PX(l,ap(29,y.j)),m=6E4*Math.pow(l.D,1.6),(0,g.cH)()=l.D?(l.jB("sdai",{haltrq:m+1,est:l.D}),y=!1):y=l.j!==2;if(!y||!VB(V.K?V.K.vE.uh:V.vE.uh,O.policy,O.U,O.loader.Dm)||O.loader.isSuspended&&(!vN(O.schedule)||O.loader.TW))return!1;if(O.policy.D&&Jz>=5)return g.uL(O.loader.yr),!1;if(O.xi.isManifestless){if(V.j.length>0&&V.K&&V.K.wW===-1||V.j.length>=O.policy.gA||!O.policy.wp&&V.j.length>0&&!O.policy.T.XF)return!1;if(V.V)return!O.xi.isLive||!isNaN(O.jz)}if(MNl(V))return!1; if(!V.K){if(!V.vE.lk())return!1;zn(V,O.loader.getCurrentTime())}if(eK(V)&&(V.RN()!==eK(V)||O.loader.isSuspended))return!1;l=(y=O.policy.jn)&&!V.j.length&&xx(V,!0)=O.policy.xF)return!1;y=V.K;if(!y)return!0;y.type===4&&y.vE.lk()&&(V.K=g.Ez(y.vE.uJ(y)),y=V.K);if(!y.yZ()&&!y.vE.E1(y))return!1;m=O.xi.FR||O.xi.S;if(O.xi.isManifestless&&m){m=V.vE.index.bR();var H=J.vE.index.bR(); m=Math.min(m,H);if(V.vE.index.qv()>0&&m>0&&y.wW>=m)return V.O5=m,J.O5=m,!1}if(y.vE.info.audio&&y.type===4||y.yZ())return!1;m=!V.D&&!J.D;if(l=!l)l=y.W,l=!!(J.K&&!Ne(J.K)&&J.K.WRwl(O,V)?(Rwl(O,V),!1):(O=V.Z4)&&O.isLocked()?!1:!0}; Rwl=function(O,V){var J=O.K;J=J.K?J.K.lO:null;if(O.policy.LD&&J)return J.startSecs+J.rN+15;V=Zz(O.loader,V);O.policy.yc>0&&(J=((0,g.cH)()-O.loader.xm)/1E3,V=Math.min(V,O.policy.yc+O.policy.J0*J));V=O.loader.getCurrentTime()+V;return O.policy.ED&&(J=BU5(O.loader)+O.policy.ED,J=0||V.uh.Hj("defrag")==="1"||V.uh.Hj("otf")==="1"){V=null;break a}l=HK(0,4096)}l=new zQ([new Ch(5,y.vE,l,"createProbeRequestInfo"+y.V,y.wW)],V.j);l.zP=J;l.K=V.K;V=l}V&&oq(O,V)}}; oq=function(O,V){O.loader.bG(V);var J=Hr7(V),y=O.loader.Y7();J={Ax:O.schedule,gs:J,mY:Msp(O.D,J),J$:Fr(V.BE[0]),VL:Ip(67,V.uh.K),Bx:O.policy.U,s3:function(H,F){O.loader.rr(H,F)}}; if(O.schedule.j.V){var l,m;J.pB=(((l=O.videoTrack.vE)==null?void 0:l.info.jq)||0)+(((m=O.audioTrack.vE)==null?void 0:m.info.jq)||0)}O.ek&&(J.wW=V.BE[0].wW,J.jz=V.jz,J.ek=O.ek);y={l5:jw7(V,O.loader.getCurrentTime()),hc:O.policy.dD&&sO(V)&&V.BE[0].vE.info.video?q_Y(O.j):void 0,vr:O.policy.LD,poToken:O.loader.DQ(),CQ:O.loader.YN(),vS:O.vS,AO:isNaN(O.AO)?null:O.AO,Fb:O.Fb,Xw:O.Xw,tj:O.tj,eY:y};return new xX(O.policy,V,J,O.U,function(H,F){try{a:{var N=H.info.BE[0].vE,x=N.info.video?O.videoTrack:O.audioTrack; if(!(H.state>=2)||H.isComplete()||H.We()||!(!O.loader.SB||O.loader.isSuspended||xx(x)>3)){var W=ui7(H,O.policy,O.U);W===1&&(O.lw=!0);Pdh(O,H,W);if(H.isComplete()||H.GL()&&F<3){if(O.policy.U){var U=H.timing.Zr();U.rst=H.state;U.strm=H.xhr.Xe();U.cncl=H.xhr&&H.iR.W?1:0;O.loader.jB("rqs",U)}H.Y6&&O.loader.jB("sbwe3",{},!0)}if(!O.GL()&&H.state>=2){j2h(O.timing,H,N);var Z=O.loader;O.AO&&H.Wx&&Z&&(O.AO=NaN,O.loader.LR(H.Wx),O.loader.O6(),O.loader.jB("cabrUtcSeek",{mediaTimeSeconds:H.Wx}));H.AK&&O.AO&&H.AK&& !H.AK.action&&(O.loader.O3(O.AO),O.AO=NaN,O.loader.jB("cabrUtcSeekFallback",{targetUtcTimeSeconds:O.AO}));H.kQ&&O.loader.nh(H.kQ);O.policy.MI&&(O.tj=H.tj);if(H.state===3){Z_(x,H);sO(H.info)&&Me(O,x,N,!0);if(O.Qc){var z=H.info.gS();z&&O.Qc.aK(H.info.BE[0].wW,N.info.id,z)}O.loader.e7()}else if(H.isComplete()&&H.info.BE[0].type===5){if(H.state!==4)H.t_()&&O.loader.handleError(H.qU(),H.QL());else{var c=(H.info.BE[0].vE.info.video?O.videoTrack:O.audioTrack).j[0]||null;c&&c instanceof xX&&c.We()&&c.Fe()}H.dispose()}else{if(!H.t_()&& H.B_&&H.state>=2&&H.state!==3){var Y=H.xhr.getResponseHeader("X-Response-Itag");if(Y){var b=gAl(O.j,Y),M=H.info.U;if(M){var w=M-b.sQ();b.U=!0;H.info.BE[0].vE.U=!1;var L=b.ST(w);H.info=L;if(H.Bn){var X=H.Bn,u=L.BE;(u.length!==X.BE.length||u.length=O.policy.N9&&O.Qc&&H.info.isDecorated()&&Tr==="net.badstatus"&&ER(O.Qc,JI,ys))){var uX=(V7.info.video&&V7.uh.U>1||H.FD===410||H.FD===500||H.FD===503)&&!(IB(O.j.W).size>0)&&!Ip(59,V7.uh.K),nn=H.QL(),im=V7.info.video?O.videoTrack:O.audioTrack;uX&&(nn.stun="1");O.loader.handleError(Tr,nn);O.GL()||(uX&&v6(O.j,V7),Z_(im,H),O.loader.e7())}}else b=1,O.Qc&&H.info.isDecorated()&& Tr==="net.badstatus"&&ER(O.Qc,JI,ys)&&(b=0),O.xi.isLive&&H.qU()==="net.badstatus"&&O.W<=O.policy.fP*2?(Wo1(O.xi),O.xi.FR||O.xi.isPremiere?Tn(O.loader,0,{yK:"badStatusWorkaround"}):O.xi.S?Tn(O.loader,O.xi.u_,{yK:"badStatusWorkaround",DR:!0}):di(O.loader)):O.loader.handleError(Tr,H.QL(),b);isNaN(O.AO)||(O.loader.O3(O.AO),O.AO=NaN)}O.policy.eq&&!H.isComplete()?gi(O.loader):O.loader.e7();var fd=AOH(H,O.policy,O.U);Pdh(O,H,fd)}}}}}catch(h){Tr=O.KD?1:0,O.KD=!0,H=OS(Tr),Tr=Vj(h,Tr),O.loader.handleError(Tr.errorCode, Tr.details,Tr.severity),H||O.loader.Yb()}},y)}; nL=function(O,V){if(O.policy.useUmp&&V.GL())return!1;try{var J=V.info.BE[0].vE,y=J.info.video?O.videoTrack:O.audioTrack;if(O.xi.isManifestless&&y){O.W=0;y.V&&(V.GL(),V.isComplete()||V.Rp(),y.V=!1);V.EQ()&&O.loader.A9.Ph(1,V.EQ());var l=V.qv(),m=V.rJ();mc(O.xi,l,m)}if(V.info.J$()&&!cK(V.info))for(var H=g.n(V.Xp()),F=H.next();!F.done;F=H.next())bTo(y,F.value);for(O.loader.getCurrentTime();y.j.length&&y.j[0].state===4;){var N=y.j.shift();aGU(y,N);y.ol=N.WF()}y.j.length&&aGU(y,y.j[0]);var x=!!eK(y);x&& V instanceof NR&&(J.info.jE()?Hs1(O.timing):$Sp(O.timing));return x}catch(W){V=V.QL();V.origin="hrhs";a:{O=O.loader;J=W;if(J instanceof Error){V.msg||(V.msg=""+J.message);V.name||(V.name=""+J.name);if(J instanceof g.pn&&J.args)for(y=g.n(Object.entries(J.args)),l=y.next();!l.done;l=y.next())m=g.n(l.value),l=m.next().value,m=m.next().value,V["arg"+l]=""+m;g.en(J);if(J.level==="WARNING"){O.pD.Cr(V);break a}}O.handleError("fmt.unplayable",V,1)}return!1}}; k07=function(O){var V=O.videoTrack.vE.index;O.ek=new Kq5({jk:O.policy.jk,XF:O.policy.T.XF,fu:V.O0(),bR:function(){return V.bR()}, yG:function(){return V.yG()}})}; Me=function(O,V,J,y){if(!(J.lk()||J.oy()||J.U||!VB(J.uh,O.policy,O.U,O.loader.Dm)||J.info.al==="f"||O.policy.K)){if(y){y=O.D;var l=J.info;y=LWY(y,l.video?y.policy.fm:y.policy.Jp,l.jq)}else y=0;y=J.ST(y);O=oq(O,y);cK(y)&&lW(V,O);J.U=!0}}; qe=function(O,V,J,y,l,m,H,F){g.K.call(this);var N=this;this.loader=O;this.Lv=V;this.videoTrack=J;this.audioTrack=y;this.xi=l;this.KD=m;this.isAudioOnly=H;this.T=F;this.j=xZ;this.O5=!1;this.logger=new g.vK("sabr");this.qX=this.S=this.fD=this.lw=!1;this.videoInfos=this.V=this.KD.videoInfos;this.U=this.dW=this.KD.K;this.K=new T6(V,m,function(x,W){N.loader.jB(x,W)}); this.isAudioOnly&&SjV(this,this.xi.K["0"])}; DAU=function(O,V){var J=[];V=g.n(V);for(var y=V.next();!y.done;y=V.next())J.push(g.k7(y.value,O.xi.Gy));return J}; SjV=function(O,V,J,y){V!==O.D&&(O.D&&(O.O5=!0),O.D=V,O.x0(V,O.videoTrack,J===void 0?0:J,y))}; Jzp=function(O,V){iv(O.Lv)&&(O.fD=V.reason==="m"||V.reason==="l"?!0:!1);V.reason==="m"?V.isLocked()&&O7U(O,V.K):VWX(O,V)?QO(O,V.j,V.K):O.videoInfos=O.V;O.qX=!0;O.j=V}; VWX=function(O,V){return O.Lv.Sg&&V.reason==="l"||O.Lv.bH?!1:O.Lv.qO?!0:V.reason==="l"||V.reason==="b"||V.reason==="o"}; O7U=function(O,V){var J=O.K.K;if(J){O.videoInfos=O.V;var y=g.Qs(O.videoInfos,function(l){return l.id===J}); y&&y.video.qualityOrdinal===V?O.videoInfos=[y]:(y=O.videoInfos.map(function(l){return l.id}),O.loader.jB("sabrpf",{pfid:""+J, vfids:""+y.join(".")}),QO(O,V,V),Yl(O.K,""))}else QO(O,V,V)}; QO=function(O,V,J){O.videoInfos=O.V;O.videoInfos=g.L1(O.videoInfos,function(y){return y.video.qualityOrdinal>=V&&y.video.qualityOrdinal<=J})}; yzr=function(O,V,J){if(O.T){var y=g.L1(O.U,function(l){return l.id===O.T}); return Gx(y,J).includes(V)}y=g.L1(O.U,function(l){var m;return!((m=l.wC)==null||!m.isDefault)}); return y.length>0?Gx(y,J).includes(V):Gx(O.U,J).includes(V)}; Gx=function(O,V){return O.map(function(J){return Ji(g.k7(J,V))})}; l27=function(O){var V;if((V=O.j)==null?0:V.isLocked())return O.videoInfos;var J=IB(O.K);V=g.L1(O.videoInfos,function(y){return y.jq>O.Lv.jq?!1:!J.has(y.id)}); O.K.Xl()&&(V=g.L1(V,function(y){return y.video.width<=854&&y.video.height<=480})); return V}; $u1=function(O,V,J,y){var l=O.xi,m=O.pD.getVideoData(),H=O.Z3,F=g3V({Ax:O.Ax,WE:m.Y(),pD:O.pD,Hx:O.Hx,Lv:O.Lv,Ee:O.Ee,rd:O.rd,Rd:O.Rd,Oq:O.Oq,Wt:O.Wt,wB:O.wB,m_:O.m_,sabrLicenseConstraint:m.sabrLicenseConstraint,dM:O.dM,Da:O.Da,WO:O.WO,X8:O.X8,tBW:!!H,authorizedFormats:m.authorizedFormats,aD:O.aD,Xl:O.Xl}),N=RO(m,O.eY,O.nextRequestPolicy,O.Hy,O.l4,O.J5,O.vD);J&&V&&(J=N.Uq?N.Uq.map(function(Y){return Y.type}):[],V("sabr",{stmctxt:J.join("_"), unsntctxt:N.z6?N.z6.join("_"):""}));V=O.PS;J=O.b4;if(J===void 0&&V===void 0){var x;J=mup(l.Gy,(x=O.nM)==null?void 0:x.video);var W;V=mup(l.Gy,(W=O.nM)==null?void 0:W.audio)}if(m.Fb)var U=m.Fb;var Z,z;(m=(z=O.Lv)==null?void 0:z.Jn)&&m>0&&(O.GI||O.eJ)&&(Z=new Uint8Array(m));H={Aj:F,j8:O.j8,PS:V,b4:J,Z3:H,videoPlaybackUstreamerConfig:U,Dh:N,xE5:Z};y&&O.qd?O.qd.length>0&&(H.qd=O.qd):O.QI&&(H.QI=O.QI);var c;((c=O.Lv)==null?0:iv(c))&&!U4()&&(O.nT&&(H.nT=O.nT),O.S6&&(H.S6=O.S6));H.Dg=O.Dg;H.v_=l.E5;return H}; mup=function(O,V){return V?[g.k7(V.info,O)]:[]}; KL=function(O,V,J){var y=this;this.requestType=O;this.uh=V;this.Il=J;this.j=null;this.Ty={wB:function(){var l;return(l=y.data)==null?void 0:l.wB}, l4:function(){var l;return(l=y.data)==null?void 0:l.l4}, dM:function(){var l;return(l=y.data)==null?void 0:l.dM}}}; VUd=function(O,V,J){V=D7(O.uh,H77(O,V,J),V);O.g5()&&V.set("probe","1");return V}; H77=function(O,V,J){O.zP===void 0&&(O.zP=O.uh.zP(V,J));return O.zP}; te=function(O){var V,J;return((V=O.K)==null?void 0:(J=V.Aj)==null?void 0:J.Fn)||0}; uW=function(O){var V,J;return!!((V=O.K)==null?0:(J=V.Aj)==null?0:J.dM)}; jTd=function(O){var V={},J=[],y=[];if(!O.data)return V;for(var l=0;l0;N--)J.push(F)}J.length!==H?V.error=!0:(m=J.slice(-m),J.length=l,Yyl(V,J,m));break;case 1:Yyl(V,Oq,VS);break;case 0:j5(V, V.K&7);J=$e(V,16);l=$e(V,16);(J^l)!==65535&&(V.error=!0);V.output.set(V.data.subarray(V.j,V.j+J),V.U);V.j+=J;V.U+=J;break;default:V.error=!0}O.U>O.output.length&&(O.output=new Uint8Array(O.U*2),O.U=0,O.j=0,O.D=!1,O.K=0,O.register=0)}O.output.length!==O.U&&(O.output=O.output.subarray(0,O.U));return O.error?new Uint8Array(0):O.output}; Yyl=function(O,V,J){V=HW(V);J=HW(J);for(var y=O.data,l=O.output,m=O.U,H=O.register,F=O.K,N=O.j;;){if(F<15){if(N>y.length){O.error=!0;break}H|=(y[N+1]<<8)+y[N]<>=7;x<0;)x=V[(H&1)-x],H>>=1;else H>>=x&15;F-=x&15;x>>=4;if(x<256)l[m++]=x;else if(O.register=H,O.K=F,O.j=N,x>256){H=yS[x];H+=$e(O,JQ[x]);N=I2h(O,J);F=mP[N];F+=$e(O,ll[N]);if(b7l&&HJ.length&&(O.error=!0);O.register|=(J[y+1]<<8)+J[y]<=0)return j5(O,J&15),J>>4;for(j5(O,7);J<0;)J=V[$e(O,1)-J];return J>>4}; $e=function(O,V){for(;O.K=O.data.length)return O.error=!0,0;O.register|=O.data[O.j++]<>=V;O.K-=V;return J}; j5=function(O,V){O.K-=V;O.register>>=V}; HW=function(O){for(var V=[],J=g.n(O),y=J.next();!y.done;y=J.next())y=y.value,V[y]||(V[y]=0),V[y]++;var l=V[0]=0;J=[];var m=0;y=0;for(var H=1;H7&&(m+=V[H]);for(l=1;l>N&1;F=m<<4|H;if(H<=7)for(N=1<<7-H;N--;)y[N<>=7;H--;){y[N]||(y[N]=-V,V+=2);var x=l&1;l>>=1;N=x-y[N]}y[N]=F}}return y}; CC=function(O,V,J){this.K=O;this.context="oprgz2";this.jB=V;this.j=J}; pL7=function(O,V){return TI(O,function(){var J=this;return function l(){var m,H,F,N,x,W;return Hn(l,function(U){switch(U.j){case 1:return U.fD(2),H=Date.now(),U.W(4,5),Fl(J,"s"),F=Cd,U.KD(el(V()),7);case 7:N=F(U.U);if(!N)throw Error("no result");Fl(J,"e");return U.return(N);case 5:U.T(0,2);x=Date.now();J.k8("gz",x-H,m);U.qX(2);break;case 4:throw W=U.D(),Fl(J,"f"),m=W,J.sB(m,"gz"),W;case 2:U.T(),U.qX(0)}})}()})}; Fl=function(O,V){O.j("dcmprs_"+O.context+"_"+O.K+"_gz_"+V)}; vZH=function(O,V,J,y){return TI(void 0,function(){return function m(){var H,F,N,x;return Hn(m,function(W){switch(W.j){case 1:W.fD(2);H=function(U,Z){return pL7(new CC(U,J,y),function(){return W_(Z(O))})}; if(!Nm){W.uw(4);break}W.W(5);F=Cd;return W.KD(el(H("n",f27)),7);case 7:return W.return(F(W.U));case 5:W.D();case 4:if(!V){W.uw(8);break}W.W(9);N=V.K?"a":"w";x=Cd;return W.KD(el(H(N,function(U){return hF7(U,V)})),11); case 11:return W.return(x(W.U));case 9:W.D();case 8:return W.KD(el(H("p",oZ1)),12);case 12:return W.return(W.U);case 2:W.T(),W.qX(0)}})}()})}; f27=function(O){var V,J,y,l,m,H,F,N,x;return g.Q(function(W){switch(W.j){case 1:if(!Nm)throw Error("DecompressionStream is not supported");V=qS.mj();J=new DecompressionStream("gzip");y=J.writable.getWriter();y.write(O);y.close();l=J.readable.getReader();m=new Q8([]);case 2:return W.K(l.read(),5);case 5:H=W.U;F=H.value;if(N=H.done){W.uw(4);break}m.append(F);W.uw(2);break;case 4:return x=AJ(m),qS.LY("gznb",V,Math.ceil(x.byteLength/16)),W.return(x)}})}; oZ1=function(O){var V=qS.mj();O=g.a2Y(new g.T0V(O));qS.LY("gzjb",V,Math.ceil(O.byteLength/16));return O}; hF7=function(O,V){var J=qS.mj();O=V.u9(O);try{var y=O.byteOffset,l=O.byteLength,m=V.exports.getInflatedSize(y,l);if(m===0)throw Error("wasm_gz: bad input");var H=V.malloc(m),F=V.exports.inflateGzip(y,l,H);if(F)throw V.free(H),Error("wasm_gz: fail"+F);var N=new Uint8Array(V.exports.memory.buffer,H,m)}finally{V.free(O.byteOffset)}V=V.W2(N);qS.LY("gzwb",J,Math.ceil(V.byteLength/16));return V}; xe=function(O){kX.call(this,"onesie",O);this.Il=O;this.K={};this.D=!0;this.U=null;this.queue=new kx(this);this.W={}}; WW=function(O){var V=O.queue;V.K.length&&V.K[0].isEncrypted&&!V.j&&(V.K.length=0);V=g.n(Object.keys(O.K));for(var J=V.next();!J.done;J=V.next()){J=J.value;var y=O.K[J];if(!y.e3){var l=O.queue;l.K.push({videoId:y.videoId,formatId:J,isEncrypted:!1});l.j||D_(l)}}}; wLV=function(O,V){var J=V.totalLength,y=!1;switch(O.U){case 0:O.Zf(V,O.D).then(function(l){var m=O.Il;m.RX("oprr");m.playerResponse=l;m.My||(m.IH=!1);Uq(m)},function(l){O.Il.fail(l)}); break;case 2:O.RX("ormk");V=AJ(V);O.queue.decrypt(V);break;default:y=!0}O.Il.zt&&O.Il.jB("ombup","id.11;pt."+O.U+";len."+J+(y?";ignored.1":""));O.U=null}; MWo=function(O,V){O.Il.RX("oprgz2_s");V=vZH(V,O.Il.Y().eB,O.Il.zt?O.Il.jB.bind(O.Il):function(){},function(J){O.Il.RX(J)}); c_(V,function(){O.Il.RX("oprgz2_e")},function(){O.Il.RX("oprgz2_f")}); return V}; LlY=function(O,V){var J,y,l,m,H;return g.Q(function(F){switch(F.j){case 1:O.Il.RX("oprgz_s");if(!Nm){F.uw(2);break}F.W(3);return F.K(f27(V),5);case 5:return J=F.U,O.Il.RX("oprgz_n"),O.Il.jB("oprsgz",{i:"n"}),F.return(J);case 3:y=F.D(),O.Il.jB("gzerr",{impl:"native",err:""+y});case 2:if(l=O.Il.Y().eB)try{return m=hF7(V,l),O.Il.RX("oprgz_w"),O.Il.jB("oprsgz",{i:"w"}),F.return(m)}catch(N){O.Il.jB("gzerr",{impl:"wasm",err:""+N})}H=oZ1(V);O.Il.RX("oprgz_p");O.Il.jB("oprsgz",{i:"j"});return F.return(H)}})}; nZ1=function(O){return new Promise(function(V){setTimeout(V,O)})}; XLd=function(O,V){var J=O.Y();var y=O.zK&&J.L("html5_onesie_preload_use_content_owner"),l=O.MR;y=y===void 0?!1:y;if(J=vj(V.B.experiments,"debug_bandaid_hostname")){var m=g.Ry(V.B.experiments,"debug_bandaid_port");m=m>0?J+":"+m:J;J=V.B.experiments.Jv("debug_bandaid_insecure_scheme");V=Rq(V,m,J)}else y&&(l==null?0:l.url)&&!V.j?(m=ap(21,new g.Nl(l.url)),V=Rq(V,m)):V=(m=V.K.get(0))==null?void 0:m.location.clone();if(V&&O.videoId){m=tT(O.videoId);O=[];if(m)for(m=g.n(m),J=m.next();!J.done;J=m.next())O.push(J.value.toString(16).padStart(2, "0"));V.set("id",O.join(""));return V}}; EZ7=function(O,V,J){J=J===void 0?0:J;var y,l;return g.Q(function(m){if(m.j==1)return y=[],y.push(V.load()),J>0&&y.push(nZ1(J)),m.K(Promise.race(y),2);l=XLd(O,V);return m.return(l)})}; duX=function(O,V,J,y){y=y===void 0?!1:y;O.set("cpn",V.clientPlaybackNonce);O.set("opr","1");var l=V.Y();O.set("por","1");MP()||O.set("onem","1");V.startSeconds>0&&O.set("osts",""+V.startSeconds);y||(l.L("html5_onesie_disable_partial_segments")&&O.set("oses","1"),V=l.L("html5_gapless_onesie_no_media_bytes")&&p7(V)&&V.zK,J&&!V?(V=J.audio,O.set("pvi",J.video.join(",")),l.L("html5_onesie_disable_audio_bytes")||O.set("pai",V.join(",")),xD||O.set("osh","1")):(O.set("oad","0"),O.set("ovd","0"),O.set("oaad", "0"),O.set("oavd","0")))}; gZ5=function(O,V,J,y,l){l=l===void 0?!1:l;var m="https://youtubei.googleapis.com/youtubei/"+V.dk.innertubeApiVersion+"/player",H=[{name:"Content-Type",value:"application/json"}];y&&H.push({name:"Authorization",value:"Bearer "+y});H.push({name:"User-Agent",value:g.Pt()});g.ts("EOM_VISITOR_DATA")?H.push({name:"X-Goog-EOM-Visitor-Id",value:g.ts("EOM_VISITOR_DATA")}):(J=J.visitorData||g.ts("VISITOR_DATA"))&&H.push({name:"X-Goog-Visitor-Id",value:J});(J=g.ts("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&H.push({name:"X-YouTube-Lava-Device-Context", value:J});(V=vj(V.experiments,"debug_sherlog_username"))&&H.push({name:"X-Youtube-Sherlog-Username",value:V});O=OC(JSON.stringify(O));return{url:m,Py:H,postBody:O,ME5:l,XW:l}}; Zt=function(O,V,J,y,l,m,H,F,N){var x=O.vT,W=O.IJ;O=O.whB;var U=x!==void 0&&W!==void 0,Z=y.getVideoData(),z,c=V.K.encryptedClientKey;V=U?V.iv:void 0;U=mD(m,!0);l=l||!!MP()&&U>1572864;return{innertubeRequest:{gbB:O,bu:x,IJ:W,encryptedClientKey:c,iv:V,G2N:!0,EL:!0,H$:"DecompressionStream"in window||!l,bfw:J.experiments.Jv("html5_use_jsonformatter_to_parse_player_response")},Aj:g3V({Ax:m,WE:J,pD:y,Hx:Z.startSeconds*1E3,xl:!0}),onesieUstreamerConfig:H,hI:F,Dh:RO(Z),reloadPlaybackParams:(z=Z.t0)==null? void 0:z.reloadPlaybackParams,NCD:N}}; qy7=function(O,V,J,y,l,m,H,F){var N=g.mH(O,pN),x;if(!O.XW)if(x=N0d(V,N)){var W=x.uD;x=x.signature}else x=W=V.encrypt(N),(0,g.cH)(),x=Qn1(new q5U(V.K.U),x,V.iv);return Zt(W&&x?{vT:W,IJ:x}:{whB:N},V,J,y,!!O.XW,l,m,H,F)}; QT1=function(O,V,J,y,l,m,H,F){var N,x,W;return g.Q(function(U){if(U.j==1)return N=g.mH(O,pN),U.K(FlX(V,N),2);if(U.j!=3)return x=U.U,U.K(xul(V,x),3);W=U.U;return U.return(Zt({vT:x,IJ:W},V,J,y,!!O.XW,l,m,H,F))})}; G9o=function(O,V,J,y,l,m,H,F){var N=g.mH(O,pN);if(N=N0d(V,N))return Zt({vT:N.uD,IJ:N.signature},V,J,y,!!O.XW,l,m,H,F)}; cW=function(O,V,J){g.K.call(this);var y=this;this.pD=O;this.playerRequest=V;this.Ax=J;this.logger=new g.vK("onesie");this.Zw=[];this.Kz=[];this.xhr=null;this.state=1;this.VX=new hN;this.Ro=!1;this.playerResponse="";this.Fp=new wJ(this);this.jK=new xe(this);this.H0="";this.oh=this.QW=!1;this.qn="";this.enableCompression=this.My=this.XO=!1;this.XS=[];this.Dq=-1;this.w$=0;this.B=this.pD.Y();this.videoData=this.pD.getVideoData();this.zt=this.B.Sq();this.Px=this.B.eq;this.Nk=new Ae(this.Px.K);this.yT= this.B.L("html5_onesie_check_timeout");this.G4=new g.t_(this.ND,500,this);this.TN=new g.t_(this.L7,1E4,this);this.Y0=new g.t_(function(){if(!y.isComplete()){var l=zY(y);y.fail(new g.DO("net.timeout",l))}},1E3); this.cV=new g.t_(this.cxK,2E3,this);this.hZ=this.pD.YN();this.IH=this.L("html5_onesie_wait_for_media_availability");g.t(this.videoData,this);g.t(this,this.G4);g.t(this,this.TN);g.t(this,this.cV);O=MS();xD&&O&&(this.au=new Map);this.RM=new Map;this.ZH=new Map;this.V6=new Map;this.w7=new Map}; S7=function(O,V){var J;return(J=O.au)==null?void 0:J.get(V)}; tWo=function(O,V,J){var y;return g.Q(function(l){if(l.j==1)return O.RX("oprd_s"),Klr(O)?l.K(Wln(O.Nk,V,J),3):(y=O.Nk.decrypt(V,J),l.uw(2));l.j!=2&&(y=l.U);O.RX("oprd_c");return l.return(y)})}; udh=function(O){return O.L("html5_onesie_host_probing")||O.zt?xD:!1}; Uq=function(O){if(!O.playerResponse)return!1;if(O.XO)return!0;var V=O.videoData.L("html5_onesie_audio_only_playback")&&f7(O.videoData);if(O.au&&O.IH){if(!O.au.has(O.H0))return!1;var J=O.au.get(O.H0),y;if(y=J){y=!1;for(var l=g.n(J.cB.keys()),m=l.next();!m.done;m=l.next())if(m=J.cB.get(m.value))for(var H=g.n(m.dn),F=H.next();!F.done;F=H.next())F.value.R_>0&&(m.jE?y=!0:V=!0);y=!(V&&y)}if(y)return!1}O.RX("ofr");O.VX.resolve(O.playerResponse);if(!O.yT){var N;(N=O.Y0)==null||N.start();O.TN.start()}return O.XO= !0}; rzo=function(O){if(O.au&&!O.L("html5_onesie_media_capabilities")){O.RX("ogsf_s");var V=M3X(O.pD.getVideoData(),function(y,l){O.jB(y,l)}),J=Azd(O.pD); V.video=YOX(J,V.video);O.RX("ogsf_c");if(V.video.length)return V;O.jB("ombspf","l."+J.j+";u."+J.K+";o."+J.U+";r."+J.reason)}}; var Znl=function(){return bnY[C[8]](this,32)}; Klr=function(O,V){return O.L("html5_onesie_sync_request_encryption")||(V==null?0:V.XW)?!1:!!MP()}; zY=function(O){if(!O.sA)return{};var V=O.sA.Zr(),J;V.d=(J=O.sA.dW)==null?void 0:J.dH();V.shost=O.M3;V.ty="o";return V}; i7p=function(O,V){var J,y;(y=(O=(J=O.au)==null?void 0:J.get(V))==null)||(V=O.U?!1:O.U=!0,y=!V);return!y}; sq=function(O,V,J,y,l,m,H,F,N,x,W,U){g.K.call(this);var Z=this;this.pD=O;this.loader=V;this.policy=J;this.audioTrack=y;this.videoTrack=l;this.xi=m;this.Ax=H;this.Ks=F;this.j=N;this.timing=x;this.fD=W;this.T=U;this.K=[];this.D={};this.E5=this.eB=!1;this.zL=this.Wt=0;this.GI=!0;this.eJ=!1;this.KD=0;this.lw={pC:0,S2:0};this.TL={pC:0,S2:0};this.Qc=null;this.dW={Dg:[],j8:[]};this.Vz={Dg:[],j8:[]};this.V=null;this.W=[];this.ol=0;this.nD=!1;this.Ty={sqB:function(){return Z.K}, OJi:function(){return Z.D}, Uxz:function(){Z.K.length=0}, ILX:function(){return Z.videoData.ol}, LrN:function(){return Z.KD}, LcD:function(z){Z.KD=z}, QLv:function(z){Z.lw.S2=z}, tQ:function(z){Z.V=z}, Ak:function(z){Z.W=z}, Dv:function(){return Z.Dv()}}; this.videoData=this.pD.getVideoData();this.qX=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.YQ;this.policy.NE&&(this.O5=new bW(this.loader,this.policy,this.Ax),g.t(this,this.O5))}; PbV=function(O,V){if(RFH(O)){V=B07(O,V);O.K.push(V);var J;(J=O.O5)==null||pL(J,O.xi.qX);O.qX>0&&O.lw.S2++}}; B07=function(O,V){O.policy.S&&O.loader.jB("sabrcrq",{create:1});var J=new KL(0,O.xi.qX,O);O.j.qX=!1;return k9r(O,J,V)}; TY=function(O){var V,J=O.policy.V&&((V=O.loader)==null?void 0:V.Mv());V=O.loader.getCurrentTime()||0;V=Sy5(O,V);a:if(O.policy.bW&&O.loader.isSeeking()){var y=j7(O.videoTrack,V);O.loader.jB("asmtfnctv",{b:V,a:y});if(!isNaN(y)){V=y;break a}}y=O.loader.HY()||0;V+=y;y=PL(O.videoData)||g.BL(O.videoData);var l=0;J?(y&&(l=Number.MAX_SAFE_INTEGER),O.videoData.cX&&(l=Math.ceil(O.videoData.u_*1E3))):l=Math.ceil(V*1E3);return Math.min(Number.MAX_SAFE_INTEGER,l)}; e5=function(O){return O.policy.zK&&!!O.V}; Sy5=function(O,V){if(O.loader.isSeeking())return V;var J=O.pD.HB();if(!J)return V;J=J.pE();if(J.length===0||mT(J,V))return V;if(!O.videoTrack.Gk(V)&&!O.audioTrack.Gk(V))return O.loader.jB("sundrn",{b:0,lt:V}),V;for(var y=V,l=Infinity,m=0;mV)){var H=V-J.end(m);H=20)?(O.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),V):y}; Ye=function(O,V,J){O=O.loader.HY()||0;return Ir(V,(J+O)*1E3)/1E3+J}; RFH=function(O){if(!Du1(O,O.lw)||zx(O.audioTrack)&&zx(O.videoTrack))return!1;if(O.policy.j)if(O.policy.W){var V;if((V=O.T)==null)var J=0;else{J=!1;V=g.n(V.K.entries());for(var y=V.next();!y.done;y=V.next())if(y=g.n(y.value),y.next(),y=y.next().value,y.event!=="predictStart"&&y.EB===5){var l=void 0,m=void 0;((l=y)==null?0:l.Qy)&&Date.now()-((m=y)==null?NaN:m.Qy)>1E4?y.EB=1:J=!0}}if(J)return!1}else if(J=!1,O.fD.j===2?J=!0:O.fD.j===3&&(TY(O),O.loader.HY(),l=$x(O.audioTrack,O.loader.isSeeking()).Dg,V= $x(O.videoTrack,O.loader.isSeeking()).Dg,y=O.loader.getCurrentTime()||0,l=Ye(O,l,y),V=Ye(O,V,y),V=Math.min(l,V),y=O.fD,V>=y.U?(y.jB("sdai",{haltrq:V,est:y.U}),V=!0):V=!1,V&&(J=!0)),J&&O.policy.S&&O.loader.jB("sabrcrq",{waitad:1}),J)return!1;O.policy.Z_&&(O.dW=ar(O,O.audioTrack),O.Vz=ar(O,O.videoTrack));if(!O.U)return O.policy.S&&O.loader.jB("sabrcrq",{nopolicy:1}),!0;if(O.pD.ym())return O.policy.S&&O.loader.jB("sabrcrq",{utc:1}),!0;if(O.j.S)return O.policy.S&&O.loader.jB("sabrcrq",{audio:1}),!0;if(O.policy.yq&& O.j.qX)return O.policy.S&&O.loader.jB("sabrcrq",{constraint:1}),!0;if(!O.U.targetAudioReadaheadMs||!O.U.targetVideoReadaheadMs)return O.policy.S&&O.loader.jB("sabrcrq",{noreadahead:1}),!0;if(O.policy.V&&O.loader.Mv())return O.policy.S&&O.loader.jB("sabrcrq",{seekToHead:1}),!0;J=Math.min(Zz(O.loader,O.audioTrack)*1E3,O.U.targetAudioReadaheadMs);V=Math.min(Zz(O.loader,O.videoTrack)*1E3,O.U.targetVideoReadaheadMs);var H=Math.min(J,V),F=O.pD.getCurrentTime()*1E3,N=Ojr(O,F);y=N.gO;l=N.xt;m=N.mG;N=N.ZU; var x=yV||y>=0&&l.Dc>y+1)break;J=Math.max(J,l.startTimeMs+l.durationMs);y=Math.max(y,l.Hn)}return Math.max(0,J-V)}; k9r=function(O,V,J){var y={Ax:O.Ax,s3:function(N,x){O.pD.rr(N,x)}, J$:O.policy.fJ,Bx:O.policy.U};O.Ax.j.V&&(y.pB=(O.videoTrack.vE.info.jq||0)+(O.audioTrack.vE.info.jq||0));O.policy.CP&&(y.fu=O.audioTrack.vE.index.O0(),y.J$=!1);var l=H77(V,O.policy,O.D)?2:1;l!==O.KD&&(O.KD=l,J1h(O));J=O.Dv(J);if(O.policy.KD&&O.policy.U&&J.Hy){for(var m=l="",H=g.n(J.Hy),F=H.next();!F.done;F=H.next())F=F.value,O.videoData.sabrContextUpdates.has(F)||O.policy.KD&&J.J5&&J.J5.type===F?l+="_"+F:m+="_"+F;O.loader.jB("sabrbldrqs",{ctxts:l,misctxts:m})}!V.setData(J,O.policy,O.D)&&O.policy.KD&& O.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);y=new $l(O.policy,V,O.xi,O.D,O,y,O.loader.YN());H6(O.timing);O.policy.S&&O.loader.jB("sabrcrq",{rn:y.Lw(),probe:V.g5()});return y}; fC=function(O,V){if(V.GL()||O.GL())O.policy.JB||(O.policy.V?bl(O.loader):O.loader.e7());else{if(O.policy.U&&V.isComplete()&&V instanceof $l){var J=O.loader,y=J.jB,l,m,H=Object.assign(V.sA.Zr(),{rst:V.state,strm:V.xhr.Xe(),d:(l=V.sA.dW)==null?void 0:l.dH(),cncl:V.xhr&&V.iR.W?1:0,rqb:V.Gx,cwt:V.iR.U,swt:(m=V.Zy)==null?void 0:m.IR});l=Object.assign(jTd(V.info),H);y.call(J,"rqs",l)}if(V.isComplete()&&V.g5()&&V instanceof $l)O.policy.dX?V.bd()?(V.dispose(),O.K.length===0?O.loader.e7():(O=O.K[0],O instanceof $l&&O.We()&&O.Fe())):V.t_()&&O.loader.handleError(V.qU(),V.QL()):(V.dispose(),O.loader.e7());else{if(V.UM())O.eJ=!0,V instanceof $l&&j2h(O.timing,V),J1h(O),pC(O);else if(V.t_())if(J=O.pD.ym(),V instanceof $l&&uW(V.info)&&J&&O.loader.O3(J),V instanceof $l&&lbd(V)){var F;(F=O.loader.Oo)==null||XF(F)}else V instanceof cW?O.K.pop():(F=1,V.canRetry()&&Xg(O.loader)&&(y11(O,V),F=0),O.loader.handleError(V.qU(),V.QL(),F));else{if(O.loader.isSuspended&&!V.isComplete())return;pC(O)}V.GL()||V instanceof cW|| (V.isComplete()?F=AOH(V,O.policy,O.D):(F=ui7(V,O.policy,O.D),F===1&&(O.eB=!0)),F!==0&&(J=new KL(1,V.info.uh),J.zP=F===2,k9r(O,J)));V.isComplete()&&(O.GI=!1,V.UM()||(O.eJ=!1));O.policy.eq&&!V.isComplete()?gi(O.loader):O.loader.e7()}}}; pC=function(O){for(;O.K.length&&O.K[0].vp(O.Ai());){var V=O.K.shift();lkY(O,V)}O.K.length&&lkY(O,O.K[0])}; lkY=function(O,V){V instanceof $l&&(O.yz=V);var J=new Set(V.ww(O.Ai()));J=g.n(J);for(var y=J.next();!y.done;y=J.next()){var l=y.value;if(!(y=!(V instanceof cW))){y=O.j;var m=y.xi.Gy,H=Gx(y.videoInfos,m);m=yzr(y,l,m);var F=H.includes(l);!y.Lv.jI||m||F||y.loader.jB("sabrcpf",{fid:""+l,vfids:""+H.join("."),said:y.T||""});y=m||H.includes(l)}if(y&&(y=V.vv(l,O.Ai()),H=O.policy.zK&&O4(y[0].vE.info.mimeType),V.Rp(l,O.Ai())))for(l=V.Xp(l,O.Ai()),l=g.n(l),m=l.next();!m.done;m=l.next())if(m=m.value,O.policy.U&& V instanceof cW&&O.loader.jB("omblss",{s:m.info.rX()}),H)F=O.timing,F.KD||(F.KD=(0,g.cH)(),g.i7("fcb_r",F.KD,F.K)),F=O,F.videoData.Gy()&&F.V&&Ji(F.V)===Ji(g.k7(m.info.vE.info,F.xi.Gy))&&F.pD.publish("sabrCaptionsDataLoaded",m,F.Ak.bind(F));else{F=m.info.vE.info.jE();var N=m.info.vE,x=V instanceof cW?1:2;if(F){var W=void 0;var U=O.j,Z=(W=V.je(O.Ai()))==null?void 0:W.token;U.S&&N!==U.W?W=!0:(U.S=!1,N!==U.W&&(U.W=N,U.x0(N,U.audioTrack,x===void 0?0:x,Z)),W=!1);if(W)continue}else W=void 0,SjV(O.j,N,x, (W=V.je(O.Ai()))==null?void 0:W.token);W=F?O.audioTrack:O.videoTrack;V instanceof cW&&(W.V=!1,V instanceof cW&&(F?Hs1(O.timing):$Sp(O.timing)));try{mk(W,y,m)}catch(z){m=Vj(z),O.loader.handleError(m.errorCode,m.details,m.severity),W.Yb(),O.uW(!1,"pushSlice"),bl(O.loader)}}}}; y11=function(O,V){O.policy.KD?O.K.splice(O.K.indexOf(V)).forEach(function(J){J.dispose()}):(O.K.pop(),V==null||V.dispose())}; m7p=function(O,V,J){for(var y=[],l=0;l0)for(var V=g.n(O.videoData.sabrContextUpdates.keys()),J=V.next();!J.done;J=V.next()){J=J.value;var y=void 0;((y=O.videoData.sabrContextUpdates.get(J))==null?0:y.sendByDefault)&&O.videoData.ol.add(J)}if(O.policy.KD&&O.K.length)for(V=g.n(O.K),J=V.next();!J.done;J=V.next())(J=J.value.RQ())&&J.type&&J.sendByDefault&&O.videoData.ol.add(J.type)}; $7l=function(O){O.policy.wX&&(O.LD=void 0,O.Wt=0)}; Hjr=function(O,V){if(V.t_()||V.GL()){var J=O.loader,y=J.jB,l=V.state;O=O.Ai();var m,H;if((V=(m=V.au)==null?void 0:m.get(O))==null)V=void 0;else{m=0;O=V.ww();for(var F=0;F0){var J=Math.floor((0,g.cH)()/1E4);if(J===V.pC){if(V.S2>=O.qX){V.S2===O.qX&&(J={reason:"toomanyrequests"},J.limit=V.S2,O.loader.handleError("player.exception",J),V.S2+=1);V=!1;break a}}else V.pC=J,V.S2=0}V=!0}if(!V||O.loader.isSuspended&&O.loader.TW)return!1;if(O.S&&(0,g.cH)()0)||O.policy.KD&&O.K.length===1&&O.K[0].uC()?!0:!1){var y;V=(y=O.xi.qX)!=null&&VB(y,O.policy,O.D,O.loader.Dm)?!0:!1}return V&&!O.nD?!0:!1}; Ojr=function(O,V){var J=j9p(O),y=J.mG;J=J.ZU;if(O.policy.Z_){var l=Ir(O.dW.Dg,V);O=Ir(O.Vz.Dg,V)}else l=y,O=J;return{gO:l,xt:O,mG:y,ZU:J}}; j9p=function(O){var V=xx(O.audioTrack,!0)*1E3;O=xx(O.videoTrack,!0)*1E3;return{mG:V,ZU:O}}; CJr=function(O){this.pD=O;this.K=new Map;this.delay=null}; hQ=function(O,V){if(GM(O.pD.getPlayerState())&&O.K.size!==0){var J=V!=null?V:Array.from(O.K.values()).sort(function(l,m){return l.mediaTime-m.mediaTime}); V=O.getCurrentTime();var y=(J[0].mediaTime-V)*1E3/O.pD.getPlaybackRate();if(y<500)for(V=y>0?Ffp(O):V,J=g.n(J),y=J.next();!y.done;y=J.next())if(y=y.value,V>=y.mediaTime)y.resolve([y.mediaTime,y.id]),O.K.delete(y.id);else break;NAY(O,V)}}; x7n=function(O,V,J){O.K.delete(J);return new Promise(function(y){O.K.set(J,{id:J,mediaTime:V,resolve:y});y=Array.from(O.K.values()).sort(function(l,m){return l.mediaTime-m.mediaTime}); J===y[0].id&&hQ(O,y)})}; Wfd=function(O){var V;(V=O.delay)==null||V.dispose();O.K.clear()}; NAY=function(O,V){var J;(J=O.delay)==null||J.dispose();O.delay=null;J=Array.from(O.K.values()).sort(function(y,l){return y.mediaTime-l.mediaTime}); J.length!==0&&(V=(J[0].mediaTime-V)*1E3/O.pD.getPlaybackRate(),O.delay=new g.t_(function(){hQ(O)},V>500?V-500:V),O.delay.start())}; Ffp=function(O){var V,J;return(J=(V=O.pD.HB())==null?void 0:V.getCurrentTime())!=null?J:O.pD.getCurrentTime()}; or=function(O,V,J){var y=this;this.D=O;this.cpn=V;this.pD=J;this.K=new Map;this.U=new Map;this.V=NaN;this.j=this.hg="";this.isSeeking=!1;this.W=new CJr(J);this.BC=J.BC;this.pD.subscribe("statechange",this.S,this);this.pD.subscribe("SEEK_TO",function(){y.bF()}); this.pD.subscribe("SEEK_COMPLETE",function(){U7d(y)}); this.hg=this.j=this.cpn}; zIl=function(O,V,J){var y=O.K.get(V),l=O.D.getStartTime(V),m=O.D.getDuration(V),H=l,F;((F=y==null?void 0:y.K)!=null?F:[O.cpn]).forEach(function(N,x){var W,U=(W=y==null?void 0:y.j[x])!=null?W:m;if(J>=H&&J=l}).sort(function(H,F){return H-F}); V=g.n(V);for(J=V.next();!J.done;J=V.next()){J=J.value;var m=J===l?y-O.D.getStartTime(l):0;TAU(O,J,O.K.get(J),m)}}; Zj1=function(O,V,J,y){y=y===void 0?!1:y;V!==O.hg&&(O.hg=V,O.pD.publish("playbackstarted",V,J+O.pD.HY(),y))}; s9p=function(O,V,J,y){O.j=J;J=V+"."+J;O.U.has(V)?O.U.get(V).push(J):O.U.set(V,[J]);x7n(O.W,y,J).then(function(l){var m=g.n(l);l=m.next().value;m=m.next().value;var H=g.n(m.split("."));m=H.next().value;H=H.next().value;m=g.n([Number(m),H]);m.next();m=m.next().value;Zj1(O,m,l)})}; vW=function(O,V,J,y,l){this.loader=O;this.policy=V;this.schedule=J;this.fY=y;this.qX=l;this.KD=NaN;this.j=this.S=this.D=null;this.K=this.W=this.V=this.startTimeSecs=NaN;this.U=!1;this.T=NaN}; eIn=function(O,V,J,y,l,m){return V.lM&&V.oB&&J===3?new vW(O,V,y,l,m):null}; IkY=function(O,V){if(O.policy.CwB){var J=V.info.jq,y=mD(O.schedule);V=V.index.O0();J=Math.max(1,y/J);O.T=Math.round(Math.max(((J-1)*V+O.policy.xr)/J,V-O.policy.PH)*1E3)}}; bj5=function(O,V){var J=Date.now()/1E3,y=J-O.startTimeSecs,l=J-O.V,m=l>=O.policy.hd,H=!1;if(m){var F=0;!isNaN(V)&&V>O.W&&(F=V-O.W,O.W=V);F/l=O.policy.PH&&!O.U;if(!m&&!J&&YJr(O,V))return NaN;J&&(O.U=!0);a:{y=H;J=(0,g.cH)()/1E3-(O.fY.cC()||0)-O.S.K-O.policy.xr;m=O.j.startTime;J=m+J;if(y){if(isNaN(V)){wM(O,NaN,"n",V);m=NaN;break a}y=V-O.policy.nP;y0&&(H.headers=F);m&&(H.onFinish=m);return Object.keys(H).length>1?H:null}; nC=function(O,V,J,y,l,m,H,F){Jy()&&J.token&&(O=DS(O,{ctt:J.token,cttype:J.RR,mdx_environment:J.mdxEnvironment}));y.L("net_pings_low_priority")&&(V||(V={}),V.priority="low");m||F&&y.L("nwl_skip_retry")?(V==null?V={}:weV(O,y.L("html5_assert_cpn_with_regex")),H?dS().sendAndWrite(O,V):dS().sendThenWrite(O,V,F)):V?(weV(O,y.L("html5_assert_cpn_with_regex")),qTd(O,V)):g.hS(O,l)}; Mup=function(O){for(var V=[],J=0;J0&&J>0&&!O.j&&O.U<1E7)try{O.D=O.W({sampleInterval:V,maxBufferSize:J});var y;(y=O.D)==null||y.addEventListener("samplebufferfull",function(){return g.Q(function(l){if(l.j==1)return l.K(O.stop(),2);Xe7(O);l.V()})})}catch(l){O.j=nD7(l.message)}}; Eq=function(O,V){var J,y,l=(J=window.h5vcc)==null?void 0:(y=J.settings)==null?void 0:y.set(O,V);return xH(l)?c_(W_(l),function(){return!0},function(){return!1}):W_(!!l)}; ED7=function(O){return Eq("MediaSource.EnableUsingMediaSourceBufferedRange",O?1:0)}; d7X=function(O){return Eq("HTTP3",O?1:0)}; gDX=function(O){return Eq("MediaSource.EnableUsingMediaSourceAttachmentMethods",O?1:0)}; qJY=function(O){return Eq("QUIC",O?1:0)}; Q9r=function(O){return Eq("Media.AudioWriteDurationLocal",O)}; Gcp=function(O){return Eq("Media.PlayerConfiguration.DecodeToTexturePreferred",O?1:0)}; KfH=function(O){return Eq("Media.DisableAllocator",O?1:0)}; tuU=function(O){return Eq("Media.VideoBufferSizeClampMb",O)}; ubr=function(O){return Eq("Media.EnableAllocateOnDemand",O?1:0)}; r15=function(){var O,V,J,y=(O=window.h5vcc)==null?void 0:(V=O.settings)==null?void 0:(J=V.getPersistentSettingAsString)==null?void 0:J.call(V,"cpu_usage_tracker_intervals");if(y!=null){var l;O=(l=JSON.parse(y))!=null?l:[];l=O.filter(function(x){return x.type==="total"}).map(function(x){return x.seconds}); V=g.n(A1U);for(J=V.next();!J.done;J=V.next())J=J.value,l.indexOf(J)===-1&&O.push({type:"total",seconds:J});var m,H;(m=window.h5vcc)==null||(H=m.settings)==null||H.set("cpu_usage_tracker_intervals_enabled",1);var F,N;(F=window.h5vcc)==null||(N=F.settings)==null||N.set("cpu_usage_tracker_intervals",JSON.stringify(O))}}; ijp=function(){var O=window.H5vccPlatformService,V="";if(O&&O.has("dev.cobalt.coat.clientloginfo")&&(O=O.open("dev.cobalt.coat.clientloginfo",function(){}))){var J=O.send(new ArrayBuffer(0)); J&&(V=String.fromCharCode.apply(String,g.q(new Uint8Array(J))));O.close()}return V}; g.qm=function(O){g.K.call(this);var V=this;this.provider=O;this.logger=new g.vK("qoe");this.K=new Map;this.sequenceNumber=1;this.lw=NaN;this.Pf="N";this.T=this.Rj=this.mw=this.KD=this.j=0;this.yc=this.ol=this.V=this.yz="";this.WB=this.LD=NaN;this.NH=0;this.eq=-1;this.aB=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.eB=this.isEmbargoed=this.dW=this.isOffline=this.isBuffering=!1;this.wX=[];this.qX=null;this.TL=this.D=this.O5=this.S=!1;this.U=-1;this.nD=!1;this.dX=new g.t_(this.rvj,750,this);this.JT= this.adCpn="";this.D3=this.hw=this.zD=this.TD=this.adFormat=void 0;this.DD=0;this.MI=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.zK=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Ks=!1;this.oB=NaN;this.Vz=0;this.UR=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Xs=!1;this.xr=new Set;this.Ty={OF:function(m){V.OF(m)}, SdW:function(){return V.W}, reportStats:function(){V.reportStats()}, Uzw:function(){return V.K.get("cat")||[]}, Hj:function(m){return V.K.get(m)||[]}, UBL:function(){return V.K}, s_i:function(){return{adCpn:V.adCpn,JT:V.JT,adFormat:V.adFormat}}, tVK:function(){return{TD:V.TD,zD:V.zD,hw:V.hw,D3:V.D3}}}; this.fD=this.provider.B.L("html5_qoe_relaxed_reporting");var J=g.Ry(this.provider.B.experiments,"html5_qoe_proto_mock_length");J&&!dM.length&&(dM=Mup(J));g.t(this,this.dX);try{var y,l;(l=(y=navigator).getBattery)==null||l.call(y).then(function(m){V.qX=m})}catch(m){}g.gM(this,0,"vps",["N"]); O.B.Sq()&&(this.Vz=(0,g.cH)(),this.oB=g.FR(function(){var m=(0,g.cH)(),H=m-V.Vz;H>500&&V.jB("vmlock",{diff:H.toFixed()});V.Vz=m},250)); this.provider.videoData.Rz&&(this.remoteControlMode=RIH[this.provider.videoData.Rz]||0);this.provider.videoData.yI&&(J=BLh(this.provider.videoData.yI),J==null?0:J.length)&&(this.remoteConnectedDevices=J);O.B.Sq()&&(this.zL=new Mm,g.t(this,this.zL));b6h(O.B)&&(this.E5=new Xl,g.t(this,this.E5))}; QS=function(O,V,J){var y=O.K.get(V);y?y.push(J):O.K.set(V,[J])}; g.gM=function(O,V,J,y){QS(O,J,V.toFixed(3)+":"+y.join(":"))}; GY=function(O,V){var J=O.provider.getCurrentTime();g.gM(O,V,"cmt",[J.toFixed(3)]);var y=J=O.provider.Yp();if((!O.W||O.provider.B.L("html5_shorts_gapless_no_gllat")&&p7(O.provider.videoData)?0:y*1E3>O.W.H6+100)&&O.W){var l=O.W;y=l.isAd;J=J*1E3-l.H6;O.Gv=V*1E3-l.uJW-J-l.Ben;l=(0,g.cH)()-J;V=O.Gv;J=O.provider.videoData;var m=J.isAd();if(y||m){m=(y?"ad":"video")+"_to_"+(m?"ad":"video");var H={};J.V&&(H.cttAuthInfo={token:J.V,videoId:J.videoId});H.startTime=l-V;e4(m,H);g.TJ({targetVideoId:J.videoId,targetCpn:J.clientPlaybackNonce}, m);sB("pbs",l,m)}else l=O.provider.pD.kI(),l.V!==J.clientPlaybackNonce?(l.W=J.clientPlaybackNonce,l.j=V):J.xb()||g.en(new g.pn("CSI timing logged before gllat",{cpn:J.clientPlaybackNonce}));O.jB("gllat",{l:O.Gv.toFixed(),prev_ad:+y});delete O.W}}; ul=function(O,V){V=V===void 0?NaN:V;V=V>=0?V:g.KC(O.provider);var J=O.provider.pD.u7(),y=J.Vo-(O.LD||0);y>0&&g.gM(O,V,"bwm",[y,(J.OJ-(O.WB||0)).toFixed(3)]);isNaN(O.LD)&&J.Vo&&O.isOffline&&O.OF(!1);O.LD=J.Vo;O.WB=J.OJ;isNaN(J.bandwidthEstimate)||g.gM(O,V,"bwe",[J.bandwidthEstimate.toFixed(0)]);O.provider.B.Sq()&&Object.keys(J.K).length!==0&&O.jB("bwinfo",J.K);if(O.provider.B.Sq()||O.provider.B.L("html5_log_meminfo"))y=peV(),Object.values(y).some(function(m){return m!==void 0})&&O.jB("meminfo",y); if(O.provider.B.Sq()){var l;(y=(l=O.zL)==null?void 0:hIX(l))&&Object.values(y).some(function(m){return m!=null})&&O.jB("cpuinfo",y)}O.E5&&O.jB("jsprof",O.E5.flush()); O.Wf&&O.jB("uma",O.Wf.flush());O.qX&&g.gM(O,V,"bat",[O.qX.level,O.qX.charging?"1":"0"]);l=O.provider.pD.getVisibilityState();O.eq!==l&&(g.gM(O,V,"vis",[l]),O.eq=l);GY(O,V);(l=BAV(O.provider))&&l!==O.NH&&(g.gM(O,V,"conn",[l]),O.NH=l);tQ(O,V,J)}; PJH=function(O){var V=O.provider.pD.u7(),J=g.KC(O.provider);tQ(O,J,V);var y=V.U;V=V.D;isNaN(y)||(O.provider.B.L("html5_unified_live_latency_reporting")&&!isNaN(V)&&V?g.gM(O,J,"e2el",[y.toFixed(3),V.toFixed(3)]):g.gM(O,J,"e2el",[y.toFixed(3)]))}; tQ=function(O,V,J){if(!isNaN(J.l5)){var y=J.l5;J.j96E3&&(new g.t_(O.reportStats,0,O)).start()}}; Ocr=function(O){O.provider.videoData.zK&&AQ(O,"prefetch");O.provider.videoData.E5&&O.jB("reload",{r:O.provider.videoData.reloadReason,ct:O.provider.videoData.E5});O.provider.videoData.iQ&&AQ(O,"monitor");O.provider.videoData.isLivePlayback&&AQ(O,"live");xD&&AQ(O,"streaming");O.provider.videoData.Rz&&O.jB("ctrl",{mode:O.provider.videoData.Rz},!0);if(O.provider.videoData.yI){var V=O.provider.videoData.yI.replace(/,/g,"_");O.jB("ytp",{type:V},!0)}O.provider.videoData.Lk&&(V=O.provider.videoData.Lk.replace(/,/g, "."),O.jB("ytrexp",{ids:V},!0));O.provider.B.Sq()&&O.jB("now",{wt:(0,g.cH)()});V=O.provider.videoData;var J=O.provider.B.L("enable_white_noise")||O.provider.B.L("enable_webgl_noop"),y=g.qu(V)||g.kZ(V)||g.SW(V)||g.D2(V);(J||y)&&(J=(0,g.rM)())&&O.K.set("gpu",[J]);Fb(O.provider.videoData)&&g.gM(O,g.KC(O.provider),"dt",["1"]);V.cotn&&!Fb(V)&&O.OF(!0);O.provider.B.Sq()&&(V=(0,g.cH)()-O.provider.B.Pn,O.jB("playerage",{secs:Math.pow(1.6,Math.round(Math.log(V/1E3)/Math.log(1.6))).toFixed()}));O.D=!0;O.lw= g.FR(function(){O.reportStats()},1E4)}; J9r=function(O,V,J){var y=g.KC(O.provider);V9r(O,y,V,0,J);ul(O,y);D7l(O)}; V9r=function(O,V,J,y,l){var m=O.provider.B.K.cbrver;O.provider.B.K.cbr==="Chrome"&&/^96[.]/.test(m)&&J==="net.badstatus"&&/rc\.500/.test(l)&&y9n(O,3);O.provider.B.L("html5_use_ump")&&/b248180278/.test(l)&&y9n(O,4);m=O.provider.getCurrentTime();y=y===1?"fatal":"";J=[J,y,m.toFixed(3)];y&&(l+=";a6s."+Ox());l&&J.push(lsn(l));g.gM(O,V,"error",J);O.D=!0}; $yd=function(O,V){var J=g.KC(O.provider);if(!O.provider.B.experiments.Jv("html5_refactor_sabr_video_format_selection_logging")||V.K.id!==O.yz){var y=O.provider.B.gC().K.s5(Iq);y&&!O.O5&&V.reason!=="m"&&(V.reason="i");var l=[V.K.id,V.j,O.yz,V.reason];y&&V.reason==="i"&&l.push(myH(O,V));V.token&&l.push(V.token);g.gM(O,J,"vfs",l);O.yz=V.K.id;y=O.provider.pD.getPlayerSize();y.width>0&&y.height>0&&(y=[Math.round(y.width),Math.round(y.height)],l=g.Uj(),l>1&&y.push(l),g.gM(O,J,"view",y));O.O5||(O.provider.B.Sq()&& AQ(O,"rqs2"),O.provider.videoData.K&&Pq(O.provider.videoData.K)&&O.K.set("preload",["1"]));O.O5=!0;O.D=!0}V.reason==="m"&&++O.DD===100&&y9n(O,2);g.gM(O,J,"vps",[O.Pf]);O.fD||O.reportStats(J)}; Hcn=function(O){O.U>=0||(O.provider.B.ul||O.provider.pD.getVisibilityState()!==3?O.U=g.KC(O.provider):O.nD=!0)}; Cgn=function(O,V,J){var y=O.provider.B,l=y.gC(),m=[];y.experiments.Jv("html5_refactor_sabr_audio_format_selection_logging")?(V=J.K,y=[V.audio&&V.video?V.dG?V.dG:"":V.id],V.wC&&V.wC.id&&y.push(V.wC.id),V=y.join(";"),V!==O.V&&(y=[V,O.V,J.reason],m.push.apply(m,g.q(j35(J))),l.K.s5(Iq)&&J.reason==="i"&&m.push(myH(O,J)),m.length>0&&y.push(m.join(";")),J.token&&y.push(J.token),g.gM(O,g.KC(O.provider),"afs",y),O.V=V)):J.K.id!==O.V&&(y=[J.K.id,O.V,J.reason],m.push.apply(m,g.q(j35(J))),l.K.s5(Iq)&&J.reason=== "i"&&m.push(myH(O,J)),m.length>0&&y.push(m.join(";")),J.token&&y.push(J.token),g.gM(O,V,"afs",y),O.V=J.K.id)}; myH=function(O,V){if(g.UJ(O.provider.videoData)){O=4;var J=1}else{var y;O=(y=V.source)!=null?y:0}y="sms."+O;J!==void 0&&(y+="_"+J);return y}; j35=function(O){var V=[];if(O=O.K.audio){var J=O==null?void 0:O.D;J!==void 0&&V.push("fl."+J);O=O==null?void 0:O.U;O!==void 0&&(O=Math.min(-O,0),V.push("vg."+O),V.push("nm.4"))}return V}; AQ=function(O,V){QS(O,"cat",V)}; il=function(O,V,J,y,l){var m=g.KC(O.provider);V!==1&&V!==3&&V!==5||g.gM(O,m,"vps",[O.Pf]);QS(O,"xvt","t."+m.toFixed(3)+";m."+l.toFixed(3)+";g.2;tt."+V+";np.0;c."+J+";d."+y)}; y9n=function(O,V){O.TL||(QS(O,"fcnz",""+V),O.TL=!0)}; lsn=function(O){/[^a-zA-Z0-9;.!_-]/.test(O)&&(O=O.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return O}; xyp=function(O,V,J,y,l,m,H,F,N,x){F=F===void 0?!1:F;g.K.call(this);var W=this;this.pD=O;this.schedule=V;this.policy=J;this.xi=y;this.KD=N;this.MI=x;this.Oo=this.SB=null;this.ol=this.LD=this.Vz=this.lw=0;this.w5=this.TW=this.isSuspended=!1;this.zL="";this.zK={};this.UR=NaN;this.Ks=this.Xs=this.Dm=0;this.Qc=null;this.oB=this.yz=!1;this.xm=0;this.TL=!1;this.dW=this.eB=0;this.WB=null;this.xM=!1;this.Mj=function(){return W.pD.Mj()}; this.timing=new mSl(this.MI);this.qX=new J$(this.schedule,this.policy);this.NH=new g.t_(this.e7,0,this);this.yc=new g.t_(this.e7,this.policy.eq,this);this.yr=new g.t_(this.e7,1E3,this);this.wX=new g.t_(this.e7,void 0,this);this.nD=new g.t_(function(){W.isSuspended||W.e7()},1E4,this); this.eq=new g.t_(this.yg5,250,this);this.S=this.currentTime=NaN;this.A9=new aB(5);this.O5=this.timestampOffset=NaN;this.logger=new g.vK("dash");this.dX=Infinity;this.Ty={DzN:function(){return W.vC}, uYw:function(){return W.U}, getAudioTrack:function(){return W.audioTrack}, vk5:function(){return W.videoTrack}, rWn:function(){return W.fD}, getManifest:function(){return W.xi}, p0L:function(){return W.j}, e7:function(){W.e7()}, jD:function(){W.lw=0;W.jD()}, Udl:function(z){return Rr(W,W.videoTrack,W.SB.j,z)}}; O=N&&N.ww();N&&(DTY(N,this.xi,this.policy),this.O5=Date.now());this.K=new p4(this,this.qX,J,this.xi,l,O);J=h8H(this.K,m,H&&H.id);this.audioTrack=new VO(this,this.policy,J.audio,this.timing);this.videoTrack=new VO(this,this.policy,J.video,this.timing);this.videoTrack.U.fD=this.audioTrack.aV();this.E5={updateend:this.lI,error:this.mIL};g.t(this,this.NH);g.t(this,this.yc);g.t(this,this.yr);g.t(this,this.wX);g.t(this,this.nD);J=this.policy.Q7&&this.policy.jk?!DoY(this.videoTrack.vE.info):!1;this.aB=Kc1({XF:this.policy.T.XF|| J,jk:this.policy.jk&&!J,aT:this.policy.aT});this.T=eIn(this,this.policy,this.aB,this.schedule,this.A9,function(z,c){return FeX(W,z,c)}); this.U=new jz(this,this.xi,this.policy,this.videoTrack,this.audioTrack,F);if(this.policy.W){F=this.pD.getVideoData();var U;this.jB("clsdai",{initld:1,admapsz:(U=F.Eb)==null?void 0:U.size});F.Eb||(F.Eb=new Map);this.fD=new cTY(this.policy,function(z,c){W.jB(z,c)},this.policy.eL,F.Eb)}this.vC=new FH(this,this.xi,this.videoTrack,this.audioTrack,this.policy); U=this.policy.UF?this.pD.getVideoData().Fb:null;this.V=new fL(this,this.policy,this.videoTrack,this.audioTrack,this.zK,this.U,this.timing,this.qX,this.schedule,this.xi,this.K,this.T,J,U);g.t(this,this.V);this.W=new qe(this,this.policy,this.videoTrack,this.audioTrack,this.xi,l,f7(this.pD.getVideoData()),H==null?void 0:H.id);g.t(this,this.W);Jzp(this.W,m);this.j=new sq(this.pD,this,this.policy,this.audioTrack,this.videoTrack,this.xi,this.schedule,this.K,this.W,this.timing,this.U,this.fD);g.t(this,this.j); this.D=this.pD.QK.iA.wL;this.policy.V||Nsr(this);if(this.policy.JL){var Z;this.xr=new or(this.videoTrack.vE.index,(Z=this.pD.getVideoData().clientPlaybackNonce)!=null?Z:"",this.pD)}}; WeU=function(O){O.policy.W&&O.D&&(O.D.Zw.forEach(function(V){O.Ms(V,-1)}),O.D.Zw=[])}; Nsr=function(O){var V,J;if((V=O.D)==null?0:(J=V.wj)==null?0:J.itagDenylist){var y;O.yv((y=O.D)==null?void 0:y.wj.itagDenylist)}var l;if((l=O.D)==null?0:l.playbackStartPolicy){var m,H;aq(O.policy,(m=O.D)==null?void 0:m.playbackStartPolicy,3,(H=O.D)==null?void 0:H.Lw())}if(O.policy.Nx){V=O.Ai();var F;(J=V?(F=O.D)==null?void 0:F.ZH.get(V):void 0)&&O.j.q5(J,-1)}if(!O.xi.KD){var N;F=(N=O.D)==null?void 0:N.lm;(F==null?0:F.yR)&&(F==null?0:F.sU)&&O.xi.Gy&&mc(O.xi,F.yR,F.sU)}var x;if((x=O.D)==null?0:x.w7){N= O.D.w7.get(O.Ai()||"");if(!N)return;O.xi&&N.formatId&&(x=O.xi.U.get(Ji(N.formatId)))&&(x.info.debugInfo=N.debugInfo)}if(O.policy.Vz){var W;(W=O.D)==null||W.Kz.forEach(function(U){O.KB(U)}); (W=O.D)!=null&&(W.Kz=[])}}; Uyr=function(O,V){var J=lQ(V.vE,O.xi.Gy),y,l=((y=O.KD)==null?void 0:y.vv(J))||[];if(l.length===0)return O.jB("ombmsi",{}),!1;y=new zQ(l);if((!O.policy.dW||isFinite(O.getCurrentTime())||O.pD.ym())&&!C7H(y,O.getCurrentTime()))return O.jB("ostmf",{ct:O.getCurrentTime(),a:V.vE.info.jE()}),!1;(O=O.KD)!=null&&(O.cB.get(J).sD=!0);return!0}; Zc5=function(O){if(!O.xi.Gy)return!0;var V=O.pD.getVideoData();if(O.pD.r6())return O.jB("ombpa",{}),!1;var J,y;if(!!((J=O.D)==null?0:(y=J.lm)==null?0:y.IIL)!==O.xi.FR)return O.jB("ombplmm",{}),!1;J=V.yz||V.liveUtcStartSeconds||V.Fl;if(O.xi.FR&&J)return O.jB("ombplst",{}),!1;if(O.xi.KD)return O.jB("ombab",{}),!1;J=Date.now();return $A(O.xi)&&!isNaN(O.O5)&&J-O.O5>O.policy.Fx*1E3?(O.jB("ombttl",{}),!1):g0(V)!==0&&!O.policy.K||V.L("html5_disable_onesie_media_for_mosaic")&&Cj(V)||V.L("html5_disable_onesie_media_for_lifa_eligible")&& ju(V)?!1:!0}; zSY=function(O,V){var J=V.vE,y=O.xi.Gy;if(Zc5(O))if(O.KD&&O.KD.cB.has(lQ(J,y))){if(y=lQ(J,y),Uyr(O,V)){var l=new zQ(O.KD.vv(y)),m=function(H){try{if(H.t_())O.handleError(H.qU(),H.QL()),Z_(V,H),sO(H.info)&&Me(O.V,V,J,!0),O.e7();else if(nL(O.V,H)){var F;(F=O.U)==null||xSV(F,H.info,O.Qc);O.e7()}}catch(N){H=Vj(N),O.handleError(H.errorCode,H.details,H.severity),O.Yb()}}; J.U=!0;cK(l)&&(lW(V,new NR(O.policy,y,l,O.KD,m)),H6(O.timing))}}else O.jB("ombfmt",{})}; c9H=function(O,V){V=V||O.videoTrack&&O.videoTrack.K&&O.videoTrack.K.startTime||O.getCurrentTime();var J=O.videoTrack,y=O.K;V=y.nextVideo&&y.nextVideo.index.tO(V)||0;y.O5!==V&&(y.Vz={},y.O5=V,f4(y,y.K));V=!y.K.isLocked()&&y.qX>-1&&(0,g.cH)()-y.qXJ&&(O.jB("sdai",{seg:y,rbt:J.toFixed(3),end:O.j.ol.toFixed(3),sd:l.toFixed(3)}),O.uW(!1,"rollback")):O.policy.j&&O.uW(!1,"rollback");if(O.xi.isManifestless){l=WN(O.audioTrack,y,J,V);var m=WN(O.videoTrack,y,J,V);O.policy.Wf||(m&&l8(O.xi,y,!0),l&&l8(O.xi,y,!1));m&&(O.videoTrack.qX=[]);l&&(O.audioTrack.qX=[]);O.jB("sdai",{rollbk2_seg:y,rbt:J.toFixed(3),lt:V.toFixed(3),a:l,v:m});(l||m)&&O.policy.j&&bl(O)}}; Tsn=function(O,V){if(!isNaN(O.UR)){var J=Date.now()-O.UR;J<1E4&&O.jB("bfaswtch",{ep:J,sk:V!==void 0?"1":"0",sr:V||""})}}; eS7=function(O){O.policy.DD=!1;try{O.jD()}catch(V){g.sk(V)}}; Is5=function(O,V){V=V===void 0?!1:V;O.SB&&O.SB.K&&O.SB.j&&(O.SB.K.Vq(O.E5,O),O.SB.j.Vq(O.E5,O));Je(O.audioTrack,null,V);Je(O.videoTrack,null,V);O.SB&&(O.SB.D=!1);O.SB=null}; YcU=function(O){O.SB&&O.SB.Qu()&&O.i9()}; bcd=function(O,V){V&&ash(O.pD,new s1(V.video,V.reason));O.K.nD&&(V=Lcn(O.K,"a"),O.pD.ye(new s1(V.audio,V.reason)))}; bl=function(O){g.uL(O.NH)}; gi=function(O){O.policy.eq&&O.policy.aT&&Math.min(hwo(O.videoTrack),hwo(O.audioTrack))*1E3>O.policy.G8?g.uL(O.yc):O.e7()}; pIY=function(O){if(MNl(O.videoTrack))return"ssf";if(O.policy.zL&&Tx(O.videoTrack)&&Tx(O.audioTrack))return"updateEnd";if(zx(O.audioTrack)||zx(O.videoTrack)&&O.videoTrack.vE.info.al!=="f")return"";if(O.vC.isSeeking()){var V=O.qX;var J=O.videoTrack;var y=O.audioTrack;if(V.policy.K){var l=V.policy.LP;Yx(V.policy)&&(l=jK(V,!1,Hd(V)));V=l;J=xx(y,!0)>=V&&xx(J,!0)>=V}else J.j.length||y.j.length?(l=J.vE.info.jq+y.vE.info.jq,l=10*(1-Hd(V)/l),V=Math.max(l,V.policy.LP),J=xx(y,!0)>=V&&xx(J,!0)>=V):J=!0;if(!J)return"abr"; J=O.videoTrack;if(J.j.length>0&&J.U.j.length===1&&mAd(J.U).info.S360);if(!O.w5||J)return"";J=O.policy.wk;Yx(O.policy)&&(J=jK(O.qX,O.w5,Hd(O.qX)));y=O.policy.Rn?O.currentTime:O.getCurrentTime();J=o$V(O.videoTrack,y,J)||o$V(O.audioTrack,y,J);return Yx(O.policy)?J?"mbnm":"":(O.videoTrack.j.length>0||O.audioTrack.j.length> 0||he(O.V,O.videoTrack,O.audioTrack)||he(O.V,O.audioTrack,O.videoTrack))&&J?"nord":""}; wIU=function(O,V,J){if(O.policy.zL&&Tx(V))return!1;if(J.By())return!0;if(!J.AA())return!1;var y=eK(V);if(!y||y.info.type===6)return!1;var l;if(O.policy.HL||((l=O.U)==null?0:z8Y(l,V,y.info.wW)))O.ol=0;else return O.vC.isSeeking()&&bl(O),O.ol=O.ol||(0,g.cH)(),!1;if(!Rr(O,V,J,y.info))return!1;if(O.xi.j&&y.info.K===0){if(J.xu()==null){l=yO(V);var m;if(!(m=!l||l.vE!==y.info.vE)){b:if(l=l.T,m=y.info.T,l.length!==m.length)l=!1;else{for(var H=0;Hm)return O.policy.K&&(V===O.videoTrack?O.LD=O.LD||(0,g.cH)():O.Vz=O.Vz||(0,g.cH)()),O.policy.NT&&ACV(V.U,m,!1),!1;V===O.videoTrack?O.LD=0:O.Vz=0;var F;O.policy.HK&&J===((F=O.SB)==null?void 0:F.K)&&O.TL&&(J.Bj()===0?(O.TL=!1,O.policy.HK=!1):O.eB=J.Bj());a:{F=O.policy.WB?(0,g.cH)():0;H=y.W&&y.info.vE.K||void 0;m=y.j;y.W&&(m=hSU(O,y,m)||m);var N=AJ(m);m=O.policy.WB?(0,g.cH)():0;J=oGo(O,J,N,y.info,H);(H=V.T)!=null&&(N=y.info,F=m-F,m=(0,g.cH)()-m,!H.j||SS1(H.j, N)&&H.j.wW===N.wW||H.flush(),H.D+=F,H.U+=m,F=1,!H.j&&N.K&&(F=2),dn(H,F,J),m=Math.ceil(N.K/1024),F===2&&H.K.add(m),H.K.add(Math.ceil((N.K+N.j)/1024)-m),H.j=N);O.dW=0;if(J===0)O.yz&&(O.yz=!1,O.oB=!1),O.Ks=0,J=!0;else{if(J===2||J===5)vGV(O,"checked",J,y.info);else{if(J===1){if(!O.yz){O.yz=!0;J=!1;break a}if(!O.oB){O.oB=!0;O.pD.seekTo(O.getCurrentTime(),{yK:"quotaExceeded",DR:!0});J=!1;break a}y.info.z3()?(F=O.policy,F.E5=Math.floor(F.E5*.8),F.ol=Math.floor(F.ol*.8)):(F=O.policy,F.UR=Math.floor(F.UR* .8),F.ol=Math.floor(F.ol*.8));O.policy.K?ez(O.W.K,y.info.vE,!1):v6(O.K,y.info.vE)}O.pD.Cr({reattachOnAppend:J})}J=!1}}if(!J)return!1;O.policy.zL&&y.info.yZ()?(O.pD.Y().Sq()&&O.jB("eosl",{ls:y.info.rX()}),y.isLocked=!0):(V.v1(y),MUl(O.K,y.info));l&&(V=y.info.vE.Sd)&&O.pD.Ch(new AK(V.key,V.type));return!0}; hSU=function(O,V,J){var y;if(y=O.policy.M9&&O.SB&&!O.SB.T&&!O.pD.eU())V=V.info.vE.info,y=V.ey()&&u$(V)&&V.video&&V.video.width<3840&&V.video.width>V.video.height;if(y&&(O.SB.T=!0,mg('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return J=yOh(J),O.policy.U&&O.jB("sp4k",{s:!!J}),J}; vGV=function(O,V,J,y){var l="fmt.unplayable",m=1;J===5||J===3?(l="fmt.unparseable",O.policy.K?!y.vE.info.video||IB(O.W.K).size>0||ez(O.W.K,y.vE,!1):!y.vE.info.video||IB(O.K.W).size>0||v6(O.K,y.vE)):J===2&&(O.Ks<15?(O.Ks++,l="html5.invalidstate",m=0):l="fmt.unplayable");y=UO(y);var H;y.mrs=(H=O.SB)==null?void 0:Iw(H);y.origin=V;y.reason=J;y.trg="appenderr";O.handleError(l,y,m)}; TUV=function(O,V,J,y,l){var m=O.xi;var H=O.policy.K,F=!1,N=-1,x;for(x in m.K){var W=O4(m.K[x].info.mimeType)||m.K[x].info.z3();if(y===W)if(W=m.K[x].index,W.uQ(V.wW)){F=W;var U=V,Z=F.eK(U.wW);Z&&Z.startTime!==U.startTime?(F.segments=[],F.G7(U),F=!0):F=!1;F?N=V.wW:!V.pending&&H&&(U=W.getDuration(V.wW),U!==V.duration&&(m.publish("clienttemp","mfldurUpdate",{itag:m.K[x].info.itag,seg:V.wW,od:U,nd:V.duration},!1),W.G7(V),F=!0))}else W.G7(V),F=!0}N>=0&&(H={},m.publish("clienttemp","resetMflIndex",(H[y? "v":"a"]=N,H),!1));m=F;BI7(O.vC,V,y,m);O.policy.Vz||O.U.SF(V,J,y,l);V.wW===O.xi.rD&&m&&VY(O.xi)&&V.startTime>VY(O.xi)&&(O.xi.u_=V.startTime+(isNaN(O.timestampOffset)?0:O.timestampOffset),O.vC.isSeeking()&&O.vC.targetTime 5)return O.dW=0,O.pD.Cr({initSegStuck:1,as:y.info.rX()}),!0}else O.dW=0,O.WB=y;O.policy.pk&&(J.abort(),(H=V.T)!=null&&(dn(H,4),H.flush()));l=oGo(O,J,m,N,l);(V=V.T)!=null&&(V.flush(),V.j=N,dn(V,3,l));if(l!==0)return O.policy.Z$&&p7(O.pD.getVideoData())?(O.pD.m5()||vGV(O,"sepInit",l,y.info),M9r(O.pD,"sie")):vGV(O,"sepInit",l,y.info),!0;y.info.z3()?(N=O.timing,N.Vz||(N.Vz=(0,g.cH)(),g.i7("vis_a",N.Vz,N.K))):(N=O.timing,N.S||(N.S=(0,g.cH)(),g.i7("ais_a",N.S,N.K)));(y=y.info.vE.Sd)&&O.pD.Ch(new AK(y.key, y.type));return J.s9()}; oGo=function(O,V,J,y,l){try{var m,H=V===((m=O.SB)==null?void 0:m.K)?O.audioTrack:O.videoTrack;if(O.policy.zL&&(y==null?0:y.yZ())){if((y==null?void 0:y.qX)>1)return 6;H.dW=new g.t_(function(){var F=eK(H);O.GL()||F==null||!F.isLocked?O.pD.Y().Sq()&&O.jB("eosl",{delayA:F==null?void 0:F.info.rX()}):LeV(H)?(O.pD.Y().Sq()&&O.jB("eosl",{dunlock:F==null?void 0:F.info.rX()}),nGd(O,H===O.audioTrack)):(O.jB("nue",{ls:F.info.rX()}),F.info.qX+=1,O.SB&&O.jD())},1E4,O); O.pD.Y().Sq()&&O.jB("eosl",{delayS:y.rX()});H.dW.start()}O.policy.UD&&(y==null?void 0:y.vE)instanceof e3&&y.yZ()&&O.jB("poseos",{itag:y.vE.info.itag,seg:y.wW,lseg:y.vE.index.bR(),es:y.vE.index.U});V.appendBuffer(J,y,l)}catch(F){if(F instanceof DOMException){if(F.code===11)return 2;if(F.code===12)return 5;if(F.code===22||F.message.indexOf("Not enough storage")===0)return V=Object.assign({name:"QuotaExceededError",buffered:yr(V.hL()).replace(/,/g,"_"),vheap:Fg(O.videoTrack),aheap:Fg(O.audioTrack),message:g.XO(F.message, 3),track:O.SB?V===O.SB.j?"v":"a":"u"},peV()),O.handleError("player.exception",V),1;g.sk(F)}return 4}return O.SB.Qu()?3:0}; Tn=function(O,V,J){Tsn(O,J.yK||"unknown");O.pD.seekTo(V,J)}; Zz=function(O,V){if(O.yz&&!O.w5)return 3;if(O.isSuspended)return 1;var J;if((J=O.SB)==null?0:J.SB&&J.SB.streaming===!1)return 4;J=(V.vE.info.audio?O.policy.UR:O.policy.E5)/(V.jq*O.policy.zQ);if(O.policy.YF>0&&O.SB&&cs(O.SB)&&(V=V.vE.info.video?O.SB.j:O.SB.K)&&!V.s9()){V=V.hL();var y=l7(V,O.getCurrentTime());y>=0&&(V=O.getCurrentTime()-V.start(y),J+=Math.max(0,Math.min(V-O.policy.YF,O.policy.RA)))}O.policy.ol>0&&(J=Math.min(J,O.policy.ol));return J}; XIh=function(O,V){return(Zz(O,V)+O.policy.SX)*V.jq}; dyl=function(O){O.zL&&!O.isSuspended&&vN(O.schedule)&&(EGp(O,O.zL),O.zL="")}; EGp=function(O,V){VR(V,"cms",function(J){O.policy.U&&O.jB("pathprobe",J)},function(J){O.pD.handleError(J)})}; gG5=function(O,V){O.Qc=V;O.U&&(O.U.Qc=V);V=O.Qc;var J=O.videoTrack.vE.info.ey();V.eq=J;V.k8({swebm:J});O.V.Qc=O.Qc;O.policy.j&&(O.j.Qc=O.Qc,WeU(O))}; Q3U=function(O,V){if(O.SB&&O.SB.j){if(O.policy.bU){var J=n$H(O.audioTrack);if(J&&J.jE()){var y=O.pD;if(y.K3&&(y.K3.K=J,J=y.ER,J.qoe)){J=J.qoe;y=y.K3;var l=g.KC(J.provider);Cgn(J,l,y)}}}O.policy.Hu&&(J=n$H(O.videoTrack))&&J.z3()&&(y=O.pD,y.nU&&(y.nU.K=J,J=y.ER,J.qoe&&$yd(J.qoe,y.nU)));V-=isNaN(O.timestampOffset)?0:O.timestampOffset;O.getCurrentTime()!==V&&O.resume();O.vC.isSeeking()&&O.SB&&!O.SB.Qu()&&(y=O.getCurrentTime()<=V&&V=V&&FeX(O,y.startTime,!1)}); return J&&J.startTimeO.getCurrentTime())return J.start/1E3;return Infinity}; Vur=function(O){if(O.pD.getVideoData().isLivePlayback)return!1;var V=O.pD.HB();if(!V)return!1;V=V.getDuration();if(O.SB&&O.SB.K&&O.SB.j){var J=O.getCurrentTime(),y=O.SB.K.hL();O=O.SB.j.hL();y=y?$f(y,J):J;J=O?$f(O,J):J;J=Math.min(y,J);V=isNaN(J)?!1:J>=V-.01}else V=!1;return V}; Xg=function(O){return O.Dm0){var y=J.K.shift();ic5(J,y.info)}J.K.length>0&&(y=J.K[0].time-(0,g.cH)(),J.j.start(Math.max(0,y)))}},0); g.t(this,this.j);V.subscribe("widevine_set_need_key_info",this.D,this)}; ic5=function(O,V){a:{var J=V.cryptoPeriodIndex;if(isNaN(J)&&O.U.size>0)J=!0;else{for(var y=g.n(O.U.values()),l=y.next();!l.done;l=y.next())if(l.value.cryptoPeriodIndex===J){J=!0;break a}J=!1}}O.publish("log_qoe",{wvagt:"reqnews",canskip:J});J||O.publish("rotated_need_key_info_ready",V)}; RSp=function(){var O={};var V=O.url;var J=O.interval;O=O.retries;this.url=V;this.interval=J;this.retries=O}; Bsn=function(O,V){this.statusCode=O;this.message=V;this.U=this.heartbeatParams=this.errorMessage=null;this.j=[];this.K={};this.nextFairplayKeyId=null}; PgX=function(O){switch(O){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}}; keX=function(O,V,J,y){J=J===void 0?"":J;y=y===void 0?!1:y;g.K.call(this);this.message=O;this.requestNumber=V;this.timer=J;this.j=y;this.onError=this.onSuccess=null;this.K=new g.gq(5E3,2E4,.2)}; Scn=function(O,V,J){O.onSuccess=V;O.onError=J}; O8H=function(O,V,J,y){var l={timeout:3E4,onSuccess:function(m){if(!O.GL()){sB("drm_net_r",void 0,O.timer);var H=O.j;H=H===void 0?!1:H;var F=m.status==="LICENSE_STATUS_OK"?0:9999,N=null;if(m.license)try{N=EA(m.license)}catch(Y){g.sk(Y)}if(F!==0||N){N=new Bsn(F,N);F!==0&&m.reason&&(N.errorMessage=m.reason);if(m.authorizedFormats){F={};for(var x=[],W={},U=g.n(m.authorizedFormats),Z=U.next();!Z.done;Z=U.next())if(Z=Z.value,Z.trackType&&Z.keyId){H&&N.j.push({trackType:PgX(Z.trackType),isHdr:!!Z.isHdr}); var z=Dyr[Z.trackType];if(z){z==="HD"&&m.isHd720&&(z="HD720");Z.isHdr&&(z+="HDR");F[z]||(x.push(z),F[z]=!0);var c=null;try{c=EA(Z.keyId)}catch(Y){g.sk(Y)}c&&(W[g.nD(c,4)]=z)}}N.U=x;N.K=W}m.nextFairplayKeyId&&(N.nextFairplayKeyId=m.nextFairplayKeyId);m.sabrLicenseConstraint&&(N.sabrLicenseConstraint=EA(m.sabrLicenseConstraint));m=N}else m=null;if(m)O.onSuccess(m,O.requestNumber);else O.onError(O,"drm.net","t.p;p.i")}}, onError:function(m){if(!O.GL())if(m&&m.error)m=m.error,O.onError(O,"drm.net.badstatus","t.r;p.i;c."+m.code+";s."+m.status,m.code);else O.onError(O,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){O.onError(O,"drm.net","rt.req."+O.requestNumber)}}; y&&(l.xH="Bearer "+y);g.Qz(J,"player/get_drm_license",V,l)}; VK5=function(O,V,J,y,l){g.BF.call(this);this.videoData=O;this.B=V;this.T=J;this.sessionId=y;this.MG=l;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.lw=this.fD=!1;this.U=null;this.O5=[];this.D=[];this.authorizedFormats=[];this.qX=[];this.S=!1;this.K={};this.status="";this.V=NaN;this.j=O.W;this.cryptoPeriodIndex=J.cryptoPeriodIndex;O={};Object.assign(O,this.B.K);O.cpn=this.videoData.clientPlaybackNonce;this.videoData.lw&&(O.vvt=this.videoData.lw,this.videoData.mdxEnvironment&& (O.mdx_environment=this.videoData.mdxEnvironment));this.B.O5&&(O.authuser=this.B.O5);this.B.pageId&&(O.pageid=this.B.pageId);isNaN(this.cryptoPeriodIndex)||(O.cpi=this.cryptoPeriodIndex.toString());l=(l=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Pt()))?l[1]:"";l==="ATV"&&(O.cdt=l);this.W=O;this.W.session_id=y;this.KD=!0;this.j.flavor==="widevine"&&(this.W.hdr="1");this.j.flavor==="playready"&&(V=Number(vj(V.experiments,"playready_first_play_expiration")),!isNaN(V)&&V>=0&&(this.W.mfpe=""+V),this.KD=!1); V="";g.TA(this.j)?s_(this.j)?(y=J.j)&&(V="https://www.youtube.com/api/drm/fps?ek="+kvH(y)):(V=J.initData.subarray(4),V=new Uint16Array(V.buffer,V.byteOffset,V.byteLength/2),V=String.fromCharCode.apply(null,V).replace("skd://","https://")):V=this.j.j;this.baseUrl=V;this.fairplayKeyId=v$(this.baseUrl,"ek")||"";if(V=v$(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(V);this.O5=J.ey?[g.nD(J.initData,4)]:J.U;OH(this,{sessioninit:J.cryptoPeriodIndex});this.status="in"}; y$7=function(O,V,J,y){J=J===void 0?null:J;var l=null;try{l=V.createSession(O.T,function(m){OH(O,{m:m})}),J$V(O,l,y,J)}catch(m){V="t.g",m instanceof DOMException&&(V+=";c."+m.code),O.publish("licenseerror","drm.unavailable",1,V,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}return l}; J$V=function(O,V,J,y){lzr(V,function(l,m){if(O.B.gC().K.s5(mR5)&&O.j.flavor==="widevine")a:{var H=!1;try{H=lV(l,zr1).type===4}catch(N){}if(H){var F;OH(O,{cert_cache_hit:!((F=O.MG)==null||!F.certificate)},!0);if(y){V==null||V.update(y);break a}}else if(J){J.K=V!=null?V:null;J.licenseRequest=l;break a}$Rr(O,l,m,H)}else $Rr(O,l,m)},function(l,m,H){if(!O.GL()){m=void 0; var F=1;g.TA(O.j)&&g.Vw(O.B)&&O.B.L("html5_enable_safari_fairplay")&&H===1212433232&&(m="ERROR_HDCP",F=O.B.L("html5_safari_fairplay_ignore_hdcp")?0:F);O.error("drm.keyerror",F,l,m)}},function(){O.GL()||(OH(O,{onkyadd:1}),O.lw||(O.publish("sessionready"),O.lw=!0))},function(l){O.hj(l)})}; H85=function(O){var V=O.baseUrl;KRp(V)||O.error("drm.net",2,"t.x");if(!v$(V,"fexp")){var J=["23898307","23914062","23916106","23883098"].filter(function(l){return O.B.experiments.experiments[l]}); J.length>0&&(O.W.fexp=J.join())}J=g.n(Object.keys(O.W));for(var y=J.next();!y.done;y=J.next())y=y.value,V=z$d(V,y,O.W[y]);return V}; $Rr=function(O,V,J,y){y=y===void 0?!1:y;if(!O.GL())if(V){OH(O,{onkmtyp:J});O.status="km";switch(J){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":jOr(O,V);return;default:O.publish("ctmp","message_type",{t:J,l:V.byteLength})}O.fD||(sB("drm_gk_f",void 0,O.videoData.qX),O.fD=!0,O.publish("newsession",O));if(Zb(O.j)&&(V=CvX(V),!V))return;V=new keX(V,++O.requestNumber,O.videoData.qX,O.B.L("html5_enable_vp9_fairplay"));Scn(V,function(l){FDr(O, l,y)},function(l,m,H){if(!O.GL()){var F=0; l.K.j>=3&&(F=1,m="drm.net.retryexhausted");OH(O,{onlcsrqerr:m,info:H});O.error(m,F,H);O.shouldRetry(OS(F),l)&&NJr(O,l)}}); g.t(O,V);xRd(O,V)}else O.error("drm.unavailable",1,"km.empty")}; jOr=function(O,V){OH(O,{sdpvrq:1});O.V=Date.now();if(O.j.flavor!=="widevine")O.error("drm.provision",1,"e.flavor;f."+O.j.flavor+";l."+V.byteLength);else{var J={cpn:O.videoData.clientPlaybackNonce};Object.assign(J,O.B.K);J=g.pp("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",J);V={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,V)}), responseType:"arraybuffer"};g.bM(J,V,3,500).then(UC(function(y){y=y.xhr;if(!O.GL()){y=new Uint8Array(y.response);var l=String.fromCharCode.apply(null,y);try{var m=JSON.parse(l)}catch(H){}m&&m.signedResponse?(O.publish("ctmp","drminfo",{provisioning:1}),m=(Date.now()-O.V)/1E3,O.V=NaN,O.publish("ctmp","provs",{et:m.toFixed(3)}),O.U&&O.U.update(y)):(m=m&&m.error&&m.error.message,y="e.parse",m&&(y+=";m."+m),O.error("drm.provision",1,y))}}),UC(function(y){O.GL()||O.error("drm.provision",1,"e."+y.errorCode+ ";c."+(y.xhr&&y.xhr.status))}))}}; Vm=function(O){var V;if(V=O.KD&&O.U!=null)O=O.U,V=!(!O.K||!O.K.keyStatuses);return V}; xRd=function(O,V){O.status="km";sB("drm_net_s",void 0,O.videoData.qX);var J=new g.qc(O.B.dk),y={context:g.yz(J.config_||g.JS())};y.drmSystem=WDp[O.j.flavor];y.videoId=O.videoData.videoId;y.cpn=O.videoData.clientPlaybackNonce;y.sessionId=O.sessionId;y.licenseRequest=g.nD(V.message);y.drmParams=O.videoData.drmParams;isNaN(O.cryptoPeriodIndex)||(y.isKeyRotated=!0,y.cryptoPeriodIndex=O.cryptoPeriodIndex);var l,m,H=!!((l=O.videoData.j)==null?0:(m=l.video)==null?0:m.isHdr());y.drmVideoFeature=H?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";O.B.experiments.gC().K.s5(URh)&&(y.context=g.I9(O.videoData));if(y.context&&y.context.client){if(l=O.B.K)y.context.client.deviceMake=l.cbrand,y.context.client.deviceModel=l.cmodel,y.context.client.browserName=l.cbr,y.context.client.browserVersion=l.cbrver,y.context.client.osName=l.cos,y.context.client.osVersion=l.cosver;O.B.experiments.gC().K.s5(URh)||(y.context.user=y.context.user||{},O.videoData.lw&&(y.context.user.credentialTransferTokens=[{token:O.videoData.lw,scope:"VIDEO"}]), O.videoData.TL&&(y.context.user.kidsParent={oauthToken:O.videoData.TL}));y.context.request=y.context.request||{};y.context.request.mdxEnvironment=O.videoData.mdxEnvironment||y.context.request.mdxEnvironment;g.TA(O.j)&&(y.fairplayKeyId=g.nD(S2r(O.fairplayKeyId)));g.bd(O.B,g.He(O.videoData)).then(function(F){O8H(V,y,J,F);O.status="rs"})}else O.error("drm.net",2,"t.r;ic.0")}; FDr=function(O,V,J){if(!O.GL())if(OH(O,{onlcsrsp:1}),O.status="rr",V.statusCode!==0)O.error("drm.auth",1,"t.f;c."+V.statusCode,V.errorMessage||void 0);else{sB("drm_kr_s",void 0,O.videoData.qX);if(V.heartbeatParams&&V.heartbeatParams.url&&O.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var y=O.j.j.match(/(.*)youtube.com/g);y&&(V.heartbeatParams.url=y[0]+V.heartbeatParams.url)}V.heartbeatParams&&O.publish("newlicense",V.heartbeatParams);V.U&&(O.D=V.U,O.videoData.TC||O.publish("newlicense", new RSp),O.videoData.TC=!0,O.S=P$(O.D,function(l){return l.includes("HDR")})); V.j&&(O.qX=V.j);V.K&&(O.B.L("html5_enable_vp9_fairplay")&&s_(O.j)?(y=g.nD(S2r(O.fairplayKeyId),4),O.K[y]={type:V.K[y],status:"unknown"}):O.K=Wt(V.K,function(l){return{type:l,status:"unknown"}})); cj(O.j)&&(V.message=S5Y(g.nD(V.message)));O.U&&(OH(O,{updtks:1}),O.status="ku",J&&O.MG&&O.B.gC().K.s5(mR5)&&(O.MG.certificate=V.message),O.U.update(V.message).then(function(){sB("drm_kr_f",void 0,O.videoData.qX);Vm(O)||(OH(O,{ksApiUnsup:1}),O.publish("keystatuseschange",O));if(!J&&O.MG&&O.B.gC().K.s5(Z8U)){var l;O.MG.K=y$7(O,O.MG.mediaKeys,(l=O.MG)==null?void 0:l.certificate,O.MG)}},function(l){l="msuf.req."+O.requestNumber+";msg."+g.XO(l.message,3); O.error("drm.keyerror",1,l)})); g.TA(O.j)&&O.publish("fairplay_next_need_key_info",O.baseUrl,V.nextFairplayKeyId);O.B.L("html5_enable_vp9_fairplay")&&s_(O.j)&&O.publish("qualitychange",zcH(O.D));V.sabrLicenseConstraint&&O.publish("sabrlicenseconstraint",V.sabrLicenseConstraint)}}; NJr=function(O,V){var J=V.K.getValue();J=new g.t_(function(){xRd(O,V)},J); g.t(O,J);J.start();g.qq(V.K);OH(O,{rtyrq:1})}; c$n=function(O,V){for(var J=[],y=g.n(Object.keys(O.K)),l=y.next();!l.done;l=y.next())l=l.value,J.push(l+"_"+O.K[l].type+"_"+O.K[l].status);return J.join(V)}; sOH=function(O){var V={};V[O.status]=Vm(O)?c$n(O,"."):O.D.join(".");return V}; TJr=function(O,V,J){var y={};y.isHdr=V.includes("HDR");switch(V.replace("HDR","").replace("720","")){case "AUDIO":y.trackType=1;break;case "SD":y.trackType=2;break;case "HD":y.trackType=3;break;case "UHD1":y.trackType=4;break;case "UHD2":y.trackType=5;break;default:y.trackType=0}!y.trackType||J[V]||Vm(O)&&!JH(O,V)||(O.authorizedFormats.push(y),J[V]=!0)}; JH=function(O,V){for(var J in O.K)if(O.K[J].status==="usable"&&O.K[J].type===V)return!0;return!1}; ec7=function(O,V){for(var J in O.K)if(O.K[J].type===V)return O.K[J].status}; OH=function(O,V,J){J=J===void 0?!1:J;SP(V);(J||O.B.Sq())&&O.publish("ctmp","drmlog",V)}; Izr=function(O){var V=O[0];O[0]=O[3];O[3]=V;V=O[1];O[1]=O[2];O[2]=V;V=O[4];O[4]=O[5];O[5]=V;V=O[6];O[6]=O[7];O[7]=V}; zcH=function(O){return g.Kd(O,"UHD2")||g.Kd(O,"UHD2HDR")?"highres":g.Kd(O,"UHD1")||g.Kd(O,"UHD1HDR")?"hd2160":g.Kd(O,"HD")||g.Kd(O,"HDHDR")?"hd1080":g.Kd(O,"HD720")||g.Kd(O,"HD720HDR")?"hd720":"large"}; CvX=function(O){for(var V="",J=0;J'.charCodeAt(y);O=O.j.createSession("video/mp4",V,J);return new ym(null,null,null,null,O)}; vX7=function(O,V){var J=O.W[V.sessionId];!J&&O.U&&(J=O.U,O.U=null,J.sessionId=V.sessionId,O.W[V.sessionId]=J);return J}; fzp=function(O,V){var J=O.subarray(4);J=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2);J=String.fromCharCode.apply(null,J).match(/ek=([0-9a-f]+)/)[1];for(var y="",l=0;l19.2999?(O=J.AV,J=J.OX,J>=O&&(J=O*.75),V=(O-J)*.5,J=new S5(V,O,O-V-J,this)):J=null;break a;case "widevine":J=new Dt(V,this,O);break a;default:J=null}if(this.D=J)g.t(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.ox,this),this.D.subscribe("log_qoe",this.A4,this);I2(this.B.experiments);this.A4({cks:this.K.getInfo()})}; LDh=function(O){var V=pdo(O.mediaKeys,O.mediaElement);V?V.then(UC(function(){XdY(O)}),UC(function(J){if(!O.GL()){g.sk(J); var y="t.a";J instanceof DOMException&&(y+=";n."+J.name+";m."+J.message);O.publish("licenseerror","drm.unavailable",1,y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(O.A4({mdkrdy:1}),O.qX=!0); O.KD&&(V=pdo(O.KD,O.mediaElement))}; dR7=function(O,V,J){O.ol=!0;J=new AK(V,J);O.B.L("html5_eme_loader_sync")&&(O.W.get(V)||O.W.set(V,J));EX1(O,J)}; EX1=function(O,V){if(!O.GL()){O.A4({onInitData:1});if(O.B.L("html5_eme_loader_sync")&&O.videoData.U&&O.videoData.U.K){var J=O.V.get(V.initData);V=O.W.get(V.initData);if(!J||!V)return;V=J;J=V.initData;O.W.remove(J);O.V.remove(J)}O.A4({initd:V.initData.length,ct:V.contentType});if(O.K.flavor==="widevine")if(O.O5&&!O.videoData.isLivePlayback)$B(O);else{if(!(O.B.L("vp9_drm_live")&&O.videoData.isLivePlayback&&V.ey)){O.O5=!0;J=V.cryptoPeriodIndex;var y=V.K;S_h(V);V.ey||(y&&V.K!==y?O.publish("ctmp","cpsmm", {emsg:y,pssh:V.K}):J&&V.cryptoPeriodIndex!==J&&O.publish("ctmp","cpimm",{emsg:J,pssh:V.cryptoPeriodIndex}));O.publish("widevine_set_need_key_info",V)}}else O.ox(V)}}; XdY=function(O){if(!O.GL())if(O.B.L("html5_drm_set_server_cert")||s_(O.K)){var V=O.mediaKeys.setServerCertificate();V?V.then(UC(function(J){O.B.Sq()&&O.publish("ctmp","ssc",{success:J})}),UC(function(J){O.publish("ctmp","ssce",{n:J.name, m:J.message})})).then(UC(function(){gXV(O)})):gXV(O)}else gXV(O)}; gXV=function(O){O.GL()||(O.qX=!0,O.A4({onmdkrdy:1}),$B(O))}; q0r=function(O){return O.K.flavor==="widevine"&&O.videoData.L("html5_drm_cpi_license_key")}; $B=function(O){if(O.ol&&O.qX&&!O.fD){for(;O.U.length;){var V=O.U[0],J=q0r(O)?DSl(V):g.nD(V.initData);if(s_(O.K)&&!V.j)O.U.shift();else{if(O.j.get(J))if(O.K.flavor!=="fairplay"||s_(O.K)){O.U.shift();continue}else O.j.delete(J);S_h(V);break}}O.U.length&&O.createSession(O.U[0])}}; QOX=function(O){var V,J;g.Q(function(y){if(y.j==1){var l;if(l=g.KW()){var m;l=!((m=O.mediaKeys.mediaKeys)==null||!m.getMetrics)}return l?y.K(O.mediaKeys.getMetrics(),2):y.return()}V=y.U;if(!V)return y.return();l4(V)||(V=g.kH(V));J=/^[A-Za-z0-9_-]+={0,3}$/;J.test(V)||(V=g.XO(V,void 0,!0));O.publish("ctmp","drm",{metrics:V});y.V()})}; Hm=function(){var O=UEo();return!(!O||O==="visible")}; KDU=function(O){var V=Gno();V&&document.addEventListener(V,O,!1)}; tKH=function(O){var V=Gno();V&&document.removeEventListener(V,O,!1)}; Gno=function(){if(document.visibilityState)var O="visibilitychange";else{if(!document[Nv+"VisibilityState"])return"";O=Nv+"visibilitychange"}return O}; A$l=function(O){uHH=O}; i8V=function(O){r$X=O}; Rcr=function(O){g.K.call(this);var V=this;this.pD=O;this.hn=0;this.V=this.j=this.W=!1;this.D=0;this.WE=this.pD.Y();this.videoData=this.pD.getVideoData();this.U=g.Ry(this.WE.experiments,"html5_delayed_retry_count");this.K=new g.t_(function(){V.pD.V1()},g.Ry(this.WE.experiments,"html5_delayed_retry_delay_ms")); g.t(this,this.K)}; DRh=function(O,V,J){var y=O.videoData.j,l=O.videoData.D,m=O.WE.L("html5_disable_codec_fallback_for_drm")&&O.videoData.Ji();p7(O.pD.getVideoData())&&M9r(O.pD,"pe");if((V==="progressive.net.retryexhausted"||V==="fmt.unplayable"||V==="fmt.decode")&&!O.pD.Kw.W&&y&&y.itag==="22")return O.pD.Kw.W=!0,O.Kv("qoe.restart",{reason:"fmt.unplayable.22"}),O.pD.zg(),!0;var H=!1;if(O.videoData.isExternallyHostedPodcast){if(H=O.videoData.jA)J.mimeType=H.type,O.jB("3pp",{url:H.url});J.ns="3pp";O.pD.Hf(V,1,"VIDEO_UNAVAILABLE", SP((new g.DO(V,J,1)).details));return!0}var F=O.hn+3E4<(0,g.cH)()||O.K.isActive();if(O.WE.L("html5_empty_src")&&O.videoData.isAd()&&V==="fmt.unplayable"&&/Empty src/.test(""+J.msg))return J.origin="emptysrc",O.Kv("auth",J),!0;F||BJn(O.pD.hO())||(J.nonfg="paused",F=!0,O.pD.pauseVideo());(V==="fmt.decode"||V==="fmt.unplayable")&&(l==null?0:Rk(l))&&(qu7(O.WE.W,l.al),J.acfallexp=l.al,H=F=!0);!F&&O.U>0&&(O.K.start(),F=!0,J.delayed="1",--O.U);l=O.pD.loader;F||!((y==null?0:i$(y))||(y==null?0:u$(y)))||m|| (qu7(O.WE.W,y.al),H=F=!0,J.cfallexp=y.al);if(!F)return PvH(O,J);m=!1;O.W?O.hn=(0,g.cH)():m=O.W=!0;F=O.videoData;if(F.dW){F=F.dW.dJ();var N=Date.now()/1E3+1800;F=F3E5&&V.Xs>=3:!V.schedule.LD}return O.videoData.T?O.videoData.E5<25:!O.videoData.E5}; S0o=function(O){if(!O.j){O.j=!0;var V=O.pD.getPlayerState();V=V.isPaused()||V.isSuspended();O.pD.xT();V&&!Fb(O.videoData)||O.pD.publish("signatureexpired")}}; O4p=function(O,V){if((O=O.pD.HB())&&(V.errorCode==="fmt.unplayable"||V.errorCode==="html5.invalidstate")){var J=O.qU();V.details.merr=J?J.toString():"0";V.details.mmsg=O.Mf()}}; Vzd=function(O){return O.errorCode==="net.badstatus"&&(O.severity===1||!!O.details.fmt_unav)}; JK7=function(O,V){return O.WE.L("html5_use_network_error_code_enums")&&V.details.rc===403||V.details.rc==="403"?(O=V.errorCode,O==="net.badstatus"||O==="manifest.net.retryexhausted"):!1}; lT7=function(O,V){if(!JK7(O,V)&&!O.j)return!1;V.details.sts="20480";if(kn5(O))return OS(V.severity)&&(V=Object.assign({e:V.errorCode},V.details),V=new g.DO("qoe.restart",V)),O.Kv(V.errorCode,V.details),S0o(O),!0;(0,g.cH)()-O.WE.Pn>6048E5&&yKp(O,"signature",!0);return!1}; yKp=function(O,V,J){try{if(V={detail:"pr."+V},(WJ(O.WE)||fs(O.WE)==="TVHTML5_FOR_KIDS")&&O.WE.L("html5_reload_by_kabuki_app")){var y;O.pD.Hf("qoe.restart",((y=O.WE.gC())==null?0:y.K.s5(m57))&&!J?2:1,void 0,SP(V),"7")}else O.Kv("qoe.restart",V),window.location.reload()}catch(l){}}; $55=function(O){if(O.videoData.errorDetail==="7"&&g.F0(O.WE)){var V=!O.videoData.isInlinePlaybackNoAd;V&&O.WE.h0++;yKp(O,"innertube_player_reload_required",V&&O.WE.h0>1);return!0}return!1}; H4n=function(O,V){var J=O.WE.W;J.V=!1;J.K=!0;O.Kv("qoe.restart",{e:V===void 0?"fmt.noneavailable":V,detail:"hdr"});O.pD.V1(!0)}; jBr=function(O,V,J,y,l){this.K=O;this.reason=V;this.j=J;this.source=y;this.token=l}; jp=function(O,V,J,y){this.B=O;this.C0=V;this.pD=J;this.Ax=y;this.T=this.V=this.K=this.D=this.S=this.j=0;this.W=!1;this.qX=g.Ry(this.B.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.U=new Map}; CCH=function(O,V,J){!O.B.L("html5_tv_ignore_capable_constraint")&&g.F0(O.B)&&(J=J.compose(O.FP(V)));return J}; F0H=function(O){if(O.pD.hO().isInline())return xZ;O=rl[Mi()];return g.th("auto",O,!1,"s")}; x55=function(O,V){var J,y=Nnr(O,(J=V.K)==null?void 0:J.videoInfos);J=O.pD.getPlaybackRate();return J>1&&y?(O=XTY(O.B.W,V.K.videoInfos,J),new Ke(0,O,!0,"o")):new Ke(0,0,!1,"o")}; Nnr=function(O,V){return V&&g.F0(O.B)?V.some(function(J){return J.video.fps>32}):!1}; W0U=function(O,V){if(O.L("html5_disable_ustreamer_constraint_for_sabr")&&tO(V.videoData))return xZ;var J=O.pD.x7();O.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&J&&J.xs>0&&Ah(V.videoData.Zo)&&(O=J.xs,V.videoData.Zo=new Ke(0,O,!1,"u"));return V.videoData.Zo}; U5h=function(O,V){var J;a:if((J=V.K)&&J.videoInfos.length){for(var y=g.n(J.videoInfos),l=y.next();!l.done;l=y.next()){l=l.value;var m=void 0;if((m=l.j)==null?0:m.smooth){J=l.video.qualityOrdinal;break a}}J=J.videoInfos[0].video.qualityOrdinal}else J=0;(g.Qd("armv7")||g.Qd("aarch64")||g.Qd("android"))&&!g.F0(O.B)&&u$(V.K.videoInfos[0])&&(J=Math.min(J,g.g3.large));y=g.Ry(O.B.experiments,"html5_chipset_soft_cap");y>0&&(J=Math.min(J,y));y=g.Ry(O.B.experiments,"html5_sabr_non_streaming_xhr_soft_cap"); !xD&&y>0&&(J=Math.min(J,y));if(y=g.Ry(O.B.experiments,"html5_max_vertical_resolution")){l=4320;for(m=0;my&&(l=Math.min(l,H.video.qualityOrdinal))}if(l<4320){for(H=m=0;H32){l=!0;break a}}l=!1}l&&(J=Math.min(J,y));(y=g.Ry(O.B.experiments,"html5_live_quality_cap"))&&V.videoData.isLivePlayback&&(J=Math.min(J,y));J=Z4X(O,V,J);O=g.Ry(O.B.experiments,"html5_byterate_soft_cap");return new Ke(0,J===4320?0:J,!1,"d",O)}; cKH=function(O){var V,J,y,l;return g.Q(function(m){switch(m.j){case 1:return O.K.K&&typeof((V=navigator.mediaCapabilities)==null?void 0:V.decodingInfo)==="function"?m.K(Promise.resolve(),2):m.return(Promise.resolve());case 2:J=g.n(O.K.videoInfos),y=J.next();case 3:if(y.done){m.uw(0);break}l=y.value;return m.K(ygo(l),4);case 4:y=J.next(),m.uw(3)}})}; eaV=function(O,V,J,y){if(!V||!J||!V.videoData.j)return!1;var l=g.Ry(O.B.experiments,"html5_df_downgrade_thresh"),m=O.L("html5_log_media_perf_info");if(!((0,g.cH)()-O.D<5E3?0:m||l>0))return!1;var H=((0,g.cH)()-O.D)/1E3;O.D=(0,g.cH)();J=J.getVideoPlaybackQuality();if(!J)return!1;var F=J.droppedVideoFrames-O.V,N=J.totalVideoFrames-O.T;O.V=J.droppedVideoFrames;O.T=J.totalVideoFrames;var x=J.displayCompositedVideoFrames===0?0:J.displayCompositedVideoFrames||-1;m&&O.B.Sq()&&O.pD.jB("ddf",{dr:J.droppedVideoFrames, de:J.totalVideoFrames,comp:x});if(y)return O.K=0,!1;if((N-F)/H>O.qX||!l||g.F0(O.B))return!1;O.K=(N>60?F/N:0)>l?O.K+1:0;if(O.K!==3)return!1;sBX(O,V.videoData.j);O.pD.jB("dfd",Object.assign({dr:J.droppedVideoFrames,de:J.totalVideoFrames},Tnl()));return!0}; sBX=function(O,V){var J=V.al,y=V.video.fps,l=V.video.qualityOrdinal-1,m=O.U;V=""+J+(y>49?"p60":y>32?"p48":"");J=FZ(J,y,m);l>0&&(J=Math.min(J,l));if(!Cg.has(V)&&Xp().includes(V)){var H=J;J=ne();+J[V]>0&&(H=Math.min(+J[V],H));J[V]!==H&&(J[V]=H,g.oH("yt-player-performance-cap",J,2592E3))}else if(Cg.has(V)||m==null){a:{H=H===void 0?!0:H;y=Xp().slice();if(H){if(y.includes(V))break a;y.push(V)}else{if(!y.includes(V))break a;y.splice(y.indexOf(V),1)}g.oH("yt-player-performance-cap-active-set",y,2592E3)}Cs.set(V, J)}else Cg.add(V),m==null||m.set(V,J);O.pD.JI()}; ITn=function(O,V){if(!V.K.K)return O.W?new Ke(0,360,!1,"b"):xZ;for(var J=!1,y=!1,l=g.n(V.K.videoInfos),m=l.next();!m.done;m=l.next())i$(m.value)?J=!0:y=!0;J=J&&y;y=0;l=g.Ry(O.B.experiments,"html5_performance_cap_floor");l=O.B.j?240:l;V=g.n(V.K.videoInfos);for(m=V.next();!m.done;m=V.next()){var H=m.value;if(!J||!i$(H))if(m=FZ(H.al,H.video.fps,O.U),H=H.video.qualityOrdinal,Math.max(m,l)>=H){y=H;break}}return new Ke(0,y,!1,"b")}; Y1V=function(O,V){var J=O.pD.hO();return J.isInline()&&!V.yS?new Ke(0,480,!1,"v"):tO(V)?xZ:J.isBackground()&&C2()/1E3>60&&!g.F0(O.B)?new Ke(0,360,!1,"v"):xZ}; aTY=function(O,V,J){if(O.B.experiments.Jv("html5_disable_client_autonav_cap_for_onesie")&&V.xl()||g.F0(O.B)&&(Mi(-1)>=1080||V.osid))return xZ;var y=g.Ry(O.B.experiments,"html5_autonav_quality_cap"),l=g.Ry(O.B.experiments,"html5_autonav_cap_idle_secs");return y&&V.isAutonav&&C2()/1E3>l?(J&&(y=Z4X(O,J,y)),new Ke(0,y,!1,"e")):xZ}; Z4X=function(O,V,J){if(O.L("html5_optimality_defaults_chooses_next_higher")&&J)for(O=V.K.videoInfos,V=1;V=0||(O.provider.pD.getVisibilityState()===3?O.W=!0:(O.K=g.KC(O.provider),O.delay.start()))}; fTn=function(O){if(!(O.j<0)){var V=g.KC(O.provider),J=V-O.D;O.D=V;O.playerState.state===8?O.playTimeSecs+=J:O.playerState.isBuffering()&&!g.R(O.playerState,16)&&(O.rebufferTimeSecs+=J)}}; hao=function(O){var V;switch((V=O.B.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";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; olo=function(O){var V=this;this.provider=O;this.T=!1;this.j=0;this.D=-1;this.Nu=NaN;this.U=0;this.segments=[];this.S=this.V=0;this.previouslyEnded=!1;this.W=0;this.serializedStitchedClipLoggingMetadata=this.serializedPlaybackPingContextLoggingData=void 0;this.Ty={q3E:function(){return V.serializedPlaybackPingContextLoggingData}, Kb5:function(){return V.serializedStitchedClipLoggingMetadata}}; this.KD=this.provider.pD.getVolume();this.qX=this.provider.pD.isMuted()?1:0;this.K=NJ(this.provider)}; xB=function(O){O.K.startTime=O.U;O.K.endTime=O.j;var V;if((V=O.serializedPlaybackPingContextLoggingData)==null?0:V.length)O.K.serializedPlaybackPingContextLoggingData=O.serializedPlaybackPingContextLoggingData;var J;if((J=O.serializedStitchedClipLoggingMetadata)==null?0:J.length)O.K.serializedStitchedClipLoggingMetadata=O.serializedStitchedClipLoggingMetadata;V=!1;O.segments.length&&g.Ez(O.segments).isEmpty()?(O.segments[O.segments.length-1].previouslyEnded&&(O.K.previouslyEnded=!0),O.segments[O.segments.length- 1]=O.K,V=!0):O.segments.length&&O.K.isEmpty()||(O.segments.push(O.K),V=!0);V?O.K.endTime===0&&(O.previouslyEnded=!1):O.K.previouslyEnded&&(O.previouslyEnded=!0);O.V+=O.j-O.U;O.K=NJ(O.provider);O.K.previouslyEnded=O.previouslyEnded;O.provider.B.gC().K.s5(vl5)&&(O.W+=JSON.stringify(O.K).length);O.previouslyEnded=!1;O.U=O.j}; Mzr=function(O){w6n(O);O.S=g.FR(function(){O.update()},100); O.Nu=g.KC(O.provider);O.K=NJ(O.provider)}; w6n=function(O){g.xg(O.S);O.S=NaN}; L0r=function(O,V,J){J-=O.Nu;return V===O.j&&J>.5}; nlU=function(O,V,J,y){this.B=V;this.WB=J;this.segments=[];this.experimentIds=[];this.nD=this.NH=this.isFinal=this.delayThresholdMet=this.Xs=this.wX=this.autoplay=this.autonav=!1;this.aB="yt";this.V=[];this.S=this.qX=null;this.yc=this.sendVisitorIdHeader=this.zL=!1;this.T=this.pageId="";this.MI=!1;this.W=J==="watchtime";this.U=J==="playback";this.O5=J==="atr";this.OE=J==="engage";this.sendVisitorIdHeader=!1;this.uri=this.O5?"/api/stats/"+J:"//"+V.Jp+"/api/stats/"+J;y&&(this.NH=y.fs,y.rtn&&(this.S= y.rtn),this.W?(this.playerState=y.state,y.rti>0&&(this.qX=y.rti)):(this.Pn=y.mos,this.zb=y.volume,y.at&&(this.adType=y.at)),y.autonav&&(this.autonav=y.autonav),y.inview!=null&&(this.dX=y.inview),y.size&&(this.eq=y.size),y.playerwidth&&(this.ul=y.playerwidth),y.playerheight&&(this.JL=y.playerheight));this.DD=g.b2(V.K);this.T=vj(V.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.T==="all"||this.T==="once")this.oB=g.b2(V.oB);this.dD=V.OE;this.experimentIds=wTX(V.experiments);this.E5=V.MI;this.aB= V.KD;this.region=V.region;this.userAge=V.userAge;this.eB=V.NE;this.Jg=C2();this.sendVisitorIdHeader=V.sendVisitorIdHeader;this.dW=V.L("vss_pings_using_networkless")||V.L("kevlar_woffle");this.Z_=V.L("vss_final_ping_send_and_write");this.Vz=V.L("vss_use_send_and_write");this.pageId=V.pageId;this.bl=V.L("vss_playback_use_send_and_write");V.livingRoomAppMode&&(this.livingRoomAppMode=V.livingRoomAppMode);g.R2(V)&&(this.LD=V.dW);g.HC(g.yw(V))&&this.V.push(1);this.accessToken=g.He(O);O.BO[this.WB]?this.D= O.BO[this.WB]:O.BO.playback&&(this.D=O.BO.playback);this.adFormat=O.adFormat;this.adQueryId=O.adQueryId;this.autoplay=SMd(O);this.U&&(this.wX=O.Ou&&y_(O)==="adunit"?!0:!1);this.autonav=O.isAutonav||this.autonav;this.contentVideoId=mf(O);this.clientPlaybackNonce=O.clientPlaybackNonce;this.Xs=O.tC;O.V&&(this.lw=O.V,this.UR=O.F$);O.mdxEnvironment&&(this.mdxEnvironment=O.mdxEnvironment);this.K=O.oB;this.kV=O.kV;O.j&&(this.zK=O.j.itag,O.D&&O.D.itag!==this.zK&&(this.Ks=O.D.itag));O.K&&Pq(O.K)&&(this.offlineDownloadUserChoice= "1");this.eventLabel=y_(O);this.nD=O.aB?!1:O.eq;this.Wf=O.l2;if(V=ub(O))this.qq=V;this.HK=O.bW;this.partnerId=O.partnerId;this.eventId=O.eventId;this.playlistId=O.QN||O.playlistId;this.LF=O.LF;this.Rz=O.Rz;this.yI=O.yI;this.BS=O.BS;this.subscribed=O.subscribed;this.videoId=O.videoId;this.videoMetadata=O.videoMetadata;this.visitorData=O.visitorData;this.osid=O.osid;this.Ur=O.Ur;this.referrer=O.referrer;this.i4=O.wm||O.i4;this.TL=O.YQ;this.LU=O.LU;this.userGenderAge=O.userGenderAge;this.Pg=O.Pg;this.embedsRct= O.embedsRct;this.embedsRctn=O.embedsRctn;g.R2(this.B)&&O.mutedAutoplay&&(O.mutedAutoplayDurationMode===2&&O.limitedPlaybackDurationInSeconds===0&&O.endSeconds===0?this.V.push(7):this.V.push(2));O.isEmbedsShortsMode(new g.Op(this.ul,this.JL),!!this.playlistId)&&this.V.push(3);g.sJ(O)&&this.V.push(4);this.yz=O.In;O.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=O.compositeLiveIngestionOffsetToken);this.heartbeatLoggingToken=O.heartbeatLoggingToken;O=O.getPlayerResponse(); var l,m;this.MI=this.B.L("html5_switch_vss_to_post")||!!(O==null?0:(l=O.playerConfig)==null?0:(m=l.vssClientConfig)==null?0:m.vssUsePostRequest)}; X6H=function(O,V){var J=O.sendVisitorIdHeader?O.visitorData:void 0;return g.bd(O.B,O.accessToken).then(function(y){return LC(O.uri,O.B,O.pageId,J,y,V)})}; gl1=function(O,V){return function(){O.B.L("html5_simplify_pings")?(O.K=O.ol,O.xr=V(),O.Jg=0,O.send()):X6H(O).then(function(J){var y=Elr(O);y.cmt=y.len;y.lact="0";var l=V().toFixed(3);y.rt=Number(l).toString();y=g.pp(O.uri,y);O.B.L("vss_through_gel_double")&&d5o(y);O.dW?(J==null&&(J={}),O.Vz?dS().sendAndWrite(y,J):dS().sendThenWrite(y,J)):J?g.e8(y,J):g.hS(y)})}}; Elr=function(O){var V={ns:O.aB,el:O.eventLabel,cpn:O.clientPlaybackNonce,ver:2,cmt:O.j(O.K),fmt:O.zK,fs:O.NH?"1":"0",rt:O.j(O.xr),adformat:O.adFormat,content_v:O.contentVideoId,euri:O.dD,lact:O.Jg,live:O.qq,cl:(861965570).toString(),mos:O.Pn,state:O.playerState,volume:O.zb};O.subscribed&&(V.subscribed="1");Object.assign(V,O.DD);O.T==="all"?Object.assign(V,O.oB):O.T==="once"&&O.U&&Object.assign(V,O.oB);O.autoplay&&(V.autoplay="1");O.wX&&(V.sautoplay="1");O.Xs&&(V.dni="1");!O.W&&O.LD&&(V.epm=q1V[O.LD]); O.isFinal&&(V["final"]="1");O.nD&&(V.splay="1");O.kV&&(V.delay=O.kV);O.E5&&(V.hl=O.E5);O.region&&(V.cr=O.region);O.userGenderAge&&(V.uga=O.userGenderAge);O.userAge!==void 0&&O.eB&&(V.uga=O.eB+O.userAge);O.ol!==void 0&&(V.len=O.j(O.ol));(!O.W||O.yc)&&O.experimentIds.length>0&&(V.fexp=O.experimentIds.toString());O.S!==null&&(V.rtn=O.j(O.S));O.i4&&(V.feature=O.i4);O.Rz&&(V.ctrl=O.Rz);O.yI&&(V.ytr=O.yI);O.Ks&&(V.afmt=O.Ks);O.offlineDownloadUserChoice&&(V.ODUC=O.offlineDownloadUserChoice);O.KD&&(V.lio= O.j(O.KD));O.W?(V.idpj=O.Wf,V.ldpj=O.HK,O.delayThresholdMet&&(V.dtm="1"),O.qX!=null&&(V.rti=O.j(O.qX)),O.Pg&&(V.ald=O.Pg),O.compositeLiveIngestionOffsetToken&&(V.clio=O.compositeLiveIngestionOffsetToken)):O.adType!==void 0&&(V.at=O.adType);O.eq&&(O.U||O.W)&&(V.size=O.eq);O.U&&O.V.length&&(V.pbstyle=O.V.join(","));O.dX!=null&&(O.U||O.W)&&(V.inview=O.j(O.dX));O.W&&(V.volume=Wm(O,g.Ia(O.segments,function(y){return y.volume})),V.st=Wm(O,g.Ia(O.segments,function(y){return y.startTime})),V.et=Wm(O,g.Ia(O.segments, function(y){return y.endTime})),P$(O.segments,function(y){return y.playbackRate!==1})&&(V.rate=Wm(O,g.Ia(O.segments,function(y){return y.playbackRate}))),P$(O.segments,function(y){return y.K!=="-"})&&(V.als=g.Ia(O.segments,function(y){return y.K}).join(",")),P$(O.segments,function(y){return y.previouslyEnded})&&(V.pe=g.Ia(O.segments,function(y){return""+ +y.previouslyEnded}).join(","))); V.muted=Wm(O,g.Ia(O.segments,function(y){return y.muted?1:0})); P$(O.segments,function(y){return y.visibilityState!==0})&&(V.vis=Wm(O,g.Ia(O.segments,function(y){return y.visibilityState}))); P$(O.segments,function(y){return y.connectionType!==0})&&(V.conn=Wm(O,g.Ia(O.segments,function(y){return y.connectionType}))); P$(O.segments,function(y){return y.j!==0})&&(V.blo=Wm(O,g.Ia(O.segments,function(y){return y.j}))); P$(O.segments,function(y){return!!y.D})&&(V.blo=g.Ia(O.segments,function(y){return y.D}).join(",")); P$(O.segments,function(y){return!!y.compositeLiveStatusToken})&&(V.cbs=g.Ia(O.segments,function(y){return y.compositeLiveStatusToken}).join(",")); O.B.L("web_player_misc_bugfix_c")?O.heartbeatLoggingToken&&(V.hb_data=O.heartbeatLoggingToken):P$(O.segments,function(y){return!!y.heartbeatLoggingToken})&&(V.hb_data=g.Ia(O.segments,function(y){return y.heartbeatLoggingToken}).join(",")); P$(O.segments,function(y){return y.U!=="-"})&&(V.cc=g.Ia(O.segments,function(y){return y.U}).join(",")); P$(O.segments,function(y){return y.clipId!=="-"})&&(V.clipid=g.Ia(O.segments,function(y){return y.clipId}).join(",")); if(P$(O.segments,function(y){return!!y.audioId})){var J="au"; O.U&&(J="au_d");V[J]=g.Ia(O.segments,function(y){return y.audioId}).join(",")}Jy()&&O.lw&&(V.ctt=O.lw,V.cttype=O.UR,V.mdx_environment=O.mdxEnvironment); O.OE&&(V.etype=O.fD!==void 0?O.fD:0);O.TL&&(V.uoo=O.TL);O.livingRoomAppMode&&O.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(V.clram=QB5[O.livingRoomAppMode]||O.livingRoomAppMode);O.D?G6Y(O,V):(V.docid=O.videoId,V.referrer=O.referrer,V.ei=O.eventId,V.of=O.Ur,V.osid=O.osid,V.vm=O.videoMetadata,O.adQueryId&&(V.aqi=O.adQueryId),O.autonav&&(V.autonav="1"),O.playlistId&&(V.list=O.playlistId),O.BS&&(V.ssrt="1"),O.LU&&(V.upt=O.LU));O.U&&(O.embedsRct&&(V.rct=O.embedsRct),O.embedsRctn&&(V.rctn= O.embedsRctn),O.compositeLiveIngestionOffsetToken&&(V.clio=O.compositeLiveIngestionOffsetToken));O.yz&&(V.host_cpn=O.yz);return V}; G6Y=function(O,V){if(V&&O.D){var J=new Set(["q","feature","mos"]),y=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),l=new Set(["aqi","autonav","list","ssrt","upt"]);O.D.ns==="3pp"&&(V.ns="3pp");for(var m=g.n(Object.keys(O.D)),H=m.next();!H.done;H=m.next())H=H.value,y.has(H)||J.has(H)||l.has(H)&&!O.D[H]||(V[H]=O.D[H])}}; Wm=function(O,V){return g.Ia(V,O.j).join(",")}; d5o=function(O){O.indexOf("watchtime")!==-1&&g.l6("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:O}})}; K05=function(O,V){O.attestationResponse&&X6H(O).then(function(J){J=J||{};J.method="POST";J.postParams={atr:O.attestationResponse};O.dW?O.Vz?dS().sendAndWrite(V,J):dS().sendThenWrite(V,J):g.e8(V,J)})}; tzn=function(O){var V={vssSegmentMetadata:[]};if(P$(O.segments,function(y){return!!y.serializedPlaybackPingContextLoggingData||!!y.serializedStitchedClipLoggingMetadata})){O=g.n(O.segments); for(var J=O.next();!J.done;J=O.next())J=J.value,V.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:J.serializedPlaybackPingContextLoggingData||[],serializedStitchedClipLoggingMetadata:J.serializedStitchedClipLoggingMetadata||[]});return V}}; UH=function(O){g.K.call(this);var V=this;this.provider=O;this.V="paused";this.W=NaN;this.T=[10,10,10,40];this.qX=this.S=0;this.lw=this.O5=this.fD=this.KD=this.D=!1;this.U=this.j=NaN;this.logger=new g.vK("vss");this.Ty={Nwz:function(){return V.K}}; this.K=new olo(O)}; uFY=function(O){var V=O.provider.videoData.l2,J=O.provider.videoData.bW,y=[10+V,10,10,40+J-V,40],l,m=(l=O.provider.videoData.getPlayerResponse())==null?void 0:l.playbackTracking,H=m==null?void 0:m.videostatsScheduledFlushWalltimeSeconds;l=m==null?void 0:m.videostatsDefaultFlushIntervalSeconds;if(!(H&&H.length>0&&l))return y;V=[H[0]+V].concat(g.q(H.slice(1).map(function(F,N){return F-H[N]})),[l+J-V, l]);return V.some(function(F){return F<0})?(g.ww(O.logger,347111855,"Neg vss scheduled pings "+H+" "+l),y):V}; ZR=function(O,V){V=V===void 0?NaN:V;var J=g.KC(O.provider);V=isNaN(V)?J:V;V=Math.ceil(V);var y=O.T[O.S];O.S+11E3;!(m.length>1)&&m[0].isEmpty()||F||(H.S=ZR(O,l));H.send();O.qX++}},(l-J)*1E3); return O.j=l}; zB=function(O){g.Nz(O.W);O.W=NaN}; AK5=function(O){O.K.update();O=O.K;O.segments.length&&O.j===O.U||xB(O);var V=O.segments;O.segments=[];O.W=0;return V}; cm=function(O,V){var J=i4V(O.provider);Object.assign(J,{state:O.V});V=new nlU(O.provider.videoData,O.provider.B,V,J);V.K=O.provider.pD.Yp();J=O.provider.videoData.clientPlaybackNonce;V.K=O.provider.pD.bx(J);O.provider.videoData.isLivePlayback||(V.ol=O.provider.pD.getDuration(J));O.provider.videoData.K&&(J=O.provider.videoData.K.dN(V.K))&&(V.KD=J-V.K,oT(O.provider.videoData)&&(V.K+=O.provider.pD.HY(),V.KD-=O.provider.pD.HY()));V.xr=g.KC(O.provider);V.segments=[NJ(O.provider)];return V}; rK5=function(O,V){var J=cm(O,"watchtime");Rad(O)&&(J.delayThresholdMet=!0,O.fD=!0);if(O.U>0){for(var y=g.n(V),l=y.next();!l.done;l=y.next())l=l.value,l.startTime-=O.U,l.endTime-=O.U;J.K-=O.U}else J.K=O.K.j;J.segments=V;return J}; TB=function(O,V){var J=sH(O,!isNaN(O.j));V&&(O.j=NaN);return J}; sH=function(O,V,J){J=J===void 0?!1:J;var y=rK5(O,AK5(O));!isNaN(O.j)&&V&&(y.qX=O.j);J&&(y.yc=!0);return y}; Rad=function(O){var V;if(V=O.provider.videoData.isLoaded()&&O.provider.videoData.kV&&O.D&&!O.fD)V=O.K,V=V.V+V.Yp()-V.U>=O.provider.videoData.kV;return!!V}; PCY=function(O){O.provider.videoData.youtubeRemarketingUrl&&!O.O5&&(BnY(O,O.provider.videoData.youtubeRemarketingUrl),O.O5=!0)}; k6o=function(O){O.provider.videoData.googleRemarketingUrl&&!O.lw&&(BnY(O,O.provider.videoData.googleRemarketingUrl),O.lw=!0)}; S1H=function(O){if(!O.GL()&&O.D){O.V="paused";var V=TB(O);V.isFinal=!0;V.send();O.dispose()}}; D5V=function(O,V){if(!O.GL())if(g.R(V.state,2)||g.R(V.state,512)){if(O.V="paused",g.Jg(V,2)||g.Jg(V,512))g.Jg(V,2)&&(O.K.previouslyEnded=!0),O.D&&(zB(O),TB(O).send(),O.j=NaN)}else if(g.R(V.state,8)){O.V="playing";var J=O.D&&isNaN(O.W)?ZR(O):NaN;if(!isNaN(J)&&(Vk(V,64)<0||Vk(V,512)<0)){var y=sH(O,!1);y.S=J;y.send()}g.Jg(V,16)&&V.state.seekSource===58&&(O.K.previouslyEnded=!0)}else O.V="paused"}; OLn=function(O,V,J){if(!O.KD){J||(J=cm(O,"atr"));J.attestationResponse=V;try{J.send()}catch(y){if(y.message!=="Unknown Error")throw y;}O.KD=!0}}; BnY=function(O,V){var J=O.provider.B;g.bd(O.provider.B,g.He(O.provider.videoData)).then(function(y){var l=O.provider.B.pageId,m=O.provider.B.sendVisitorIdHeader?O.provider.videoData.visitorData:void 0,H=O.provider.B.L("vss_pings_using_networkless")||O.provider.B.L("kevlar_woffle"),F=O.provider.B.L("allow_skip_networkless");y=LC(V,J,l,m,y);nC(V,y,{token:O.provider.videoData.V,RR:O.provider.videoData.F$,mdxEnvironment:O.provider.videoData.mdxEnvironment},J,void 0,H&&!F,!1,!0)})}; V7d=function(){this.endTime=this.startTime=-1;this.U="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.j=0;this.muted=!1;this.K=this.clipId="-";this.previouslyEnded=!1}; ep=function(O,V,J){this.videoData=O;this.B=V;this.pD=J;this.K=void 0}; g.KC=function(O){return JeU(O)()}; JeU=function(O){if(!O.K){var V=g.oz(function(y){var l=(0,g.cH)();y&&l<=631152E6&&(O.pD.jB("ytnerror",{issue:28799967,value:""+l}),l=(new Date).getTime()+2);return l},O.B.L("html5_validate_yt_now")),J=V(); O.K=function(){return Math.round(V()-J)/1E3}; O.pD.MZ()}return O.K}; i4V=function(O){var V=O.pD.Xd()||{};V.fs=O.pD.YV();V.volume=O.pD.getVolume();V.muted=O.pD.isMuted()?1:0;V.mos=V.muted;V.clipid=O.pD.Sa();var J;V.playerheight=((J=O.pD.getPlayerSize())==null?void 0:J.height)||0;var y;V.playerwidth=((y=O.pD.getPlayerSize())==null?void 0:y.width)||0;O=O.videoData;J={};O.j&&(J.fmt=O.j.itag,O.D&&(O.nD?O.D.itag!==O.j.itag:O.D.itag!=O.j.itag)&&(J.afmt=O.D.itag));J.ei=O.eventId;J.list=O.playlistId;J.cpn=O.clientPlaybackNonce;O.videoId&&(J.v=O.videoId);O.hT&&(J.infringe=1); (O.aB?0:O.eq)&&(J.splay=1);(y=ub(O))&&(J.live=y);O.Ou&&(J.sautoplay=1);O.ZI&&(J.autoplay=1);O.LF&&(J.sdetail=O.LF);O.partnerId&&(J.partnerid=O.partnerId);O.osid&&(J.osid=O.osid);O.ZG&&(J.cc=g.kwo(O.ZG));return Object.assign(V,J)}; BAV=function(O){var V=KV7();if(V)return yer[V]||yer.other;if(g.F0(O.B)){O=navigator.userAgent;if(/[Ww]ireless[)]/.test(O))return 3;if(/[Ww]ired[)]/.test(O))return 30}return 0}; NJ=function(O){var V=new V7d,J;V.U=((J=i4V(O).cc)==null?void 0:J.toString())||"-";V.playbackRate=O.pD.getPlaybackRate();J=O.pD.getVisibilityState();J!==0&&(V.visibilityState=J);O.B.TL&&(V.j=1);V.D=O.videoData.jr;V.compositeLiveStatusToken=O.videoData.compositeLiveStatusToken;V.heartbeatLoggingToken=O.videoData.heartbeatLoggingToken;J=O.pD.getAudioTrack();J.wC&&J.wC.id&&J.wC.id!=="und"&&(V.audioId=J.wC.id);V.connectionType=BAV(O);V.volume=O.pD.getVolume();V.muted=O.pD.isMuted();V.clipId=O.pD.Sa()|| "-";V.K=O.videoData.cL||"-";return V}; g.IR=function(O,V){g.K.call(this);var J=this;this.provider=O;this.U=new Map;this.Pf=new g.nr;this.Ty={JWX:function(){return J.qoe}, WbK:function(){return J.K}, w4W:function(){return J.j}}; this.provider.videoData.wN()&&!this.provider.videoData.qq&&(this.K=new UH(this.provider),this.K.U=0,g.t(this,this.K),this.qoe=new g.qm(this.provider,V),g.t(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.hg=this.provider.videoData.clientPlaybackNonce)&&this.U.set(this.hg,this.K));if(O.B.playerCanaryState==="canary"||O.B.playerCanaryState==="holdback")this.j=new FI(this.provider),g.t(this,this.j)}; l_h=function(O){O.j&&p6H(O.j);O.qoe&&Hcn(O.qoe)}; meV=function(O){O.j&&O.j.send();if(O.qoe){var V=O.qoe;if(V.D){V.Pf==="PL"&&(V.Pf="N");var J=g.KC(V.provider);g.gM(V,J,"vps",[V.Pf]);V.S||(V.U>=0&&V.K.set("user_intent",[V.U.toString()]),V.S=!0);V.provider.B.Sq()&&V.jB("finalized",{});V.dW=!0;V.reportStats(J)}}if(O.provider.videoData.enableServerStitchedDai)for(V=g.n(O.U.values()),J=V.next();!J.done;J=V.next())S1H(J.value);else O.K&&S1H(O.K);O.dispose()}; $eV=function(O,V){O.K&&OLn(O.K,V)}; HLo=function(O){if(!O.K)return null;var V=cm(O.K,"atr");return function(J){O.K&&OLn(O.K,J,V)}}; jqh=function(O,V,J,y){J.adFormat=J.Ks;var l=V.pD;V=new UH(new ep(J,V.B,{getDuration:function(){return J.lengthSeconds}, getCurrentTime:function(){return l.getCurrentTime()}, Yp:function(){return l.Yp()}, bx:function(){return l.bx()}, u7:function(){return l.u7()}, getPlayerSize:function(){return l.getPlayerSize()}, getAudioTrack:function(){return J.getAudioTrack()}, getPlaybackRate:function(){return l.getPlaybackRate()}, rh:function(){return l.rh()}, getVisibilityState:function(){return l.getVisibilityState()}, kI:function(){return l.kI()}, Xd:function(){return l.Xd()}, getVolume:function(){return l.getVolume()}, isMuted:function(){return l.isMuted()}, YV:function(){return l.YV()}, Sa:function(){return l.Sa()}, getProximaLatencyPreference:function(){return l.getProximaLatencyPreference()}, MZ:function(){l.MZ()}, jB:function(m,H){l.jB(m,H)}, Qd:function(){return l.Qd()}, HY:function(){return l.HY()}})); V.U=y;g.t(O,V);return V}; CWr=function(){this.l5=0;this.D=this.U=this.OJ=this.Vo=this.j=NaN;this.K={};this.bandwidthEstimate=NaN}; Fk7=function(){this.K=g.qM;this.array=[]}; xe5=function(O,V,J){var y=[];for(V=Nid(O,V);VJ)break}return y}; YB=function(O,V){var J=[];O=g.n(O.array);for(var y=O.next();!y.done&&!(y=y.value,y.contains(V)&&J.push(y),y.start>V);y=O.next());return J}; Wkn=function(O){return O.array.slice(Nid(O,0x7ffffffffffff),O.array.length)}; Nid=function(O,V){O=l2(O.array,function(J){return V-J.start||1}); return O<0?-(O+1):O}; Ue7=function(O,V){var J=NaN;O=g.n(O.array);for(var y=O.next();!y.done;y=O.next())if(y=y.value,y.contains(V)&&(isNaN(J)||y.endV&&(isNaN(J)||y.startO.mediaTime+O.W&&V1)O.D=!0;if((l===void 0?0:l)||isNaN(O.j))O.j=V;if(O.K)V!==O.mediaTime&&(O.K=!1);else if(V>0&&O.mediaTime===V){l=1500;if(O.B.L("html5_buffer_underrun_transition_fix")){l=g.Ry(O.B.experiments,"html5_min_playback_advance_for_steady_state_secs");var m=g.Ry(O.B.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");l=l>0&&m>0&&Math.abs(V-O.j)(y||!O.D?l:400)}O.mediaTime=V;O.U=J;return!1}; YRo=function(O,V){this.videoData=O;this.K=V}; a_7=function(O,V,J){return V.Uc(J).then(function(){return hy(new YRo(V,V.U))},function(y){y instanceof Error&&g.en(y); var l=yj('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),m=mg('audio/mp4; codecs="mp4a.40.2"'),H=l||m,F=V.isLivePlayback&&!g.Ls(O.W,!0);y="fmt.noneavailable";F?y="html5.unsupportedlive":H||(y="html5.missingapi");H=F||!H?2:1;l={buildRej:"1",a:V.EP(),d:!!V.ev,drm:V.Ji(),f18:V.xj.indexOf("itag=18")>=0,c18:l};V.K&&(V.Ji()?(l.f142=!!V.K.K["142"],l.f149=!!V.K.K["149"],l.f279=!!V.K.K["279"]):(l.f133=!!V.K.K["133"],l.f140=!!V.K.K["140"],l.f242=!!V.K.K["242"]),l.cAAC=m,l.cAVC=mg('video/mp4; codecs="avc1.42001E"'), l.cVP9=mg('video/webm; codecs="vp9"'));V.W&&(l.drmsys=V.W.keySystem,m=0,V.W.K&&(m=Object.keys(V.W.K).length),l.drmst=m);return new g.DO(y,l,H)})}; pg=function(O){this.data=window.Float32Array?new Float32Array(O):Array(O);this.j=this.K=O-1}; bLd=function(O){return O.data[O.K]||0}; pNn=function(O){this.W=O;this.U=this.j=0;this.D=new pg(50)}; hH=function(O,V,J){g.BF.call(this);this.videoData=O;this.experiments=V;this.W=J;this.j=[];this.qJ=0;this.U=!0;this.D=!1;this.V=0;J=new f_X;O.latencyClass==="ULTRALOW"&&(J.T=!1);O.iQ?J.U=3:g.BL(O)&&(J.U=2);O.latencyClass==="NORMAL"&&(J.W=!0);J.KD=tO(O);if(O.latencyClass==="LOW"||O.latencyClass==="ULTRALOW")J.W=!0;var y=g.Ry(V,"html5_liveness_drift_proxima_override");if(g0(O)!==0&&y){J.K=y;var l;((l=O.K)==null?0:uUl(l))&&J.K--}tO(O)&&V.Jv("html5_sabr_parse_live_metadata_playback_boundaries")&&(J.lw= !0);if(g.Qd("trident/")||g.Qd("edge/"))l=g.Ry(V,"html5_platform_minimum_readahead_seconds")||3,J.D=Math.max(J.D,l);g.Ry(V,"html5_minimum_readahead_seconds")&&(J.D=g.Ry(V,"html5_minimum_readahead_seconds"));g.Ry(V,"html5_maximum_readahead_seconds")&&(J.qX=g.Ry(V,"html5_maximum_readahead_seconds"));if(V=g.Ry(V,"html5_liveness_drift_chunk_override"))J.K=V;d0(O)&&(J.K=(J.K+1)/5,O.latencyClass==="LOW"&&(J.K*=2));!tO(O)||O.latencyClass!=="ULTRALOW"&&O.latencyClass!=="LOW"||(J.S=3,J.V=25);this.policy=J; this.S=this.policy.U!==1;this.K=fg(this,hR7(this,isNaN(O.liveChunkReadahead)?3:O.liveChunkReadahead,O))}; ox1=function(O,V){if(V)return V=O.videoData,V=hR7(O,isNaN(V.liveChunkReadahead)?3:V.liveChunkReadahead,V),fg(O,V);if(O.j.length){if(Math.min.apply(null,O.j)>1)return fg(O,O.K-1);if(O.policy.T)return fg(O,O.K+1)}return O.K}; vxX=function(O,V){if(!O.j.length)return!1;var J=O.K;O.K=ox1(O,V===void 0?!1:V);if(V=J!==O.K)O.j=[],O.qJ=0;return V}; vm=function(O,V){return V>=O.g0()-oR(O)}; wNY=function(O,V,J){V=vm(O,V);J||V?V&&(O.U=!0):O.U=!1;O.S=O.policy.U===2||O.policy.U===3&&O.U}; M7n=function(O,V){V=vm(O,V);O.D!==V&&O.publish("livestatusshift",V);O.D=V}; oR=function(O){var V=O.policy.K;O.D||(V=Math.max(V-1,0));return V*wt(O)}; hR7=function(O,V,J){J.iQ&&V--;d0(J)&&(V=1);if(g0(J)!==0&&(O=g.Ry(O.experiments,"html5_live_chunk_readahead_proxima_override"))){V=O;var y;((y=J.K)==null?0:uUl(y))&&V++}return V}; wt=function(O){return O.videoData.K?JT(O.videoData.K)||5:5}; fg=function(O,V){V=Math.max(Math.max(1,Math.ceil(O.policy.D/wt(O))),V);return Math.min(Math.min(8,Math.floor(O.policy.qX/wt(O))),V)}; f_X=function(){this.D=0;this.qX=Infinity;this.T=!0;this.j=this.K=2;this.U=1;this.W=!1;this.V=10;this.lw=!1;this.S=1;this.KD=!1}; ng=function(O){g.K.call(this);this.pD=O;this.K=0;this.j=null;this.V=this.D=0;this.U={};this.B=this.pD.Y();this.W=new g.t_(this.e7,1E3,this);this.nD=MJ(this,"html5_seek_timeout_delay_ms");this.fD=MJ(this,"html5_long_rebuffer_threshold_ms");this.zL=MJ(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.Vz=MJ(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.LD=MJ(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.oB=MJ(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.KD=MJ(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.lw=new Lg(2E4);this.ol=MJ(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.E5=MJ(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.yz=MJ(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.dW=MJ(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.T=MJ(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.qX=MJ(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.TL=MJ(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.eB=MJ(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.S=MJ(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Ks=new Lg(g.Ry(this.B.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.B.L("html5_report_slow_ads_as_error"));this.UR=new Lg(g.Ry(this.B.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.B.L("html5_skip_slow_buffering_ad"));this.Xs=MJ(this,"html5_slow_start_timeout_delay_ms");this.O5=MJ(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.t(this,this.W)}; MJ=function(O,V,J){J=J===void 0?null:J;var y=y===void 0?0:y;return new Lg(g.Ry(O.B.experiments,V)||y,J?O.B.L(J):!1)}; Lkp=function(O,V){O.K=V}; XI=function(O,V,J,y,l,m,H,F){V?V.test(J)?(O.Kv(l,V,H),V.V||m()):(!V.j||V.D?J=!1:(J=(0,g.cH)(),y?V.K||(V.K=J):V.K=0,m=!y&&J-V.j>3E4,J=V.K&&J-V.K>1E3||m?V.D=!0:!1),J&&(F=Object.assign({},O.qI(V),F),F.wn=H,F.we=l,F.wsuc=y,O.pD.jB("workaroundReport",F),y&&(V.reset(),O.U[l]=!1))):O.pD.Hf("auth",2,"BROWSER_OR_EXTENSION_ERROR",SP({source:"watchdog",name:H}))}; Lg=function(O,V){this.V=V===void 0?!1:V;this.K=this.j=this.U=this.startTimestamp=0;this.D=!1;this.W=Math.ceil(O/1E3)}; deX=function(O){g.K.call(this);var V=this;this.pD=O;this.T=this.K=this.loader=this.mediaElement=this.playbackData=null;this.U=0;this.W=this.fD=this.D=null;this.dW=!1;this.oB=0;this.lw=!1;this.timestampOffset=0;this.qX=!0;this.E5=0;this.zL=this.NH=!1;this.S=0;this.eB=!1;this.LD=this.O5=0;this.B=this.pD.Y();this.videoData=this.pD.getVideoData();this.policy=new nxl;this.KD=new ng(this.pD);this.UR=this.yz=this.ol=this.V=this.j=NaN;this.Vz=new g.t_(function(){XNr(V,!1)},2E3); this.yc=new g.t_(function(){EH(V)}); this.nD=new g.t_(function(){Exr(V,{})}); this.Xs=NaN;this.Ks=new g.t_(function(){var J=V.B.Eb;J.K+=1E4/36E5;J.K-J.U>1/6&&(H6n(J),J.U=J.K);V.Ks.start()},1E4); g.t(this,this.KD);g.t(this,this.Vz);g.t(this,this.nD);g.t(this,this.yc);g.t(this,this.Ks)}; QqH=function(O,V){O.playbackData=V;O.videoData.isLivePlayback&&(O.T=new pNn(function(){a:{if(O.playbackData&&O.playbackData.K.K){if(Ey(O.videoData)&&O.loader){var y=O.loader.A9.cC()||0;break a}if(O.videoData.K){y=O.videoData.K.dW;break a}}y=0}return y}),O.K=new hH(O.videoData,O.B.experiments,function(){return O.aX(!0)})); if(dt(O.pD)){var J;(J=O.videoData.t0)!=null&&J.V_||(V=gxn(O),V.Q$?(tO(O.videoData)&&O.lr(V.Q$,V.startSeconds),O.U=V.startSeconds):V.startSeconds>0&&O.seekTo(V.startSeconds,{yK:"seektimeline_startPlayback",seekSource:15}));O.qX=!1}else qR5(O)||(O.U=O.U||O.videoData.startSeconds||0,O.videoData.isLivePlayback||(V=O.pD.videoData.aX(),O.U>V&&(O.L("html5_sabr_log_invalid_sabr_current_time")&&O.pD.jB("invalidSabrCmtStart",{rt:O.U,mst:V}),O.L("html5_sabr_vod_invalid_start_time_fallback")&&(O.U=0))))}; Kkr=function(O,V){(O.loader=V)?Gxn(O,!0):gt(O)}; ugH=function(O,V){var J=O.getCurrentTime(),y=O.isAtLiveHead(J);if(O.T&&y){var l=O.T;if(l.K&&!(J>=l.j&&J50&&l.j.shift())),l=O.K,wNY(l,J,V===void 0?!0:V),M7n(l,J),V&&XNr(O,!0));y!==O.NH&&(V=O.getCurrentTime()-O.UR<=500,J=O.oB>=1E3,V||J||(V=O.pD.ER,V.qoe&&(V=V.qoe,J=g.KC(V.provider), g.gM(V,J,"lh",[y?"1":"0"])),O.NH=y,O.oB++,O.UR=O.getCurrentTime()))}; XNr=function(O,V){if(O.K){var J=O.K;var y=O.getCurrentTime(),l=J.g0();var m=J.policy.j;J.D||(m=Math.max(m-1,0));m*=wt(J);y>=l-m||!J.Mu()?J=yJ+1&&V0&&vs(O.mediaElement)>0&&(O.j=qJ(O,O.j,!1)),V=O.L("html5_pseudogapless_shorts_seek_to_next_start")&&(V==null?void 0:V.seekSource)===60,!O.mediaElement||!kx1(O,V))O.yc.start(750);else if(!isNaN(O.j)&&isFinite(O.j)&&(V=O.yz-(O.j-O.timestampOffset),!(V===0||Math.abs(V)<.005)))if(V=O.mediaElement.getCurrentTime()-O.j,Math.abs(V)<=O.E5||Math.abs(V)<.005)SRn(O);else{if(O.videoData.Nx)O.videoData.Nx= !1;else if(!L7(O.videoData)&&O.j>=O.aX()-.1){O.j=O.aX();O.D.resolve(O.aX());O.B.Sq()&&O.pD.jB("setEndedInSeek",{tgt:""+O.j,maxst:""+O.aX()});O.pD.KI();return}try{var J=O.j-O.timestampOffset;O.mediaElement.seekTo(J);O.KD.K=J;O.yz=J;O.U=O.j;O.lw=!1}catch(y){}}}; kx1=function(O,V){V=V===void 0?!1:V;if(!O.mediaElement||O.mediaElement.g8()===0||O.mediaElement.hasError())return!1;var J=O.mediaElement.getCurrentTime()>0;return O.videoData.U&&O.videoData.U.K||O.videoData.isLivePlayback||!O.videoData.Ji()?O.j>=0&&!V&&(V=O.mediaElement.NJ(),V.length||!J)?mT(V,O.j-O.timestampOffset):J:J}; SRn=function(O){O.D&&(O.D.resolve(O.mediaElement.getCurrentTime()),O.KD.j=null)}; Bi5=function(O,V){O.W&&(O.W.resolve(V),O.pD.T1(),O.B.Sq()||PWU(O))&&(V=O.qI(),V["native"]=""+ +O.lw,V.otgt=""+(O.j+O.timestampOffset),O.pD.jB("seekEnd",V));gt(O)}; gt=function(O){O.j=NaN;O.V=NaN;O.yz=NaN;O.D=null;O.fD=null;O.W=null;O.dW=!1;O.lw=!1;O.E5=0;O.Vz.stop();O.nD.stop()}; OCH=function(O,V){var J=O.mediaElement,y=V.type;switch(y){case "seeking":var l=J.getCurrentTime()+O.timestampOffset;if(!O.D||O.lw&&l!==O.j){O.D=new hN;O.D.then(function(H){Bi5(O,H)},function(){gt(O)}); if(O.videoData.isAd()){var m;QH1({adCpn:O.videoData.clientPlaybackNonce,contentCpn:(m=O.videoData.In)!=null?m:""},V.K)}O.yz=l;Lkp(O.KD,J.getCurrentTime());O.seekTo(l,{seekSource:104,yK:"seektimeline_mediaElementEvent"});O.lw=!0}break;case "seeked":SRn(O);break;case "loadedmetadata":dt(O.pD)||Der(O);EH(O);break;case "progress":EH(O);break;case "pause":O.S=O.getCurrentTime()}O.S&&((y==="play"||y==="playing"||y==="timeupdate"||y==="progress")&&O.getCurrentTime()-O.S>10&&(O.L("html5_sky_skip_pause_jump")? O.pD.jB("skipPauseJump",{evt:y,cmt:O.getCurrentTime(),lpt:O.S}):O.seekTo(O.S,{yK:"pauseJump"})),y!=="pause"&&y!=="play"&&y!=="playing"&&y!=="progress"&&(O.S=0))}; V51=function(O){return(PL(O.videoData)||!!O.videoData.liveUtcStartSeconds)&&(!!O.videoData.liveUtcStartSeconds||qR5(O))&&!!O.videoData.K}; qR5=function(O){return!!O.videoData.startSeconds&&isFinite(O.videoData.startSeconds)&&O.videoData.startSeconds>1E9}; gxn=function(O){var V=0,J=NaN,y="";if(!O.qX)return{startSeconds:V,Q$:J,source:y};O.videoData.cX?V=O.videoData.u_:L7(O.videoData)&&(V=Infinity);if(g.BL(O.videoData))return{startSeconds:V,Q$:J,source:y};O.videoData.startSeconds?(y="ss",V=O.videoData.startSeconds):O.videoData.Fl&&(y="stss",V=O.videoData.Fl);O.videoData.liveUtcStartSeconds&&(J=O.videoData.liveUtcStartSeconds);if(isFinite(V)&&(V>O.aX()||VO.aX()||J 0?(y.onesie="0",O.handleError(new g.DO("html5.missingapi",y)),!1):!0}; NMV=function(O,V){var J=Vc();J9(J,V);return g.B7(J,TLo(),{wb:O.wb(),clientInterface:fs(O)})}; jrY=function(O,V,J){var y,l,m,H,F,N,x,W,U,Z,z,c,Y,b,M,w,L,X,u,G,k,D,Oo,md,xY,V7;return g.Q(function(Tr){if(Tr.j==1)return V.fetchType="onesie",y=chr(V,O.getPlayerSize(),O.getVisibilityState()),l=new cW(O,y,J),Tr.K(l.fetch(),2);m=Tr.U;H={player_response:m};V.loading=!1;F=O.QK.iA;if(l.au){N=g.n(l.au.entries());for(x=N.next();!x.done;x=N.next())W=x.value,U=g.n(W),Z=U.next().value,z=U.next().value,c=Z,Y=z,F.K.set(c,Y,180),c===V.videoId&&(b=Y.ww(),V.Hl=b);F.wL=l}M=g.n(l.RM.entries());for(w=M.next();!w.done;w= M.next())L=w.value,X=g.n(L),u=X.next().value,G=X.next().value,k=u,D=G,F.j.set(k,D,180);g.z9(V,H,!0);if(V.loading||Uy(V))return Tr.return(Promise.resolve());F.K.removeAll();F.j.removeAll();V.Hl=[];Oo={};md="onesie.response";xY=0;V.errorCode?(md="auth",Oo.ec=V.errorCode,Oo.ed=V.errorDetail,Oo.es=V.h$||"",xY=2):(Oo.successButUnplayable="1",Oo.disposed=""+ +V.GL(),Oo.afmts=""+ +/adaptiveFormats/.test(m),Oo.cpn=V.clientPlaybackNonce);V7=new g.DO(md,Oo,xY);return Tr.return(Promise.reject(V7))})}; mmV=function(O,V){var J,y,l,m,H,F,N,x,W,U,Z;return g.Q(function(z){switch(z.j){case 1:J=V.isAd(),y=!J,l=J?1:3,m=0;case 2:if(!(m0)){z.uw(5);break}return z.K(n3(5E3),6);case 6:H=new g.pn("Retrying OnePlatform request",{attempt:m}),g.en(H);case 5:return z.W(7),z.K(xmY(O,V),9);case 9:return z.return();case 7:F=z.D();N=Vj(F);x=N.errorCode;W=O.Y();U=W.L("html5_use_network_error_code_enums")?401:"401";y&&x==="manifest.net.badstatus"&&N.details.rc===U&&(y=!1,m===l-1&&(l+=1));if(m=== l-1)return Z=WPp(J,N.details),Z.details.backend="op",Z.details.originec=x,z.return(Promise.reject(Z));if(x==="auth"||x==="manifest.net.retryexhausted")return z.return(Promise.reject(N));O.handleError(N);if(OS(N.severity)){z.uw(4);break}case 3:m++;z.uw(2);break;case 4:return z.return(Promise.reject(WPp(J,{backend:"op"})))}})}; xmY=function(O,V){function J(Oo){Oo.readyState===2&&O.RX("ps_c")} var y,l,m,H,F,N,x,W,U,Z,z,c,Y,b,M,w,L,X,u,G,k,D;return g.Q(function(Oo){switch(Oo.j){case 1:V.fetchType="gp";y=O.Y();l=g.bd(y,g.He(V));if(!l.K){m=l.getValue();Oo.uw(2);break}return Oo.K(l.K,3);case 3:m=Oo.U;case 2:return H=m,F=NMV(y,H),N=chr(V,O.getPlayerSize(),O.getVisibilityState()),x=g.u1(UmX),W=g.He(V),U=(0,g.cH)(),Z=!1,z="empty",c=0,O.RX("psns"),Y={zv:J},y.wb()&&(Y.UZ={WZ:dr("player",{videoId:String(V.videoId)})}),Oo.K(g.fU(F,N,x,void 0,Y),4);case 4:b=Oo.U;O.RX("psnr");if(V.GL())return Oo.return(); b?"error"in b&&b.error?(Z=!0,z="esf:"+b.error.message,c=b.error.code):b.errorMetadata&&(Z=!0,z="its",c=b.errorMetadata.status):Z=!0;if(Z)return M=0,w=((0,g.cH)()-U).toFixed(),L={},L=y.L("html5_use_network_error_code_enums")?{backend:"op",rc:c,rt:w,reason:z,has_kpt:V.TL?"1":"0",has_mdx_env:V.mdxEnvironment?"1":"0",has_omit_key_flag:g.ts("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:y.pageId?"1":"0",has_token:W?"1":"0",has_vvt:V.lw?"1":"0",is_mdx:V.isMdxPlayback?"1":"0", mdx_ctrl:V.Rz||"",token_eq:W===g.He(V)?"1":"0"}:{backend:"op",rc:""+c,rt:w,reason:z,has_kpt:V.TL?"1":"0",has_mdx_env:V.mdxEnvironment?"1":"0",has_omit_key_flag:g.ts("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:y.pageId?"1":"0",has_token:W?"1":"0",has_vvt:V.lw?"1":"0",is_mdx:V.isMdxPlayback?"1":"0",mdx_ctrl:V.Rz||"",token_eq:W===g.He(V)?"1":"0"},X="manifest.net.connect",c===429?(X="auth",M=2):c>200&&(X="manifest.net.badstatus",c===400&&(M=2)),Oo.return(Promise.reject(new g.DO(X, L,M)));V.loading=!1;g.z9(V,{raw_player_response:b},!0);u=b;g.Oj(V.Y())&&u&&u.trackingParams&&Yy(u.trackingParams);if(V.errorCode)return G={ec:V.errorCode,ed:V.errorDetail,es:V.h$||""},Oo.return(Promise.reject(new g.DO("auth",G,2)));if(!V.loading&&!Uy(V))return k=V.isAd()?"auth":"manifest.net.retryexhausted",D=V.isAd()?2:1,Oo.return(Promise.reject(new g.DO(k,{successButUnplayable:"1",hasMedia:g.r0(V)?"1":"0"},D)));Oo.V()}})}; ltr=function(O,V,J){function y(c){c=Vj(c);if(OS(c.severity))return Promise.reject(c);O.handleError(c);return!1} function l(){return!0} var m,H,F,N,x,W,U,Z,z;return g.Q(function(c){switch(c.j){case 1:var Y=O.Y();O.getPlayerSize();O.getVisibilityState();O.isFullscreen();if(V.partnerId===38&&Y.playerStyle==="books")Y=V.videoId.indexOf(":"),Y=g.pp("//play.google.com/books/volumes/"+V.videoId.slice(0,Y)+"/content/media",{aid:V.videoId.slice(Y+1),sig:V.Hu});else if(V.partnerId===30&&Y.playerStyle==="docs")Y=g.pp("https://docs.google.com/get_video_info",{docid:V.videoId,authuser:V.Ef,authkey:V.Z$,eurl:Y.OE});else if(V.partnerId===33&&Y.playerStyle=== "google-live")Y=g.pp("//google-liveplayer.appspot.com/get_video_info",{key:V.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+Y.KD);m=Y;F=(H=V.isAd())?1:3;N=0;case 2:if(!(N0)){c.uw(5);break}return c.K(n3(5E3),6);case 6:W={playerretry:N,playerretrysrc:J},H||(W.recover="embedded"),x=Ot(m,W);case 5:return c.K(ZCo(V,x).then(l,y),7);case 7:if(U=c.U)return c.return();N++;c.uw(2);break;case 4:Z=H?"auth":"manifest.net.retryexhausted";z=H?2:1;if(!H&&Math.random()< 1E-4)try{g.en(new g.pn("b/152131571",btoa(m)))}catch(b){}return c.return(Promise.reject(new g.DO(Z,{backend:"gvi"},z)))}})}; ZCo=function(O,V){function J(b){return y(b.xhr)} function y(b){if(!O.GL()){b=b?b.status:-1;var M=0,w=((0,g.cH)()-W).toFixed();w=l.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:b,rt:w}:{backend:"gvi",rc:""+b,rt:w};var L="manifest.net.connect";b===429?(L="auth",M=2):b>200&&(L="manifest.net.badstatus",b===400&&(M=2));return Promise.reject(new g.DO(L,w,M))}} var l,m,H,F,N,x,W,U,Z,z,c,Y;return g.Q(function(b){if(b.j==1){O.fetchType="gvi";l=O.Y();var M={};O.xJ&&(M.ytrext=O.xJ);(F=g.Id(M)?void 0:M)?(m={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:F},H=Ot(V,{action_display_post:1})):(m={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},H=V);N={};l.sendVisitorIdHeader&&O.visitorData&&(N["X-Goog-Visitor-Id"]=O.visitorData);(x=vj(l.experiments,"debug_sherlog_username"))&&(N["X-Youtube-Sherlog-Username"]=x);Object.keys(N).length> 0&&(m.headers=N);W=(0,g.cH)();return b.K(ti(aN,H,m).then(void 0,J),2)}U=b.U;if(!U||!U.responseText)return b.return(y(U));O.loading=!1;Z=y7(U.responseText);g.z9(O,Z,!0);if(O.errorCode)return z={ec:O.errorCode,ed:O.errorDetail,es:O.h$||""},b.return(Promise.reject(new g.DO("auth",z,2)));if(!O.loading&&!Uy(O))return c=O.isAd()?"auth":"manifest.net.retryexhausted",Y=O.isAd()?2:1,b.return(Promise.reject(new g.DO(c,{successButUnplayable:"1"},Y)));b.V()})}; WPp=function(O,V){return new g.DO(O?"auth":"manifest.net.retryexhausted",V,O?2:1)}; uh=function(O,V,J){J=J===void 0?!1:J;var y,l,m,H;g.Q(function(F){if(F.j==1){y=O.Y();if(J&&(!g.sj(y)||y_(V)!=="embedded")||V.JB||y_(V)!=="adunit"&&(g.F0(y)||HJ(y)||g.pJ(y)||g.cJ(y)||g.Vw(y)||fs(y)==="WEB_CREATOR"))return F.return();l=g.bd(y,g.He(V));return l.K?F.K(l.K,3):(m=l.getValue(),F.uw(2))}F.j!=2&&(m=F.U);H=m;return F.return(zWU(O,V,H))})}; zWU=function(O,V,J){var y,l,m,H,F,N,x;return g.Q(function(W){if(W.j==1){W.W(2);y=O.Y();l=NMV(y,J);var U=V.Y(),Z=g.E$(),z={context:g.I9(V),videoId:V.videoId,racyCheckOk:V.racyCheckOk,contentCheckOk:V.contentCheckOk,autonavState:"STATE_NONE"};y_(V)==="adunit"&&(z.isAdPlayback=!0);U.embedConfig&&(z.serializedThirdPartyEmbedConfig=U.embedConfig);U.LG&&(z.showContentOwnerOnly=!0);V.cg&&(z.showShortsOnly=!0);Z.s5(141)&&(z.autonavState=Z.s5(140)?"STATE_OFF":"STATE_ON");if(g.ZG(U)){Z=Z.s5(65);Z=Z!=null?!Z: !1;var c=!!g.vC("yt-player-sticky-caption");z.captionsRequested=Z&&c}var Y;if(U=(Y=U.getWebPlayerContextConfig())==null?void 0:Y.encryptedHostFlags)z.playbackContext={encryptedHostFlags:U};m=z;H=g.u1(cQ1);O.RX("wn_s");F={};y.wb()&&(F.UZ={WZ:dr("next",{videoId:String(V.videoId)})});return W.K(g.fU(l,m,H,void 0,F),4)}if(W.j!=2)return N=W.U,O.RX("wn_r"),!N||"error"in N&&N.error||(x=N,g.Oj(V.Y())&&x.trackingParams&&Yy(x.trackingParams),g.z9(V,{raw_watch_next_response:N},!1)),W.S(0);W.D();W.V()})}; $mU=function(O,V){var J,y,l,m;g.Q(function(H){if(H.j==1)return J=O.Y(),y=g.bd(J,g.He(V)),y.K?H.K(y.K,3):(l=y.getValue(),H.uw(2));H.j!=2&&(l=H.U);m=l;return H.return(srY(O,V,m))})}; srY=function(O,V,J){var y,l,m,H,F,N;return g.Q(function(x){if(x.j==1)return y=O.Y(),x.W(2),l=NMV(y,J),m={context:g.I9(V),playerRequest:{videoId:V.videoId},disablePlayerResponse:!0},H=g.u1(TMp),F={},y.wb()&&(F.UZ={WZ:dr("reel_item_watch",{videoId:String(V.videoId)})}),x.K(g.fU(l,m,H,void 0,F),4);if(x.j!=2)return N=x.U,!N||"error"in N&&N.error||g.z9(V,{raw_reel_item_watch_response:N}),x.S(0);x.D();x.V()})}; eWo=function(O,V){O.RX("vir");O.RX("ps_s");ac("vir",void 0,"video_to_ad");V=FPh(O,V);V.then(function(){O.RX("virc");ac("virc",void 0,"video_to_ad");O.RX("ps_r");ac("ps_r",void 0,"video_to_ad")},function(){O.RX("virc"); ac("virc",void 0,"video_to_ad")}); return V}; g.ih=function(O,V,J,y,l,m,H,F,N,x,W,U){x=x===void 0?new g.WL(O):x;W=W===void 0?!0:W;g.BF.call(this);var Z=this;this.B=O;this.playerType=V;this.rC=J;this.C0=y;this.getVisibilityState=m;this.visibility=H;this.QK=F;this.Ax=N;this.videoData=x;this.ZA=W;this.MG=U;this.logger=new g.vK("VideoPlayer");this.NG=null;this.hf=new mL;this.Kc=null;this.aM=!0;this.SB=this.loader=null;this.sI=[];this.Be=new tH;this.Ka=this.zN=null;this.hU=new tH;this.q3=null;this.D9=this.eQ=!1;this.KF=NaN;this.M$=!1;this.playerState= new g.nr;this.l6=[];this.nZ=new g.jX;this.mediaElement=null;this.vU=this.AS=!1;this.YR=NaN;this.qL=!1;this.K_=0;this.Oe=!1;this.Q3=NaN;this.hn=0;this.loop=!1;this.playbackRate=1;this.wP=0;this.Sf=!1;this.jl=[];this.V7=this.N$=0;this.KR=this.A8=!1;this.OJ=this.Vo=0;this.FL=!1;this.Kj=this.nU=this.K3=this.Qc=null;this.D_=function(){var z=Z.ER;z.provider.B.ul||z.provider.pD.getVisibilityState()===3||(z.provider.B.ul=!0);z.i5();if(z.j){var c=z.j;c.W&&c.K<0&&c.provider.pD.getVisibilityState()!==3&&p6H(c)}z.qoe&& (z=z.qoe,z.nD&&z.U<0&&z.provider.B.ul&&Hcn(z),z.D&&ul(z));Z.loader&&AH(Z);rt(Z)}; this.Ty={hj:function(z){Z.hj(z)}, wlK:function(z){Z.NG=z}, EoX:function(){return Z.ER}, MK:function(){return Z.SB}, qdl:function(){return Z.j1}, KrL:function(){return Z.lC}, s3D:function(){}, Y:function(){return Z.B}, HB:function(){return Z.mediaElement}, BaX:function(z){Z.yE(z)}, lCB:function(){return Z.C0}}; this.b_=new Rcr(this);this.UO=new g.t_(this.sX5,15E3,this);this.TH=new Qm(new Map([["bufferhealth",function(){return t7d(Z.F5)}], ["bandwidth",function(){return Z.S$()}], ["networkactivity",function(){return Z.Ax.fD}], ["livelatency",function(){return Z.isAtLiveHead()&&Z.isPlaying()?Itl(Z):NaN}], ["rawlivelatency",function(){return Itl(Z)}]])); this.F5=new deX(this);this.JN=new g.t_(this.RK5,0,this);this.sBw=[this.nZ,this.JN,this.UO,this.TH];this.D5=new I_o(this.B);this.Kw=new jp(this.B,this.C0,this,this.Ax);this.BC=new g.aR(this,function(z,c){z!==g.Q9("endcr")||g.R(Z.playerState,32)||Z.KI();l(z,c,Z.playerType)}); g.t(this,this.BC);g.t(this,this.F5);Yq7(this,x);this.videoData.subscribe("dataupdated",this.mqi,this);this.videoData.subscribe("dataloaded",this.VP,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.jB,this);this.videoData.subscribe("ctmpstr",this.nW,this);!this.ER||this.ER.GL();this.ER=new g.IR(new ep(this.videoData,this.B,this));KDU(this.D_);this.visibility.subscribe("visibilitystatechange",this.D_);this.j1=new g.t_(this.N3,g.Ry(this.B.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.lC=new g.t_(this.N3,g.Ry(this.B.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.A2=new g.iL(this.jun,350,this);g.t(this,this.A2)}; Yq7=function(O,V){if(O.playerType===2||O.B.jJ)V.uF=!0;var J=VEY(V.Ks,V.bX,O.B.D,O.B.T);J&&(V.adFormat=J);O.playerType===2&&(V.ZI=!0);if(O.isFullscreen()||O.B.D)J=g.vC("yt-player-autonavstate"),V.autonavState=J||(O.B.D?2:O.videoData.autonavState);V.endSeconds&&V.endSeconds>V.startSeconds&&RR(O,V.endSeconds)}; var mll=function(O,V,J,y,l,m,H,F){return phn[C[8]](this,9,O,V,J,y,l,m,H,F)}; atn=function(O){return g.F0(O.B)&&O.videoData.isLivePlayback&&(!O.B.L("html5_allow_multiview_tile_preload")||!O.videoData.MI)}; bCl=function(O){var V=O.videoData;eWo(O,O.Ax).then(void 0,function(J){O.videoData!==V||V.GL()||(J=Vj(J),J.errorCode==="auth"&&O.videoData.errorDetail&&O.videoData.errorDetail!=="7"?O.Hf(J.errorCode,2,unescape(O.videoData.errorReason),SP(J.details),O.videoData.errorDetail,O.videoData.h$||void 0):O.handleError(J))})}; hWr=function(O){if(!g.R(O.playerState,128))if(O.videoData.isLoaded(),O.sI=g.kE(O.videoData.nw),g.r0(O.videoData)){O.rC.tick("bpd_s");Bm(O).then(function(){O.rC.tick("bpd_c");if(!O.GL()){O.eQ&&(O.mA(dQ(dQ(O.playerState,512),1)),Pm(O));var y=O.videoData;y.endSeconds&&y.endSeconds>y.startSeconds&&RR(O,y.endSeconds);O.Be.finished=!0;kB(O,"dataloaded");O.hU.qB()&&pWH(O);b4n(O.Kw,O.Ka)}}); O.L("html5_log_media_perf_info")&&O.jB("loudness",{v:O.videoData.ze.toFixed(3)},!0);var V,J=(V=O.mediaElement)==null?void 0:V.dC();if(J&&"disablePictureInPicture"in J&&O.B.l2)try{J.disablePictureInPicture=O.B.cH&&!O.videoData.backgroundable}catch(y){g.en(y)}fth(O);O.Kj=new My(O.videoData)}else kB(O,"dataloaded")}; Bm=function(O){Sp(O);O.Ka=null;var V=a_7(O.B,O.videoData,O.R5());O.zN=V;O.zN.then(function(J){oen(O,J)},function(J){O.GL()||(J=Vj(J),O.visibility.isBackground()?(DR(O,"vp_none_avail"),O.zN=null,O.Be.reset()):(O.Be.finished=!0,O.Hf(J.errorCode,J.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",SP(J.details))))}); return V}; oen=function(O,V){if(!O.GL()&&!V.videoData.GL()){O.Ka=V;QqH(O.F5,O.Ka);if(O.videoData.isLivePlayback){var J=vel(O.QK.iA,O.videoData.videoId)||O.loader&&!isNaN(O.loader.O5);J=O.L("html5_onesie_live")&&J;dt(O)||O.videoData.yz>0&&!Ey(O.videoData)||J||O.seekTo(O.aX(),{yK:"videoplayer_playbackData",seekSource:18})}if(O.videoData.U.K){if(l9l(O.videoData)){O.Hf("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",SP({missabrurl:1}));return}O.loader?g.en(Error("Duplicated Loader")):(J=g.Ry(O.B.experiments,"html5_onesie_defer_content_loader_ms"))&& O.r6()&&vel(O.QK.iA,O.videoData.yd)?g.CW(function(){O.GL()||O.loader||wW7(O)},J):wW7(O)}else!O.videoData.U.K&&Fb(O.videoData)&&O.cR(new rn(O.videoData.videoId||"",4)); O.xQ();cKH(V).then(function(){var y={};O.JI(y);O.B.Sq()&&O.L("html5_log_media_perf_info")&&O.jB("av1Info",y);AH(O)})}}; pWH=function(O){O.GL();if(!O.hU.finished&&O.Be.finished&&!g.R(O.playerState,128)&&!O.sI.length){if(!O.BC.started){var V=O.BC;V.started=!0;V.sync()}if(!O.aW()){if(O.loader){if(O.gC().K.s5(Iq)){V=O.loader;var J=!0;J=J===void 0?!1:J;V=Math.min(xx(V.audioTrack,J),xx(V.videoTrack,J))>0}else V=O.loader.timing,V=!!V.j&&!!V.U;O.D9=V}O.hU.finished||(O.hU.finished=!0);V=O.L("html5_onesie_live")&&O.loader&&!isNaN(O.loader.O5);!O.videoData.isLivePlayback||O.videoData.yz>0&&!Ey(O.videoData)||V||dt(O)||(O.seekTo(Infinity, {yK:"videoplayer_readying",seekSource:18}),O.isBackground()&&(O.vU=!0));V=O.ER;if(V.qoe){V=V.qoe;var y=V.provider.videoData;J=V.provider.B;for(var l=g.n(J.eM),m=l.next();!m.done;m=l.next())AQ(V,m.value);if(V.provider.L("html5_enable_qoe_cat_list"))for(l=g.n(y.f8),m=l.next();!m.done;m=l.next())AQ(V,m.value);else y.eM&&AQ(V,V.provider.videoData.eM);y.Gy()&&(l=y.K,Ey(y)&&AQ(V,"manifestless"),l&&JT(l)&&AQ(V,"live-segment-"+JT(l).toFixed(1)));tO(y)?AQ(V,"sabr"):V.Te(g0(y));if(ju(y)||y.Yr())y.Yr()&&AQ(V, "ssa"),AQ(V,"lifa");oT(y)&&AQ(V,"cdm");y.gatewayExperimentGroup&&(l=y.gatewayExperimentGroup,l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?l="spkadtrt":l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(l="spkadctrl"),AQ(V,l));J.KD!=="yt"&&V.K.set("len",[y.lengthSeconds.toFixed(2)]);y.cotn&&!Fb(y)&&V.OF(!0);J.Sq()&&(y=ijp())&&V.jB("cblt",{m:y});if(J.L("html5_log_screen_diagonal")){J=V.jB;var H;y=((H=window.H5vccScreen)==null?0:H.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;J.call(V,"cbltdiag", {v:y})}}O.publish("playbackready");Ic("pl_c",O.rC.timerName)||(O.rC.tick("pl_c"),ac("pl_c",void 0,"video_to_ad"));Ic("pbr",O.rC.timerName)||(O.rC.tick("pbr"),ac("pbr",void 0,"video_to_ad"))}}}; RR=function(O,V){O.Kc&&M5l(O);O.Kc=new g.gz(V*1E3,0x7ffffffffffff);O.Kc.namespace="endcr";O.addCueRange(O.Kc)}; M5l=function(O){O.removeCueRange(O.Kc);O.Kc=null}; LPh=function(O,V,J,y,l){var m=O.ER,H=O.videoData;H.j=J;var F=g.OX(O);J=new jBr(J,V,F?F.itag:"",y,l);O.B.experiments.Jv("html5_refactor_sabr_video_format_selection_logging")?O.nU=J:m.qoe&&$yd(m.qoe,J);m=O.Kw;m.j=0;m.K=0;O.publish("internalvideoformatchange",H,V==="m")}; g.OX=function(O){var V=Vo(O);return Ah(V)||!O.Ka?null:g.Qs(O.Ka.K.videoInfos,function(J){return V.D(J)})}; Vo=function(O){if(O.Ka){var V=O.Kw;var J=O.Ka;O=O.cQ();var y=F0H(V);if(Ah(y)){if(y=V.FP(J).compose(U5h(V,J)).compose(zar(V,J)).compose(Y1V(V,J.videoData)).compose(aTY(V,J.videoData,J)).compose(ITn(V,J)).compose(x55(V,J)),Ah(O)||V.L("html5_apply_pbr_cap_for_drm"))y=y.compose(W0U(V,J))}else V.L("html5_perf_cap_override_sticky")&&(y=y.compose(ITn(V,J))),V.L("html5_ustreamer_cap_override_sticky")&&(y=y.compose(W0U(V,J)));y=y.compose(x55(V,J));V=J.videoData.PH.compose(y).compose(J.videoData.ZM).compose(O)}else V= xZ;return V}; Azd=function(O){var V=O.Kw;O=O.videoData;var J=Y1V(V,O);V.L("html5_disable_client_autonav_cap_for_onesie")||J.compose(aTY(V,O));return J}; AH=function(O){if(O.videoData.U&&O.videoData.U.K){var V=Vo(O);if(O.loader&&(O=O.loader,!O.GL()))if(O.policy.K){var J=O.W;if(V.isLocked()&&J.K.j||J.j===void 0||!V.equals(J.j)){J=O.W.j;Jzp(O.W,V);var y,l;if(l=V.isLocked()&&V.reason==="m"){l=O.W;var m=(y=l.D)==null?void 0:y.info.video.qualityOrdinal;l=l.O5?!0:l.D?V.K!==m?!0:!l.K.j||l.Lv.dk&&l.K.K===l.D.info.itag?!1:!0:!1}y=l;l=O.policy.MU&&V.reason==="l";J=J.K>V.K&&V.reason==="b";y||l||J?(O.pD.Cr({reattachOnConstraint:y?"u":l?"drm":"perf",lo:V.j,up:V.K}), O.policy.dk||(O.W.K.j=!1)):(O.policy.dk&&(O.W.K.j=!1),bl(O))}}else!oAn(O.K,V)&&O.videoTrack&&(l=O.K.K,bcd(O,vA7(O.K,V)),c9H(O),J=V.isLocked()&&V.reason==="m"&&O.K.lw,y=O.policy.MU&&V.reason==="l"&&cN(O.videoTrack),V=l.K>V.K&&V.reason==="b",l=O.K.zL&&!U4(),J||y||V||l?O.pD.Cr({reattachOnConstraint:J?"u":y?"drm":l?"codec":"perf"}):bl(O))}}; ned=function(O){var V;return!!(O.L("html5_native_audio_track_switching")&&g.CH&&((V=O.videoData.j)==null?0:Pg(V)))}; XW7=function(O){if(!ned(O))return!1;var V;O=(V=O.mediaElement)==null?void 0:V.audioTracks();return!!(O&&O.length>1)}; ge1=function(O){var V=Eer(O);if(V){var J=dm1[V]||V;return O.videoData.getAvailableAudioTracks().find(function(y){return y.wC.getName()===J})}}; qqh=function(O){var V,J=(V=O.mediaElement)==null?void 0:V.audioTracks();if(J){V=[];for(var y=0;y0&&(V.qq=J.PX));V.MU=J.VG;V.FF=NS(y,{},J.U||void 0,hz(J));V.eB=f7(J)&&(g.pJ(y)||g.cJ(y));tO(J)&&(V.V=!0,V.nI=y.L("html5_estimate_live_partial_slice_duration"),g.F0(y)&&!g.KW()&&y.L("html5_force_audio_to_cover_video_keyframe")? V.oB=!1:V.oB=!0,V.aT||J.isLivePlayback||!y.L("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||(V.jr=!0,V.H1=g.Ry(y.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),y.L("html5_sabr_report_partial_segment_estimated_duration")&&(V.T0=!0),V.K=!0,V.Tw=y.L("html5_trigger_loader_when_idle_network"),V.QB=y.L("html5_sabr_parse_live_metadata_playback_boundaries"),V.Nx=y.L("html5_consume_onesie_next_request_policy_for_sabr"),V.Jw=y.L("html5_sabr_report_next_ad_break_time"), V.I_=y.L("html5_log_high_res_buffer_timeline")&&y.Sq(),V.NT=y.L("html5_remove_stuck_slices_beyond_max_buffer_limits"),V.Ky=y.L("html5_gapless_sabr_btl_last_slice")&&p7(J),V.TV=y.L("html5_reset_last_appended_slice_on_seek")&&p7(J),Ey(J)?(V.Yw=!0,V.fJ=y.L("html5_disable_variability_tracker_for_live"),V.TL=!0,y.L("html5_simplified_backup_timeout_sabr_live")&&(V.Pn=!0,V.OE=V.xJ)):V.dX=y.L("html5_probe_request_on_sabr_request_progress"),V.PL=y.L("html5_serve_start_seconds_seek_for_post_live_sabr"),V.Wf= y.L("html5_flush_index_on_updated_timestamp_offset"),V.KD=tO(J),V.gk=y.L("html5_ignore_partial_segment_from_live_readahead"),y.L("html5_include_partial_segment_for_jumbo_ll")&&d0(J)&&(V.gk=!1),V.UD=y.L("html5_use_non_active_broadcast_for_post_live"),V.lw=y.L("html5_use_centralized_player_time"),V.Ks=y.L("html5_log_centralized_player_time"),V.Rn=y.L("html5_use_loader_cmt_for_buffer_health"),V.z2=y.L("html5_consume_onesie_sabr_seek"),V.dW=y.L("html5_enable_sabr_seek_loader_refactor"),J.enableServerStitchedDai&& (V.j=!0,V.X9=y.L("html5_reset_server_stitch_state_for_non_sabr_seek"),V.HL=y.L("html5_remove_ssdai_append_pause")&&!J.Yr(),V.JL=y.L("html5_ssdai_log_ssevt_in_loader_timers")),V.CI=y.Sq(),V.latencyClass=J.latencyClass,V.nm=!J.Gy()&&y.L("html5_prebuffer_instream_media_vod"));V.zK=g.Jh5(J);lE(y.W,mW.BITRATE)&&(V.jq=NaN);if(F=g.Ry(y.experiments,"html5_request_size_max_kb"))V.nD=F*1024;y.W.j?V.PX="; "+mW.EXPERIMENTAL.name+"=allowed":y.L("html5_enable_cobalt_tunnel_mode")&&g.KW()&&(y=mW.TUNNELMODE,V.PX= "; "+y.name+"="+y.valid);J=J.serverPlaybackStartConfig;(J==null?0:J.enable)&&(J==null?0:J.playbackStartPolicy)&&(V.h0=!0,aq(V,J.playbackStartPolicy,2));J=GYU(O);O.hf.removeAll();a:{y=O.QK.iA;if(F=O.videoData.videoId)if(l=y.K.get(F)){y.K.remove(F);y=l;break a}y=void 0}O.loader=new xyp(O,O.Ax,V,O.videoData.K,O.videoData.U,Vo(O),J,O.videoData.enableServerStitchedDai,y,O.videoData.qX);V=O.videoData.L("html5_disable_preload_for_ssdai_with_preroll")&&O.videoData.isLivePlayback&&O.r6()?!0:O.eQ&&atn(O);O.loader.initialize(O.getCurrentTime(), Vo(O),V);O.videoData.probeUrl&&(O.loader.zL=O.videoData.probeUrl);if(O.sI.length||O.eQ)O.videoData.cotn||Jw(O,!1);Kkr(O.F5,O.loader);O.Qc&&(gG5(O.loader,O.Qc),O.jB("sdai",{sdl:1}));g.UJ(O.videoData)&&(O=O.loader,O.policy.fP=O.policy.OG)}; rt=function(O,V){V=V===void 0?!0:V;O.B.TC&&!O.videoData.backgroundable&&O.mediaElement&&!O.R5()&&(O.isBackground()&&O.mediaElement.o9()?(O.jB("bgmobile",{suspend:1}),O.xT(!0,!0)):!O.isBackground()&&V&&Pm(O)&&O.jB("bgmobile",{resume:1}))}; Sp=function(O){O.loader&&(O.loader.dispose(),O.loader=null,Kkr(O.F5,null));O.OY()?ulp(O):O.Dr()}; ulp=function(O){if(O.SB)if(O.i9(),O.SB.W)try{O.B.Sq()&&O.jB("rms",{l:"vprms",sr:O.OY(),rs:Iw(O.SB)});O.SB.clear();var V;(V=O.mediaElement)!=null&&(V.j=O.SB);O.SB=null}catch(J){V=new g.pn("Error while clearing Media Source in VideoPlayer: "+J.name+", "+J.message),V=Vj(V),O.handleError(V),O.Dr()}else O.Dr()}; AQr=function(O,V){if(O.SB)return O.SB.U;a:{V=V===void 0?!1:V;V=V===void 0?!1:V;try{g.KW()&&O.videoData.pg()&&xwY(O.mediaElement);var J=O.mediaElement.MK(O.IF(),O.Z1())}catch(l){if(DRh(O.b_,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",l);O.Hf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}O.G6(J,!1,!1,V)}var y;return((y=O.MK())==null?void 0:y.U)||null}; rQV=function(O,V){V=V===void 0?!1:V;if(O.loader){O.videoData.enableServerStitchedDai&&utY(O.loader);var J=O.getCurrentTime()-O.HY();O.loader.seek(J,{lA:V}).TP(function(){})}else wW7(O)}; iC5=function(O,V){if(O.SB){O.SB.vH(V);var J;(J=O.loader)!=null&&J.policy.lw&&(J.S=V)}}; ash=function(O,V){LPh(O,V.reason,V.K.info,V.source,V.token)}; kB=function(O,V){O.publish("internalvideodatachange",V===void 0?"dataupdated":V,O.videoData)}; RW5=function(O){for(var V=g.n("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),J=V.next();!J.done;J=V.next())O.nZ.Z(O.mediaElement,J.value,O.yE,O);O.B.Ht&&O.mediaElement.sJ()&&(O.nZ.Z(O.mediaElement,"webkitplaybacktargetavailabilitychanged",O.qAD,O),O.nZ.Z(O.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",O.KAX,O))}; Plr=function(O){g.xg(O.KF);BMh(O)||(O.KF=g.FR(function(){return BMh(O)},100))}; BMh=function(O){var V=O.mediaElement;V&&O.AS&&!O.videoData.T&&!Ic("vfp",O.rC.timerName)&&V.g8()>=2&&!V.isEnded()&&jC(V.pE())&&O.rC.tick("vfp");return(V=O.mediaElement)&&!O.videoData.T&&V.getDuration()>0&&(V.isPaused()&&V.g8()>=2&&jC(V.pE())&&(Ic("pbp",O.rC.timerName)||O.rC.tick("pbp"),!O.videoData.Pn||O.M$||V.isSeeking()||(O.M$=!0,O.publish("onPlaybackPauseAtStart"))),V=V.getCurrentTime(),bh(O.D5,V))?(O.GN(),!0):!1}; SqH=function(O){O.ER.onProgress();if(L7(O.videoData)&&Date.now()>O.wP+6283){if(O.L("html5_unified_live_latency_reporting")){var V=O.ER;V.qoe&&PJH(V.qoe)}else!O.isAtLiveHead()||O.videoData.K&&Dd(O.videoData.K)||(V=O.ER,V.qoe&&PJH(V.qoe));V=g.jS(O.B);var J=O.L("html5_always_log_rawlat");(V||J)&&O.jB("rawlat",{l:Kg(O.TH,"rawlivelatency").toFixed(3)});O.wP=Date.now()}O.videoData.j&&Pg(O.videoData.j)&&(V=O.P4())&&V.videoHeight!==O.V7&&(O.V7=V.videoHeight,LPh(O,"a",kY7(O,O.videoData.dW)))}; kY7=function(O,V){if(V.K.video.quality==="auto"&&Pg(V.getInfo())&&O.videoData.eB)for(var J=g.n(O.videoData.eB),y=J.next();!y.done;y=J.next())if(y=y.value,y.getHeight()===O.V7&&y.K.video.quality!=="auto")return y.getInfo();return V.getInfo()}; Itl=function(O){if(!L7(O.videoData))return NaN;var V=0;O.loader&&O.videoData.K&&(V=Ey(O.videoData)?O.loader.A9.cC()||0:O.videoData.K.dW);return(0,g.cH)()/1E3-O.dN()-V}; OgY=function(O){O.mediaElement&&O.mediaElement.R5()&&(O.Q3=(0,g.cH)());O.B.Pl?g.CW(function(){Dmp(O)},0):Dmp(O)}; Dmp=function(O){var V;if((V=O.SB)==null||!V.hR()){if(O.mediaElement)try{O.q3=O.mediaElement.playVideo()}catch(y){DR(O,"err."+y)}if(O.q3){var J=O.q3;J.then(void 0,function(y){if(!(g.R(O.playerState,4)||g.R(O.playerState,256)||O.q3!==J||y&&y.name==="AbortError"&&y.message&&y.message.includes("load"))){var l="promise";y&&y.name&&(l+=";m."+y.name);DR(O,l);O.Sf=!0;O.videoData.aB=!0}})}}}; DR=function(O,V){g.R(O.playerState,128)||(O.mA(q8(O.playerState,1028,9)),O.jB("dompaused",{r:V}),O.publish("onAutoplayBlocked"))}; Pm=function(O,V){V=V===void 0?!1:V;if(!O.mediaElement||!O.videoData.U)return!1;var J=V;J=J===void 0?!1:J;var y=null;var l;if((l=O.videoData.U)==null?0:l.K){y=AQr(O,J);var m;(m=O.loader)==null||m.resume()}else Sp(O),O.videoData.dW&&(y=O.videoData.dW.xw());l=O.mediaElement.o9();J=!1;l&&l.equals(y)||(Vpp(O,y),J=!0);g.R(O.playerState,2)||(y=O.F5,V=V===void 0?!1:V,y.W||!(y.U>0)||y.mediaElement&&y.mediaElement.getCurrentTime()>0||(V={yK:"seektimeline_resumeTime",lA:V},y.videoData.T||(V.seekSource=15),y.seekTo(y.U, V)));a:{V=J;if(tO(O.videoData)){if(!O.videoData.Ji())break a}else if(!g.K7(O.videoData))break a;if(O.mediaElement)if((y=O.videoData.W)&&O.mediaElement.sJ()){l=O.mediaElement.dC();if(O.NG)if(l!==O.NG.element)yo(O);else if(V&&y.flavor==="fairplay"&&!ty())yo(O);else break a;if(O.L("html5_report_error_for_unsupported_tvos_widevine")&&ty()&&y.flavor==="widevine")O.Hf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{O.NG=new nXp(l,O.videoData,O.B,O.mediaElement,O.MG); O.NG.subscribe("licenseerror",O.IY,O);O.NG.subscribe("qualitychange",O.t7n,O);O.NG.subscribe("heartbeatparams",O.VF,O);O.NG.subscribe("keystatuseschange",O.hj,O);O.NG.subscribe("ctmp",O.jB,O);V=g.n(O.hf.keys);for(y=V.next();!y.done;y=V.next())y=O.hf.get(y.value),O.NG.Ch(y);O.L("html5_eme_loader_sync")||O.hf.removeAll()}}else O.Hf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return J}; var Ulp=function(O,V,J,y,l,m,H){return so[C[8]](this,3,O,V,J,y,l,m,H)}; var Vpp=function(O,V){O.rC.tick("vta");ac("vta",void 0,"video_to_ad");O.getCurrentTime()>0&&Aen(O.F5,O.getCurrentTime());O.mediaElement.activate(V);O.SB&&BC(4);!O.videoData.T&&O.playerState.isOrWillBePlaying()&&O.UO.start();if(ned(O)){var J;if(V=(J=O.mediaElement)==null?void 0:J.audioTracks())V.onaddtrack=function(){qqh(O)},V.onremovetrack=function(){qqh(O)},V.onchange=function(){O.publish("internalaudioformatchange",O.videoData,!0)}}},yo=function(O){O.NG&&(O.NG.dispose(),O.NG=null)},JH5=function(O){var V= V===void 0?!1:V; O.mediaElement&&(O.SB?(yo(O),O.Dr(),AQr(O,V)):(O.videoData.dW&&O.videoData.dW.uN(),O.mediaElement.stopVideo()),O.playVideo())},yH5=function(O,V){O.B.L("html5_log_rebuffer_reason")&&(V={r:V, lact:C2()},O.mediaElement&&(V.bh=wQ(O.mediaElement)),O.jB("bufreason",V))},lRp=function(O,V){if(O.B.Sq()&&O.mediaElement){var J=O.mediaElement.qI(); J.omt=(O.mediaElement.getCurrentTime()+O.HY()).toFixed(3);J.ps=O.playerState.state.toString(16);J.rt=(g.KC(O.ER.provider)*1E3).toFixed();J.e=V;O.jl[O.N$++%5]=J}},mJr=function(O){if(O.B.Sq()){O.jl.sort(function(y,l){return+y.rt-+l.rt}); for(var V=g.n(O.jl),J=V.next();!J.done;J=V.next())J=J.value,O.jB("vpe",Object.assign({t:J.rt},J));O.jl=[];O.N$=0}},$Jr=function(O){if(g.Qd("cobalt")&&g.Qd("nintendo switch")){var V=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches; O.jB("nxdock",{d:V})}},Jw=function(O,V){var J; (J=O.loader)==null||s3n(J,V)},fth=function(O){zc(O.videoData,"html5_set_debugging_opt_in")&&(O=g.E$(),O.s5(183)||(gE(183,!0),O.save()))},M9r=function(O,V){O.QK.qE()||(O.jB("sgap",{f:V}),O.QK.clearQueue(!1,V==="pe"))},dt=function(O){return O.L("html5_disable_video_player_initiated_seeks")&&tO(O.videoData)},Hgh=function(O){Uc.call(this,O); var V=this;this.events=new g.jX(O);g.t(this,this.events);a9(this.api,"isLifaAdPlaying",function(){return V.api.isLifaAdPlaying()}); this.events.Z(O,O.Y().gC().K.s5(la)?"playbackChange":"serverstitchedvideochange",function(){var J;(J=V.api.getVideoData())!=null&&J.Yr()&&(V.api.isLifaAdPlaying()?(V.playbackRate=V.api.getPlaybackRate(),V.api.setPlaybackRate(1)):V.api.setPlaybackRate(V.playbackRate))}); this.playbackRate=1},my=function(O){I3.call(this,"Loop",g.o3.gp); this.G=O;var V=O.L("delhi_modern_web_player_icons")?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:UvY();this.setIcon(V);this.subscribe("select",this.j,this);O.createClientVe(this.element,this,28661);this.Z(O,"settingsMenuVisibilityChanged",this.K);this.listen("click",this.logClick);this.Z(O,"onLoopChange",this.onLoopChange);YG(this,O.getLoopVideo());O.gq().sR(this)},jRh=function(O){Uc.call(this,O); var V=this;O.addEventListener("settingsMenuInitialized",function(){V.menuItem||(V.menuItem=new my(V.api),g.t(V,V.menuItem))}); O.addEventListener("videodatachange",function(J,y){J=V.api.getPresentingPlayerType()===2;var l;(l=V.menuItem)==null||l.PY(!y.isLivePlayback&&!J)})},ChU=function(O){Uc.call(this,O); var V=this;this.events=new g.jX(O);g.t(this,this.events);a9(this.api,"seekToChapterWithAnimation",function(J){V.seekToChapterWithAnimation(J)}); a9(this.api,"seekToTimeWithAnimation",function(J,y){V.seekToTimeWithAnimation(J,y)}); a9(this.api,"renderChapterSeekingAnimation",function(J,y,l){V.api.renderChapterSeekingAnimation(J,y,l)}); a9(this.api,"setMacroMarkers",function(J){V.setMacroMarkers(O,J)}); a9(this.api,"changeMarkerVisibility",function(J,y,l){V.changeMarkerVisibility(J,y,l)}); a9(this.api,"isSameMarkerTypeVisible",function(J){return V.isSameMarkerTypeVisible(J)})},FLV=function(O,V,J){var y=O.api.getCurrentTime()*1E30;)switch(V=Vn.shift(),V.type){case "ERROR":ON.sB(V.payload);break;case "EVENT":ON.logEvent(V.eventType,V.payload)}}); a9(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));a9(this.api,"updateDownloadState",this.updateDownloadState.bind(this));a9(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));a9(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));a9(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));a9(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));a9(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}, aRd=function(O){Uc.call(this,O); var V=this;this.loaded=!1;this.overlay=null;this.events=new g.jX(O);g.t(this,this.events);this.K=new g.jX(O);g.t(this,this.K);this.events.Z(O,"modulesCreated",function(){V.uL()&&V.load()}); this.events.Z(O,"modulesDestroyed",function(J){var y=!0;switch(J){case 2:case 3:y=!1;break;case 4:y=V.api.getPresentingPlayerType()===1}y&&V.unload()})}; var eH1=function(O,V,J,y,l,m){return Eo[C[8]](this,1,O,V,J,y,l,m)}; F5=function(O){Uc.call(this,O);var V=this;a9(O,"getAvailableQualityData",function(){return V.getAvailableQualityData()}); a9(O,"getAvailableQualityDataAndMessaging",function(){return V.getAvailableQualityDataAndMessaging()}); a9(O,"getPaygatedAudioQualityData",function(){return V.getPaygatedAudioQualityData()})}; bgl=function(O,V,J){var y=[],l=V?156595:151874;O=g.n(O);for(var m=O.next();!m.done;m=O.next()){var H=m.value;m=H.video;H={formatId:H.id,qualityLabel:m.qualityLabel,quality:m.quality,isPlayable:V};if(m=J[m.qualityLabel])H.paygatedQualityDetails={paygatedIndicatorText:m.paygatedIndicatorText,endpoint:m.endpoint,veType:l,trackingParams:m.trackingParams};y.push(H)}return y}; pm1=function(O){O=(O==null?void 0:O.qualityDetails)||[];return g.YE(O)&&!Array.isArray(O)?O:O.reduce(function(V,J){var y=J.key;J=J.value;y&&J&&(V[y]=J);return V},{})}; N0=function(O){Uc.call(this,O);var V=this;this.U=1;this.rC=null;this.Ty={MQ5:function(){return V.U}}; this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"d6de4videobindingchange",function(J){V.LZ(J)}); this.events.Z(O,"csiinitialized",function(){fRY(V)})}; fRY=function(O){h9Y()&&(O.rC=O.api.kI(),O.K=new hN,O.U=2,O.rC.Y3("pt_pish"),window.requestIdleCallback?window.requestIdleCallback(function(){oB5(O)}):oB5(O))}; oB5=function(O){if(h9Y()){O.rC=O.api.kI();O.rC.Y3("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:868618676952}).then(function(J){O.j=J;var y;(y=O.K)==null||y.resolve();O.rC.Y3("pt_pif")}).catch(function(J){xi(J,"player_start"); O.rC.Y3("pt_pie");var y;(y=O.K)==null||y.reject(J)})}catch(J){xi(J,"player_start_catch"); O.api.jB("pfes",{});var V;(V=O.K)==null||V.reject(J)}}}; vBY=function(O,V){if(O.j){var J=V.videoId;O.U=3;O.rC.Y3("pt_ms");try{O.j.requestToken(J).then(function(y){O.rC.Y3("pt_mf");if(y=tT(y))V.zQ={kbD:y}}).catch(function(y){O.rC.Y3("pt_me"); xi(y,"player_generate");O.handleError(y,V)})}catch(y){xi(y,"player_generate_catch"),O.handleError(y,V)}}}; xi=function(O,V){O.message&&g.en(Error(V+"_"+O.message))}; h9Y=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; W9=function(O){g.r.call(this,{X:"button",Fj:["ytp-pip-button","ytp-button"],N:{title:O.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},J:[UF()]});var V=this;this.api=O;this.listen("click",this.onClick);var J=this.api.hO(),y=J.subscribe("visibilitystatechange",function(){V.Qz(J.Lf())}); this.addOnDisposeCallback(function(){J.nE(y)}); Gc(O,this.element,this);this.Qz(J.Lf())}; UX=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"standardControlsInitialized",function(){V.createButton()}); g.ZG(this.api.Y())&&(this.L("web_watch_pip")||this.L("web_shorts_pip"))&&a9(this.api,"setDocumentPictureInPicture",function(J){V.setDocumentPictureInPicture(J)})}; wm5=function(O){var V=O.api.getVideoData();O.button.PY(V.I9)}; Mpp=function(O){Uc.call(this,O);var V=this;this.loaded=!1;this.T=0;this.K=!1;this.S={};this.U=[];this.D=0;this.V=!1;this.events=new g.jX(O);g.t(this,this.events);this.j=new g.jX(O);g.t(this,this.j);this.events.Z(O,"modulesCreated",function(){V.uL()&&V.load()}); this.events.Z(O,"modulesDestroyed",function(J){var y=V.api.getPresentingPlayerType();switch(J){case 2:case 3:J=y!==1&&!(y===5||y===6||y===7);break;case 4:J=!V.K;break;default:J=!0}J&&V.unload()})}; LLY=function(O,V){WJ(O.api.Y())&&(V?O.W.show():O.W.hide())}; nBp=function(O){var V=O.api.getVideoData().interstitials,J=[];V=g.n(V);for(var y=V.next();!y.done;y=V.next()){y=y.value;var l=J,m=l.push,H=O,F=y.playerVars,N=y.Bv,x=y.time,W="yto-"+H.T++;x=new g.gz(x,x,{id:W,priority:7,namespace:"yto"});H.S[W]={playerVars:F,playerType:N};m.call(l,x);l=O.api.getVideoData({playerType:1});l=Object.assign({oauth_token:l.oauthToken},y.playerVars);O.api.preloadVideoByPlayerVars(l,y.Bv)}O.api.aG(J,1)}; Xmn=function(O){var V=O.U[O.D];if(V){var J=O.S[V];V=J.playerVars;J=J.playerType;O.K=!0;O.D++;var y=O.api.getVideoData({playerType:1});V=Object.assign({oauth_token:y.oauthToken},V);O.api.loadVideoByPlayerVars(V,!0,J,!0);O.K=!1}}; EBp=function(O){O.D0&&l>0&&(J.width+=l,g.Pp(V.element,"width",J.width+"px")));O.size=J}}; g.Yi=function(O,V){var J=O.K[O.K.length-1];J!==V&&(O.K.push(V),KLh(O,J,V))}; g.ag=function(O){if(!(O.K.length<=1)){var V=O.K.pop(),J=O.K[0];O.K=[J];KLh(O,V,J,!0)}}; KLh=function(O,V,J,y){tpr(O);V&&(V.unsubscribe("size-change",O.tK,O),V.unsubscribe("back",O.jG,O));J.subscribe("size-change",O.tK,O);J.subscribe("back",O.jG,O);if(O.vY){g.D0(J.element,y?"ytp-panel-animate-back":"ytp-panel-animate-forward");J.rW(O.content);J.focus();O.element.scrollLeft=0;O.element.scrollTop=0;var l=O.size;GBr(O);g.HA(O.element,l);O.U=new g.t_(function(){uI1(O,V,J,y)},20,O); O.U.start()}else J.rW(O.content),V&&V.detach()}; uI1=function(O,V,J,y){O.U.dispose();O.U=null;g.D0(O.element,"ytp-popup-animating");y?(g.D0(V.element,"ytp-panel-animate-forward"),g.Vf(J.element,"ytp-panel-animate-back")):(g.D0(V.element,"ytp-panel-animate-back"),g.Vf(J.element,"ytp-panel-animate-forward"));g.HA(O.element,O.size);O.D=new g.t_(function(){g.Vf(O.element,"ytp-popup-animating");V.detach();g.Jn(V.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);O.D.dispose();O.D=null},250,O); O.D.start()}; tpr=function(O){O.U&&g.A_(O.U);O.D&&g.A_(O.D)}; ba=function(O){g.Ig.call(this,O,"ytp-shopping-product-menu");this.tL=new g.TW(this.G);g.t(this,this.tL);this.hide();g.Yi(this,this.tL);g.kD(this.G,this.element,4)}; rHr=function(O,V,J){var y,l=V==null?void 0:(y=V.text)==null?void 0:y.simpleText;l&&(J=AHd(O,J,l,V==null?void 0:V.icon,V==null?void 0:V.secondaryIcon),V.navigationEndpoint&&J.listen("click",function(){O.G.MX("innertubeCommand",V.navigationEndpoint);O.hide()},O))}; ign=function(O,V,J){var y,l=V==null?void 0:(y=V.text)==null?void 0:y.simpleText;l&&AHd(O,J,l,V==null?void 0:V.icon).listen("click",function(){var m;(V==null?void 0:(m=V.icon)==null?void 0:m.iconType)==="HIDE"?O.G.publish("featuredproductdismissed"):V.serviceEndpoint&&O.G.MX("innertubeCommand",V.serviceEndpoint);O.hide()},O)}; AHd=function(O,V,J,y,l){V=new g.Ft(g.Ny({},[],!1,!!l),V,J);l&&V.updateValue("secondaryIcon",R9n(l));V.setIcon(R9n(y));g.t(O,V);O.tL.sR(V,!0);return V}; R9n=function(O){if(!O)return null;switch(O.iconType){case "ACCOUNT_CIRCLE":return{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{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{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{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 Fa();case "HIDE":return{X:"svg",N:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"g",J:[{X:"path",N:{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 WB()}}; py=function(O){c9.call(this,O,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.S=!0;this.overflowButton=new g.r({X:"button",Fj:["ytp-featured-product-overflow-icon","ytp-button"],N:{"aria-haspopup":"true"}});this.overflowButton.hide();g.t(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.r({X:"img",C:"ytp-suggested-action-badge-img",N:{src:"{{url}}"}}); this.thumbnailImage.hide();g.t(this,this.thumbnailImage);this.thumbnailIcon=new g.r({X:"div",C:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.t(this,this.thumbnailIcon);this.banner=new g.r({X:"a",C:"ytp-suggested-action-container",J:[this.thumbnailImage,this.thumbnailIcon,{X:"div",C:"ytp-suggested-action-details",J:[{X:"text",C:"ytp-suggested-action-title",Rl:"{{title}}"},{X:"text",C:"ytp-suggested-action-subtitle",Rl:"{{subtitle}}"},{X:"text",C:"ytp-suggested-action-metadata-text", Rl:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.t(this,this.banner);this.banner.rW(this.D.element);this.Z(this.G,"videodatachange",this.onVideoDataChange);this.Z(this.G,g.Q9("suggested_action_view_model"),this.nrl);this.Z(this.G,g.Gd("suggested_action_view_model"),this.ZdW);this.Z(this.overflowButton.element,"click",this.Du);this.Z(O,"featuredproductdismissed",this.Q8);this.G.createServerVe(this.banner.element,this.banner,!0)}; Btl=function(O){O.isInitialized&&(O.enabled=O.isVisible,O.lw=O.isVisible,zW(O),O.J4(),O.thumbnailImage.PY(O.isVisible),O.shouldHideDismissButton||O.dismissButton.PY(O.isVisible),O.shouldShowOverflowButton&&O.overflowButton.PY(O.isVisible))}; fy=function(){py.apply(this,arguments)}; Ph7=function(O){Uc.call(this,O);this.K=new fy(this.api);g.t(this,this.K);g.kD(this.api,this.K.element,4)}; hw=function(O){Uc.call(this,O);var V=this;this.K=!0;var J=new g.jX(O);g.t(this,J);J.Z(O,"internalaudioformatchange",function(y,l){kB1(V,y,l)}); J.Z(O,"annotationvisibility",function(y){V.api.L("web_fix_annotations")&&SHl(V,(294).toString(),{boolValue:y})}); J.Z(O,"videoplayerreset",function(){DJo(V)}); J.Z(O,"videodatachange",function(y,l){V.onVideoDataChange(y,l)})}; kB1=function(O,V,J){if(J){var y="";Oyh(O,V)&&(y=V,O.api.Y().zL=V);if(y&&V0V(O,y)){gyU(O.api,y);var l;c_(pT(O.api.Y(),(l=O.api.getVideoData())==null?void 0:g.He(l)),function(m){var H=y;Jwl(m)!==H&&SHl(O,ywd(m),{stringValue:H})})}}}; DJo=function(O){var V;if((V=dl())==null?0:V.size){var J;c_(pT(O.api.Y(),(J=O.api.getVideoData())==null?void 0:g.He(J)),function(y){(y=Jwl(y))&&V0V(O,y)&&(O.api.Y().zL=y)})}}; var lU5=function(){return bnY[C[8]](this,3)}; m0H=function(O,V){sM(c_(c_(O.a5(),function(J){return dcn(J,[ywd(V)])}),function(J){if(J){J=g.n(J); for(var y=J.next();!y.done;y=J.next()){var l=y.value;y=l.key;l=l.value;y&&l&&(lwh([{settingItemId:y,settingOptionValue:l}]),DJo(O))}}}),function(){O.K=!0})}; Oyh=function(O,V){O=O.api.getAvailableAudioTracks();O=g.n(O);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.getLanguageInfo().getId()===V)return J;return null}; Jwl=function(O){O=ywd(O);var V=dl();O=V?V.get(O):void 0;return O&&O.stringValue?O.stringValue:""}; ywd=function(O){var V=(484).toString();O&&(V=(483).toString());return V}; V0V=function(O,V){var J;return V.split(".")[0]!==""&&((J=O.api.getVideoData())==null?void 0:!Cj(J))&&!0}; SHl=function(O,V,J){lwh([{settingItemId:V,settingOptionValue:J}]);c_(O.a5(),function(y){q8p(y,V,J)})}; lwh=function(O){var V=dl();V||(V=new Map);O=g.n(O);for(var J=O.next();!J.done;J=O.next())J=J.value,V.set(J.settingItemId,J.settingOptionValue);V=JSON.stringify(Object.fromEntries(V));g.oH("yt-player-user-settings",V,2592E3)}; $0r=function(){this.label="Auto-dubbed"}; g.og=function(O,V,J,y,l,m,H){g.Ft.call(this,g.Ny({"aria-haspopup":"true"}),V,O);this.mp=y;this.T=!1;this.U=null;this.options={};this.Ld=new g.TW(J,void 0,O,l,m,H);g.t(this,this.Ld);this.listen("keydown",this.I2);this.listen("click",this.open)}; HyV=function(O){if(O.U){var V=O.options[O.U];V.element.getAttribute("aria-checked");V.element.setAttribute("aria-checked","false");O.U=null}}; jg1=function(O,V){g.e0(O.Ld);for(var J={},y=!1,l=0;lW.start&&J>=5;Y+=M}l=Y.substr(0,4)+" "+Y.substr(4,4)+" "+Y.substr(8,4)+" "+(Y.substr(12,4)+" "+Y.substr(16,4))}else l="";H={video_id_and_cpn:String(V.videoId)+" / "+l,codecs:"",dims_and_frames:"",bandwidth_kbps:H.toFixed(0)+" Kbps",buffer_health_seconds:N.toFixed(2)+" s", date:""+(new Date).toString(),drm_style:x?"":"display:none",drm:x,debug_info:J,extra_debug_info:"",bandwidth_style:Z,network_activity_style:Z,network_activity_bytes:F.toFixed(0)+" KB",shader_info:U,shader_info_style:U?"":"display:none",playback_categories:""};F=y.clientWidth+"x"+y.clientHeight+(W>1?"*"+W.toFixed(2):"");N="-";m.totalVideoFrames&&(N=(m.droppedVideoFrames||0)+" dropped of "+m.totalVideoFrames);H.dims_and_frames=F+" / "+N;O=O.getVolume();F=Oel(V);var L;if((L=V.D)==null?0:L.audio.j)L= "VB";else{var X;L=((X=V.D)==null?0:X.audio.K)?"DRC":Math.round(O*F)+"%"}X=Math.round(O)+"% / "+L;L=V.ze.toFixed(1);isFinite(Number(L))&&(X+=" (content loudness "+L+"dB)");H.volume=X;H.resolution=y.videoWidth+"x"+y.videoHeight;if(y=V.j){if(X=y.video)L=X.fps,L>1&&(H.resolution+="@"+L),(L=m.SO)&&L.video&&(H.resolution+=" / "+L.video.width+"x"+L.video.height,L.video.fps>1&&(H.resolution+="@"+L.video.fps)),H.codecs=e_o(y),!V.D||y.audio&&y.video?y.dG&&(H.codecs+=" / "+y.dG+"A"):H.codecs+=" / "+e_o(V.D), X.K||X.primaries?(L=X.K||"unknown",L==="smpte2084"?L+=" (PQ)":L==="arib-std-b67"&&(L+=" (HLG)"),H.color=L+" / "+(X.primaries||"unknown"),H.color_style=""):H.color_style="display:none";if(y.debugInfo)for(H.fmt_debug_info="",y=g.n(y.debugInfo),X=y.next();!X.done;X=y.next())X=X.value,H.fmt_debug_info+=X.label+":"+X.text+" ";H.fmt_debug_info_style=H.fmt_debug_info&&H.fmt_debug_info.length>0?"":"display:none"}y=V.isLivePlayback;X=V.FR;H.live_mode_style=y||X?"":"display:none";H.live_latency_style=y?"": "display:none";if(X)H.live_mode="Post-Live"+(Ey(V)?" Manifestless":"");else if(y){X=m.Bp;H.live_latency_secs=X.toFixed(2)+"s";y=Ey(V)?"Manifestless, ":"";V.cX&&(y+="Windowed, ");L="Uncertain";if(X>=0&&X<120)if(V.latencyClass&&V.latencyClass!=="UNKNOWN")switch(V.latencyClass){case "NORMAL":L="Optimized for Normal Latency";break;case "LOW":L="Optimized for Low Latency";break;case "ULTRALOW":L="Optimized for Ultra Low Latency";break;default:L="Unknown Latency Setting"}else L=V.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";y+=L;(X=m.s2)&&(y+=", seq "+X.sequence);H.live_mode=y}!m.isGapless||p7(V)&&m.qE||(H.playback_categories+="Gapless ");H.playback_categories_style=H.playback_categories?"":"display:none";H.bandwidth_samples=m.Pw;H.network_activity_samples=m.nO;H.live_latency_samples=m.j_;H.buffer_health_samples=m.qJ;m=g.UJ(V);if(V.cotn||m)H.cotn_and_local_media=(V.cotn?V.cotn:"null")+" / "+m;H.cotn_and_local_media_style=H.cotn_and_local_media?"":"display:none"; zc(V,"web_player_release_debug")?(H.release_name=C[72],H.release_style=""):H.release_style="display:none";H.debug_info&&z.length>0&&H.debug_info.length+z.length<=60?H.debug_info+=" "+z:H.extra_debug_info=z;H.extra_debug_info_style=H.extra_debug_info&&H.extra_debug_info.length>0?"":"display:none";return H}; e_o=function(O){var V=/codecs="([^"]*)"/.exec(O.mimeType);return V&&V[1]?V[1]+" ("+O.itag+")":O.itag}; GW=function(O,V,J,y,l){g.r.call(this,{X:"div",C:"ytp-horizonchart"});this.V=V;this.sampleCount=J;this.D=y;this.W=l;this.index=0;this.heightPx=-1;this.U=this.j=null;this.K=Math.round(O/J);this.element.style.width=this.K*this.sampleCount+"px";this.element.style.height=this.V+"em"}; Ky=function(O,V){if(O.heightPx===-1){var J=null;try{J=g.I1("CANVAS"),O.j=J.getContext("2d")}catch(F){}if(O.j){var y=O.K*O.sampleCount;O.U=J;O.U.width=y;O.U.style.width=y+"px";O.element.appendChild(O.U)}else for(O.sampleCount=Math.floor(O.sampleCount/4),O.K*=4,J=0;J1?2:1,O.U.height=O.heightPx*J,O.U.style.height= O.heightPx+"px",O.j.scale(1,J)));V=g.n(V);for(y=V.next();!y.done;y=V.next()){J=O;var l=O.index,m=y.value;for(y=0;y+20&&g.bB(V.j.element);y.classList.add("ytp-timely-actions-overlay");V.j.element.appendChild(y)}); g.t(this,this.j);this.L("web_player_overlay_positioned_layout")?this.events.Z(O,"basechromeinitialized",function(){V.api.iV(V.j.element,4,!0);V.j.element.setAttribute("data-overlay-order","10")}):g.kD(this.api,this.j.element,4)}; d0r=function(O){O.timelyActions&&(O.D=O.timelyActions.reduce(function(V,J){if(J.cueRangeId===void 0)return V;V[J.cueRangeId]=0;return V},{}))}; re=function(O,V){if(O.timelyActions){O=g.n(O.timelyActions);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.cueRangeId===V)return J}}; gin=function(O,V){if((O=re(O,V))&&O.onCueRangeExit)return pY(O.onCueRangeExit)}; Lyr=function(O,V){return O.U===void 0?!1:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(V.seekLengthMilliseconds)===5E3?O.U===72:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(V.seekLengthMilliseconds)===1E4?O.U===74:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(V.seekLengthMilliseconds)===5E3?O.U===71:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(V.seekLengthMilliseconds)===1E4?O.U===73:!1}; qXd=function(O,V){var J=Number(V==null?void 0:V.maxVisibleDurationMilliseconds);J&&(ia(O),O.lw=setTimeout(function(){if(O.K!==void 0&&(V==null?void 0:V.cueRangeId)===O.K){O.qX=!1;var y=gin(O,O.K);y&&O.api.MX("innertubeCommand",y)}},J))}; ia=function(O){O.lw&&clearTimeout(O.lw);O.lw=void 0;O.qX=!1}; nin=function(O){if(O=O.getWatchNextResponse()){var V,J;O=(V=O.playerOverlays)==null?void 0:(J=V.playerOverlayRenderer)==null?void 0:J.timelyActionsOverlayViewModel;V=g.e(O,Qgl);if(V!=null&&V.timelyActions)return V==null?void 0:V.timelyActions.map(function(y){return g.e(y,GWr)}).filter(function(y){return!!y})}}; AwV=function(O){Uc.call(this,O);O=window;var V=this.api.Y().gC();V.K.s5(Ky5)?(V=[],O.ytPlayerArraySizeExperimentLength=V.length,O.ytPlayerArraySizeExperimentValue=V[0]):V.K.s5(t0d)?(V="6LPTkck/iK3Q7HMwz7Zyg71LBC0 buD oK+f O5w1 a ns4dbB O sCTaU5B4GI / ebOXx/5DGOwDMt1CEaJxccW+OaQtE zYkklE D4Kspm WDky G s0Vj4uvrd eLSfss l B1D/tiB9kUaZ+S SUWnD oGfGji rRpkB Jg O1 czi9 R Wl4 D94+hDF KOX stfyToM l8v9IJ KZi G A/2wZ 0Qfq 3kv3QDUZOWRK erN3h3b i j tdYdy kl u FBFdIp72yKKL/T rO ym cJYXYi8 yz+ ycc6jftJvwlWp ac s7m+LzqFtVOrgm7z0Z5Q/8Npyo19C B MFZkvXTvZR59/ IKgbLr56eq4Gs JiTE6RRv2HmCWEy Jb+OG u7Ui9+Uy 2FhggtkS7H+rbrOWFb565UNsslsXF i 1CLXS6 bW 6wRdeNJzE gvPRbDS3yqGyk+DHWJU+8pCy8FiGbRXFr2m 3 5GOYU7DuLxi5tbaWKEUSnPYd0ZdsaJY 5 wy9W8enoXtF70HcJfDja0FFaVcIlv Krj7JRMtiVWxQiqDYJqQf8d+Yhvqo WX eAqMs9UttnWTxsaY gcOb/6JXqGHdb5A7TVlpS9kTPq prg 3nD M7c rxwkg2JVkNqS4PtC2P+YzOfoYOdLc i gHNfRWcg3TaR CEKsZBM VfI V1VupF9DkyxK/ k7iWF+tWtW+RaVdPk6H3X 0GcnAiuJXyd7nC/ORmzb/HGrnvBms 6k NmQ2 aGB3blYR9pxhHrY Sk0Y/7tBGJ9EaTbTwoJGWt6 ijhACaixJX vh kwC00l 5QSqhiYiieEvBUYd7S SSRtsEjUFle/8v os".split(" "), O.ytPlayerArraySizeExperimentLength=V.length,O.ytPlayerArraySizeExperimentValue=V[Math.floor(Math.random()*V.length)]):V.K.s5(u5n)&&(V="a Y1bKqzJ s0Vj4uvrd x+ G stfyToM 7W xsHJ KZi 5 H2+ buD / 3 15 76VyLn4q6B SUWnD XF Ml D9/q oK+f K+ eLSfss B rlJLVN wy9W8enoXtF70HcJfDja0FFaVcIlv yLwl WDky asfV3x j KOX /I M FL czi9 b qfSz0ipS DQ m68 u7Ui9+Uy 61 K5xdXVLZb 1e sm BzwWNM gjQS0e hJ l3 zUJAT rRpkB I0j5 DPZ/ gcOb/6JXqGHdb5A7TVlpS9kTPq Hn 7m WwesQPUzST n51 B1D/tiB9kUaZ+S TKXw0mTsQ imMcmOcJbtBm2iiT gvPRbDS3yqGyk+DHWJU+8pCy8FiGbRXFr2m V2 ac s7 D4Kspm j 7I Z4U+fzdVIKP99m 8l 72 Nh5 ab XgH8Lzvf/8e92nICvOm8 gZ O OVRfzTvv99f6a Ng G oGfGji Xr O0 +y uM a6 mb ImnAv LKuVPy OlPbi N483sfs uP A7 71DqBndyU3GS6bIzA zS fts2 ky A/2wZ 0Qfq Zfvd5Pn4776zeP5oPc aI vTeKTkO bhbbE sd os zYkklE CEKsZBM V1VupF9DkyxK/ ebOXx/5DGOwDMt1CEaJxccW+OaQtE tdYdy rO iy34HMOZpoG 2P Jb+OG 7V6 U6 D94+hDF RN RjTb6s9dI1z3sbX2Z n5Jc3 u8 sCTaU5B4GI kEvjgcbIMe a be5m6OlQPwiJOhQ t5 SKU/ XKCZgrGIc3wy+ RX JgMLCGK hTtIGwjH1fcQWLu 30 Pt Mk8cYLj6WiDpDJN zO0ox JD ygD8z hp TtR HX+B89Khozs4 G MxY0 CdMDbBR bQ47h 7N i B90/Ls3uwfIR+zJE pM iAtM6ngY20Xjova0ANGS+MWXtw WF JMLr8w 8W 07 Lq9jaVTdvqKUcBE+lcgF7T3+rj8eLe/W9Gx6pMjv+q Av l lEIzH+OY FqDusHkb z7 pr8bo8c/VS pMPt A6 rxwkg2JVkNqS4PtC2P+YzOfoYOdLc Ca cX Iw2D fp5 erN3h3b FOM 6k 6W/+L21S0BgHkyXSeXgiZEFNnD bW UNvcj1zvh8 I3TZF5 Jg xw vG Ia9v 5QSqhiYiieEvBUYd7S tA nY LJ ym Krj7JRMtiVWxQiqDYJqQf8d+Yhvqo LQhs6cZhK2 0wDpZFkrDy K9nzX D99+akDyTHqVZ5oc vh o+H0k SG s7m+LzqFtVOrgm7z0Z5Q/8Npyo19C XT Ba R Q4 X k7iWF+tWtW+RaVdPk6H3X kwC00l R+km6jn4lEte 6c O/E2WbIgQZp1fX6M15U6V4Cn2VEhA/o1gqaZrT W35r8t FM Sk0Y/7tBGJ9EaTbTwoJGWt6 59N5n p2 dc/6x6Ue8NTkG8Eq 3kv3QDUZOWRK bEp8Cdrszr5 7/ YF 0EGSTB RQ MFZkvXTvZR59/ sU aQ ++ kl u FM8tJsLmwDZGwNxLT3UB8U+Oqq M7c cJYXYi8 Joavny ul O1 Yo PzjTAnVHpDMOOfHYH7PRH5cM ns4dbB jz 0MqMKs EC 5i /PSB9 FSr5qF2R kXioSwTShtq5feiVSbNLRWdm8JtU ses mL J84d RA eAqMs9UttnWTxsaY YqL+09b l8v9IJ VfI Un5oe aghMX806dvo tfkKluaA tWZ0RiNdY ha /++SfI 78y wMv/BMy w4igDN5fJhU/ ijhACaixJX 9s+4w/ i f7 g33AqPrwozIBbUR 2W I5xT3pY5tk3rrjxU4XaqE3JsSS1Y+LA0zCg IKgbLr56eq4Gs WX 2U 3EX5fOxmA pD V8eT3N6k ShiYcW72d5b NmQ2 Mx yz+ ycc6jftJvwlWp aGB3blYR9pxhHrY bWti1J FBFdIp72yKKL/T 2FhggtkS7H+rbrOWFb565UNsslsXF ePmsAY5V ca rZ prg 5 5GOYU7DuLxi5tbaWKEUSnPYd0ZdsaJY ec8TP 6wRdeNJzE BV NrX25+/J8LYtUk O5w1 0GcnAiuJXyd7nC/ORmzb/HGrnvBms hGs6kinOmHXn QoQ Wl4 +S1B mv Jo 671 QGZ 5ru JiTE6RRv2HmCWEy v5vpHQ5jXX5RZgSVfA7P9Keq/9 ngi k3cqFr12egl66d89FwnoKFk dF+d5SEX0slenHxkb+cmSyeQohfO i R gHNfRWcg3TaR EwPA 5banN SSRtsEjUFle/8v szO04kG7irS7lBIpOjUf 51 8Vh6p 3nD ii6 QDM3wl8PVhEf5fF".split(" "), O.ytPlayerArraySizeExperimentLength=V.length,O.ytPlayerArraySizeExperimentValue=V[Math.floor(Math.random()*V.length)])}; rwp=function(O){Uc.call(this,O);var V=this;bJ(this.api,"getPlaybackRate",function(){return V.api.getPlaybackRate()}); bJ(this.api,"setPlaybackRate",function(J){typeof J==="number"&&V.api.setPlaybackRate(J)})}; Rg=function(O,V,J,y){I3.call(this,"Voice boost",g.o3.DP);this.G=O;this.U=V;this.j=J;this.getVoiceBoostState=y;this.K=!1;this.mp=this.G.L("html5_enable_new_audio_settings_menu")?O.gq().jU:O.gq();this.Z(O,"onFilterAudioFeatures",this.La);this.setIcon({X:"svg",N:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.D,this);this.La()}; B9=function(O){Uc.call(this,O);var V=this;this.events=new g.jX(O);g.t(this,this.events);var J=this.api.L("html5_enable_voice_boost");J&&this.events.Z(O,"settingsMenuInitialized",function(){iyl(V)}); a9(this.api,"getVoiceBoostUserPreference",function(){return J?V.getVoiceBoostUserPreference():0}); a9(this.api,"setVoiceBoostUserPreference",function(l){J&&V.setVoiceBoostUserPreference(l)}); a9(this.api,"getVoiceBoostState",function(){return J?V.getVoiceBoostState():1}); var y;this.K=(y=GN1())!=null?y:0;this.updateEnvironmentData()}; iyl=function(O){O.menuItem||(O.menuItem=new Rg(O.api,function(V){O.setVoiceBoostUserPreference(V)},function(){return O.getVoiceBoostUserPreference()},function(){return O.getVoiceBoostState()}),g.t(O,O.menuItem))}; R_H=function(O){O=O.Cv();if(!O)return!1;O=g.SB(O).exp||"";return O.includes("xpv")||O.includes("xpe")}; Bed=function(O){O=g.n(g.P9(O,!0));for(var V=O.next();!V.done;V=O.next())if(R_H(V.value))return!0;return!1}; PaX=function(O,V){O=g.n(g.P9(O,!0));for(var J=O.next();!J.done;J=O.next())if(J=J.value,R_H(J)){var y={potc:"1",pot:V};J.url&&(J.url=DS(J.url,y))}}; kWU=function(O){return g.Q(function(V){if(V.j==1)return V.W(2),V.K(O,4);if(V.j!=2)return V.S(0);V.D();V.V()})}; ki=function(O){Uc.call(this,O);var V=this;this.useLivingRoomPoToken=!1;this.W=new g.HP;this.K=!1;this.rC=null;this.S=!1;this.D=null;this.V=!1;var J=O.Y().getWebPlayerContextConfig();this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"spsumpreject",function(l,m,H){V.V=m;l&&V.S&&!V.D&&(V.L("html5_generate_content_po_token")&&H?V.iT(H):V.L("html5_generate_session_po_token")&&SXo(V));V.D||V.api.jB("stp",{s:+V.S,b:+V.V})}); this.events.Z(O,"poTokenVideoBindingChange",function(l){V.iT(l)}); if(this.L("html5_web_po_on_demand_init"))var y=this.events.Z(O,"videodatachange",function(l,m){m.Ck&&!V.S&&(D05(V),V.events.oX(y))}); this.useLivingRoomPoToken=!(J==null||!J.useLivingRoomPoToken);O.addEventListener("csiinitialized",function(){V.rC=O.kI();V.L("html5_web_po_on_demand_init")?V.U=PIp():D05(V)}); O.addEventListener("trackListLoaded",this.R2.bind(this));O.g1(this)}; D05=function(O){var V=(O.L("html5_generate_session_po_token")||O.L("html5_generate_content_po_token"))&&!O.useLivingRoomPoToken;try{if(O.L("html5_use_shared_owl_instance"))OGX(O);else if(V){O.rC.Y3("pot_isc");var J=g.Ry(O.api.Y().experiments,"html5_webpo_kaios_defer_timeout_ms");J?(VhV(O),g.CW(function(){S0(O)},J)):O.L("html5_webpo_idle_priority_job")?(VhV(O),g.AG(g.ij(),function(){S0(O)})):S0(O)}}catch(y){y instanceof Error&&g.en(y)}}; JjY=function(O){var V=vj(O.experiments,"html5_web_po_request_key");return V?V:g.F0(O)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; yj7=function(O){var V=new wad,J={},y=(J["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",J);return new WP(V,O,function(){return y})}; l8n=function(O){return new U9(O)}; Dw=function(O,V){O.L("html5_webpo_bge_ctmp")&&O.api.jB(V,{hwpo:!!O.j,hwpor:O.K})}; OGX=function(O){var V,J;g.Q(function(y){if(y.j==1)return Dw(O,"swpo_i"),VhV(O),Oe(O),y.K(yC(),2);if(y.j!=3)return V=y.U,Dw(O,"swpo_co"),y.K($1p(V),3);J=y.U;O.L("html5_web_po_token_disable_caching")||J.Nb(150);O.j=J;Dw(O,"swpo_cc");kWU(J.kK()).then(function(){O.K=!0;O.W.resolve();Dw(O,"swpo_re")}); g.CW(function(){S0(O);Dw(O,"swpo_si")},0); y.V()})}; $XU=function(O){var V=O.api.Y(),J=JjY(V);J=yj7(J);var y=J.ix.bind(J);J.ix=function(F){var N;return g.Q(function(x){if(x.j==1)return x.K(y(F),2);N=x.U;O.api.jB("itr",{});return x.return(N)})}; try{var l=l8n({wL:J,Gw:{maxAttempts:5},Ez:{Bh:"CLEn",disable:V.experiments.Jv("html5_web_po_disable_remote_logging"),KS:vWU(V.experiments),HM:function(F){var N=mXr.get(F);N||(N=new kbn(F),N=new Xk(N),mXr.set(F,N));return N}, ZsW:O.L("wpo_dis_lfdms")?0:1E3},PRL:g.en});var m=new nM({jj:l,wL:J,onError:g.en});kWU(m.kK()).then(function(){O.K=!0;O.W.resolve()}); O.L("html5_web_po_token_disable_caching")||m.Nb(150);g.t(O,l);g.t(O,m);O.j=m}catch(F){g.en(F);var H;(H=l)==null||H.dispose()}}; S0=function(O){var V=O.api.Y();O.rC.Y3("pot_ist");O.j||$XU(O);O.L("html5_bandaid_attach_content_po_token")||(O.L("html5_generate_session_po_token")&&(Oe(O),SXo(O)),V=g.Ry(V.experiments,"html5_session_po_token_interval_time_ms")||0,V>0&&(O.T=g.FR(function(){Oe(O)},V)),O.S=!0)}; Oe=function(O){var V,J,y,l;g.Q(function(m){if(!O.L("html5_generate_session_po_token")||O.useLivingRoomPoToken)return m.return();V=O.api.Y();J=g.ts("EOM_VISITOR_DATA")||g.ts("VISITOR_DATA");y=V.rk?V.datasyncId:J;l=vj(V.experiments,"html5_mock_content_binding_for_session_token")||V.livingRoomPoTokenId||y;V.bl=Vl(O,l);m.V()})}; Vl=function(O,V){if(!O.j){if(O.U)try{return O.U(V)}catch(m){g.en(m)}return""}try{O.rC.Y3(O.K?"pot_cms":"pot_csms");var J={Qk:!0,S_:!0,Fq:V};O.L("html5_web_po_token_disable_caching")||(J.eV={v7:V,gg:!0,Vp:!0});var y=O.j.Ac(J);O.rC.Y3(O.K?"pot_cmf":"pot_csmf");if(O.K){var l;(l=O.D)==null||l.resolve();O.D=null;O.V&&(O.V=!1,O.api.app.ZN().vR(!1))}return y}catch(m){return g.en(m),""}}; SXo=function(O){O.j&&(O.D=new hN,O.W.promise.then(function(){O.rC.Y3("pot_if");Oe(O)}))}; VhV=function(O){O.U||(O.U=PIp())}; Jj=function(O){g.r.call(this,{X:"div",Fj:["ytp-more-videos-button","ytp-button"],N:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},J:[{X:"div",C:"ytp-more-videos-button-thumbnail"},{X:"span",C:"ytp-more-videos-button-title",Rl:"{{title}}"}]});this.G=O;this.j=this.DN("ytp-more-videos-button-thumbnail");this.U=this.DN("ytp-more-videos-button-title");this.K=new g.jX(this);g.t(this,this.K);this.K.Z(this.G,"videodatachange",this.QA);this.QA();this.listen("click",this.onClick);HGn(this, 0);this.hide()}; HGn=function(O,V){switch(V){case 2:V="Hide videos";var J="Hide recommendations grid";break;default:V="More videos",J="Show recommendations grid"}O.updateValue("title",V);O.element.ariaLabel=J;O.U.textContent=V}; g.yl=function(O,V,J){g.yf(O.element,"ytp-suggestion-set",!!V.videoId);var y=V.playlistId;J=V.O7(J?J:"mqdefault.jpg");var l=null,m=null;V instanceof Rx&&(V.lengthText?(l=V.lengthText||null,m=V.lj||null):V.lengthSeconds&&(l=g.Nw(V.lengthSeconds),m=g.Nw(V.lengthSeconds,!0)));var H=!!y;y=H&&rU(y).type==="RD";var F=V instanceof Rx?V.isLivePlayback:null,N=V instanceof Rx?V.isUpcoming:null,x=V.author,W=V.shortViewCount,U=V.publishedTimeText,Z=[],z=[];x&&Z.push(x);W&&(Z.push(W),z.push(W));U&&z.push(U);J= {title:V.title,author:x,author_and_views:Z.join(" \u2022 "),aria_label:V.ariaLabel||g.kv("Watch $TITLE",{TITLE:V.title}),duration:l,timestamp:m,url:V.xn(),is_live:F,is_upcoming:N,is_list:H,is_mix:y,background:J?"background-image: url("+J+")":"",views_and_publish_time:z.join(" \u2022 "),autoplayAlternativeHeader:V.B1};V instanceof id&&(J.playlist_length=V.playlistLength);O.update(J)}; g.lZ=function(O){var V=O.Y(),J=g.l$||g.r$?{style:"will-change: opacity"}:void 0,y=V.D,l=["ytp-modern-videowall-still"];V.j&&l.push("ytp-videowall-show-text");g.r.call(this,{X:"a",Fj:l,N:{href:"{{url}}",target:y?V.qX:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},J:[{X:"div",C:"ytp-modern-videowall-still-image",N:{style:"{{background}}"},J:[{X:"span",C:"ytp-modern-videowall-still-info-duration",Rl:"{{duration}}"}]},{X:"span",C:"ytp-modern-videowall-still-info", N:{"aria-hidden":"true"},J:[{X:"span",C:"ytp-modern-videowall-still-info-bg",J:[{X:"span",C:"ytp-modern-videowall-still-info-content",N:J,J:[{X:"span",C:"ytp-modern-videowall-still-info-title",Rl:"{{title}}"},{X:"span",C:"ytp-modern-videowall-still-info-author",Rl:"{{author}}"},{X:"span",C:"ytp-modern-videowall-still-view-count-and-date-info",Rl:"{{views_and_publish_time}}"},{X:"span",C:"ytp-modern-videowall-still-info-live",Rl:"Live"}]}]}]},{X:"span",Fj:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],N:{"aria-hidden":"true"},J:[{X:"span",C:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{X:"span",C:"ytp-modern-videowall-still-listlabel-length",J:[" (",{X:"span",Rl:"{{playlist_length}}"},")"]}]},{X:"span",Fj:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],N:{"aria-hidden":"true"},J:[{X:"span",C:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{X:"span",C:"ytp-modern-videowall-still-listlabel-length",Rl:" (50+)"}]}]}); this.suggestion=null;this.j=y;this.api=O;this.K=new g.jX(this);g.t(this,this.K);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.K.Z(O,"videodatachange",this.onVideoDataChange);O.createServerVe(this.element,this);this.onVideoDataChange()}; g.jln=function(O,V){if(O.suggestion!==V){O.suggestion=V;var J=O.api.Y(),y="hqdefault.jpg";V.O7("sddefault.jpg")&&(y="sddefault.jpg");g.yl(O,V,y);g.R2(J)&&!O.api.L("web_player_log_click_before_generating_ve_conversion_params")&&(J=V.xn(),y={},g.fj(O.api,"addEmbedsConversionTrackingParams",[y]),J=g.pp(J,y),O.updateValue("url",J));(V=(V=V.sessionData)&&V.itct)&&O.api.setTrackingParams(O.element,V)}}; CZ1=function(O,V){var J=O.L("web_player_use_more_videos_button");g.r.call(this,{X:"div",Fj:["ytp-fullscreen-grid"],J:[{X:"div",C:"ytp-fullscreen-grid-hover-overlay",N:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{X:"div",C:"ytp-fullscreen-grid-buttons-container",J:J?[]:[{X:"button",Fj:["ytp-fullscreen-grid-expand-button","ytp-button"],N:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}", "data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},J:["{{icon}}"]}]},{X:"div",C:"ytp-fullscreen-grid-main-content",J:[{X:"div",C:"ytp-fullscreen-grid-stills-container"}]}]});this.player=O;this.stills=[];this.videoData=null;this.currentState=0;this.V=J;this.lw=this.player.L("web_player_use_external_grid_component");(this.O5=this.player.L("web_player_enable_horizontal_endscreen_shelf"))&&g.D0(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf"); this.D=this.DN("ytp-fullscreen-grid-main-content");this.KD=this.DN("ytp-fullscreen-grid-stills-container");this.T=this.DN("ytp-fullscreen-grid-buttons-container");this.V&&(this.W=new Jj(this.player),this.T.appendChild(this.W.element),g.t(this,this.W),this.Z(this.W.element,"click",this.Gh));this.lw&&(this.KD.style.display="none");this.S=new g.jX(this);g.t(this,this.S);this.fD=V;if(this.D&&this.KD){if(O=this.DN("ytp-fullscreen-grid-hover-overlay"))this.Z(O,"click",this.Gh),Gc(this.player,O,this);!this.V&& (O=this.DN("ytp-fullscreen-grid-expand-button"))&&(this.Z(O,"click",this.Gh),Gc(this.player,O,this));if(O=this.player.getVideoData({playerType:1}))this.videoData=O;this.player.createClientVe(this.D,this,223051);this.S.Z(this.player,"videodatachange",this.onVideoDataChange)}}; F1o=function(O,V){var J="",y=g.Kj(O.player,"More videos","v");V===2?J="Hide videos":V===1&&(J="More videos");O.element.setAttribute("title",y);O.element.setAttribute("data-title-no-tooltip",J);O.element.setAttribute("aria-label",J);if(V=O.DN("ytp-fullscreen-grid-hover-overlay"))V.setAttribute("title",y),V.setAttribute("data-title-no-tooltip",J),V.setAttribute("aria-label",J);!O.V&&(V=O.DN("ytp-fullscreen-grid-expand-button"))&&(V.setAttribute("title",y),V.setAttribute("data-title-no-tooltip",J),V.setAttribute("aria-label", J));O.player.s7()}; xXp=function(O){Uc.call(this,O);var V=this;this.V=this.K=this.U=0;this.T=null;this.S=this.W=0;this.isEnded=!1;this.KD=null;var J=new g.jX(O);g.t(this,J);this.fD=g.Ry(this.api.Y().experiments,"web_player_default_peeking_px");this.Vz=this.api.L("delhi_modern_player_enable_pause_peeking");this.ol=g.Ry(this.api.Y().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.LD=this.api.L("web_player_imax_theater_mode");this.D=this.api.L("web_player_enable_fullscreen_grid_components");this.dW=this.api.L("web_player_enable_more_videos_button"); this.O5=this.api.L("web_player_use_external_grid_component");g.D0(this.api.getRootNode(),"ytp-grid-scrollable");J.Z(O,"fullscreentoggled",function(){m1(V)}); J.Z(O,"videodatachange",function(){if(V.D){var y=V.api.getVideoData({playerType:1});V.videoData!==y&&V.U===2&&(g.Vf(V.api.getRootNode(),"ytp-grid-scrolling"),$n(V,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));V.videoData=y}},this); J.Z(O,"sizestylechange",function(){V.D&&m1(V)}); a9(this.api,"setFullscreenQuickActions",function(y){V.setFullscreenQuickActions(y)}); a9(this.api,"setPlayerOverlayVideoDetailsRenderer",function(y){V.setPlayerOverlayVideoDetailsRenderer(y)}); this.O5&&a9(this.api,"setFullscreenGrid",function(y){V.setFullscreenGrid(y)}); a9(this.api,"setCommentsButton",function(y){V.setCommentsButton(y)}); a9(this.api,"setDescriptionButton",function(y){V.setDescriptionButton(y)}); this.D&&N8h(this,J,O)}; N8h=function(O,V,J){V.Z(J,"keyboardserviceglobalkeydown",function(y,l){O.D&&y.keyCode===86&&!y.repeat&&O.U!==0&&(l&&(l.fb=!0),O.KT("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); V.Z(O.api.getRootNode(),"wheel",function(y){if(!O.KD){var l;if(O.D&&(l=O.j)!=null&&l.element&&!g.R(O.api.getPlayerStateObject(),2)&&O.U!==0&&Hi(O))if(g.D0(O.api.getRootNode(),"ytp-grid-scrolling"),O.W===0&&(O.W=window.innerHeight),O.U===1)O.W!==0&&(O.K+=y.deltaY/O.W,O.K=g.BZ(O.K,0,.7),jh(O),W1r(O,O.S/O.W+O.K>=.7,2));else if(O.U===2){l=y.deltaY<0;var m,H,F=((H=(m=O.j)==null?void 0:m.D)==null?void 0:H.scrollTop)===0;m=O.K!==0;l&&F||m&&!l?O.W!==0&&(O.K=Math.max(0,O.K-y.deltaY/O.W),jh(O),W1r(O,O.S/O.W+ Math.abs(O.K)>=.7,1)):O.K!==0&&(O.K=0,jh(O))}}},O,!0); V.Z(J,"standardControlsInitialized",function(){if(!O.j){O.j=new CZ1(O.api,O.Wn5.bind(O));O.dW&&(O.qX=new Jj(O.api),g.t(O,O.qX),O.qX.element.setAttribute("data-overlay-order","12"),O.api.iV(O.qX.element,4),O.qX.listen("click",O.KT,O));g.t(O,O.j);var y=O.api.getRootNode().querySelector(".ytp-chrome-bottom");y&&y.parentNode&&y.parentNode.insertBefore(O.j.element,y.nextSibling);UXh(O)}}); V.Z(J,"presentingplayerstatechange",function(){CG(O)}); V.Z(J,"autonavvisibility",function(){CG(O)}); O.api.hO().subscribe("visibilitystatechange",function(){CG(O)}); ZGh(O,O.U)}; W1r=function(O,V,J){O.T&&clearTimeout(O.T);O.K===0&&g.Vf(O.api.getRootNode(),"ytp-grid-scrolling");V?zip(O,J):O.K<.1&&(O.T=window.setTimeout(function(){zip(O)},1E3))}; zip=function(O,V){O.T&&(clearTimeout(O.T),O.T=null);O.W=0;O.D&&O.U!==0&&(V?$n(O,V):Math.abs(O.K)>=.15&&O.KT("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),O.K=0,jh(O),g.Vf(O.api.getRootNode(),"ytp-grid-scrolling"))}; Hi=function(O){return O.api.isFullscreen()||O.LD&&O.api.yO()}; m1=function(O){var V=Hi(O);g.yf(O.api.getRootNode(),"ytp-full-bleed-player",V);O.lw&&g.CD(O.lw,V);O.playerOverlayVideoDetailsRenderer&&g.CD(O.playerOverlayVideoDetailsRenderer,V);O.D&&CG(O)}; CG=function(O){if(O.D)if(g.Vf(O.api.getRootNode(),"ytp-grid-scrolling"),O.api.getPresentingPlayerType()===2||O.api.Ru()||O.api.isMinimized())$n(O,0);else{var V=g.R(O.api.getPlayerStateObject(),2);if(V)$n(O,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(O.isEnded&&!V){var J=Hi(O)?1:0;O.isEnded=V;$n(O,J)}else Hi(O)?O.U!==2&&$n(O,1):$n(O,0);O.isEnded=V}}; $n=function(O,V,J){O.U=V;var y;(y=O.j)==null||y.gX(V,J);var l;(l=O.qX)==null||l.gX(V);O.K=0;jh(O);ZGh(O,V)}; ZGh=function(O,V){var J=O.api.getRootNode();g.yf(J,"ytp-fullscreen-grid-peeking",V===1);g.yf(J,"ytp-fullscreen-grid-active",V===2);V===1&&UXh(O)}; UXh=function(O){var V=O.api.getRootNode();if(g.R(O.api.getPlayerStateObject(),256)||g.R(O.api.getPlayerStateObject(),32)||g.R(O.api.getPlayerStateObject(),16))var J=O.S;else if(O.Vz&&O.api.getPlayerStateObject().isPaused()){var y;J=(((y=O.j)==null?void 0:y.element.clientWidth)||0)*.5625/3*O.ol||O.fD}else J=O.fD;O.S=J;V.style.setProperty("--ytp-grid-peek-height",O.S+"px");g.yf(V,"ytp-disable-bottom-gradient",O.S<=12&&O.V===0)}; jh=function(O){O.K===0&&O.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var V=O.K-O.V,J=V;O.K!==0&&(J=g.BZ(V,-.01,.01));O.V+=J;O.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+O.V.toString());O.V!==O.K&&jh(O)})}; cjX=function(O){Uc.call(this,O);var V=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.jX(O);g.t(this,this.events);this.events.Z(O,"heartbeatRequest",function(J){if(V.freePreviewUsageDetails.length||V.freePreviewWatchedDuration!==null)J.heartbeatRequestParams||(J.heartbeatRequestParams={}),J.heartbeatRequestParams.unpluggedParams||(J.heartbeatRequestParams.unpluggedParams={}),V.freePreviewUsageDetails.length>0?J.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= V.freePreviewUsageDetails:J.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+V.freePreviewWatchedDuration}}); a9(O,"setFreePreviewWatchedDuration",function(J){V.freePreviewWatchedDuration=J}); a9(O,"setFreePreviewUsageDetails",function(J){V.freePreviewUsageDetails=J})}; F_=function(O){g.K.call(this);this.features=[];var V=this.K,J=new O0(O),y=new Zs(O),l=new F5(O),m=new ki(O);var H=g.jS(O.Y())?void 0:new rs(O);var F=new Cy(O),N=new byh(O),x=new rwp(O),W=new Ds(O);var U=g.jS(O.Y())?new cjX(O):void 0;var Z;var z=(Z=O.Y().getWebPlayerContextConfig())!=null&&Z.cinematicSettingsAvailable?new Kc(O):void 0;Z=new S9(O);var c=O.L("enable_courses_player_overlay_purchase")?new v4X(O):void 0;var Y=g.ZG(O.Y())?new pX5(O):void 0;var b=new ig(O);var M=O.Y().D?new TI1(O):void 0; var w=g.R2(O.Y())?new sWr(O):void 0;var L=O.L("web_player_move_autonav_toggle")&&O.Y().zK?new FWh(O):void 0;var X=g.ZG(O.Y())?new ChU(O):void 0;var u=O.L("web_enable_speedmaster")&&g.ZG(O.Y())?new de(O):void 0;var G=O.Y().fP?void 0:new M0U(O);var k=O.L("report_pml_debug_signal")?new iel(O):void 0;var D=new YHl(O),Oo=new UX(O);var md=g.pJ(O.Y())?new dJV(O):void 0;var xY=navigator.mediaSession&&window.MediaMetadata&&O.Y().Mx?new $i(O):void 0;var V7=O.L("html5_enable_drc")&&!O.Y().V?new A9(O):void 0; var Tr=new sc(O);var Rp=g.ZG(O.Y())?new Ph7(O):void 0;var ys=new N0(O);var JI=g.ZG(O.Y())&&O.L("web_sleep_timer")?new v9(O):void 0;var uX=g.R2(O.Y())?new I7Y(O):void 0;O.L("mweb_debug_sticky_settings");var nn=new hw(O);var im=new xOr(O),fd=new Hgh(O);var h=O.L("enable_sabr_snackbar_message")?new x0p(O):void 0;var X1=O.L("web_enable_timely_actions")?new Eih(O):void 0;var AI=new t9(O);var gV,lX;var az=((gV=O.Y())==null?0:(lX=gV.getWebPlayerContextConfig())==null?0:lX.enableFullscreenComponentsFeature)? new xXp(O):void 0;gV=new B9(O);lX=O.L("web_player_loop_settings_menu")&&O.Y().qq?new jRh(O):void 0;var p=g.jS(O.Y())?void 0:new ze(O);var Jr=new Mpp(O),Ht=new gs(O),wT=new aRd(O),HZ=new HfX(O);var sz=g.ZG(O.Y())&&O.Y().L("delhi_modern_web_player")?new UOr(O):void 0;var Ml=O.Y().U?void 0:new kXh(O);var ZZ=new Ter(O),Mk=new BI(O);var f=O.Y().gC();O=f.K.s5(Ky5)||f.K.s5(t0d)||f.K.s5(u5n)?new AwV(O):void 0;V.call(this,J,y,l,m,H,F,N,x,W,U,z,Z,c,Y,b,M,w,L,X,u,G,k,D,Oo,md,void 0,xY,V7,Tr,void 0,Rp,ys,JI, uX,void 0,nn,im,fd,void 0,h,X1,AI,az,gV,void 0,lX,void 0,p,Jr,Ht,wT,HZ,sz,Ml,ZZ,Mk,O)}; slY=function(){this.j=this.K=NaN}; T81=function(O,V){this.B=O;this.timerName="";this.U=!1;this.j=NaN;this.D=new slY;this.K=V||null;this.U=!1}; ein=function(O,V,J){var y=g.Oj(V.WE)&&!V.WE.V;if(V.WE.wk&&(Pj(V.WE)||V.WE.fD==="shortspage"||Ix(V.WE)||y)&&!O.U){O.U=!0;O.V=V.clientPlaybackNonce;g.ts("TIMING_ACTION")||KV("TIMING_ACTION",O.B.csiPageType);O.B.csiServiceName&&KV("CSI_SERVICE_NAME",O.B.csiServiceName);if(O.K){y=O.K.kI();for(var l=g.n(Object.keys(y)),m=l.next();!m.done;m=l.next())m=m.value,sB(m,y[m],O.timerName);y=g.ii(wHp)(O.K.n3);g.TJ(y,O.timerName);y=O.K;y.K={};y.n3={}}g.TJ({playerInfo:{visibilityState:g.ii(vP7)()},playerType:"LATENCY_PLAYER_HTML5"}, O.timerName);O.W!==V.clientPlaybackNonce||Number.isNaN(O.j)||(Ic("_start",O.timerName)?J=g.ii(W7)("_start",O.timerName)+O.j:g.en(new g.pn("attempted to log gapless pbs before CSI timeline started",{cpn:V.clientPlaybackNonce})));!J||Ic("pbs",O.timerName)||V.Yw||NX(O,J)}}; NX=function(O,V,J){sB("pbs",V!=null?V:(0,g.cH)(),J!=null?J:O.timerName)}; xn=function(O){GfV();Qjh();O.timerName=""}; I87=function(O){if(O.K){var V=O.K;V.K={};V.n3={}}O.U=!1;O.W=void 0;O.j=NaN}; Yer=function(O,V){g.BF.call(this);this.WE=O;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.K=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.CE={};this.j=0;if(O=V.session_data)this.sessionData=Bw(O,"&");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(O=V.api)typeof O==="string"&&O.length===16?V.list="PL"+O:V.playlist=O;if(O=V.list)switch(V.listType){case "user_uploads":this.listId=new AO("UU","PLAYER_"+O);break;default:var J=V.playlist_length;J&&(this.length=Number(J)||0);this.listId=rU(O);if(O=V.video)this.items=O.slice(0),this.loaded=!0}else if(V.playlist){O=V.playlist.toString().split(",");this.index>0&&(this.items=[]);O=g.n(O);for(J=O.next();!J.done;J=O.next())(J=J.value)&& this.items.push({video_id:J});this.length=this.items.length;if(O=V.video)this.items=O.slice(0),this.loaded=!0}this.setShuffle(!!V.shuffle);if(O=V.suggestedQuality)this.quality=O;this.CE=gU(V,"playlist_");this.U=(V=V.thumbnail_ids)?V.split(","):[]}; a8Y=function(O){return!!(O.playlist||O.list||O.api)}; bGp=function(O){var V=O.index+1;return V>=O.length?0:V}; pih=function(O){var V=O.index-1;return V<0?O.length-1:V}; g.Wi=function(O,V,J,y){V=V!==void 0?V:O.index;V=O.items&&V in O.items?O.items[O.order[V]]:null;var l=null;V&&(J&&(V.autoplay="1"),y&&(V.autonav="1"),l=new g.WL(O.WE,V),g.t(O,l),l.zb=!0,l.startSeconds=O.startSeconds||l.clipStart||0,O.listId&&(l.playlistId=O.listId.toString()));return l}; f8p=function(O,V){O.index=g.BZ(V,0,O.length-1);O.startSeconds=0}; hi5=function(O,V){if(V.video&&V.video.length){O.title=V.title||"";O.description=V.description;O.views=V.views;O.likes=V.likes;O.dislikes=V.dislikes;O.author=V.author||"";var J=V.loop;J&&(O.loop=J);J=g.Wi(O);O.items=[];for(var y=g.n(V.video),l=y.next();!l.done;l=y.next())if(l=l.value)l.video_id=l.encrypted_id,O.items.push(l);O.length=O.items.length;(V=V.index)?O.index=V:O.findIndex(J);O.setShuffle(!1);O.loaded=!0;O.j++;O.K&&O.K()}}; wiY=function(O,V){var J,y,l,m,H,F,N;return g.Q(function(x){if(x.j==1){J=g.B7();var W=O.Y(),U={context:g.I9(O),playbackContext:{contentPlaybackContext:{ancestorOrigins:W.ancestorOrigins}}},Z=W.getWebPlayerContextConfig();if(Z==null?0:Z.encryptedHostFlags)U.playbackContext.contentPlaybackContext.encryptedHostFlags=Z.encryptedHostFlags;if(Z==null?0:Z.hideInfo)U.playerParams={showinfo:!1};Z=W.embedConfig;var z=O.LP;var c=V.docid||V.video_id||V.videoId||V.id;if(!c){c=V.raw_embedded_player_response;if(!c){var Y= V.embedded_player_response;Y&&(c=JSON.parse(Y))}if(c){var b,M,w,L,X,u;c=((u=g.e((b=c)==null?void 0:(M=b.embedPreview)==null?void 0:(w=M.thumbnailPreviewRenderer)==null?void 0:(L=w.playButton)==null?void 0:(X=L.buttonRenderer)==null?void 0:X.navigationEndpoint,g.eW))==null?void 0:u.videoId)||null}else c=null}b=(b=c)?b:void 0;M=O.playlistId?O.playlistId:V.list;w=V.listType;if(M){var G;w==="user_uploads"?G={username:M}:G={playlistId:M};on5(Z,z,b,V,G,W.experiments);U.playlistRequest=G}else V.playlist? (G={templistVideoIds:V.playlist.toString().split(",")},on5(Z,z,b,V,G,W.experiments),U.playlistRequest=G):b&&(G={videoId:b},z&&W.L("embeds_enable_per_video_embed_config")?G.serializedThirdPartyEmbedConfig=z:Z&&(G.serializedThirdPartyEmbedConfig=Z),U.singleVideoRequest=G);y=U;l=g.u1(vnH);x.W(2);return x.K(g.fU(J,y,l),4)}if(x.j!=2)return m=x.U,H=O.Y(),V.raw_embedded_player_response=m,H.dW=$O(V,g.R2(H)),H.U=H.dW==="EMBEDDED_PLAYER_MODE_PFL",m&&(F=m,F.trackingParams&&Yy(F.trackingParams)),x.return(new g.WL(H, V));N=x.D();N instanceof Error||(N=Error("b259802748"));g.sk(N);return x.return(O)})}; on5=function(O,V,J,y,l,m){y.index&&(l.playlistIndex=String(Number(y.index)+1));l.videoId=J?J:"";V&&m.Jv("embeds_enable_per_video_embed_config")?l.serializedThirdPartyEmbedConfig=V:O&&(l.serializedThirdPartyEmbedConfig=O)}; g.Z8=function(O,V){Ue.get(O);Ue.set(O,V)}; g.zm=function(O){g.BF.call(this);this.loaded=!1;this.player=O}; Mhp=function(){this.j=[];this.K=[]}; g.P9=function(O,V){return V?O.K.concat(O.j):O.K}; g.ci=function(O,V){switch(V.kind){case "asr":L1r(V,O.j);break;default:L1r(V,O.K)}}; L1r=function(O,V){g.Qs(V,function(J){return O.equals(J)})||V.push(O)}; g.se=function(O){g.K.call(this);this.cE=O;this.K=new Mhp;this.U=null;this.W=[];this.T=[]}; g.nnU=function(O,V){var J;return V.Y().L("html5_use_hls_native_captions")&&g.CH&&O.Gy()&&!((J=O.j)==null||!Pg(J))}; g.Tm=function(O,V,J){g.se.call(this,O);this.videoData=V;this.audioTrack=J;this.j=null;this.D=!1;this.W=V.k9;this.T=V.iC;this.D=g.lJ(V)}; g.Xir=function(O,V){var J;return O.Y().L("safari_live_drm_captions_fix")&&((J=O.getVideoData())==null?0:J.Ji())?!1:g.jS(O.Y())&&!V.isManifestless}; g.eh=function(O,V){return O4(O.info.mimeType)?V?O.info.itag===V:!0:!1}; g.EnY=function(O,V){if(O.K!=null&&g.Xir(V,O.K)&&O.K.K.rawcc!=null)return!0;if(!O.Gy())return!1;V=!!O.K&&O.K.isManifestless&&Object.values(O.K.K).some(function(J){return g.eh(J,"386")}); O=!!O.K&&!O.K.isManifestless&&g.ANp(O.K);return V||O}; g.Il=function(O,V,J,y,l,m){g.se.call(this,O);this.videoId=J;this.kS=l;this.eventId=m;this.V={};this.j=null;O=y||g.SB(V).hl||"";O=O.split("_").join("-");this.D=DS(V,{hl:O})}; dXH=function(O,V,J){J=J===void 0?"":J;g.K.call(this);var y=this;this.G=O;this.W=V;this.U=J;this.n3={};this.K={};this.j=null;this.D=new Set;this.V=new g.jX(this);this.Ty={eoN:function(){return y.W}, Ron:function(){return y.U}}; this.S=this.G.L("web_player_defer_modules");this.UE=new Map;g.t(this,this.V);this.V.Z(O,"videodatachange",this.onVideoDataChange)}; gnh=function(O,V){O.j=V}; g.Yn=function(O){return O.UE.get("captions")}; u_n=function(O,V){switch(V){case "ad":return qel(O);case "annotations_module":return O.G.isEmbedsShortsMode()?O=!1:(V=O.G,O=V.Y(),V=V.getVideoData(),O=O.U||V.Jn||O.controlsType==="3"?!1:O.ol.isEmpty()&&O.playerStyle!=="annotation-editor"&&O.playerStyle!=="live-dashboard"?!!V.s1||!!g.V_(V)||!!g.J1(V):!0),O;case "asmjs":return al(O);case "creatorendscreen":return Qlo(O);case "embed":return g.R2(O.G.Y());case "endscreen":return g.Gm7(O);case "heartbeat":return O.ID();case "kids":return HJ(O.G.Y());case "remote":return O.G.Y().lM; case "miniplayer":return O.G.Y().showMiniplayerUiWhenMinimized;case "offline":return O.G.Y().TM;case "captions":return K1V(O);case "unplugged":return g.Vw(O.G.Y());case "ux":return O.G.Y().nD;case "webgl":return thH(O);case "ypc":return O.sF();default:return g.sk(Error("Module descriptor "+V+" does not match")),!1}}; bZ=function(O,V,J,y,l){var m;J=J===void 0?!1:J;y=y===void 0?!1:y;var H=O.UE.get(V);if(!H||y)if(l||(l=function(){bZ(O,V,J,y)}),m||(m=function(){pG(O,V)}),H=H||AjH(O,V,u_n(O,V),l,m))O.UE.set(V,H),H.create(),O.G.publish("modulecreated",V),J&&O.G.il("onApiChange")}; iG7=function(O){var V=V===void 0?!1:V;var J,y,l,m,H;return g.Q(function(F){if(F.j==1)return(J=O.UE.get("asmjs"))&&!V?F.return(J):(y=Ue.get("asmjs"))!=null?(l=y,F.uw(2)):F.K(new Promise(function(N,x){rj7(O,"asmjs",function(){var W=Ue.get("asmjs");W?N(W):x("cannot load module asmjs")},x)}),3); F.j!=2&&(l=F.U);m=l;if(!m)return F.return(Promise.reject("cannot load module asmjs"));H=new m(O.G);O.UE.set("asmjs",H);H.create();return F.return(H)})}; PZ1=function(O){RiV(O)&&O.Mb();B8l(O)&&(bZ(O,"captions",!0),bZ(O,"endscreen"),O.Ec(),bZ(O,"creatorendscreen",!0))}; pG=function(O,V){V=g.n(km7[V]);for(var J=V.next();!J.done;J=V.next())O.G.uV(J.value)}; B8l=function(O){var V=O.G.getVideoData(),J=O.S&&!V.isInlinePlaybackNoAd;O.G.L("html5_defer_modules_on_ads_only")&&!V.isAd()&&(J=!1);return J}; RiV=function(O){O=O.G.getVideoData();var V;if(V=O.L("web_player_defer_ad")){if(g.Kd(O.nw,"ad")||QiY(O)||O.enableServerStitchedDai)O=!1;else{V=O.playerResponse;O=O.startSeconds;var J=V==null?void 0:V.adPlacements;if(V=J){V=Number.MAX_VALUE;J=g.n(J);for(var y=J.next();!y.done;y=J.next())if(y=y.value.adPlacementRenderer){var l=void 0,m=(l=y.config)==null?void 0:l.adPlacementConfig;l=void 0;if(((l=m)==null?void 0:l.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var H=l=void 0;m=Number((l=m)==null?void 0:(H= l.adTimeOffset)==null?void 0:H.offsetStartMilliseconds)||0;H=l=void 0;y=Number(((l=y.renderer)==null?void 0:(H=l.adBreakServiceRenderer)==null?void 0:H.prefetchMilliseconds)||0);y=m-y;y=11;O=O.api.Y().S&&X_;return!(!V&&!O)}; r8=function(O,V){return!O.api.isInline()&&!Tpr(O,YO(V))&&g.xo(V)}; Iup=function(O,V){if(!O.api.Y().L("web_player_invisible_fullscreen_button"))return!1;var J=O.api.getRootNode().getBoundingClientRect();if(V.targetTouches&&V.targetTouches.length){var y=V.targetTouches[0].clientX;var l=V.targetTouches[0].clientY}else V.clientX!==void 0&&(y=V.clientX,l=V.clientY);return y!==void 0&&l!==void 0&&(V=y-J.left,J=l-J.top,O=O.api.getPlayerSize(),J>=O.height-40&&V>=O.width-40)?!0:!1}; sQH=function(O,V){O.xp.gM();if(O.ot&&O.YX)O.YX=!1;else if(!O.api.Y().LD&&!O.jM()){var J=O.api.getPlayerStateObject();g.R(J,2)&&g.uJ(O.api)||O.eC(J);V&&Iup(O,V)?YQ7(O):!O.api.Y().Ks||J.isCued()||g.R(J,1024)?O.Gf():O.rK.isActive()?(O.E8(),O.rK.stop()):O.rK.start()}}; auV=function(O,V){var J;if((J=O.api.getVideoData())==null?0:J.mutedAutoplay){var y,l;if((y=V.target)==null?0:(l=y.className)==null?0:l.includes("ytp-info-panel"))return!1}return g.xo(V)&&O.api.isMutedByMutedAutoplay()?(O.api.unMute(),O.api.getPresentingPlayerType()===2&&O.api.playVideo(),V=O.api.getPlayerStateObject(),!g.R(V,4)||g.R(V,8)||g.R(V,2)||O.Gf(),!0):!1}; YQ7=function(O){if(O.api.Y().Ks&&O.api.getPresentingPlayerType()!==3)try{O.api.toggleFullscreen().catch(function(V){O.GV(V)}),O.api.L("web_player_fullscreen_double_click_ve")&&O.api.logClick(O.api.tv().element)}catch(V){O.GV(V)}}; btd=function(O,V,J){O.api.isFullscreen()?J<1-V&&O.api.toggleFullscreen():J>1+V&&O.api.toggleFullscreen()}; cpn=function(O){var V=G8()&&gr()>=67&&!O.api.Y().S;O=O.api.Y().disableOrganicUi;return!g.Qd("tizen")&&!AT&&!V&&!O}; g.iZ=function(O){g.r.call(this,{X:"div",J:[{X:"div",C:"ytp-bezel-text-wrapper",J:[{X:"div",C:"ytp-bezel-text",Rl:"{{title}}"}]},{X:"div",C:"ytp-bezel",N:{role:"status","aria-label":"{{label}}"},J:[{X:"div",C:"ytp-bezel-icon",Rl:"{{icon}}"}]}]});this.G=O;this.j=new g.t_(this.show,10,this);O=this.G.L("delhi_modern_web_player")?1E3:500;this.K=new g.t_(this.hide,O,this);g.t(this,this.j);g.t(this,this.K);this.hide()}; Bi=function(O,V,J){if(V<=0){J=ee();V="muted";var y=0}else J=J?{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,N:{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"}}]}:{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,N:{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"}}]},y=Math.floor(V),V=y+"volume";Rl(O,J,V,y+"%")}; pVH=function(O,V){V=V?{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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"}}]}:DzU();var J=O.G.getPlaybackRate(),y=g.kv("Speed is $RATE",{RATE:String(J)});Rl(O,V,y,J+"x")}; fuY=function(O,V){V=V?"Subtitles/closed captions on":"Subtitles/closed captions off";Rl(O,BlU(O.G),V)}; Rl=function(O,V,J,y){y=y===void 0?"":y;O.updateValue("label",J===void 0?"":J);O.updateValue("icon",V);g.r7(O.K);O.j.start();O.updateValue("title",y);g.yf(O.element,"ytp-bezel-text-hide",!y)}; hEd=function(O,V){g.r.call(this,{X:"button",Fj:["ytp-button","ytp-cards-button"],N:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.R2(O.Y()))},J:[{X:"span",C:"ytp-cards-button-icon-default",J:[{X:"div",C:"ytp-cards-button-icon",J:[O.Y().L("player_new_info_card_format")?Vdn():{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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"}}]}]}, {X:"div",C:"ytp-cards-button-title",Rl:"Info"}]},{X:"span",C:"ytp-cards-button-icon-shopping",J:[{X:"div",C:"ytp-cards-button-icon",J:[{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",C:"ytp-svg-shadow",N:{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"}},{X:"path",C:"ytp-svg-fill",N:{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"}},{X:"path",C:"ytp-svg-shadow-fill",N:{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"}}]}]},{X:"div", C:"ytp-cards-button-title",Rl:"Shopping"}]}]});this.G=O;this.j=V;this.K=null;this.fade=new g.AV(this,250,!0,100);g.t(this,this.fade);g.yf(this.j,"ytp-show-cards-title",g.R2(O.Y()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.TY(!0)}; o5o=function(O,V){g.r.call(this,{X:"div",C:"ytp-cards-teaser",J:[{X:"div",C:"ytp-cards-teaser-box"},{X:"div",C:"ytp-cards-teaser-text",J:O.Y().L("player_new_info_card_format")?[{X:"button",C:"ytp-cards-teaser-info-icon",N:{"aria-label":"Show cards","aria-haspopup":"true"},J:[Vdn()]},{X:"img",C:"ytp-cards-teaser-channel-avatar",N:{alt:"","aria-hidden":"true"}},{X:"span",C:"ytp-cards-teaser-label",Rl:"{{text}}"},{X:"button",C:"ytp-cards-teaser-close-button",N:{"aria-label":"Close"},J:[g.je()]}]:[{X:"span", C:"ytp-cards-teaser-label",Rl:"{{text}}"}]}]});var J=this;this.G=O;this.yu=V;this.fade=new g.AV(this,250,!1,250);this.K=null;this.V=new g.t_(this.RgB,300,this);this.W=new g.t_(this.mGE,2E3,this);this.D=[];this.U=null;this.S=new g.t_(function(){J.element.style.margin="0"},250); this.onClickCommand=this.j=null;g.t(this,this.fade);g.t(this,this.V);g.t(this,this.W);g.t(this,this.S);O.Y().L("player_new_info_card_format")?(g.D0(O.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.DN("ytp-cards-teaser-close-button"),"click",this.rp),this.Z(this.DN("ytp-cards-teaser-info-icon"),"click",this.q6),this.Z(this.DN("ytp-cards-teaser-label"),"click",this.q6)):this.listen("click",this.q6);this.Z(V.element,"mouseover",this.U4);this.Z(V.element,"mouseout",this.Rx);this.Z(O,"cardsteasershow", this.a_z);this.Z(O,"cardsteaserhide",this.x8);this.Z(O,"cardstatechange",this.Xt);this.Z(O,"presentingplayerstatechange",this.Xt);this.Z(O,"appresize",this.Sb);this.Z(O,"onShowControls",this.Sb);this.Z(O,"onHideControls",this.ag);this.listen("mouseenter",this.FH)}; v5l=function(O){g.r.call(this,{X:"button",Fj:[Pi.BUTTON,Pi.TITLE_NOTIFICATIONS],N:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},J:[{X:"div",C:Pi.TITLE_NOTIFICATIONS_ON,N:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},J:[g.$vU()]},{X:"div",C:Pi.TITLE_NOTIFICATIONS_OFF,N:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},J:[{X:"svg",N:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{X:"path",N:{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=O;this.K=!1;O.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; wVh=function(O,V){O.K=V;O.element.classList.toggle(Pi.NOTIFICATIONS_ENABLED,O.K);var J=O.api.getVideoData();J?(V=V?J.xF:J.L1)?(O=O.api.a5())?pU(O,V):g.sk(Error("No innertube service available when updating notification preferences.")):g.sk(Error("No update preferences command available.")):g.sk(Error("No video data when updating notification preferences."))}; LiV=function(O,V,J){var y=y===void 0?800:y;var l=l===void 0?600:l;var m=document.location.protocol;O=U_X(m+"//"+O+"/signin?context=popup","feature",V,"next",m+"//"+location.hostname+"/post_login");Mjh(O,J,y,l)}; Mjh=function(O,V,J,y){J=J===void 0?800:J;y=y===void 0?600:y;if(O=g.pa(window,O,"loginPopup","width="+J+",height="+y+",resizable=yes,scrollbars=yes"))RUr(function(){V()}),O.moveTo((screen.width-J)/2,(screen.height-y)/2)}; g.kn=function(O,V,J,y,l,m,H,F,N,x,W,U){O=O.charAt(0)+O.substring(1).toLowerCase();J=J.charAt(0)+J.substring(1).toLowerCase();if(V==="0"||V==="-1")V=null;if(y==="0"||y==="-1")y=null;var Z=W.Y(),z=Z.userDisplayName&&g.Oj(Z);g.r.call(this,{X:"div",Fj:["ytp-button","ytp-sb"],J:[{X:"div",C:"ytp-sb-subscribe",N:z?{title:W.Y().L("player_tooltip_data_title_killswitch")?g.kv("Subscribe as $USER_NAME",{USER_NAME:Z.userDisplayName}):"","data-tooltip-title":g.kv("Subscribe as $USER_NAME",{USER_NAME:Z.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":Y$(Z),"data-tooltip-opaque":String(g.R2(Z)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},J:[{X:"div",C:"ytp-sb-text",J:[{X:"div",C:"ytp-sb-icon"},O]},V?{X:"div",C:"ytp-sb-count",Rl:V}:""]},{X:"div",C:"ytp-sb-unsubscribe",N:z?{title:W.L("player_tooltip_data_title_killswitch")?g.kv("Subscribed as $USER_NAME",{USER_NAME:Z.userDisplayName}):"","data-tooltip-title":g.kv("Subscribed as $USER_NAME",{USER_NAME:Z.userDisplayName}), "aria-label":"Unsubscribe to channel","data-tooltip-image":Y$(Z),"data-tooltip-opaque":String(g.R2(Z)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},J:[{X:"div",C:"ytp-sb-text",J:[{X:"div",C:"ytp-sb-icon"},J]},y?{X:"div",C:"ytp-sb-count",Rl:y}:""]}],N:{"aria-live":"polite"}});var c=this;this.channelId=H;this.G=W;this.U=U;var Y=this.DN("ytp-sb-subscribe"),b=this.DN("ytp-sb-unsubscribe");m&&g.D0(this.element,"ytp-sb-classic");if(l){F?this.K():this.j();var M=function(){if(Z.O5){var L= c.channelId;if(N||x){var X={c:L};var u;g.hh.isInitialized()&&(u=opV(X));X=u||"";if(u=W.getVideoData())if(u=u.subscribeCommand){var G=W.a5();G?(pU(G,u,{botguardResponse:X,feature:N}),W.MX("SUBSCRIBE",L)):g.sk(Error("No innertube service available when updating subscriptions."))}else g.sk(Error("No subscribe command in videoData."));else g.sk(Error("No video data available when updating subscription."))}b.focus();b.removeAttribute("aria-hidden");Y.setAttribute("aria-hidden","true")}else LiV(g.Fi(c.G.Y()), "sb_button",c.D)},w=function(){var L=c.channelId; if(N||x){var X=W.getVideoData();pU(W.a5(),X.unsubscribeCommand,{feature:N});W.MX("UNSUBSCRIBE",L)}Y.focus();Y.removeAttribute("aria-hidden");b.setAttribute("aria-hidden","true")}; this.Z(Y,"click",M);this.Z(b,"click",w);this.Z(Y,"keypress",function(L){L.keyCode===13&&M(L)}); this.Z(b,"keypress",function(L){L.keyCode===13&&w(L)}); this.Z(W,"SUBSCRIBE",this.K);this.Z(W,"UNSUBSCRIBE",this.j);this.U&&z&&(XqY(W),Gc(W,Y,this),Gc(W,b,this))}else g.D0(Y,"ytp-sb-disabled"),g.D0(b,"ytp-sb-disabled")}; E5V=function(O){g.r.call(this,{X:"div",C:"ytp-title-channel",J:[{X:"div",C:"ytp-title-beacon"},{X:"a",C:"ytp-title-channel-logo",N:{href:"{{channelLink}}",target:O.Y().qX,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{X:"div",C:"ytp-title-expanded-overlay",N:{"aria-hidden":"{{flyoutUnfocusable}}"},J:[{X:"div",C:"ytp-title-expanded-heading",J:[{X:"div",C:"ytp-title-expanded-title",J:[{X:"a",Rl:"{{expandedTitle}}",N:{href:"{{channelTitleLink}}",target:O.Y().qX,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{X:"div",C:"ytp-title-expanded-subtitle",Rl:"{{expandedSubtitle}}",N:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var V=this;this.api=O;this.channel=this.DN("ytp-title-channel");this.j=this.DN("ytp-title-channel-logo");this.channelName=this.DN("ytp-title-expanded-title");this.W=this.DN("ytp-title-expanded-overlay");this.U=this.K=this.subscribeButton=null;this.D=!1;O.createClientVe(this.j,this,36925);O.createClientVe(this.channelName,this, 37220);g.R2(this.api.Y())&&n57(this);this.Z(O,"videodatachange",this.Qz);this.Z(O,"videoplayerreset",this.Qz);this.Z(this.channelName,"click",function(J){V.api.logClick(V.channelName);g.pa(window,XVU(V));J.preventDefault()}); this.Z(this.j,"click",this.idD);this.Qz()}; dp7=function(O){if(!O.api.Y().yc){var V=O.api.getVideoData(),J=new g.kn("Subscribe",null,"Subscribed",null,!0,!1,V.iL,V.subscribed,"channel_avatar",null,O.api,!0);O.api.createServerVe(J.element,O);var y;O.api.setTrackingParams(J.element,((y=V.subscribeButtonRenderer)==null?void 0:y.trackingParams)||null);O.Z(J.element,"click",function(){O.api.logClick(J.element)}); O.subscribeButton=J;g.t(O,O.subscribeButton);O.subscribeButton.rW(O.W);O.subscribeButton.hide();var l=new v5l(O.api);O.K=l;g.t(O,l);l.rW(O.W);l.hide();O.Z(O.api,"SUBSCRIBE",function(){V.bl&&(l.show(),O.api.logVisibility(l.element,!0))}); O.Z(O.api,"UNSUBSCRIBE",function(){V.bl&&(l.hide(),O.api.logVisibility(l.element,!1),wVh(l,!1))})}}; n57=function(O){var V=O.api.Y();dp7(O);O.updateValue("flyoutUnfocusable","true");O.updateValue("channelTitleFocusable","-1");O.updateValue("shouldHideExpandedTitleForA11y","true");O.updateValue("shouldHideExpandedSubtitleForA11y","true");V.j||V.yz||(O.Z(O.channel,"mouseenter",O.Ao),O.Z(O.channel,"mouseleave",O.I7),O.Z(O.channel,"focusin",O.Ao),O.Z(O.channel,"focusout",function(J){O.channel.contains(J.relatedTarget)||O.I7()})); O.U=new g.t_(function(){O.isExpanded()&&(O.api.logVisibility(O.channelName,!1),O.subscribeButton&&(O.subscribeButton.hide(),O.api.logVisibility(O.subscribeButton.element,!1)),O.K&&(O.K.hide(),O.api.logVisibility(O.K.element,!1)),O.channel.classList.remove("ytp-title-expanded"),O.channel.classList.add("ytp-title-show-collapsed"))},500); g.t(O,O.U);O.Z(O.channel,g51,function(){qQ7(O)}); O.Z(O.api,"onHideControls",O.t5);O.Z(O.api,"appresize",O.t5);O.Z(O.api,"fullscreentoggled",O.t5)}; qQ7=function(O){O.channel.classList.remove("ytp-title-show-collapsed");O.channel.classList.remove("ytp-title-show-expanded")}; QQr=function(O){var V=O.api.getPlayerSize();return g.R2(O.api.Y())&&V.width>=524}; XVU=function(O){var V=O.api.Y(),J=O.api.getVideoData(),y=g.ax(V)+J.LD;g.sJ(J)&&(y="https://music.youtube.com"+J.LD);if(!g.R2(V))return y;V={};g.fj(O.api,"addEmbedsConversionTrackingParams",[V]);return g.pp(y,V)}; Sh=function(O){var V=g.Ny({"aria-haspopup":"true"});g.Ft.call(this,V,O);this.listen("keydown",this.I2)}; D8=function(O,V){O.element.setAttribute("aria-haspopup",String(V))}; G3p=function(O,V){g.r.call(this,{X:"div",C:"ytp-user-info-panel",N:{"aria-label":"User info"},J:O.Y().O5?[{X:"div",C:"ytp-user-info-panel-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-user-info-panel-content",J:[{X:"div",C:"ytp-user-info-panel-info",N:{tabIndex:"{{userInfoFocusable}}",role:"text"},Rl:"{{watchingAsUsername}}"},{X:"div",C:"ytp-user-info-panel-info",N:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Rl:"{{watchingAsEmail}}"}]}]:[{X:"div",C:"ytp-user-info-panel-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-user-info-panel-content", J:[{X:"div",J:[{X:"text",N:{tabIndex:"{{userInfoFocusable}}"},Rl:"Signed out"}]},{X:"div",C:"ytp-user-info-panel-login",J:[{X:"a",N:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Rl:O.Y().yc?"":"Sign in on YouTube"}]}]}]});this.cE=O;this.sourceElement=V;O.Y().O5||O.Y().yc||this.Z(this.DN("ytp-user-info-panel-login"),"click",this.kA);this.closeButton=new g.r({X:"button",Fj:["ytp-collapse","ytp-button"],N:{title:"Close"},J:[g.Ts()]});this.closeButton.rW(this.element);g.t(this,this.closeButton);this.Z(window, "blur",this.hide);this.Z(document,"click",this.iI);this.Qz()}; rpn=function(O,V,J){g.TW.call(this,O);var y=this;this.mp=V;this.GG=J;this.getVideoUrl=new Sh(6);this.Wv=new Sh(5);this.lQ=new Sh(4);this.qI=new Sh(3);this.L8=new g.Ft(g.Ny({href:"{{href}}",target:this.G.Y().qX},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.Ft(g.Ny(),1,"Stats for nerds");this.OU=new g.OF({X:"div",Fj:["ytp-copytext","ytp-no-contextmenu"],N:{draggable:"false",tabindex:"1"},Rl:"{{text}}"});this.AJ=new sX(this.G,this.OU);this.SL=this.zC=null;g.R2(this.G.Y())&&(this.closeButton= new g.r({X:"button",Fj:["ytp-collapse","ytp-button"],N:{title:"Close"},J:[g.Ts()]}),g.t(this,this.closeButton),this.closeButton.rW(this.element),this.closeButton.listen("click",this.Ba,this));g.R2(this.G.Y())&&(this.d8=new g.Ft(g.Ny(),10,"Account"),g.t(this,this.d8),this.sR(this.d8,!0),this.d8.listen("click",this.EpK,this),O.createClientVe(this.d8.element,this.d8,137682));this.G.Y().qq&&(this.h_=new I3("Loop",9),g.t(this,this.h_),this.sR(this.h_,!0),this.h_.listen("click",this.hhL,this),O.createClientVe(this.h_.element, this.h_,28661));this.G.L("web_player_miniplayer_in_context_menu")&&(this.bY=new g.Ft(g.Ny(),8,"Miniplayer"),g.t(this,this.bY),this.sR(this.bY,!0),this.bY.listen("click",this.lDw,this),O.createClientVe(this.bY.element,this.bY,62946));this.G.L("web_watch_pip_context_menu_button")&&this.G.Y().showMiniplayerButton&&(this.nQ=new g.Ft(g.Ny(),7,"Picture-in-picture"),g.t(this,this.nQ),this.sR(this.nQ,!0),this.nQ.listen("click",this.Ovz,this),O.createClientVe(this.nQ.element,this.nQ,194442));g.t(this,this.getVideoUrl); this.sR(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.TXK,this);O.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.t(this,this.Wv);this.sR(this.Wv,!0);this.Wv.listen("click",this.JCj,this);O.createClientVe(this.Wv.element,this.Wv,28660);g.t(this,this.lQ);this.sR(this.lQ,!0);this.lQ.listen("click",this.NXj,this);O.createClientVe(this.lQ.element,this.lQ,28658);g.t(this,this.qI);this.sR(this.qI,!0);this.qI.listen("click",this.M7D,this);g.t(this,this.L8);this.sR(this.L8,!0); this.L8.listen("click",this.dfi,this);g.t(this,this.showVideoInfo);this.sR(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.npi,this);g.t(this,this.OU);this.OU.listen("click",this.grl,this);g.t(this,this.AJ);Ki7()&&(this.zC=new g.r({X:"textarea",C:"ytp-html5-clipboard",N:{readonly:"",tabindex:"-1"}}),g.t(this,this.zC),this.zC.rW(this.element));var l;(l=this.d8)==null||l.setIcon(F2h());var m;(m=this.h_)==null||m.setIcon(UvY());var H;(H=this.bY)==null||H.setIcon(this.G.L("delhi_modern_web_player_icons")? lih():UF());var F;(F=this.nQ)==null||F.setIcon(UF());this.qI.setIcon({X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{"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.L8.setIcon(Fa());this.showVideoInfo.setIcon(Ozr());this.Z(O,"onLoopChange",this.onLoopChange);this.Z(O,"videodatachange",this.onVideoDataChange);this.Z(O,"fullscreentoggled",function(){tjV(y)}); this.Z(O,"minimized",function(){tjV(y);var N;(N=y.nQ)==null||N.PY(!y.G.isMinimized()&&y.G.Y().showMiniplayerButton)}); unV(this);Ap7(this,this.G.getVideoData())}; OQ=function(O,V){var J=!1;if(O.zC){var y=O.zC.element;y.value=V;y.select();try{J=document.execCommand("copy")}catch(l){}}J?O.mp.x8():(O.OU.setContent(V,"text"),g.Yi(O.mp,O.AJ),h9(O.OU.element),O.zC&&(O.zC=null,unV(O)));return J}; Ki7=function(){var O=document.queryCommandSupported&&document.queryCommandSupported("copy");Yzl("Chromium")>=43&&(O=!0);Yzl("Firefox")<=40&&(O=!1);return O}; tjV=function(O){var V;(V=O.bY)==null||V.PY(!O.G.isFullscreen()&&!O.G.isMinimized()&&O.G.getPresentingPlayerType()!==2&&O.G.Y().showMiniplayerButton)}; Ap7=function(O,V){var J=O.G.Y(),y=O.G.getPresentingPlayerType()===2,l=!y||V.isListed;l=!J.lw&&!!V.videoId&&l;J.playerStyle!=="play"?J="https://support.google.com/youtube/?p=report_playback":(J={contact_type:"playbackissue",html5:1,ei:V.eventId,v:V.videoId,p:"movies_playback"},V.j&&(J.fmt=V.j.itag),V.clientPlaybackNonce&&(J.cpn=V.clientPlaybackNonce),V.partnerId&&(J.partnerid=V.partnerId),J=g.pp("//support.google.com/googleplay/",J));O.lQ.PY(l&&V.allowEmbed);O.getVideoUrl.PY(l);O.Wv.PY(l&&!V.isLivePlayback); O.L8.setContent(J,"href");var m;(m=O.h_)==null||m.PY(!V.isLivePlayback&&!y);tjV(O);var H;(H=O.d8)==null||H.PY(!y)}; unV=function(O){var V=!!O.zC;g.Cc(O.qI,V?"Copy debug info":"Get debug info");D8(O.qI,!V);g.Cc(O.lQ,V?"Copy embed code":"Get embed code");D8(O.lQ,!V);g.Cc(O.getVideoUrl,V?"Copy video URL":"Get video URL");D8(O.getVideoUrl,!V);g.Cc(O.Wv,V?"Copy video URL at current time":"Get video URL at current time");D8(O.Wv,!V);O.lQ.setIcon(V?k8l():null);O.getVideoUrl.setIcon(V?No():null);O.Wv.setIcon(V?No():null)}; itX=function(O){return g.R2(O.G.Y())?O.d8:O.h_}; Bpn=function(O,V){g.Ig.call(this,O);this.GG=V;this.j=new g.jX(this);this.S=new g.t_(this.pCL,1E3,this);this.T=this.Ld=null;g.t(this,this.j);g.t(this,this.S);V=this.G.Y();O.createClientVe(this.element,this,28656);g.D0(this.element,"ytp-contextmenu");this.G.Y().experiments.Jv("delhi_modern_web_player")&&g.ZG(V)&&g.D0(this.element,"ytp-delhi-modern-contextmenu");REr(this);this.hide()}; REr=function(O){g.fz(O.j);var V=O.G.Y();V.playerStyle==="gvn"||V.j||V.yz||(V=O.G.tv(),O.j.Z(V,"contextmenu",O.GKD),O.j.Z(V,"touchstart",O.onTouchStart,null,!0),O.j.Z(V,"touchmove",O.Lo,null,!0),O.j.Z(V,"touchend",O.Lo,null,!0))}; Pup=function(O){O.G.isFullscreen()?g.kD(O.G,O.element,10):O.rW($G(O).body)}; Vq=function(O,V,J){J=J===void 0?240:J;g.r.call(this,{X:"button",Fj:["ytp-button","ytp-copylink-button"],N:{title:O.L("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.R2(O.Y()))},J:[{X:"div",C:"ytp-copylink-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-copylink-title",Rl:"Copy link",N:{"aria-hidden":"true"}}]});this.api=O;this.K=V;this.j=J;this.visible=!1;this.tooltip=this.K.Sy();V=O.Y();this.tooltip.element.setAttribute("aria-live", "polite");g.yf(this.element,"ytp-show-copylink-title",g.R2(V));O.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.Z(O,"videodatachange",this.Qz);this.Z(O,"videoplayerreset",this.Qz);this.Z(O,"appresize",this.Qz);this.Qz();this.addOnDisposeCallback(g.Q_(this.tooltip,this.element))}; k35=function(O){var V=O.api.Y(),J=O.api.getVideoData(),y=O.api.tv().getPlayerSize().width;V=V.U;return!!J.videoId&&y>=O.j&&J.lM&&!J.tC&&!O.api.isEmbedsShortsMode()&&!V}; SQH=function(O){O.updateValue("icon",mw());if(O.api.Y().j)O.tooltip.pZ(O.element,"Link copied to clipboard");else{O.updateValue("title-attr","Link copied to clipboard");O.updateValue("tooltip-title","Link copied to clipboard");O.tooltip.s7();O.tooltip.pZ(O.element);var V=O.listen("mouseleave",function(){O.oX(V);O.Qz();O.tooltip.CB()})}}; Dpr=function(O,V){return g.Q(function(J){if(J.j==1)return J.W(2),J.K(navigator.clipboard.writeText(V),4);if(J.j!=2)return J.return(!0);J.D();var y=J.return,l=!1,m=g.I1("TEXTAREA");m.value=V;m.setAttribute("readonly","");var H=O.api.getRootNode();H.appendChild(m);if(EN){var F=window.getSelection();F.removeAllRanges();var N=document.createRange();N.selectNodeContents(m);F.addRange(N);m.setSelectionRange(0,V.length)}else m.select();try{l=document.execCommand("copy")}catch(x){}H.removeChild(m);return y.call(J, l)})}; OBH=function(O){g.r.call(this,{X:"div",C:"ytp-doubletap-ui-legacy",J:[{X:"div",C:"ytp-doubletap-fast-forward-ve"},{X:"div",C:"ytp-doubletap-rewind-ve"},{X:"div",C:"ytp-doubletap-static-circle",J:[{X:"div",C:"ytp-doubletap-ripple"}]},{X:"div",C:"ytp-doubletap-overlay-a11y"},{X:"div",C:"ytp-doubletap-seek-info-container",J:[{X:"div",C:"ytp-doubletap-arrows-container",J:[{X:"span",C:"ytp-doubletap-base-arrow"},{X:"span",C:"ytp-doubletap-base-arrow"},{X:"span",C:"ytp-doubletap-base-arrow"}]},{X:"div", C:"ytp-doubletap-tooltip",J:[{X:"div",C:"ytp-seek-icon-text-container",J:[{X:"div",C:"ytp-seek-icon",Rl:"{{seekIcon}}"},{X:"div",C:"ytp-chapter-seek-text-legacy",Rl:"{{seekText}}"}]},{X:"div",C:"ytp-doubletap-tooltip-label",Rl:"{{seekTime}}"}]}]}]});this.G=O;this.D=new g.t_(this.show,10,this);this.j=new g.t_(this.hide,700,this);this.V=this.U=0;this.KD=this.W=!1;this.K=this.DN("ytp-doubletap-static-circle");g.t(this,this.D);g.t(this,this.j);this.hide();this.S=this.DN("ytp-doubletap-fast-forward-ve"); this.T=this.DN("ytp-doubletap-rewind-ve");this.G.createClientVe(this.S,this,28240);this.G.createClientVe(this.T,this,28239);this.G.logVisibility(this.S,!0);this.G.logVisibility(this.T,!0);this.W=O.L("web_show_cumulative_seek_time");this.KD=O.L("web_center_static_circles")}; V_Y=function(O,V){V=g.kv("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:V.toString()});O.updateValue("seekTime",V)}; yx1=function(O){c9.call(this,O,!1,!0);this.O5=[];this.zL=[];this.element.setAttribute("data-overlay-order","9");Jxr(this,this.G.getVideoData());this.S=!0;this.badge.element.classList.add("ytp-featured-product");this.dW=new g.r({X:"div",C:"ytp-featured-product-open-in-new"});g.t(this,this.dW);this.countdownTimer=new g.r({X:"text",C:"ytp-featured-product-countdown",Rl:"{{content}}"});this.countdownTimer.hide();g.t(this,this.countdownTimer);this.U=new g.r({X:"div",C:"ytp-featured-product-trending",J:[{X:"div", C:"ytp-featured-product-trending-icon"},{X:"text",C:"ytp-featured-product-trending-text",Rl:"{{trendingOffer}}"}]});this.U.hide();g.t(this,this.U);this.overflowButton=new g.r({X:"button",Fj:["ytp-featured-product-overflow-icon","ytp-button"],N:{"aria-haspopup":"true"}});this.overflowButton.hide();g.t(this,this.overflowButton);this.V=new g.r({X:"text",C:"ytp-featured-product-exclusive-countdown",Rl:"{{content}}",N:{id:"exclusiveCountdown","aria-hidden":"true"}});this.V.hide();g.t(this,this.V);this.W= new g.r({X:"div",C:"ytp-featured-product-exclusive-container",N:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},J:[{X:"div",C:"ytp-featured-product-exclusive-badge-container",J:[{X:"div",C:"ytp-featured-product-exclusive-badge",J:[{X:"text",C:"ytp-featured-product-exclusive-badge-text",Rl:"{{exclusive}}",N:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.V]});this.W.hide();g.t(this,this.W);this.banner=new g.r({X:"a",C:"ytp-featured-product-container",J:[{X:"div",C:"ytp-featured-product-thumbnail", J:[{X:"img",N:{src:"{{thumbnail}}"}},this.dW]},{X:"div",C:"ytp-featured-product-details",J:[{X:"text",C:"ytp-featured-product-title",Rl:"{{title}}"},this.G.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",C:"ytp-featured-product-price-container",N:{"aria-label":"{{priceA11yText}}"},J:[{X:"text",C:"ytp-featured-product-price-when-promotion-text-enabled",Rl:"{{price}}",N:{"aria-hidden":"true"}},{X:"text",C:"ytp-featured-product-promotion-text",Rl:"{{promotionText}}", N:{"aria-hidden":"true"}}]}:{X:"div",N:{"aria-label":"{{priceA11yText}}"},J:[{X:"text",C:"ytp-featured-product-price",Rl:"{{price}}",N:{"aria-hidden":"true"}},{X:"text",C:"ytp-featured-product-sales-original-price",Rl:"{{salesOriginalPrice}}",N:{"aria-hidden":"true"}},{X:"text",C:"ytp-featured-product-price-drop-reference-price",Rl:"{{priceDropReferencePrice}}",N:{"aria-hidden":"true"}}]},this.G.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",C:"ytp-featured-product-when-promotion-text-enabled", J:[{X:"text",C:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Rl:"{{affiliateDisclaimer}}"},this.U,{X:"text",C:"ytp-featured-product-vendor-when-promotion-text-enabled",Rl:"{{vendor}}"}]}:{X:"div",J:[{X:"text",C:"ytp-featured-product-affiliate-disclaimer",Rl:"{{affiliateDisclaimer}}"},this.G.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.U,{X:"text",C:"ytp-featured-product-vendor",Rl:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.t(this,this.banner);this.banner.rW(this.D.element);this.Z(this.G,g.Q9("featured_product"),this.LJK);this.Z(this.G,g.Gd("featured_product"),this.GY);this.Z(this.G,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.oA);this.Z(O,"featuredproductdismissed",this.Q8)}; lY1=function(O){var V,J;O=(V=O.K)==null?void 0:(J=V.bannerData)==null?void 0:J.itemData;var y,l,m;return(O==null||!O.affiliateDisclaimer)&&(O==null?0:(y=O.exclusivesData)==null?0:y.exclusiveOfferLabelText)&&(O==null?0:(l=O.exclusivesData)==null?0:l.expirationTimestampMs)&&(O==null?0:(m=O.exclusivesData)==null?0:m.exclusiveOfferCountdownText)?!0:!1}; $QX=function(O){var V,J,y,l,m=(V=O.K)==null?void 0:(J=V.bannerData)==null?void 0:(y=J.itemData)==null?void 0:(l=y.exclusivesData)==null?void 0:l.expirationTimestampMs;V=(Number(m)-Date.now())/1E3;if(V>0){if(V<604800){var H,F,N,x;J=(H=O.K)==null?void 0:(F=H.bannerData)==null?void 0:(N=F.itemData)==null?void 0:(x=N.exclusivesData)==null?void 0:x.exclusiveOfferCountdownText;if(J!==void 0)for(H=Date.now(),F=g.n(J),N=F.next();!N.done;N=F.next())if(N=N.value,N!==void 0&&N.text!==void 0&&(x=Number(N.textDisplayStartTimestampMs), !isNaN(x)&&H>=x)){N.insertCountdown?(V=N.text.replace(/\$0/,String(Ni({seconds:V}))),O.V.setContent(V)):O.V.setContent(N.text);O.V.show();break}}var W,U,Z,z;O.W.update({exclusive:(W=O.K)==null?void 0:(U=W.bannerData)==null?void 0:(Z=U.itemData)==null?void 0:(z=Z.exclusivesData)==null?void 0:z.exclusiveOfferLabelText});O.W.show();Jp(O);var c;(c=O.WB)==null||c.start()}else mQd(O)}; mQd=function(O){var V;(V=O.WB)==null||V.stop();O.V.hide();O.W.hide();yq(O)}; HBo=function(O){var V,J,y=(V=O.K)==null?void 0:(J=V.bannerData)==null?void 0:J.itemData;return O.G.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(y==null||!y.priceReplacementText)&&(y==null?0:y.promotionText)?y==null?void 0:y.promotionText.content:null}; jsh=function(O){var V,J,y=(V=O.K)==null?void 0:(J=V.bannerData)==null?void 0:J.itemData,l,m;if(!(y!=null&&y.priceReplacementText||O.G.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(y==null?0:(l=y.dealsData)==null?0:(m=l.sales)==null?0:m.originalPrice)){var H,F;return y==null?void 0:(H=y.dealsData)==null?void 0:(F=H.sales)==null?void 0:F.originalPrice}return null}; CKV=function(O){var V,J,y=(V=O.K)==null?void 0:(J=V.bannerData)==null?void 0:J.itemData,l,m,H,F;if(!((y==null?0:y.priceReplacementText)||O.G.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(y==null?0:(l=y.dealsData)==null?0:(m=l.sales)==null?0:m.originalPrice))&&(y==null?0:(H=y.dealsData)==null?0:(F=H.priceDrop)==null?0:F.referencePrice)){var N,x;return y==null?void 0:(N=y.dealsData)==null?void 0:(x=N.priceDrop)==null?void 0:x.referencePrice}return null}; FGX=function(O){var V,J,y=(V=O.K)==null?void 0:(J=V.bannerData)==null?void 0:J.itemData;if(y==null?0:y.priceReplacementText)return y==null?void 0:y.priceReplacementText;if((y==null?0:y.promotionText)&&O.G.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var l;return(y==null?void 0:y.price)+" "+(y==null?void 0:(l=y.promotionText)==null?void 0:l.content)}var m,H;if(y==null?0:(m=y.dealsData)==null?0:(H=m.sales)==null?0:H.originalPrice){var F,N;return y==null?void 0:(F=y.dealsData)== null?void 0:(N=F.sales)==null?void 0:N.salesPriceAccessibilityLabel}var x,W;if(y==null?0:(x=y.dealsData)==null?0:(W=x.priceDrop)==null?0:W.referencePrice){var U,Z;return(y==null?void 0:y.price)+" "+(y==null?void 0:(U=y.dealsData)==null?void 0:(Z=U.priceDrop)==null?void 0:Z.referencePrice)}return y==null?void 0:y.price}; NyU=function(O){if(O.G.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var V,J,y;return O.U.vY?null:(V=O.K)==null?void 0:(J=V.bannerData)==null?void 0:(y=J.itemData)==null?void 0:y.vendorName}var l,m,H,F,N,x;return O.U.vY||O.W.vY||((l=O.K)==null?0:(m=l.bannerData)==null?0:(H=m.itemData)==null?0:H.affiliateDisclaimer)?null:(F=O.K)==null?void 0:(N=F.bannerData)==null?void 0:(x=N.itemData)==null?void 0:x.vendorName}; WGr=function(O,V){lu(O);if(V){var J=g.aT.getState().entities;J=Ce(J,"featuredProductsEntity",V);if(J!=null&&J.productsData){V=[];J=g.n(J.productsData);for(var y=J.next();!y.done;y=J.next()){y=y.value;var l=void 0;if((l=y)!=null&&l.identifier&&y.featuredSegments){O.O5.push(y);var m=void 0;l=g.n((m=y)==null?void 0:m.featuredSegments);for(m=l.next();!m.done;m=l.next()){var H=m.value;m=xQo(H.startTimeSec);m!==void 0&&(H=xQo(H.endTimeSec),V.push(new g.gz(m*1E3,H===void 0?0x7ffffffffffff:H*1E3,{id:y.identifier, namespace:"featured_product"})))}}}O.G.aG(V)}}}; yq=function(O){if(O.trendingOfferEntityKey){var V=g.aT.getState().entities;if(V=Ce(V,"trendingOfferEntity",O.trendingOfferEntityKey)){var J,y,l;V.encodedSkuId!==((J=O.K)==null?void 0:(y=J.bannerData)==null?void 0:(l=y.itemData)==null?void 0:l.encodedOfferSkuId)?Jp(O):(O.U.update({trendingOffer:V.shortLabel+" \u2022 "+V.countLabel}),O.U.show(),O.banner.update({vendor:NyU(O)}))}else Jp(O)}else Jp(O)}; Jp=function(O){O.U.hide();O.banner.update({vendor:NyU(O)})}; Jxr=function(O,V){!O.G.L("web_enable_shopping_timely_shelf_client")||O.G.L("web_force_featured_product_banner_with_timely_shelf")||!V||V.isLivePlayback||V.isPremiere?O.badge.element.classList.remove("ytp-timely-shelf-present"):O.badge.element.classList.add("ytp-timely-shelf-present")}; lu=function(O){O.O5=[];O.GY();O.G.iO("featured_product")}; UQl=function(O){var V,J,y,l,m=(V=O.K)==null?void 0:(J=V.bannerData)==null?void 0:(y=J.itemData)==null?void 0:(l=y.hiddenProductOptions)==null?void 0:l.dropTimestampMs;V=(Number(m)-Date.now())/1E3;O.countdownTimer.setContent(Ni({seconds:V}));if(V>0){var H;(H=O.yc)==null||H.start()}}; ZB7=function(O){var V;(V=O.yc)==null||V.stop();O.countdownTimer.hide()}; xQo=function(O){if(O!==void 0&&O.trim()!==""&&(O=Math.trunc(Number(O.trim())),!(isNaN(O)||O<0)))return O}; YaV=function(O,V,J){g.r.call(this,{X:"div",Fj:["ytp-info-panel-action-item"],J:[{X:"div",C:"ytp-info-panel-action-item-disclaimer",Rl:"{{disclaimer}}"},{X:"a",Fj:["ytp-info-panel-action-item-button","ytp-button"],N:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},J:[{X:"div",C:"ytp-info-panel-action-item-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-info-panel-action-item-label",Rl:"{{label}}"}]}]});this.G=O;this.j=J;this.disclaimer=this.DN("ytp-info-panel-action-item-disclaimer");this.button= this.DN("ytp-info-panel-action-item-button");this.wN=!1;this.G.createServerVe(this.element,this,!0);this.listen("click",this.onClick);O="";J=g.e(V==null?void 0:V.onTap,ae);var y=g.e(J,g.fI);this.wN=!1;y?(O=y.url||"",O.startsWith("//")&&(O="https:"+O),this.wN=!0,g.e1(this.button,g.sD(O))):(y=g.e(J,zVl))&&!this.j?((O=y.phoneNumbers)&&O.length>0?(O="sms:"+O[0],y.messageText&&(O+="?&body="+encodeURI(y.messageText))):O="",this.wN=!0,g.e1(this.button,g.sD(O,[cxH]))):(J=g.e(J,ssp))&&!this.j&&(O=J.phoneNumber? "tel:"+J.phoneNumber:"",this.wN=!0,g.e1(this.button,g.sD(O,[Tyo])));!O&&(J=g.e(V==null?void 0:V.onTap,ae),y=g.e(J,eVV))&&(this.wN=!0,this.K=J,this.feedbackToken=y.feedbackToken);var l;if(J=(l=V.disclaimerText)==null?void 0:l.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var m,H;this.update({label:(m=V.bodyText)==null?void 0:m.content,icon:IYr((H=V.icon)==null?void 0:H.iconType),disclaimer:J})}else{this.disclaimer.style.display="none";var F,N;this.update({label:(F= V.bodyText)==null?void 0:F.content,icon:IYr((N=V.icon)==null?void 0:N.iconType)})}this.G.setTrackingParams(this.element,V.trackingParams||null);this.wN&&(this.U={externalLinkData:{url:O}})}; IYr=function(O){switch(O){case "OPEN_IN_NEW":return WB();case "NOT_INTERESTED":return{X:"svg",N:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return Fa();default:return WB()}}; aYX=function(O,V){var J=PF();me.call(this,O,{X:"div",C:"ytp-info-panel-detail-skrim",J:[{X:"div",C:"ytp-info-panel-detail",N:{role:"dialog",id:J},J:[{X:"div",C:"ytp-info-panel-detail-header",J:[{X:"div",C:"ytp-info-panel-detail-title",Rl:"{{title}}"},{X:"button",Fj:["ytp-info-panel-detail-close","ytp-button"],N:{"aria-label":"Close"},J:[g.je()]}]},{X:"div",C:"ytp-info-panel-detail-body",Rl:"{{body}}"},{X:"div",C:"ytp-info-panel-detail-items"}]}]},250);var y=this;this.K=V;this.items=this.DN("ytp-info-panel-detail-items"); this.j=new g.jX(this);this.itemData=[];this.U=J;this.Z(this.DN("ytp-info-panel-detail-close"),"click",this.x8);this.Z(this.DN("ytp-info-panel-detail-skrim"),"click",this.x8);this.Z(this.DN("ytp-info-panel-detail"),"click",function(l){l.stopPropagation()}); this.Z(this.G,"infopaneldetaildismissed",function(){y.x8()}); g.t(this,this.j);this.G.createServerVe(this.element,this,!0);this.Z(O,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",O.getVideoData());this.hide()}; bBX=function(O,V){O=g.n(O.itemData);for(var J=O.next();!J.done;J=O.next())J=J.value,J.G.logVisibility(J.element,V)}; hVp=function(O,V){g.r.call(this,{X:"button",C:"ytp-info-panel-preview",N:{"aria-live":"assertive","aria-atomic":"true","aria-owns":V.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.R2(O.Y()))},J:[{X:"div",C:"ytp-info-panel-preview-text",Rl:"{{text}}"},{X:"div",C:"ytp-info-panel-preview-chevron",Rl:"{{chevron}}"}]});var J=this;this.G=O;this.Pf=this.K=this.videoId=null;this.isDismissed=this.U=this.showControls=this.j=!1;this.Z(this.element,"click",function(){O.logClick(J.element);O.jM(); HI(V)}); this.fade=new g.AV(this,250,!1,100);g.t(this,this.fade);this.G.createServerVe(this.element,this,!0);this.Z(O,"videodatachange",this.onVideoDataChange);this.Z(O,"presentingplayerstatechange",this.Vn);this.Z(this.G,"paidcontentoverlayvisibilitychange",this.po);this.Z(this.G,"infopaneldetailvisibilitychange",this.po);var y=O.getVideoData()||{};pz1(y)&&fY1(this,y);this.Z(O,"onShowControls",this.Gp);this.Z(O,"onHideControls",this.kx);this.Z(this.G,"infopaneldetaildismissed",function(){J.isDismissed=!0; J.hide()})}; fY1=function(O,V){if(!V.Zm||!O.G.aW()){var J=V.DC||1E4,y=pz1(V);O.K?V.videoId&&V.videoId!==O.videoId&&(g.r7(O.K),O.videoId=V.videoId,y?(oJV(O,J,V),O.Zg()):(O.x8(),O.K.dispose(),O.K=null)):y&&(V.videoId&&(O.videoId=V.videoId),oJV(O,J,V),O.Zg())}}; pz1=function(O){var V,J,y,l;return!!((V=O.NH)==null?0:(J=V.title)==null?0:J.content)||!!((y=O.NH)==null?0:(l=y.bodyText)==null?0:l.content)}; oJV=function(O,V,J){O.K&&O.K.dispose();O.K=new g.t_(O.SY5,V,O);g.t(O,O.K);var y;V=((y=J.NH)==null?void 0:y.trackingParams)||null;O.G.setTrackingParams(O.element,V);var l;var m,H;if(J==null?0:(m=J.NH)==null?0:(H=m.title)==null?0:H.content){var F;y=(l=J.NH)==null?void 0:(F=l.title)==null?void 0:F.content;var N,x;if((N=J.NH)==null?0:(x=N.bodyText)==null?0:x.content)y+=" \u2022 ";l=y}else l="";var W,U;J=((W=J.NH)==null?void 0:(U=W.bodyText)==null?void 0:U.content)||"";O.update({text:l+J,chevron:g.HB()})}; vJp=function(O,V){O.K&&(g.R(V,8)?(O.j=!0,O.Zg(),O.K.start()):(g.R(V,2)||g.R(V,64))&&O.videoId&&(O.videoId=null))}; mi=function(O){var V=null;try{V=O.toLocaleString("en",{style:"percent"})}catch(J){V=O.toLocaleString(void 0,{style:"percent"})}return V}; $5=function(O,V){var J=0;O=g.n(O);for(var y=O.next();!(y.done||y.value.startTime>V);y=O.next())J++;return J===0?J:J-1}; wz5=function(O,V){for(var J=0,y=g.n(O),l=y.next();!l.done;l=y.next()){l=l.value;if(V=l.timeRangeStartMillis&&V2147483647?"0":String(O)}; jj=function(O,V,J){var y=O.api.getCurrentTime(),l=dQh(O,y);O=dQh(O,y+V);return{startMediaTimeMs:l,endMediaTimeMs:O,seekSource:J}}; gJU=function(O){var V,J=(V=O.api.getVideoData())==null?void 0:V.Yr();return O.api.getPresentingPlayerType(J)!==2}; HV=function(O,V){O.U.F7=V;g.yf(O.api.getRootNode(),"ytp-probably-keyboard-focus",V);g.yf(O.contextMenu.element,"ytp-probably-keyboard-focus",V)}; Fn=function(O,V,J,y){var l=g.Yn(O.api.Fs());if(l&&l.loaded){var m=O.api.getSubtitlesUserSettings();l=void 0;for(var H=0;H0?V[0]:null;var J=g.Up("ytp-chrome-bottom"),y=g.Up("ytp-ad-module");O.U=!(J==null||!J.contains(V));O.V=!(y==null||!y.contains(V));O.S=!(V==null||!V.hasAttribute("data-tooltip-target-fixed"));return V}; RVd=function(O,V,J){if(!O.D){if(V){O.tooltipRenderer=V;V=O.tooltipRenderer.text;var y=!1,l;(V==null?0:(l=V.runs)==null?0:l.length)&&V.runs[0].text&&(O.update({title:V.runs[0].text.toString()}),y=!0);g.CD(O.title,y);V=O.tooltipRenderer.detailsText;l=!1;var m;if((V==null?0:(m=V.runs)==null?0:m.length)&&V.runs[0].text){y=V.runs[0].text.toString();m=y.indexOf("$TARGET_ICON");if(m>-1)if(O.tooltipRenderer.targetId){V=[];y=y.split("$TARGET_ICON");var H=new g.kb({X:"span",C:"ytp-promotooltip-details-icon", J:[rxY[O.tooltipRenderer.targetId]]});g.t(O,H);for(var F=[],N=g.n(y),x=N.next();!x.done;x=N.next())x=new g.kb({X:"span",C:"ytp-promotooltip-details-component",Rl:x.value}),g.t(O,x),F.push(x);y.length===2?(V.push(F[0].element),V.push(H.element),V.push(F[1].element)):y.length===1&&(m===0?(V.push(H.element),V.push(F[0].element)):(V.push(F[0].element),V.push(H.element)));m=V.length?V:null}else m=null;else m=y;if(m){if(typeof m!=="string")for(g.bB(O.details),l=g.n(m),m=l.next();!m.done;m=l.next())O.details.appendChild(m.value); else O.update({details:m});l=!0}}g.CD(O.details,l);l=O.tooltipRenderer.acceptButton;m=!1;var W,U,Z;((W=g.e(l,tE))==null?0:(U=W.text)==null?0:(Z=U.runs)==null?0:Z.length)&&g.e(l,tE).text.runs[0].text&&(O.update({acceptButtonText:g.e(l,tE).text.runs[0].text.toString()}),m=!0);g.CD(O.acceptButton,m);W=O.tooltipRenderer.dismissButton;U=!1;var z,c,Y;((z=g.e(W,tE))==null?0:(c=z.text)==null?0:(Y=c.runs)==null?0:Y.length)&&g.e(W,tE).text.runs[0].text&&(O.update({dismissButtonText:g.e(W,tE).text.runs[0].text.toString()}), U=!0);g.CD(O.dismissButton,U)}J&&(O.sourceElement=J);O.K=AxV(O);O.W=!1;O.G.Y().L("web_player_hide_nitrate_promo_tooltip")||O.PY(!0);iBd(O);O.vY&&!O.T&&(O.T=!0,O.Ty.HS(0));O.j&&O.G.logVisibility(O.element,O.vY)}}; WV=function(O){O.PY(!1);O.j&&O.G.logVisibility(O.element,O.vY)}; Byr=function(O){var V,J,y,l=((V=g.e(O.acceptButton,tE))==null?void 0:(J=V.text)==null?void 0:(y=J.runs)==null?void 0:y.length)&&!!g.e(O.acceptButton,tE).text.runs[0].text,m,H,F;V=((m=g.e(O.dismissButton,tE))==null?void 0:(H=m.text)==null?void 0:(F=H.runs)==null?void 0:F.length)&&!!g.e(O.dismissButton,tE).text.runs[0].text;return l||V}; iBd=function(O){var V;if(!(V=!O.K)){V=O.K;var J=window.getComputedStyle(V);V=J.display==="none"||J.visibility==="hidden"||V.getAttribute("aria-hidden")==="true"}if(V||O.G.isMinimized())O.PY(!1);else if(V=g.jR(O.K),V.width&&V.height){O.G.bj(O.element,O.K);var y=O.G.tv().getPlayerSize().height;J=g.jR(O.DN("ytp-promotooltip-container")).height;O.U?O.element.style.top=y-J-V.height-12+"px":O.S||(y=O.G.Tt().height-J-V.height-12,O.element.style.top=y+"px");y=O.DN("ytp-promotooltip-pointer");var l=g.$K(O.K, O.G.getRootNode()),m=Number(O.element.style.left.replace(/[^\d\.]/g,""));O=O.G.isFullscreen()?18:12;y.style.left=l.x-m+V.width/2-O+"px";y.style.top=J+"px"}else O.PY(!1)}; UQ=function(O){g.r.call(this,{X:"button",Fj:["ytp-replay-button","ytp-button"],N:{title:O.L("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},J:[g.cB()]});this.G=O;this.Z(O,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.gX(O.getPlayerStateObject());Gc(this.G,this.element,this)}; Zu=function(O,V){V=V===void 0?240:V;g.r.call(this,{X:"button",Fj:["ytp-button","ytp-search-button"],N:{title:O.L("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.R2(O.Y()))},J:[{X:"div",C:"ytp-search-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-search-title",Rl:"Search"}]});this.api=O;this.j=V;this.visible=!1;this.updateValue("icon",{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},J:[{X:"path",C:"ytp-svg-fill",N:{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"}}]}); O.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.K();this.Z(O,"appresize",this.K);this.Z(O,"videodatachange",this.K);Gc(O,this.element,this)}; z3=function(O){g.r.call(this,{X:"div",C:"ytp-seek-overlay",J:[{X:"div",Fj:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],J:[{X:"div",Fj:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],J:[{X:"svg",N:{viewBox:"0 0 22 32",width:"22",height:"24"},J:[{X:"path",N:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{X:"div",C:"ytp-seek-overlay-duration",Rl:"{{durationBack}}"}]},{X:"div",Fj:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],J:[{X:"div",C:"ytp-seek-overlay-duration",Rl:"{{durationForward}}"},{X:"div",Fj:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],J:[{X:"svg",N:{viewBox:"0 0 22 32",width:"22",height:"24"},J:[{X:"path",N:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{X:"div",C:"ytp-seek-overlay-message",J:[{X:"div",C:"ytp-seek-overlay-message-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-seek-overlay-message-text", Rl:"{{text}}"}]}]});var V=this;this.G=O;this.W=0;this.K="hidden";this.S=this.DN("ytp-seek-overlay-animation-back");this.T=this.DN("ytp-seek-overlay-animation-forward");this.KD=this.DN("ytp-seek-overlay-message");this.V=new g.t_(function(){PKY(V)},g.Ry(this.G.Y().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.t(this,this.V);this.G.createClientVe(this.T,this,28240);this.G.createClientVe(this.S,this,28239);this.G.logVisibility(this.T,!0);this.G.logVisibility(this.S,!0);this.hide()}; kio=function(O,V){O.U=O.D.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:V},{offset:1,opacity:1}],{duration:200,fill:"forwards"});O.U.addEventListener("finish",function(){O.U=void 0;O.V.start();O.K="lingering"})}; SaH=function(O,V,J,y){J=J===void 0?!1:J;y=y===void 0?!1:y;var l=[];l.push({offset:0,transform:"translateX("+(O.j===-1?20:-20)+"px)",opacity:J?"0":"1"});J&&l.push({offset:.5,opacity:"1"});l.push({offset:1,transform:"translateX(0)",opacity:"1"});J=V.animate(l,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});V=V.querySelector("path");l=[];var m={offset:0,d:O.j===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};y&&(m.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");l.push(m); y&&l.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});O={offset:1,d:O.j===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};y&&(O.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");l.push(O);V.animate(l,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return J}; DQH=function(O){var V=O.D.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);V.classList.add("ytp-seek-overlay-arrow-additional");V.classList.remove("ytp-seek-overlay-arrow-persistent");O.D.appendChild(V);SaH(O,V,!0,!0).addEventListener("finish",function(){V.remove()})}; PKY=function(O,V,J){J=J===void 0?!0:J;O.U=O.D.animate([{offset:0,opacity:V===void 0?1:V},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});J&&(O.U.addEventListener("finish",function(){O.U=void 0;ObU(O);O.hide()}),O.K="fading-out")}; VZr=function(O){var V=Number(getComputedStyle(O.D).opacity),J;(J=O.U)==null||J.cancel();O.U=void 0;return V}; ObU=function(O){O.W=0;O.K="hidden";O.j=void 0;O.D=void 0;O.V.stop();O.U=void 0}; J3r=function(O,V,J){O.updateValue("text",V);if(J){a:{switch(J){case "PREMIUM_STANDALONE":V=NE5();break a;case "PREMIUM_STANDALONE_CAIRO":V=xvV();break a}V=void 0}O.updateValue("icon",V)}V=g.n(O.KD.getAnimations());for(J=V.next();!J.done;J=V.next())J.value.cancel();O.KD.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){O.updateValue("text","");O.updateValue("icon","")})}; cV=function(O,V,J,y){y=y===void 0?240:y;g.r.call(this,{X:"button",Fj:["ytp-button","ytp-share-button"],N:{title:O.L("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":J.element.id,"data-tooltip-opaque":String(g.R2(O.Y()))},J:[{X:"div",C:"ytp-share-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-share-title",Rl:"Share"}]});this.api=O;this.K=V;this.j=J;this.U=y;this.visible=!1;this.tooltip=this.K.Sy();O.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.Z(O,"videodatachange",this.Qz);this.Z(O,"videoplayerreset",this.Qz);this.Z(O,"appresize",this.Qz);this.Z(O,"presentingplayerstatechange",this.Qz);this.Qz();this.addOnDisposeCallback(g.Q_(this.tooltip,this.element))}; y35=function(O){var V=O.api.Y(),J=O.api.getVideoData(),y=g.R2(V)&&g.iJ(O.api)&&g.R(O.api.getPlayerStateObject(),128);V=V.U||V.disableSharing&&O.api.getPresentingPlayerType()!==2||!J.showShareButton||J.lM||y||J.tC||!1;y=O.api.tv().getPlayerSize().width;return!!J.videoId&&y>=O.U&&!V}; lvo=function(O,V){V.name!=="InvalidStateError"&&V.name!=="AbortError"&&(V.name==="NotAllowedError"?(O.K.jM(),HI(O.j,O.element,!1)):g.sk(V))}; $jh=function(O,V){var J=PF(),y=O.Y();J={X:"div",C:"ytp-share-panel",N:{id:PF(),role:"dialog","aria-labelledby":J},J:[{X:"div",C:"ytp-share-panel-inner-content",J:[{X:"div",C:"ytp-share-panel-title",N:{id:J},Rl:"Share"},{X:"a",Fj:["ytp-share-panel-link","ytp-no-contextmenu"],N:{href:"{{link}}",target:y.qX,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Rl:"{{linkText}}"},{X:"label",C:"ytp-share-panel-include-playlist",J:[{X:"input",C:"ytp-share-panel-include-playlist-checkbox",N:{type:"checkbox", checked:"true"}},"Include playlist"]},{X:"div",C:"ytp-share-panel-loading-spinner",J:[fc()]},{X:"div",C:"ytp-share-panel-service-buttons",Rl:"{{buttons}}"},{X:"div",C:"ytp-share-panel-error",Rl:"An error occurred while retrieving sharing information. Please try again later."}]},{X:"button",Fj:["ytp-share-panel-close","ytp-button"],N:{title:"Close"},J:[g.je()]}]};me.call(this,O,J,250);var l=this;this.moreButton=null;this.api=O;this.tooltip=V.Sy();this.j=[];this.D=this.DN("ytp-share-panel-inner-content"); this.closeButton=this.DN("ytp-share-panel-close");this.Z(this.closeButton,"click",this.x8);this.addOnDisposeCallback(g.Q_(this.tooltip,this.closeButton));this.U=this.DN("ytp-share-panel-include-playlist-checkbox");this.Z(this.U,"click",this.Qz);this.K=this.DN("ytp-share-panel-link");this.addOnDisposeCallback(g.Q_(this.tooltip,this.K));this.api.createClientVe(this.K,this,164503);this.Z(this.K,"click",function(m){m.preventDefault();l.api.logClick(l.K);var H=l.api.getVideoUrl(!0,!0,!1,!1);H=mjn(l,H); g.bg(H,l.api,m)&&l.api.MX("SHARE_CLICKED")}); this.listen("click",this.yn);this.Z(O,"videoplayerreset",this.hide);this.Z(O,"fullscreentoggled",this.onFullscreenToggled);this.Z(O,"onLoopRangeChange",this.GyD);this.hide()}; CRr=function(O,V){Hbd(O);for(var J=V.links||V.shareTargets,y=0,l={},m=0;m0&&!G&&!X?(L.length===2&&(L=["noreferrer"]),g.pa(z,Y,Z,L[0]),z=E9r()):(b=w.join(","),Aa()&&z.navigator&&z.navigator.standalone&&Z&&Z!="_self"?(b=g.I1("A"),g.e1(b,Y),b.target=Z,M&&(b.rel="noreferrer"),((c=c.attributionsrc)||c==="")&&b.setAttribute("attributionsrc",c),c=document.createEvent("MouseEvent"), c.initMouseEvent("click",!0,!0,z,1),b.dispatchEvent(c),z=E9r()):M?(z=g.pa(z,"",Z,b),c=g.Z6(Y),z&&(z.opener=null,c===""&&(c="javascript:''"),c='',c=aG(c),(Y=z.document)&&Y.write&&(Y.write(bw(c)),Y.close()))):((z=g.pa(z,Y,Z,b))&&c.noopener&&(z.opener=null),z&&c.noreferrer&&(z.opener=null)));z&&(z.opener||(z.opener=window),z.focus());U.preventDefault()}}}(l)); l.Do.addOnDisposeCallback(g.Q_(O.tooltip,l.Do.element));F==="Facebook"?O.api.createClientVe(l.Do.element,l.Do,164504):F==="Twitter"&&O.api.createClientVe(l.Do.element,l.Do,164505);O.Z(l.Do.element,"click",function(W){return function(){O.api.logClick(W.Do.element)}}(l)); O.api.logVisibility(l.Do.element,!0);O.j.push(l.Do);y++}}var N=V.more||V.moreLink,x=new g.r({X:"a",Fj:["ytp-share-panel-service-button","ytp-button"],J:[{X:"span",C:"ytp-share-panel-service-button-more",J:[{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{X:"rect",N:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",N:{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"}}]}]}],N:{href:N,target:"_blank",title:"More"}});x.listen("click",function(W){var U=N;O.api.logClick(O.moreButton.element);U=mjn(O,U);g.bg(U,O.api,W)&&O.api.MX("SHARE_CLICKED")}); x.addOnDisposeCallback(g.Q_(O.tooltip,x.element));O.api.createClientVe(x.element,x,164506);O.Z(x.element,"click",function(){O.api.logClick(x.element)}); O.api.logVisibility(x.element,!0);O.j.push(x);O.moreButton=x;O.updateValue("buttons",O.j)}; mjn=function(O,V){var J={};g.R2(O.api.Y())&&(g.fj(O.api,"addEmbedsConversionTrackingParams",[J]),V=g.pp(V,J));return V}; Hbd=function(O){for(var V=g.n(O.j),J=V.next();!J.done;J=V.next())J=J.value,J.detach(),g.C1(J);O.j=[]}; sQ=function(O){return O===void 0||O.startSec===void 0||O.endSec===void 0?!1:!0}; F5r=function(O,V){O.startSec+=V;O.endSec+=V}; xj7=function(O){c9.call(this,O);this.U=this.K=this.isContentForward=this.V=!1;this.element.setAttribute("data-overlay-order","8");N1r(this);this.Z(this.G,"changeProductsInVideoVisibility",this.tyi);this.Z(this.G,"videodatachange",this.onVideoDataChange)}; W5U=function(O){O.W&&O.Vz.element.removeChild(O.W.element);O.W=void 0}; Zb1=function(O,V){return V.map(function(J){var y,l;if((J=(y=g.e(J,Ujo))==null?void 0:(l=y.thumbnail)==null?void 0:l.thumbnails)&&J.length!==0)return J[0].url}).filter(function(J){return J!==void 0}).map(function(J){J=new g.r({X:"img", C:"ytp-suggested-action-product-thumbnail",N:{alt:"",src:J}});g.t(O,J);return J})}; zpr=function(O,V){O.isContentForward=V;g.yf(O.badge.element,"ytp-suggested-action-badge-content-forward",V)}; T3=function(O){var V=O.isContentForward&&!O.lX();g.yf(O.badge.element,"ytp-suggested-action-badge-preview-collapsed",V&&O.K);g.yf(O.badge.element,"ytp-suggested-action-badge-preview-expanded",V&&O.U)}; ej=function(O,V,J){return new g.gz(O*1E3,V*1E3,{priority:9,namespace:J})}; c31=function(O){O.G.iO("shopping_overlay_visible");O.G.iO("shopping_overlay_preview_collapsed");O.G.iO("shopping_overlay_preview_expanded");O.G.iO("shopping_overlay_expanded")}; N1r=function(O){O.Z(O.G,g.Q9("shopping_overlay_visible"),function(){O.D_(!0)}); O.Z(O.G,g.Gd("shopping_overlay_visible"),function(){O.D_(!1)}); O.Z(O.G,g.Q9("shopping_overlay_expanded"),function(){O.lw=!0;zW(O)}); O.Z(O.G,g.Gd("shopping_overlay_expanded"),function(){O.lw=!1;zW(O)}); O.Z(O.G,g.Q9("shopping_overlay_preview_collapsed"),function(){O.K=!0;T3(O)}); O.Z(O.G,g.Gd("shopping_overlay_preview_collapsed"),function(){O.K=!1;T3(O)}); O.Z(O.G,g.Q9("shopping_overlay_preview_expanded"),function(){O.U=!0;T3(O)}); O.Z(O.G,g.Gd("shopping_overlay_preview_expanded"),function(){O.U=!1;T3(O)})}; eph=function(O){g.r.call(this,{X:"div",C:"ytp-shorts-title-channel",J:[{X:"a",C:"ytp-shorts-title-channel-logo",N:{href:"{{channelLink}}",target:O.Y().qX,"aria-label":"{{channelLogoLabel}}"}},{X:"div",C:"ytp-shorts-title-expanded-heading",J:[{X:"div",C:"ytp-shorts-title-expanded-title",J:[{X:"a",Rl:"{{expandedTitle}}",N:{href:"{{channelTitleLink}}",target:O.Y().qX,tabIndex:"0"}}]}]}]});var V=this;this.api=O;this.K=this.DN("ytp-shorts-title-channel-logo");this.channelName=this.DN("ytp-shorts-title-expanded-title"); this.subscribeButton=null;O.createClientVe(this.K,this,36925);this.Z(this.K,"click",function(J){V.api.logClick(V.K);g.pa(window,sup(V));J.preventDefault()}); O.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(J){V.api.logClick(V.channelName);g.pa(window,sup(V));J.preventDefault()}); T1h(this);this.Z(O,"videodatachange",this.Qz);this.Z(O,"videoplayerreset",this.Qz);this.Qz()}; T1h=function(O){if(!O.api.Y().yc){var V=O.api.getVideoData(),J=new g.kn("Subscribe",null,"Subscribed",null,!0,!1,V.iL,V.subscribed,"channel_avatar",null,O.api,!0);O.api.createServerVe(J.element,O);var y;O.api.setTrackingParams(J.element,((y=V.subscribeButtonRenderer)==null?void 0:y.trackingParams)||null);O.Z(J.element,"click",function(){O.api.logClick(J.element)}); O.subscribeButton=J;g.t(O,O.subscribeButton);O.subscribeButton.rW(O.element)}}; sup=function(O){var V=O.api.Y(),J=O.api.getVideoData();J=g.ax(V)+J.LD;if(!g.R2(V))return J;V={};g.fj(O.api,"addEmbedsConversionTrackingParams",[V]);return g.pp(J,V)}; IQ=function(O){me.call(this,O,{X:"button",Fj:["ytp-skip-intro-button","ytp-popup","ytp-button"],J:[{X:"div",C:"ytp-skip-intro-button-text",Rl:"Skip Intro"}]},100);var V=this;this.j=!1;this.K=new g.t_(function(){V.hide()},5E3); this.tW=this.MN=NaN;g.t(this,this.K);this.S=function(){V.show()}; this.D=function(){V.hide()}; this.U=function(){var J=V.G.getCurrentTime();J>V.MN/1E3&&J0?{X:"svg",N:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},J:[{X:"path",Fj:["ytp-circle-arrow","ytp-svg-fill"],N:{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"}}, {X:"text",Fj:["ytp-jump-button-text","ytp-svg-fill"],N:{x:"7.05",y:"15.05"}}]}:{X:"svg",N:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},J:[{X:"path",Fj:["ytp-circle-arrow","ytp-svg-fill"],N:{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"}}, {X:"text",Fj:["ytp-jump-button-text","ytp-svg-fill"],N:{x:"6.5",y:"15"}}]}]});var J=this;this.G=O;this.K=V;this.j=new g.t_(function(){J.U?(J.U=!1,J.j.start()):J.element.classList.remove("ytp-jump-spin","backwards")},250); this.U=!1;(V=V>0)?this.G.createClientVe(this.element,this,36843):this.G.createClientVe(this.element,this,36844);var y=g.kv(V?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.K).toString()});this.G.L("player_tooltip_data_title_killswitch")?this.update({title:y,"data-title-no-tooltip":y,"aria-keyshortcuts":V?"\u2192":"\u2190"}):this.update({"tooltip-title":y,"data-title-no-tooltip":y,"aria-keyshortcuts":V?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text"); this.D.textContent=Math.abs(this.K).toString();this.listen("click",this.onClick,this);Gc(O,this.element,this)}; ocV=function(O,V){V?O.element.classList.add("ytp-jump-button-enabled"):O.element.classList.remove("ytp-jump-button-enabled");O.G.logVisibility(O.element,V);O.G.s7()}; oQ=function(O,V){aQ.call(this,O,V,"timedMarkerCueRange","View key moments");this.Z(O,g.Gd("timedMarkerCueRange"),this.VK);this.Z(O,"updatemarkervisibility",this.updateVideoData)}; vcd=function(O){var V,J=(V=O.G.getVideoData())==null?void 0:V.Vz;if(J)for(O=O.D.nD,J=g.n(J),V=J.next();!V.done;V=J.next())if(V=O[V.value]){var y=void 0,l=void 0,m=void 0;if(((y=V.onTap)==null?void 0:(l=y.innertubeCommand)==null?void 0:(m=l.changeEngagementPanelVisibilityAction)==null?void 0:m.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return V}}; vV=function(O){g.r.call(this,{X:"button",Fj:["ytp-miniplayer-button","ytp-button"],N:{title:O.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},J:["{{icon}}"]});this.G=O;this.visible=!1;this.listen("click",this.onClick);this.Z(O,"fullscreentoggled",this.Qz);this.G.L("player_tooltip_data_title_killswitch")? this.update({title:g.Kj(O,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:wOh(this)}):this.update({"tooltip-title":g.Kj(O,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:wOh(this)});Gc(O,this.element,this);O.createClientVe(this.element,this,62946);this.Qz()}; wOh=function(O){return O.G.L("delhi_modern_web_player_icons")?lih():UF()}; wp=function(O,V,J,y,l,m){m=m===void 0?!1:m;var H={X:"div",Fj:["ytp-input-slider-section"],J:[{X:"input",C:"ytp-input-slider",N:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};l&&H.J.unshift(l);m&&H.Fj.push("ytp-vertical-slider");g.r.call(this,H);this.U=O;this.W=V;this.V=J;this.initialValue=y;this.header=l;this.D=0; this.j=this.DN("ytp-input-slider");this.K=y?y:O;this.init();this.Z(this.j,"input",this.IZ);this.Z(this.j,"keydown",this.q0)}; Mp=function(O,V,J){J=J===void 0?!1:J;O.D&&(cancelAnimationFrame(O.D),O.D=0);J?MZU(O,O.K,V):L5d(O,V)}; L5d=function(O,V){O.K=V;O.update({slidervalue:O.K,ariaValueNow:O.K});O.j.valueAsNumber=O.K;nc7(O,V)}; MZU=function(O,V,J){var y=performance.now(),l=J-V;if(l!==0){var m=function(H){H=(H-y)/400;H>1&&(H=1);L5d(O,V+l*pGU(XOr,fl7(XOr,H)));O.D=H<1?requestAnimationFrame(m):0}; O.D=requestAnimationFrame(m)}}; nc7=function(O,V){O.j.style.setProperty("--yt-slider-shape-gradient-percent",(V-O.U)/(O.W-O.U)*100+"%")}; Lt=function(O){var V=O.isMuted()?0:O.getVolume();wp.call(this,0,100,1,V,void 0,!0);this.G=O;this.T=Ko(this.lw,10,this);this.S=!1;this.Z(O,"onVolumeChange",this.onVolumeChange);this.Z(this.element,"wheel",this.KD)}; EcH=function(O,V){g.r.call(this,{X:"div",N:{tabindex:"0",title:O.L("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},Fj:["ytp-volume-popover"]});var J=this;this.isVisible=!1;this.tooltip=V.Sy();this.j=new Lt(O);g.t(this,this.j);this.j.rW(this.element);this.K=new g.t_(function(){nt(J,!1)},300); this.listen("mouseenter",function(){J.K.stop()}); this.listen("mouseleave",function(){J.K.start()}); this.listen("focus",function(){J.K.stop()}); this.Z(this.j.j,"focus",function(){J.K.stop()}); this.listen("focusout",function(){J.K.start();J.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.Q_(V.Sy(),this.element));g.t(this,this.K)}; nt=function(O,V){O.element.classList.toggle("ytp-volume-popover-hovering",V);O.isVisible=V;(O=O.element.closest(".ytp-chrome-bottom"))&&O.classList.toggle("ytp-volume-popover-showing",V)}; Xn=function(O,V,J){J=J===void 0?!1:J;var y=O.Y().Vz?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:O.L("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};y=O.L("delhi_modern_web_player")?{X:"div",C:"ytp-mute-button",J:[{X:"button",N:y,Fj:["ytp-volume-icon", "ytp-button"],Rl:"{{icon}}"}]}:{X:"button",Fj:["ytp-mute-button","ytp-button"],N:y,J:[{X:"div",C:"ytp-volume-icon",Rl:"{{icon}}"}]};g.r.call(this,y);this.G=O;this.ol=J;this.j=null;this.V=this.fD=this.T=this.S=NaN;this.dW=this.KD=null;this.W=[];this.D=[];this.visible=!1;this.U=this.K=this.lw=null;O.L("delhi_modern_web_player")&&this.update({"data-priority":4});J=this.G.Y();this.updateValue("icon",ee());this.tooltip=V.Sy();this.updateValue("dataTooltipOffsetY",0);this.U=g.Up("ytp-volume-icon",this.element); y=this.G.L("delhi_modern_web_player_icons")?{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",Fj:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],N:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{X:"path",C:"ytp-svg-volume-animation-small-ripple",N:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{X:"path",C:"ytp-svg-volume-animation-big-ripple",N:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"defs",J:[{X:"clipPath",N:{id:"ytp-svg-volume-animation-mask"},J:[{X:"path",N:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{X:"path",N:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{X:"path",C:"ytp-svg-volume-animation-mover",N:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{X:"clipPath",N:{id:"ytp-svg-volume-animation-slash-mask"},J:[{X:"path",C:"ytp-svg-volume-animation-mover", N:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{X:"path",vB:!0,Fj:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],N:{"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"}},{X:"path",vB:!0,Fj:["ytp-svg-fill","ytp-svg-volume-animation-hider"],N:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.j=new g.kb(y);g.t(this,this.j);this.KD=this.j.DN("ytp-svg-volume-animation-speaker");this.dW=this.KD.getAttribute("d");this.W=g.xa("ytp-svg-volume-animation-mover",this.j.element);this.G.L("delhi_modern_web_player_icons");this.D=g.xa("ytp-svg-volume-animation-hider",this.j.element);this.G.L("delhi_modern_web_player_icons");this.Vz=new ua;g.t(this,this.Vz);this.O5=new ua;g.t(this,this.O5);this.Z(O,"appresize",this.E_);this.Z(O,"onVolumeChange",this.onVolumeChange);O.L("delhi_modern_web_player")? this.listen("click",this.Rcv):this.listen("click",this.Cq);J.Vz?(O.L("delhi_modern_web_player")&&!O.L("delhi_modern_web_player_horizontal_volume_controls")&&(this.K=new EcH(O,V),this.K.rW(this.element),g.t(this,this.K),this.Z(this.U,"mouseover",this.Cb),this.Z(this.U,"focus",this.Cb),this.Z(this.U,"mouseout",this.OT),this.Z(this.U,"blur",this.OT)),J=O.L("delhi_modern_web_player")?this.U:this.element,this.addOnDisposeCallback(g.Q_(V.Sy(),J))):dj5(this);this.message=null;O.createClientVe(this.element, this,28662);this.E_(O.tv().getPlayerSize());this.setVolume(O.getVolume(),O.isMuted())}; gcn=function(O,V){if(O.G.Y().Vz){var J=g.Kj(O.G,"Mute","m"),y=g.Kj(O.G,"Unmute","m");J=V?y:J;O.G.Y().L("player_tooltip_data_title_killswitch")?O.updateValue("title",J):O.update({"tooltip-title":J,"aria-label":J});O.update({"data-title-no-tooltip":V?"Unmute":"Mute"});O.tooltip.s7()}}; GLn=function(O,V){O.S=V;var J=O.dW;O.G.L("delhi_modern_web_player_icons")?O.j.DN("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(V+") translate(-22,-12)")):V&&(J+=oiX(q3h,Qu7,V));O.KD.setAttribute("d",J)}; K5V=function(O,V){var J;V===1?J=O.G.L("delhi_modern_web_player_icons")?{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:ee():J=O.j;O.fD=V;if(O.G.L("delhi_modern_web_player_icons"))O.j.DN("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-V+") translate(-18,-12)")),O.j.DN("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(O.S-V+") translate(-22, -12)"));else{for(var y=20*V,l=0;l=3&&O.G.getPresentingPlayerType()!==2}; RpV=function(O){var V=rA(O.G.Fs());return V?O.K?V.hasNext():V.hasPrevious():!1}; A37=function(O){var V={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},J=O.playlist!=null&&O.playlist.hasNext();J=g.iJ(O.G)&&(!O.K||J);var y=O.K&&g.Su(O.G),l=RpV(O),m=O.K&&O.G.getPresentingPlayerType()===5,H=g.Kj(O.G,"Next","SHIFT+n"),F=g.Kj(O.G,"Previous","SHIFT+p");if(m)V.title="Start video",V["tooltip-title"]="Start video";else if(O.U)V.title="Replay",V["tooltip-title"]="Replay";else if(J){var N=null;O.playlist&& (N=g.Wi(O.playlist,O.K?bGp(O.playlist):pih(O.playlist)));if(N){if(N.videoId){var x=O.playlist.listId;V.url=O.G.Y().getVideoUrl(N.videoId,x?x.toString():void 0)}V.text=N.title;V.duration=N.lengthText?N.lengthText:N.lengthSeconds?g.Nw(N.lengthSeconds):null;V.preview=N.O7("mqdefault.jpg")}O.K?(V.title=H,V["tooltip-title"]=H,V["data-title-no-tooltip"]="Next",V["aria-keyshortcuts"]="SHIFT+n"):(V.title=F,V["tooltip-title"]=F,V["data-title-no-tooltip"]="Previous",V["aria-keyshortcuts"]="SHIFT+p")}else if(y){if(F= (N=O.videoData)==null?void 0:g.IT(N))V.url=F.xn(),V.text=F.title,V.duration=F.lengthText?F.lengthText:F.lengthSeconds?g.Nw(F.lengthSeconds):null,V.preview=F.O7("mqdefault.jpg");V.title=H;V["tooltip-title"]=H;V["data-title-no-tooltip"]="Next";V["aria-keyshortcuts"]="SHIFT+n"}V.disabled=!y&&!J&&!l&&!m;O.update(V);O.V=!!V.url;y||J||O.U||l||m?O.j||(O.j=g.Q_(O.tooltip,O.element),O.W=O.listen("click",O.onClick,O)):O.j&&(O.j(),O.j=null,O.oX(O.W),O.W=null);O.tooltip.s7();g.yf(O.element,"ytp-playlist-ui", O.K&&(J||O.G.L("web_hide_next_button")))}; usd=function(O,V){return O?V?mv7():xN():V?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:W2o()}; PRr=function(O,V){g.r.call(this,{X:"div",C:"ytp-fine-scrubbing",J:[{X:"div",C:"ytp-fine-scrubbing-draggable",J:[{X:"div",C:"ytp-fine-scrubbing-thumbnails",N:{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}}"}}]},{X:"div",N:{"aria-hidden":"true"},C:"ytp-fine-scrubbing-cursor"},{X:"div",C:"ytp-fine-scrubbing-seek-time",N:{"aria-hidden":"true"}, Rl:"{{seekTime}}"},{X:"div",C:"ytp-fine-scrubbing-play",J:[O.L("delhi_modern_web_player_icons")?zs():ZJ()],N:{title:"Play from this position",role:"button"}},{X:"div",C:"ytp-fine-scrubbing-dismiss",J:[g.je()],N:{title:"Exit precise seeking",role:"button"}}]});var J=this;this.api=O;this.W=this.DN("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.DN("ytp-fine-scrubbing-dismiss");this.fD=this.DN("ytp-fine-scrubbing-draggable");this.playButton=this.DN("ytp-fine-scrubbing-play");this.thumbnails= [];this.j=[];this.ol=this.K=0;this.Vz=void 0;this.KD=NaN;this.LD=this.T=this.U=this.S=0;this.D=[];this.interval=this.frameCount=0;this.V=160;this.scale=1;this.yz=0;this.isEnabled=this.dW=!1;B1Y(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Q_(V,this.dismissButton));this.addOnDisposeCallback(g.Q_(V,this.playButton));this.O5=new g.M0(this.fD,!0);this.O5.subscribe("dragstart",this.lU,this);this.O5.subscribe("dragmove",this.jb,this);this.O5.subscribe("dragend",this.Qn,this);this.Z(O,"SEEK_COMPLETE", this.CN);O.L("web_fix_fine_scrubbing_false_play")&&this.Z(O,"rootnodemousedown",function(y){J.lw=y}); this.W.addEventListener("keydown",function(){}); g.t(this,this.O5);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; B1Y=function(O,V){var J=g.Nw(V),y=g.kv("Seek to $PROGRESS",{PROGRESS:g.Nw(V,!0)});O.update({ariamin:0,ariamax:Math.floor(O.api.getDuration()),arianow:Math.floor(V),arianowtext:y,seekTime:J})}; kLp=function(O){O.KD=NaN;O.T=0;O.S=O.U}; OPY=function(O){var V=O.api.wq();if(V){var J=90*O.scale,y=ml(V,160*O.scale);if(V=V.levels[y]){O.V=V.width;if(!O.D.length){y=[];for(var l=$Z(V,V.HI()),m=V.columns*V.rows,H=V.frameCount,F=0;F<=l;F++)for(var N=HO.D.length;)y= void 0,(y=O.thumbnails.pop())==null||y.dispose();for(;O.thumbnails.lengthJ.length;)y=void 0,(y=O.j.pop())==null||y.dispose(); for(;O.j.length-J?-V/J*O.interval*.5:-(V+J/2)/J*O.interval}; VQh=function(O){return-((O.W.offsetWidth||(O.frameCount-1)*O.V*O.scale)-O.K/2)}; S3U=function(){g.r.call(this,{X:"div",C:"ytp-fine-scrubbing-thumbnail"})}; DjY=function(){g.r.call(this,{X:"div",C:"ytp-fine-scrubbing-chapter-title",J:[{X:"div",C:"ytp-fine-scrubbing-chapter-title-content",Rl:"{{chapterTitle}}"}]})}; yWH=function(O){g.r.call(this,{X:"div",C:"ytp-heat-map-chapter",J:[{X:"svg",C:"ytp-heat-map-svg",N:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},J:[{X:"defs",J:[{X:"clipPath",N:{id:"{{id}}"},J:[{X:"path",C:"ytp-heat-map-path",N:{d:"",fill:"white"}}]},{X:"linearGradient",N:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},J:[{X:"stop",N:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{X:"stop",N:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{X:"rect",C:"ytp-heat-map-graph",N:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",C:"ytp-heat-map-hover",N:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",C:"ytp-heat-map-play",N:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{X:"path",C:"ytp-modern-heat-map",N:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=O;this.S=this.DN("ytp-heat-map-svg");this.W=this.DN("ytp-heat-map-path");this.D=this.DN("ytp-heat-map-graph");this.V=this.DN("ytp-heat-map-play");this.K=this.DN("ytp-heat-map-hover");this.U=this.DN("ytp-modern-heat-map");this.wN=!1;this.j=60;O=""+g.pd(this);this.update({id:O});O="url(#"+O+")";this.D.setAttribute("clip-path",O);this.V.setAttribute("clip-path",O);this.K.setAttribute("clip-path",O)}; lEr=function(O,V){V>0&&(O.j=V,O.S.style.height=O.j+"px")}; qp=function(){g.r.call(this,{X:"div",C:"ytp-chapter-hover-container",J:[{X:"div",C:"ytp-progress-bar-padding"},{X:"div",C:"ytp-progress-list",J:[{X:"div",Fj:["ytp-play-progress","ytp-swatch-background-color"]},{X:"div",C:"ytp-progress-linear-live-buffer"},{X:"div",C:"ytp-load-progress"},{X:"div",C:"ytp-hover-progress"},{X:"div",C:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.j=this.DN("ytp-progress-list");this.W=this.DN("ytp-progress-linear-live-buffer"); this.D=this.DN("ytp-ad-progress-list");this.V=this.DN("ytp-load-progress");this.S=this.DN("ytp-play-progress");this.U=this.DN("ytp-hover-progress");this.K=this.DN("ytp-chapter-hover-container")}; Qq=function(O,V){g.Pp(O.K,"width",V)}; maV=function(O,V){g.Pp(O.K,"margin-right",V+"px")}; $a5=function(){this.j=this.position=this.U=this.K=this.D=this.width=NaN}; HPr=function(){g.r.call(this,{X:"div",C:"ytp-timed-marker"});this.K=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Kt=function(O,V){g.OF.call(this,{X:"div",C:"ytp-progress-bar-container",N:{"aria-disabled":"true"},J:[{X:"div",Fj:["ytp-heat-map-container"],J:[{X:"div",C:"ytp-heat-map-edu"}]},{X:"div",Fj:["ytp-progress-bar"],N:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},J:[{X:"div",C:"ytp-chapters-container"},{X:"div",C:"ytp-timed-markers-container"},{X:"div",C:"ytp-clip-start-exclude"}, {X:"div",C:"ytp-clip-end-exclude"},{X:"div",C:"ytp-scrubber-container",J:[{X:"div",Fj:["ytp-scrubber-button","ytp-swatch-background-color"],J:[{X:"div",C:"ytp-scrubber-pull-indicator"},{X:"img",Fj:["ytp-decorated-scrubber-button"]}]}]}]},{X:"div",Fj:["ytp-fine-scrubbing-container"],J:[{X:"div",C:"ytp-fine-scrubbing-edu"}]},{X:"div",C:"ytp-bound-time-left",Rl:"{{boundTimeLeft}}"},{X:"div",C:"ytp-bound-time-right",Rl:"{{boundTimeRight}}"},{X:"div",C:"ytp-clip-start",N:{title:"{{clipstarttitle}}"},Rl:"{{clipstarticon}}"}, {X:"div",C:"ytp-clip-end",N:{title:"{{clipendtitle}}"},Rl:"{{clipendicon}}"}]});this.api=O;this.z2=!1;this.Z_=this.lM=this.TL=this.fD=this.V=this.h0=0;this.bl=null;this.Pn=!1;this.E5={};this.eq={};this.clipEnd=Infinity;this.WB=this.DN("ytp-clip-end");this.zK=new g.M0(this.WB,!0);this.MI=this.DN("ytp-clip-end-exclude");this.DD=this.DN("ytp-clip-start-exclude");this.clipStart=0;this.aB=this.DN("ytp-clip-start");this.Wf=new g.M0(this.aB,!0);this.KD=this.Xs=0;this.progressBar=this.DN("ytp-progress-bar"); this.yc={};this.nD={};this.eB=this.DN("ytp-chapters-container");this.t0=this.DN("ytp-timed-markers-container");this.K=[];this.S=[];this.YI={};this.NE=null;this.Vz=-1;this.oB=this.ol=0;this.dD=this.T=null;this.qq=this.DN("ytp-scrubber-button");this.O5=this.DN("ytp-decorated-scrubber-button");this.PX=this.DN("ytp-scrubber-container");this.UR=new g.S1;this.xr=0;this.TM=new $a5;this.U=new eo(0,0);this.ih=null;this.W=this.MU=!1;this.J0=null;this.lw=this.DN("ytp-heat-map-container");this.ul=this.DN("ytp-heat-map-edu"); this.D=[];this.heatMarkersDecorations=[];this.Ks=this.DN("ytp-fine-scrubbing-container");this.JL=this.DN("ytp-fine-scrubbing-edu");this.j=void 0;this.LD=this.OE=this.yz=!1;this.tooltip=V.Sy();this.addOnDisposeCallback(g.Q_(this.tooltip,this.WB));g.t(this,this.zK);this.zK.subscribe("hoverstart",this.B6,this);this.zK.subscribe("hoverend",this.tP,this);this.Z(this.WB,"click",this.yw);this.addOnDisposeCallback(g.Q_(this.tooltip,this.aB));g.t(this,this.Wf);this.Wf.subscribe("hoverstart",this.B6,this); this.Wf.subscribe("hoverend",this.tP,this);this.Z(this.aB,"click",this.yw);jJh(this);this.Z(O,"resize",this.zy);this.Z(O,"presentingplayerstatechange",this.Vg);this.Z(O,"videodatachange",this.J_);this.Z(O,"videoplayerreset",this.Avz);this.Z(O,"cuerangesadded",this.SBi);this.Z(O,"cuerangesremoved",this.qYn);this.Z(O,"onLoopRangeChange",this.PW);this.Z(O,"innertubeCommand",this.onClickCommand);this.Z(O,"onRetroModeChanged",this.riL);this.Z(O,g.Q9("timedMarkerCueRange"),this.BDz);this.Z(O,"updatemarkervisibility", this.dQ);this.Z(O,O.Y().gC().K.s5(la)?"playbackChange":"serverstitchedvideochange",this.CVE);this.updateVideoData(O.getVideoData(),!0);this.PW(O.getLoopRange());G3(this)&&!this.j&&(this.j=new PRr(this.api,this.tooltip),O=g.mM(this.element).x||0,this.j.zy(O,this.V),this.j.rW(this.Ks),g.t(this,this.j),this.Z(this.j.dismissButton,"click",this.L5),this.Z(this.j.playButton,"click",this.oV),this.Z(this.j.element,"dblclick",this.oV));this.api.createClientVe(this.lw,this,139609,!0);this.api.createClientVe(this.ul, this,140127,!0);this.api.createClientVe(this.JL,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; jJh=function(O){if(O.K.length===0){var V=new qp;O.K.push(V);g.t(O,V);V.rW(O.eB,0)}for(;O.K.length>1;)O.K.pop().dispose();Qq(O.K[0],"100%");O.K[0].startTime=0;O.K[0].title=""}; CS7=function(O){var V=V===void 0?NaN:V;var J=new yWH(O.api);O.D.push(J);g.t(O,J);J.rW(O.lw);V>=0&&(J.element.style.width=V+"px")}; FvX=function(O){for(;O.S.length;)O.S.pop().dispose()}; xar=function(O){var V,J,y,l,m;return(m=g.e((l=g.e((V=O.getWatchNextResponse())==null?void 0:(J=V.playerOverlays)==null?void 0:(y=J.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,BJ))==null?void 0:l.playerBar,NB1))==null?void 0:m.chapters}; Wv5=function(O){for(var V=O.K,J=[],y=0;y=H&&Y<=W&&m.push(Z)}N>0&&(O.lw.style.height=N+"px");H=O.D[y];W=m;Z=l;c=N;Y=y===0;Y=Y===void 0?!1:Y;lEr(H,c);U=W;z=H.j;Y=Y===void 0?!1:Y;var b=1E3/U.length,M=[];M.push({x:0,y:100});for(var w=0;w0&&(J=m[m.length-1])}g.tp(O);F=[];V=g.n(V.heatMarkersDecorations||[]);for(l=V.next();!l.done;l=V.next())if(l=g.e(l.value,eO5))N=l.label,y=J=x=void 0,F.push({visibleTimeRangeStartMillis:(x=l.visibleTimeRangeStartMillis)!=null?x:-1,visibleTimeRangeEndMillis:(J=l.visibleTimeRangeEndMillis)!=null?J:-1,decorationTimeMillis:(y=l.decorationTimeMillis)!=null?y:NaN,label:N?g.yb(N):""});O.heatMarkersDecorations=F}}; zOo=function(O,V){O.S.push(V);g.t(O,V);V.rW(O.t0,O.t0.children.length)}; cW7=function(O,V){V=g.n(V);for(var J=V.next();!J.done;J=V.next()){J=J.value;var y=uu(O,J.timeRangeStartMillis/(O.U.K*1E3),Ap(O)),l=O.api.L("delhi_modern_web_player")?.667:.6;g.Pp(J.element,"transform","translateX("+y+"px) scaleX("+l+")")}}; Ua1=function(O,V){var J=0,y=!1;V=g.n(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;if(g.e(l,Yhl)){l=g.e(l,Yhl);var m={startTime:NaN,title:null,onActiveCommand:void 0},H=l.title;m.title=H?g.yb(H):"";H=l.timeRangeStartMillis;H!=null&&(m.startTime=H);m.onActiveCommand=l.onActiveCommand;l=m;J===0&&l.startTime!==0&&(O.K[J].startTime=0,O.K[J].title="",O.K[J].onActiveCommand=l.onActiveCommand,J++,y=!0);O.K.length<=J&&(m=new qp,O.K.push(m),g.t(O,m),m.rW(O.eB,O.eB.children.length));O.K[J].startTime= l.startTime;O.K[J].title=l.title?l.title:"";O.K[J].onActiveCommand=l.onActiveCommand;O.K[J].index=y?J-1:J}J++}for(;J=0;y--)if(O.K[y].width>0){maV(O.K[y],0);var l=Math.floor(O.K[y].width);O.K[y].width=l;Qq(O.K[y],l+"px");break}O.K[J].width=0;Qq(O.K[J],"0")}else J===O.K.length-1?(y=Math.floor(O.K[J].width+V),O.K[J].width=y,Qq(O.K[J],y+"px")):(V=O.K[J].width+V,y=Math.round(V),V-=y,O.K[J].width=y,Qq(O.K[J],y+"px"));J=0;if(O.D.length===O.K.length)for(V=0;V< O.D.length;V++)y=O.K[V].width,O.D[V].element.style.width=y+"px",O.D[V].element.style.left=J+"px",J+=y+iu(O);O.api.L("delhi_modern_web_player")&&(O.K.length===1?O.K[0].j.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(O.K[0].j.classList.remove("ytp-progress-bar-end"),O.K[0].j.classList.add("ytp-progress-bar-start"),O.K[O.K.length-1].j.classList.add("ytp-progress-bar-end")))}; aEo=function(O,V){var J=0,y=!1,l=O.K.length,m=O.U.K*1E3;m===0&&(m=O.api.getProgressState().seekableEnd*1E3);if(m>0&&O.V>0){for(var H=O.V-iu(O)*O.ol,F=O.oB===0?3:H*O.oB,N=g.n(O.K),x=N.next();!x.done;x=N.next())x.value.width=0;for(;J1);x=(m===0?0:N/m*H)+O.K[J].width;if(x>F)O.K[J].width=x;else{O.K[J].width=0;var W=O,U=J,Z=W.K[U-1];Z!==void 0&&Z.width>0? Z.width+=x:UO.oB&&(O.oB=N/m),y=!0)}J++}}return y}; rp=function(O){if(O.V){var V=O.api.getProgressState(),J=O.api.getVideoData();if(!(J&&J.enableServerStitchedDai&&J.hA)||isFinite(V.current)){var y;if(((y=O.api.getVideoData())==null?0:ce(y))&&V.airingStart&&V.airingEnd)var l=RQ(O,V.airingStart,V.airingEnd);else if(O.api.getPresentingPlayerType()===2){var m,H,F;l=(J=(l=O.api.getVideoData())==null?void 0:(m=l.getPlayerResponse())==null?void 0:(H=m.playerConfig)==null?void 0:(F=H.webPlayerConfig)==null?void 0:F.skippableAdProgressBarDuration)?RQ(O,V.seekableStart, J/1E3):RQ(O,V.seekableStart,V.seekableEnd)}else l=RQ(O,V.seekableStart,V.seekableEnd);m=I0(l,V.loaded,0);V=I0(l,V.current,0);H=O.U.j!==l.j||O.U.K!==l.K;O.U=l;BV(O,V,m);H&&bPd(O);pQ7(O);V=48;l=O.api.Y();m=g.Ry(O.api.Y().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");m=O.api.L("delhi_modern_web_player_compact_controls")||m>0&&O.api.getPlayerSize().width<=m;O.api.L("delhi_modern_web_player")?V=O.api.getPlayerSize().width<=528?m?56:64:O.W?m?72:96:m?56:72:O.W?V=54:g.R2(l)&& !l.j&&(V=40);O.fD=V}}}; RQ=function(O,V,J){return fEd(O)?new eo(Math.max(V,O.ih.startTimeMs/1E3),Math.min(J,O.ih.endTimeMs/1E3)):new eo(V,J)}; oqU=function(O,V){var J,y,l;V=g.e((J=V.getWatchNextResponse())==null?void 0:(y=J.playerOverlays)==null?void 0:(l=y.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,BJ);if(V==null?0:V.progressColor)for(J=0;J1){J=PV(O,V.U,!0);for(var y=0,l=0;l0&&(y+=O.K[l].width,y+=iu(O));J=(O.K[J].startTime+(V.U-y)/O.K[J].width*((J===O.K.length-1?O.U.K*1E3:O.K[J+1].startTime)-O.K[J].startTime))/1E3||0}return J}; wQ5=function(O,V){if(V<0)return"0";O=Math.floor(Math.min(V,O.api.getDuration())*1E3);return O>2147483647?"0":String(O)}; Sj=function(O,V,J,y,l){V=wQ5(O,V);J=wQ5(O,J);O=O.progressBar.visualElement;y={seekData:{startMediaTimeMs:V,endMediaTimeMs:J,seekSource:y}};(V=g.Fe())&&rd(V,O,l,y)}; MQo=function(O,V,J){if(J>=O.K.length)return!1;var y=O.V-iu(O)*O.ol;return Math.abs(V-O.K[J].startTime/1E3)/O.U.K*y<4}; bPd=function(O){O.qq.style.removeProperty("height");for(var V=g.n(Object.keys(O.E5)),J=V.next();!J.done;J=V.next())LvH(O,J.value);Du(O);BV(O,O.KD,O.Xs)}; Ap=function(O){var V=O.UR.x;V=g.BZ(V,0,O.V);O.TM.update(V,O.V);return O.TM}; BV=function(O,V,J){O.KD=V;O.Xs=J;var y=Ap(O),l=O.U.K,m=izd(O.U,O.KD),H=g.kv("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Nw(m,!0),DURATION:g.Nw(l,!0)}),F=$5(O.K,m*1E3);F=O.K[F].title;O.update({ariamin:Math.floor(O.U.j),ariamax:Math.floor(l),arianow:Math.floor(m),arianowtext:F?F+" "+H:H});l=O.clipStart;m=O.clipEnd;O.ih&&O.api.getPresentingPlayerType()!==2&&(l=O.ih.startTimeMs/1E3,m=O.ih.endTimeMs/1E3);l=I0(O.U,l,0);F=I0(O.U,m,1);H=O.api.getVideoData();m=g.BZ(V,l,F);J=(H==null?0:g.UJ(H))?1:g.BZ(J, l,F);V=uu(O,V,y);g.Pp(O.PX,"transform","translateX("+V+"px)");O.api.L("delhi_modern_web_player")&&O.api.L("delhi_modern_web_player_cutout")&&nqH(O,V);Oa(O,y,l,m,"PLAY_PROGRESS");(H==null?0:ce(H))?(V=O.api.getProgressState().seekableEnd)&&Oa(O,y,m,I0(O.U,V),"LIVE_BUFFER"):Oa(O,y,l,J,"LOAD_PROGRESS");if(O.api.L("web_player_heat_map_played_bar")){var N;(N=O.D[0])!=null&&N.V.setAttribute("width",(m*100).toFixed(2)+"%")}}; nqH=function(O,V){O.api.getPresentingPlayerType()!==1?O.eB.style.removeProperty("clip-path"):(V||(V=uu(O,O.KD,Ap(O))),O.eB.style.clipPath='path("'+(O.Pn?XQX(O,8,V,O.W?50:36,0,6):XQX(O,4,V,O.W?34:24,2,3))+'")')}; XQX=function(O,V,J,y,l,m){var H=J-y/2;J+=y/2;V+=l;return"M 0 "+l+" L 0 "+(V+" L ")+(H+" "+V+" C ")+(H+m+" "+V+" "+(H+m)+" "+l+" "+H+" "+l+" L 0 ")+(l+" M ")+(J+" "+l+" L ")+(O.V+" "+l+" L ")+(O.V+" "+V+" L ")+(J+" "+V+" C ")+(J-m+" "+V+" "+(J-m)+" "+l+" "+J+" "+l)}; Oa=function(O,V,J,y,l){var m=O.K.length,H=V.K-O.ol*iu(O),F=J*H;J=PV(O,F);var N=y*H;H=PV(O,N);l==="HOVER_PROGRESS"&&(H=PV(O,V.K*y,!0),N=V.K*y-Eq1(O,V.K*y)*iu(O));y=Math.max(F-dan(O,J),0);for(F=J;F=O.K.length)return O.V;for(var J=0,y=0;y0||O.MI.clientWidth>0?(m=V.clientWidth/J,O=-1*O.DD.clientWidth/J):(m/=J,O=-1*O.K[l].element.offsetLeft/J),g.Pp(V,"background-size",m+"px"),g.Pp(V,"background-position-x",O+"px"))}; VF=function(O,V,J,y,l){l||O.api.Y().j?V.style.width=J+"px":g.Pp(V,"transform","scalex("+(y?J/y:0)+")")}; PV=function(O,V,J){var y=0;(J===void 0?0:J)&&(V-=Eq1(O,V)*iu(O));J=g.n(O.K);for(var l=J.next();!l.done;l=J.next()){l=l.value;if(V>l.width)V-=l.width;else break;y++}return y===O.K.length?y-1:y}; uu=function(O,V,J){var y=V*O.U.K*1E3;for(var l=-1,m=g.n(O.K),H=m.next();!H.done;H=m.next())H=H.value,y>H.startTime&&H.width>0&&l++;y=l<0?0:l;l=J.K-iu(O)*O.ol;return V*l+iu(O)*y+J.D}; Eq1=function(O,V){for(var J=O.K.length,y=0,l=g.n(O.K),m=l.next();!m.done;m=l.next())if(m=m.value,m.width!==0)if(V>m.width)V-=m.width,V-=iu(O),y++;else break;return y===J?J-1:y}; g.QJo=function(O,V,J,y){var l=O.V!==J,m=O.W!==y;O.h0=V;O.V=J;O.W=y;G3(O)&&(V=O.j)!=null&&(V.scale=y?1.5:1);bPd(O);O.K.length===1&&(O.K[0].width=J||0);l&&g.tp(O);O.j&&m&&G3(O)&&(O.j.isEnabled&&(J=O.W?135:90,y=J-O.fD,O.Ks.style.height=J+"px",g.Pp(O.lw,"transform","translateY("+-y+"px)"),g.Pp(O.progressBar,"transform","translateY("+-y+"px)")),OPY(O.j))}; Du=function(O){var V=!!O.ih&&O.api.getPresentingPlayerType()!==2,J=O.clipStart,y=O.clipEnd,l=!0,m=!0;V&&O.ih?(J=O.ih.startTimeMs/1E3,y=O.ih.endTimeMs/1E3):(l=J>O.U.j,m=O.U.K>0&&yO.KD);g.yf(O.qq,"ytp-scrubber-button-hover",J===y&&O.K.length>1);if(O.api.L("web_player_heat_map_played_bar")){var m;(m=O.D[0])!=null&&m.K.setAttribute("width",(V.j*100).toFixed(2)+"%")}}}; LvH=function(O,V){var J=O.E5[V];V=O.eq[V];var y=Ap(O),l=I0(O.U,J.start/1E3,0),m=i21(J,O.W)/y.width;var H=I0(O.U,J.end/1E3,1);m!==Number.POSITIVE_INFINITY&&(l=g.BZ(l,0,H-m));H=Math.min(H,l+m);J.color&&(V.style.background=J.color);J=l;V.style.left=Math.max(J*y.K+y.D,0)+"px";VF(O,V,g.BZ((H-J)*y.K+y.D,0,y.width),y.width,!0)}; GgH=function(O,V){var J=V.getId();O.E5[J]===V&&(g.fo(O.eq[J]),delete O.E5[J],delete O.eq[J])}; G3=function(O){var V=g.ZG(O.api.Y())&&(O.api.L("web_shorts_pip")||O.api.L("web_watch_pip")),J;return!((J=O.api.getVideoData())==null?0:J.isLivePlayback)&&!O.api.isMinimized()&&!O.api.isInline()&&(!O.api.Lf()||!V)}; Jx=function(O){O.j&&(O.j.disable(),O.TL=0,O.lw.style.removeProperty("transform"),O.progressBar.style.removeProperty("transform"),O.Ks.style.removeProperty("height"),O.element.parentElement&&O.element.parentElement.style.removeProperty("height"))}; KvX=function(O,V){var J=V/((O.W?135:90)-O.fD)*O.fD;g.Pp(O.progressBar,"transform","translateY("+-V+"px)");g.Pp(O.lw,"transform","translateY("+-V+"px)");g.Pp(O.Ks,"transform","translateY("+J+"px)");O.Ks.style.height=V+J+"px";O.element.parentElement&&(O.element.parentElement.style.height=O.fD-J+"px")}; tQr=function(O,V){V?O.T||(O.element.removeAttribute("aria-disabled"),O.T=new g.M0(O.progressBar,!0),O.api.L("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&O.T.subscribe("hoverstart",O.BNL,O),O.T.subscribe("hovermove",O.egN,O),O.T.subscribe("hoverend",O.hgn,O),O.T.subscribe("dragstart",O.sGv,O),O.T.subscribe("dragmove",O.qEw,O),O.T.subscribe("dragend",O.pnw,O),O.api&&O.api.L("delhi_modern_web_player")&&O.api.L("delhi_modern_web_player_cutout")&&(O.dD=new g.M0(O.progressBar, !0),O.dD.subscribe("hoverstart",function(){O.Pn=!0;nqH(O)},O),O.dD.subscribe("hoverend",function(){O.Pn=!1; nqH(O)},O)),O.J0=O.listen("keydown",O.I2)):O.T&&(O.element.setAttribute("aria-disabled","true"),O.oX(O.J0),O.T.cancel(),O.T.dispose(),O.T=null)}; iu=function(O){return O.api.L("delhi_modern_web_player")?4:O.W?3:2}; fEd=function(O){var V;return!((V=O.ih)==null||!V.postId)&&O.api.getPresentingPlayerType()!==2}; yF=function(O,V){g.r.call(this,{X:"button",Fj:["ytp-remote-button","ytp-button"],N:{title:O.L("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},Rl:"{{icon}}"});this.G=O;this.mp=V;this.K=null;this.Z(O,"onMdxReceiversChange",this.Qz);this.Z(O,"presentingplayerstatechange",this.Qz);this.Z(O,"appresize",this.Qz);O.createClientVe(this.element,this,139118);this.Qz();this.listen("click",this.j,this);Gc(O,this.element,this)}; lK=function(O,V){g.r.call(this,{X:"button",Fj:["ytp-button","ytp-settings-button"],N:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":PF(),title:O.L("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},J:[O.L("delhi_modern_web_player_icons")?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.sF()]});this.G=O;this.mp=V;this.j=!0;this.listen("click",this.U);this.Z(O,"onPlaybackQualityChange",this.updateBadge);this.Z(O,"videodatachange",this.updateBadge);this.Z(O,"webglsettingschanged",this.updateBadge);this.Z(O,"appresize",this.K);Gc(O,this.element,this);this.G.createClientVe(this.element,this,28663);this.updateBadge();this.K(O.tv().getPlayerSize())}; uoh=function(O,V){O.j=!!V;O.K(O.G.tv().getPlayerSize())}; mG=function(O,V,J){if(O.L("web_add_footer_template_to_audio_track")){var y="Edit your $BEGIN_LINKpreferred languages$END_LINK in settings".split(/\$(BEGIN|END)_LINK/);y={X:"div",C:"ytp-panel-footer-content",J:[y[0],{X:"a",C:"ytp-panel-footer-content-link",N:{href:"/account_playback"},Rl:y[2]},y[4]]}}g.og.call(this,"Audio track",g.o3.AUDIO,O,V,void 0,void 0,y);this.G=O;this.K=J;this.tracks={};g.D0(this.element,"ytp-audio-menu-item");this.countLabel=new g.r({X:"div",J:[{X:"span",Rl:"Audio track"},{X:"span", C:"ytp-menuitem-label-count",Rl:"{{content}}"}]});O.L("web_settings_menu_icons")&&!this.G.L("html5_enable_new_audio_settings_menu")&&(V=O.L("delhi_modern_web_player_icons")?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]},this.setIcon(V));g.t(this,this.countLabel);g.Cc(this,this.countLabel);O.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.Z(O,"videodatachange",this.Qz);this.Z(O,"onPlaybackAudioChange",this.Qz);this.Qz()}; AW1=function(O,V){g.Ft.call(this,g.Ny({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.o3.J8);this.G=O;this.mp=V;g.D0(this.element,"ytp-audio-settings-menu-item");this.Ld=new g.TW(O,void 0,"Audio");this.countLabel=new g.r({X:"div",J:[{X:"span",Rl:"Audio"},{X:"span",C:"ytp-menuitem-label-count",Rl:"{{content}}"}]});O.L("web_settings_menu_icons")&&this.setIcon({X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.xB=new mG(O,this.mp,this);g.t(this,this.xB);this.Z(O,"settingsMenuInitialized",this.La.bind(this));this.Z(O,"videodatachange",this.La.bind(this));g.t(this,this.countLabel);g.Cc(this,this.countLabel);this.mp.sR(this);this.Z(O,"onPlaybackAudioChange",this.eE);this.listen("keydown",this.I2);this.listen("click",this.open)}; $J=function(O,V){I3.call(this,"Autoplay",g.o3.zU);this.G=O;this.mp=V;this.K=!1;this.j=[];this.Z(O,"presentingplayerstatechange",this.La);this.subscribe("select",this.onSelect,this);O.createClientVe(this.element,this,113682);this.La()}; rWd=function(O,V){g.Ft.call(this,g.Ny({"aria-haspopup":"false"}),0,"More options");this.G=O;this.mp=V;this.Z(this.element,"click",this.onClick);this.mp.sR(this)}; iPd=function(O,V){var J;g.ZG(O.Y())&&(J={X:"div",C:"ytp-panel-footer-content",J:[{X:"span",Rl:"Adjust download quality from your "},{X:"a",C:"ytp-panel-footer-content-link",Rl:"Settings",N:{href:"/account_downloads"}}]});g.og.call(this,"Quality",g.o3.YA,O,V,void 0,void 0,J);this.G=O;this.lw={};this.V={};this.j={};this.fD=new Set;this.K=this.D=!1;this.W="unknown";this.S="";this.KD=new g.nO;g.t(this,this.KD);this.D=this.G.L("web_player_use_new_api_for_quality_pullback");this.K=this.G.L("web_player_enable_premium_hbr_playback_cap"); O.L("web_settings_menu_icons")&&(V=O.L("delhi_modern_web_player_icons")?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(V));g.D0(this.Ld.element,"ytp-quality-menu");this.Z(O,"videodatachange",this.La);this.Z(O,"videoplayerreset",this.La);this.Z(O,"onPlaybackQualityChange",this.ZY);this.La();O.createClientVe(this.element,this,137721)}; BBn=function(O,V,J){var y=O.lw[V],l=g.g3[V];return ROU(O,y?y.qualityLabel:l?l+"p":"Auto",V,J)}; PSY=function(O,V,J,y,l){var m=(V=O.K?O.j[V]:O.V[V])&&V.quality,H=V&&V.qualityLabel;H=H?H:"Auto";y&&(H="("+H);O=ROU(O,H,m||"",l);y&&O.J.push(")");(y=(y=V&&V.paygatedQualityDetails)&&y.paygatedIndicatorText)&&J&&O.J.push({X:"div",C:"ytp-premium-label",Rl:y});return O}; ROU=function(O,V,J,y){V={X:"span",Fj:y,J:[V]};var l;y="ytp-swatch-color";if(O.D||O.K)y="ytp-swatch-color-white";J==="highres"?l="8K":J==="hd2880"?l="5K":J==="hd2160"?l="4K":J.indexOf("hd")===0&&J!=="hd720"&&(l="HD");l&&(V.J.push(" "),V.J.push({X:"sup",C:y,Rl:l}));return V}; Hz=function(O){wp.call(this,O.getAvailablePlaybackRates()[0],O.getAvailablePlaybackRates()[O.getAvailablePlaybackRates().length-1],.05,O.getPlaybackRate(),{X:"div",C:"ytp-speedslider-indicator-container",J:[{X:"div",C:"ytp-speedslider-badge"},{X:"p",C:"ytp-speedslider-text"}]});this.G=O;this.T=Ko(this.EG,50,this);g.D0(this.j,"ytp-speedslider");this.S=this.DN("ytp-speedslider-text");this.KD=this.DN("ytp-speedslider-badge");this.IN();this.Z(this.j,"change",this.FA5)}; j_=function(O,V,J,y,l,m,H){g.r.call(this,{X:"div",C:"ytp-slider-section",N:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{X:"div",C:"ytp-slider",J:[{X:"div",C:"ytp-slider-handle"}]}]});this.S=O;this.T=V;this.j=J;this.U=y;this.KD=l;this.dW=m;this.range=this.U-this.j;this.Vz=this.DN("ytp-slider-section");this.D=this.DN("ytp-slider");this.lw=this.DN("ytp-slider-handle");this.V=new g.M0(this.D, !0);this.K=H?H:J;g.t(this,this.V);this.V.subscribe("dragmove",this.Pb,this);this.Z(this.element,"keydown",this.Zd);this.Z(this.element,"wheel",this.nN);this.init()}; CB=function(O){j_.call(this,.05,.05,O.getAvailablePlaybackRates()[0],O.getAvailablePlaybackRates()[O.getAvailablePlaybackRates().length-1],150,20,O.getPlaybackRate());this.G=O;this.W=g.I1("P");this.O5=Ko(this.fD,50,this);g.D0(this.D,"ytp-speedslider");g.D0(this.W,"ytp-speedslider-text");O=this.W;var V=this.D;V.parentNode&&V.parentNode.insertBefore(O,V.nextSibling);this.IN();this.Z(this.G,"onPlaybackRateChange",this.updateValues)}; kgr=function(O,V){O=Number(g.BZ(V,O.j,O.U).toFixed(2));V=Math.floor((O+.001)*100%5+2E-15);var J=O;V!==0&&(J=O-V*.01);return Number(J.toFixed(2))}; ShV=function(O){g.OF.call(this,{X:"div",C:"ytp-speedslider-component"});O.L("web_settings_use_input_slider")?this.K=new Hz(O):this.K=new CB(O);g.t(this,this.K);this.element.appendChild(this.K.element)}; Da5=function(O){var V=new ShV(O);sX.call(this,O,V,"Custom");g.t(this,V)}; VcU=function(O,V){var J=new Da5(O);g.og.call(this,"Playback speed",g.o3.fX,O,V,F4(O)?void 0:"Custom",F4(O)?void 0:function(){g.Yi(V,J)}); var y=this;this.S=new g.r({X:"div",C:"ytp-menuitem-premium-badge",N:{"aria-label":"Premium"}});this.W=!1;this.Ty={fC5:function(){return y.D}}; g.t(this,J);this.X$=new Hz(O);g.t(this,this.X$);if(O.L("web_settings_menu_icons")){var l=O.L("delhi_modern_web_player_icons")?Hzr():{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(l)}this.G=O;this.W=!1;this.KD=null;F4(O)?(this.K=g.kv("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.G.getPlaybackRate().toString()}),this.V=this.G.getPlaybackRate()):this.V=this.K=null;g.t(this,this.S);var m,H,F,N;this.lw=(m=this.G.getVideoData())==null?void 0:(H=m.getWatchNextResponse())==null?void 0:(F=H.playerOverlays)==null?void 0:(N=F.playerOverlayRenderer)==null?void 0:N.showPlaybackRateUpsellPanelCommand;O0r(O,this.lw)?(this.j=NQ(4),this.G.createClientVe(this.S.element, this,273508)):this.j=null;this.G.L("enable_web_premium_varispeed_upsell")&&this.G.createClientVe(this.element,this,278479);this.D=this.G.getAvailablePlaybackRates();this.Z(O,"presentingplayerstatechange",this.Qz);var x;((x=this.G.getVideoData())==null?0:x.Yr())&&this.Z(O,O.Y().gC().K.s5(la)?"playbackChange":"serverstitchedvideochange",this.Qz);this.Z(O,"videodatachange",this.onVideoDataChange);this.Z(this.X$.j,"change",function(){y.W=!0;y.Qz()}); this.Qz()}; JMY=function(O,V){var J=NQ(V);O.K&&(O.W||V===O.V)?(O.bB(O.K),O.setContent(V.toString())):O.bB(J)}; lnn=function(O){var V=O.D.map(NQ);O.j&&V.push(O.j);O.w8(V);O.K=null;O.V=null;V=O.G.getPlaybackRate();F4(O.G)&&yMd(O,V);!O.D.includes(V)||O.W?O.bB(O.K):O.bB(NQ(V))}; yMd=function(O,V){O.V=V;O.K=g.kv("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:V.toString()});V=O.D.map(NQ);V.unshift(O.K);O.j&&V.push(O.j);O.w8(V)}; m6o=function(O,V,J,y){J=new g.Ft({X:"div",Fj:["ytp-menuitem"],N:{tabindex:"0",role:"menuitemradio","aria-checked":y?"true":"false"},J:[{X:"div",Fj:["ytp-menuitem-label"],J:[{X:"div",Fj:["ytp-menuitem-container-with-badge"],J:[{X:"div",Rl:"{{label}}"},O.S]}]}]},J,O.r0(V));J.listen("click",function(){O.gm(V)}); return J}; NQ=function(O){return O.toString()}; F4=function(O){return O.L("web_settings_menu_surface_custom_playback")}; O0r=function(O,V){return!!V&&O.getAvailablePlaybackRates()[O.getAvailablePlaybackRates().length-1]<=2}; $61=function(O){return O.L("web_settings_menu_surface_custom_playback")&&O.L("web_settings_use_input_slider")}; j77=function(O,V,J,y){var l=new g.TW(V,void 0,"Video Override");g.og.call(this,y.text||"",O,V,J,"Video Override",function(){g.Yi(J,l)}); var m=this;g.D0(this.element,"ytp-subtitles-options-menu-item");this.setting=y.option.toString();O=y.options;this.settings=g.FC(O,this.HW,this);this.D=l;g.t(this,this.D);V=new g.Ft({X:"div",C:"ytp-menuitemtitle",Rl:"Allow for a different caption style if specified by the video."},0);g.t(this,V);this.D.sR(V,!0);this.j=new g.Ft({X:"div",C:"ytp-menuitem",N:{role:"menuitemradio",tabindex:"0"},J:[{X:"div",C:"ytp-menuitem-label",Rl:"On"}]},-1);g.t(this,this.j);this.D.sR(this.j,!0);this.Z(this.j.element, "click",function(){H0r(m,!0)}); this.K=new g.Ft({X:"div",C:"ytp-menuitem",N:{role:"menuitemradio",tabindex:"0"},J:[{X:"div",C:"ytp-menuitem-label",Rl:"Off"}]},-2);g.t(this,this.K);this.D.sR(this.K,!0);this.Z(this.K.element,"click",function(){H0r(m,!1)}); this.w8(g.Ia(O,this.HW))}; H0r=function(O,V){O.publish("settingChange",O.setting+"Override",!V);O.mp.jG()}; xJ=function(O,V){g.TW.call(this,O,void 0,"Options");var J=this;this.o3={};for(var y=0;y0)for(b=g.n(Z),w=b.next(),M={};!w.done;M={Uj:void 0, qz:void 0,bA:void 0},w=b.next())M.bA=w.value,M.Uj=Y&&M.bA.isPremiumUpsell,M.qz=new g.r({X:"button",Fj:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],J:M.Uj?[{X:"div",C:"ytp-variable-speed-panel-premium-upsell-icon"},{X:"span",Rl:""+M.bA.label}]:[{X:"span",Rl:""+M.bA.label}]}),M.Uj&&(this.G.createClientVe(M.qz.element,this,273508),this.G.logVisibility(M.qz.element,!0)),g.t(this,M.qz),J.element.appendChild(M.qz.element),M.qz.listen("click",function(L){return function(){L.Uj? (U.G.MX("innertubeCommand",Y),O.logClick(L.qz.element)):L.bA.value&&U.G.setPlaybackRate(L.bA.value/100);O.logClick(J.element)}}(M)),Z=void 0,w=new g.r({X:"div", C:"ytp-variable-speed-panel-preset-button-wrapper",N:{"data-priority":""+((Z=M.bA.priority)!=null?Z:0)},J:[M.qz]}),g.t(this,w),M.bA.value===100&&(M=new g.r({X:"div",C:"ytp-variable-speed-panel-preset-button-label-text",Rl:"Normal"}),g.t(this,M),w.element.appendChild(M.element)),J.element.appendChild(w.element);this.Z(this.X$.j,"input",function(){U.IN(U.X$.K)}); this.Z(O,"onPlaybackRateChange",this.onPlaybackRateChange);this.Z(O,"resize",m);this.onPlaybackRateChange(O.getPlaybackRate());this.rQ()}; zi=function(O,V){g.og.call(this,"Playback speed",g.o3.fX,O,V);this.G=O;O.L("web_settings_menu_icons")&&this.setIcon(Hzr());this.j(O.getPlaybackRate());this.Z(O,"onPlaybackRateChange",this.j);this.Z(O,"presentingplayerstatechange",this.K);var J;((J=this.G.getVideoData())==null?0:J.Yr())&&this.Z(O,O.Y().gC().K.s5(la)?"playbackChange":"serverstitchedvideochange",this.K);this.K()}; Wx1=function(O){g.Ig.call(this,O,"ytp-settings-menu");var V=this;this.tL=new g.TW(this.G);this.jU=this.Q4=this.settingsButton=null;this.isInitialized=this.z5=!1;g.t(this,this.tL);this.hide();g.Yi(this,this.tL);O.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(l){V.D_(l)}); this.Z(O,"highlightSettingsMenu",function(){V.z5=!0;V.Zg()}); this.Z(O,"openSettingsMenuItem",function(l){if(l&&(V.z5=!0,V.Zg(),l==="menu_item_video_quality_advanced")){var m;(m=V.Q4)==null||m.open()}}); O.L("html5_enable_voice_boost")&&(this.Z(O,"onPlaybackAudioChange",this.eE),this.Z(O,"videodatachange",this.eE));var J,y;((J=this.G.Y())==null?0:(y=J.getWebPlayerContextConfig())==null?0:y.enableFullscreenComponentsFeature)&&this.Z(this.element,"wheel",function(l){l.stopPropagation()})}; U6p=function(O,V){O.settingsButton=V;O.element.id=V.element.getAttribute("aria-controls")}; zoV=function(O,V){g.r.call(this,{X:"button",Fj:["ytp-subtitles-button","ytp-button"],N:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:O.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},J:[O.L("delhi_modern_web_player_icons")?{X:"div",C:"ytp-subtitles-button-icon",Rl:"{{icon}}"}:BlU(O)]});this.G=O;this.tooltip=V.Sy();O.L("delhi_modern_web_player_icons")&&this.updateValue("icon", Z0o(this));this.Z(O,"videodatachange",this.Qz);this.Z(O,"appresize",this.Qz);this.Z(O,"promotooltipacceptbuttonclicked",this.e_5);this.Z(O,"onApiChange",this.Qz);this.Z(O,"onCaptionsTrackListChanged",this.Qz);this.Z(O,"captionschanged",this.Qz);this.G.createClientVe(this.element,this,127299);this.Qz();this.listen("click",this.onClick);this.addOnDisposeCallback(g.Q_(V.Sy(),this.element))}; cz=function(O){return g.Yn(O.G.Fs())!=null?g.Yn(O.G.Fs()).Sx()?!!O.G.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; Z0o=function(O){if(O.G.L("delhi_modern_web_player_icons"))return O=pc.includes("en")?cz(O)&&O.isEnabled()?{X:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:CI():cz(O)&&O.isEnabled()?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:cGH()}; g.sa=function(O,V,J){J=J===void 0?350:J;g.r.call(this,{X:"div",Fj:["ytp-time-display","notranslate"],J:[{X:"div",C:"ytp-time-wrapper",J:[{X:"div",C:"ytp-time-contents",N:O.L("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},J:[{X:"span",C:"ytp-time-clip-icon",Rl:"{{clipicon}}",N:{"aria-label":"Clip"}},{X:"span",C:"ytp-time-current",Rl:"{{currenttime}}"},{X:"span",C:"ytp-time-separator",Rl:" / "},{X:"span",C:"ytp-time-duration", Rl:"{{duration}}"}]}]},{X:"span",C:"ytp-clip-watch-full-video-button-separator",Rl:"\u2022"},{X:"span",C:"ytp-clip-watch-full-video-button",Rl:"{{watchfullvideo}}"}]});var y=this;this.api=O;this.KD=J;this.liveBadge=new g.r({X:"button",Fj:["ytp-live-badge","ytp-button"],N:{disabled:"true"},Rl:"{{content}}"});this.K=null;this.Hk=this.j=!1;this.T=this.S=this.V=null;this.isPremiere=!1;this.W=this.D=null;this.U=!1;this.ih=this.liveIndicatorText=null;this.lw=this.DN("ytp-clip-watch-full-video-button"); this.liveBadge.setContent("Live");g.t(this,this.liveBadge);this.api.L("web_player_updated_entrypoint")||this.api.L("delhi_modern_web_player")?this.liveBadge.rW(this.DN("ytp-time-wrapper")):this.liveBadge.rW(this.element);this.tooltip=V.Sy();this.liveBadge.listen("click",this.onClick.bind(this));this.api.L("delhi_modern_web_player")&&(V=this.DN("ytp-time-wrapper"),this.Z(V,"click",this.wBw),V.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.Z(this.lw,"click",this.Uqv);this.Z(this.api, this.api.Y().gC().K.s5(la)?"playbackChange":"serverstitchedvideochange",function(){cMU(y,y.api.getProgressState().isAtLiveHead)}); this.Z(O,"presentingplayerstatechange",this.VK);this.Z(O,"appresize",this.VK);this.Z(O,"onLoopRangeChange",this.onLoopRangeChange);this.Z(O,"videodatachange",this.onVideoDataChange);(V=O.getVideoData())&&this.updateVideoData(V);this.VK();s75(this,O.getLoopRange())}; cMU=function(O,V){var J=O.liveBadge.element,y=O.api.isLifaAdPlaying();J.disabled=y||V;!Ti(O)||O.T===V&&O.S===O.liveIndicatorText&&O.V===O.isPremiere||(O.T=V,O.S=O.liveIndicatorText,O.V=O.isPremiere,O.VK(),V?J.classList.add("ytp-live-badge-is-livehead"):J.classList.remove("ytp-live-badge-is-livehead"),O.liveIndicatorText?O.liveBadge.setContent(O.liveIndicatorText):O.liveBadge.setContent(O.isPremiere?"Premiere":"Live"),V?O.K&&(O.K(),O.K=null,J.removeAttribute("data-tooltip-title")):(J.setAttribute("data-tooltip-title", "Skip ahead to live broadcast."),O.K=g.Q_(O.tooltip,O.liveBadge.element)))}; s75=function(O,V){var J=O.ih!==V;O.ih=V;J&&TZ7(O)}; TZ7=function(O){O.updateValue("clipicon",{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},J:[{X:"path",N:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); O.Hk&&!O.j?O.updateValue("watchfullvideo","Watch live stream"):O.updateValue("watchfullvideo","Watch full video");g.yf(O.element,"ytp-clip",e_(O));g.yf(O.element,"ytp-live",Ti(O))}; Ti=function(O){var V=O.api.Y().L("enable_linear_program_progress"),J=O.api.getPresentingPlayerType()===2;return O.Hk&&!e_(O)&&(!V||!O.j)&&!J}; e_=function(O){return!!O.ih&&!!O.ih.postId&&O.api.getPresentingPlayerType()!==2&&(!O.ih.type||O.ih.type==="clips")}; YPH=function(O,V){g.r.call(this,{X:"div",C:"ytp-volume-panel",N:{title:O.L("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{X:"div",C:"ytp-volume-slider",J:[{X:"div",C:"ytp-volume-slider-handle"}]}]});var J=this;this.api=O;this.V=V;this.vc=!1;this.KD=this.volume=0;this.W=null;this.j=this.K=this.isDragging=!1;this.V=V;this.U=O.UY(); this.T=O.L("web_player_use_screen_width_for_big_mode");this.S=this.DN("ytp-volume-slider");this.lw=this.DN("ytp-volume-slider-handle");this.D=new g.M0(this.S,!0);g.t(this,this.D);this.D.subscribe("dragstart",this.ZaW,this);this.D.subscribe("dragmove",this.Yx,this);this.D.subscribe("dragend",this.PlL,this);this.Z(O,"onVolumeChange",this.onVolumeChange);this.Z(O,"appresize",this.DIN);this.Z(O,"fullscreentoggled",this.xR);this.Z(O,"onShowControls",this.q7);this.Z(O,"onHideControls",this.q7);this.Z(this.element, "keydown",this.MY);this.Z(this.element,"focus",function(){Is(J,J.K,J.isDragging,!0,J.api.vc())}); this.Z(this.element,"blur",function(){Is(J,J.K,J.isDragging,!1,J.api.vc())}); eoU(this,O.tv().getPlayerSize());Inp(this,O.getVolume(),O.isMuted());Gc(O,this.element,this)}; anl=function(O){var V=O.api.UY();O.U!==V&&(O.U=V,Inp(O,O.api.getVolume(),O.api.isMuted()))}; eoU=function(O,V){O.PY(V.width>=350)}; Inp=function(O,V,J){var y=Math.floor(V),l=y+"% volume"+(J?" muted":"");J=J?0:V/100;O.updateValue("valuenow",y);O.updateValue("valuetext",l);y=O.U?78:52;l=!O.api.L("delhi_modern_web_player")&&O.U?18:12;O.lw.style.left=(y-l)*J+"px";O.volume=V}; b0X=function(O,V){g.yf(O.element,"ytp-volume-control-hover",V);Is(O,V,O.isDragging,O.j,O.api.vc())}; Is=function(O,V,J,y,l){var m=O.K||O.isDragging||O.j||O.vc;O.K=V;O.isDragging=J;O.j=y;O.vc=l;V=O.K||O.isDragging||O.j||O.vc;m!==V&&(V?O.W=O.Z(O.element,"wheel",O.Hb):(O.oX(O.W),O.W=null),g.yf(O.V,"ytp-volume-slider-active",V))}; YJ=function(O,V){var J=O.Y(),y=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];J.U&&y.push("no-link");var l={title:O.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:J.qX,"data-priority":"6","data-sessionlink":"feature=player-button"};J.U||(l.href="{{url}}");g.r.call(this,{X:"a",Fj:y,N:l,Rl:"{{logoSvg}}"});this.K=null;this.api=O;this.visible=!1;J.U||(this.K=this.listen("click",this.onClick));this.Z(O,"videodatachange",this.onVideoDataChange); this.Z(O,"videoplayerreset",this.onVideoDataChange);this.Z(O,"onLoopRangeChange",this.onVideoDataChange);this.Z(O,"appresize",this.zy);this.onVideoDataChange();J.U||this.addOnDisposeCallback(g.Q_(V.Sy(),this.element));this.zy()}; fn7=function(O,V,J){g.jX.call(this);var y=this;this.G=O;this.fD=V;this.xp=J;this.TL=NaN;this.lw=this.yz=this.playButton=this.D=this.W=this.LD=this.Vz=this.KD=this.qX=this.muteButton=this.S=this.E5=this.pV=this.zL=null;this.j=new Wx1(this.G);this.progressBar=new g.Kt(this.G,this.fD);this.o_=new g.sa(this.G,this.fD);this.nD=new fvr(this.G,this.fD);this.T=new g.KZ(this.Tp,null,this);J=O.Y();this.xp.subscribe("autohideupdate",this.Nl,this);var l=!O.getPlayerStateObject().isCued(),m;(this.Ks=!O.L("delhi_modern_web_player")&& O.Y().L("html5_player_dynamic_bottom_gradient"))?this.E5=m=new Y3p(O):m=new g.r({X:"div",C:"ytp-gradient-bottom"});g.t(this,m);g.kD(O,m.element,9);this.dW=new g.AV(m,250,l,100);g.t(this,this.dW);this.K=new g.r({X:"div",C:"ytp-chrome-bottom",J:[{X:"div",C:"ytp-chrome-controls"}]});g.t(this,this.K);g.kD(O,this.K.element,9);O.L("frosted_glass_controls_opacity_animation")&&this.K.element.classList.add("ytp-frosted-glass-opacity-animation");this.O5=new g.AV(this.K,250,l,100);g.t(this,this.O5);this.ol= this.K.element.children[0];g.t(this,this.j);g.kD(O,this.j.element,6);this.j.subscribe("show",function(x){y.G.TY(!x);O.GH(y.j,x)}); g.t(this,this.progressBar);as(this,this.progressBar,this.K.element,void 0,0);l=new ft(O,V);g.t(this,l);g.kD(O,l.element,4);l=new g.kb({X:"div",C:"ytp-left-controls"});g.t(this,l);l.rW(this.ol);O.L("delhi_modern_web_player")||(m=new g.dp(O,V,!1),g.t(this,m),as(this,m,l.element));O.L("web_render_jump_buttons")&&(this.qX=new hp(O,-10),g.t(this,this.qX),as(this,this.qX,l.element));J.LD||(this.playButton=new g.EQ(O,V),g.t(this,this.playButton),as(this,this.playButton,l.element));O.L("web_render_jump_buttons")&& (this.KD=new hp(O,10),g.t(this,this.KD),as(this,this.KD,l.element));O.L("delhi_modern_web_player")&&(m=new g.dp(O,V,!1),g.t(this,m),as(this,m,l.element));m=new g.dp(O,V,!0);g.t(this,m);as(this,m,l.element);if(!O.L("delhi_modern_web_player")||O.L("delhi_modern_web_player_horizontal_volume_controls"))if(m=new g.r({X:"span",C:"ytp-volume-area"}),g.t(this,m),as(this,m,l.element),!J.dX&&(this.muteButton=new Xn(O,V),g.t(this,this.muteButton),this.muteButton.rW(m.element),J.Vz&&!J.S)){var H=new YPH(O,this.K.element); this.yz=H;g.t(this,H);H.rW(m.element);m=new g.M0(m.element);g.t(this,m);m.subscribe("hoverstart",function(){var x;(x=y.yz)==null||b0X(x,!0)}); m=new g.M0(l.element);g.t(this,m);m.subscribe("hoverend",function(){var x;(x=y.yz)==null||b0X(x,!1)})}O.L("delhi_modern_web_player_lhs_volume_controls")&&!O.L("delhi_modern_web_player_horizontal_volume_controls")&&(l.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new Xn(O,V),g.t(this,this.muteButton),this.muteButton.rW(l.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.t(this,this.o_);as(this,this.o_,l.element,"ytp-time-wrapper");this.Vz=new bu(O,this.progressBar);g.t(this,this.Vz);as(this,this.Vz,l.element,"ytp-chapter-title");J.L("web_key_moments_markers")&&(this.LD=new oQ(O,this.progressBar),g.t(this,this.LD),as(this,this.LD,l.element,"ytp-chapter-title"));O.L("delhi_modern_web_player")?this.U=new g.kb({X:"div",C:"ytp-right-controls",J:[{X:"div",C:bK.RIGHT_CONTROLS_LEFT},{X:"div",C:bK.RIGHT_CONTROLS_RIGHT}]}):this.U=new g.kb({X:"div",C:"ytp-right-controls"}); g.t(this,this.U);as(this,this.U,this.ol);O.L("delhi_modern_web_player")&&(this.S=new pt(O),g.t(this,this.S),this.S.rW(this.U.DN(bK.RIGHT_CONTROLS_LEFT)),O.L("delhi_modern_web_player_lhs_volume_controls")||O.L("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new Xn(O,V),g.t(this,this.muteButton),this.muteButton.rW(this.U.DN(bK.RIGHT_CONTROLS_LEFT))));this.eB=new zoV(O,V);g.t(this,this.eB);pB(this,this.eB,"RIGHT_CONTROLS_LEFT");this.settingsButton=new lK(O,this.j);g.t(this,this.settingsButton); U6p(this.j,this.settingsButton);pB(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");l=O.getVideoData();if(J.M5||l.tC&&J.controlsType==="1")this.W=new YJ(O,V),g.t(this,this.W),this.W.rW(this.U.element);J.showMiniplayerButton&&!O.L("web_player_miniplayer_in_context_menu")&&(this.D=new vV(O),g.t(this,this.D),pB(this,this.D,"RIGHT_CONTROLS_RIGHT"));J.showMiniplayerButton&&this.Z(O,"minimized",function(){y.j.hide()}); J.lM&&(V=new yF(O,this.j),g.t(this,V),pB(this,V,"RIGHT_CONTROLS_RIGHT"));J.Ht&&(V=new Y5(O),g.t(this,V),pB(this,V,"RIGHT_CONTROLS_RIGHT"));g.t(this,this.nD);pB(this,this.nD,"RIGHT_CONTROLS_RIGHT");g.t(this,this.T);this.Z(O,"appresize",this.zy);this.Z(O,"fullscreentoggled",this.zy);var F;(F=this.S)==null||F.subscribe("small-mode-expand-right-bottom-controls",function(){pc5(y)}); var N;(N=this.S)==null||N.subscribe("small-mode-collapse-right-bottom-controls",function(){pc5(y)}); this.Z(O,"presentingplayerstatechange",this.gf);this.Z(O,"videodatachange",this.onVideoDataChange);this.zy()}; pc5=function(O){O.K.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",O.S.isExpanded())}; hor=function(O,V){O.G.getPlayerStateObject().isCued()||V?V&&(O.O5.hide(),O.dW.hide(),O.muteButton&&O.muteButton.lR(!1),O.W&&O.W.lR(!1),O.D&&O.D.lR(!1),O.G.CB(O.dC())):V||(O.O5.show(),O.dW.show(),O.muteButton&&O.muteButton.lR(!0),O.W&&O.W.lR(!0),O.D&&O.D.lR(!0),O.Nl())}; vMd=function(O){var V=O.G.tv().getPlayerSize().width;return Math.max(V-oM1(O)*2,100)}; oM1=function(O){if(O.G.L("web_player_rtr_ctrls")&&O.G.tv().Eo)return 0;var V=O.G.UY(),J=O.G.getVideoData().tC,y=0;O.G.UY()&&O.G.isEmbedsShortsMode()&&(y=(O.G.tv().getPlayerSize().width-O.G.getVideoContentRect().width)/2);return 12*(J?0:V?2:1)+y}; wcp=function(O){var V=O.G.UY()?72:50,J=O.G.Y();g.ZG(J)&&(J.L("delhi_modern_web_player")?(V=g.Ry(J.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),V=O.G.L("delhi_modern_web_player_compact_controls")||V>0&&O.G.getPlayerSize().width<=V,V=O.G.UY()?J.L("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:V?70:78,O.G.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(O=getComputedStyle(O.G.getRootNode()).getPropertyValue("--ytp-grid-peek-height")|| "36px",V+=Number(O.replace("px","")))):V=62,g.Oj(J)&&(V=54));return V}; pB=function(O,V,J){O.G.L("delhi_modern_web_player")?V.rW(O.U.DN(bK[J])):V.rW(O.U.element)}; as=function(O,V,J,y,l){V.rW(J,l);O.G.L("frosted_glass_controls_opacity_animation")&&(O=V.element,y&&(O=V.DN(y)),O.classList.add("ytp-autohide-fade-transition"))}; Lxl=function(O){c9.call(this,O,!1);var V=this;this.suggestedActions={};this.K=null;this.U=!1;this.element.setAttribute("data-overlay-order","7");this.Z(this.G,"videodatachange",this.onVideoDataChange);this.Z(this.G,g.Q9("suggested_action_button_visible"),function(J){Mcp(V,J.id);V.enabled=!0;V.D_()}); this.Z(this.G,g.Gd("suggested_action_button_visible"),function(J){V.enabled=!1;V.D_();V.G.removeCueRange(J.id)}); this.Z(O,"presentingplayerstatechange",this.onStateChange)}; Mcp=function(O,V){O.text=V;gB5(O);var J;O.onClickCommand=(J=O.suggestedActions[V])==null?void 0:J.tapCommand}; nMo=function(O){O.suggestedActions={};O.G.iO("suggested_action_button_visible");O.K=null;O.G.setTrackingParams(O.badge.element,null);O.j=!1;O.U=!1}; hx=function(O){g.r.call(this,{X:"div",C:fB.TITLE,J:[{X:"div",Fj:[fB.TEXT,O.L("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],J:[{X:"a",Fj:[fB.LINK,fB.SESSIONLINK],N:{target:O.Y().qX,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Rl:"{{title}}"},{X:"div",C:fB.SUBTEXT,J:["{{subtextElement}}"]}]}]});this.api=O;this.K=null;this.link=this.DN(fB.LINK);O.createClientVe(this.element,this,23851);this.Z(O,"videodatachange",this.Qz); this.Z(O,"videoplayerreset",this.Qz);this.Qz()}; XcH=function(O){O.updateValue("channelLink","");O.updateValue("channelName","");g.Oj(O.api.Y())||O.api.L("enable_channel_title_always_focusable")?O.updateValue("channelTitleFocusable","0"):O.updateValue("channelTitleFocusable","-1")}; g.os=function(O,V){g.r.call(this,{X:"div",J:[{X:"div",C:"ytp-tooltip-text-wrapper",N:{"aria-hidden":"{{ariaHidden}}"},J:[{X:"div",C:"ytp-tooltip-edu",J:[{X:"svg",N:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",N:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{X:"span",Rl:"{{eduText}}"}]},{X:"div",C:"ytp-tooltip-image"},{X:"div",C:"ytp-tooltip-title",J:[{X:"span",Rl:"{{title}}"},{X:"div",C:"ytp-tooltip-keyboard-shortcut", Rl:"{{keyBoardShortcutTitle}}"}]},{X:"div",C:"ytp-tooltip-bottom-text",J:[{X:"span",C:"ytp-tooltip-text",Rl:"{{text}}"},{X:"div",C:"ytp-tooltip-keyboard-shortcut",Rl:"{{keyBoardShortcut}}"}]},{X:"div",C:"ytp-tooltip-progress-bar-pill",J:[{X:"div",C:"ytp-tooltip-progress-bar-pill-time-stamp",Rl:"{{pillTimeStamp}}"},{X:"div",C:"ytp-tooltip-progress-bar-pill-title",Rl:"{{pillTitle}}"}]}]},{X:"div",C:"ytp-tooltip-bg",J:[{X:"div",C:"ytp-tooltip-duration",Rl:"{{duration}}"}]}]});var J=this;this.api=O;this.Vz= V;this.T=function(y){(y=y.relatedTarget)&&g.h8(J.K,y)||J.ez()}; this.W=function(y){J.type===3&&J.ez();(y=y.currentTarget)&&y.nodeType===1&&!J.type&&(y.removeEventListener("mouseover",J.W),y.addEventListener("mouseout",J.T),y.removeEventListener("focus",J.W),y.addEventListener("blur",J.T),EMH(J,y,2))}; this.KD=function(){J.ez()}; this.type=this.K=null;this.S=!1;this.j=null;this.U="";this.V=!0;this.scale=1;this.env=this.api.Y();this.O5=this.env.j;this.wrapper=this.DN("ytp-tooltip-text-wrapper");this.bg=this.DN("ytp-tooltip-bg");this.dW=this.DN("ytp-tooltip-edu");this.image=this.DN("ytp-tooltip-image");this.text=this.DN("ytp-tooltip-text");this.bottomText=this.DN("ytp-tooltip-bottom-text");this.title=this.DN("ytp-tooltip-title");this.fade=new g.AV(this,100);this.D=NaN;this.Ys=this.api.tv().getPlayerSize().width;this.lw=new g.t_(this.XYj, 250,this);this.fD=new g.t_(this.ez,5E3,this);g.t(this,this.fade);g.t(this,this.lw);g.t(this,this.fD);u8&&(O=this.DN("ytp-tooltip-text"),O.setAttribute("role","text"),O.setAttribute("aria-live","polite"))}; d65=function(O,V){O.env.L("delhi_modern_web_player")&&O.scale!==.6&&(O.scale=V?.8:1)}; g.Q_=function(O,V){if(O.O5)return function(){}; V.addEventListener("mouseover",O.W);V.addEventListener("focus",O.W);var J=O.env.L("player_tooltip_data_title_killswitch")?V.getAttribute("title"):V.getAttribute("data-tooltip-title");J&&!V.hasAttribute("aria-label")&&V.setAttribute("aria-label",J);return function(){O.K===V&&O.ez();V.removeEventListener("mouseover",O.W);V.removeEventListener("focus",O.W)}}; EMH=function(O,V,J,y){if(V&&!V.hasAttribute)O=new g.pn("showElementTooltip called with non-element.",V.toString()),g.sk(O);else{isNaN(O.D)||(O.D=NaN,O.bg.style.background="");g.Vf(O.element,"ytp-tooltip-progress-bar-style");O.K=V;O.S=!!y;y?O.U=y:(O.env.L("player_tooltip_data_title_killswitch")?O.U=V.getAttribute("title"):O.U=V.getAttribute("data-tooltip-title"),O.env.L("player_tooltip_data_title_killswitch")?V.removeAttribute("title"):V.removeAttribute("data-tooltip-title"));g.k6(O.element,"ytp-tooltip"); var l=V.getAttribute("data-tooltip-image");l&&(O.image.style.backgroundImage="url("+l+")");y?O.update({ariaHidden:"false"}):O.update({ariaHidden:"true"});g.yf(O.element,"ytp-tooltip-image-enabled",!!l);V=V.getAttribute("data-tooltip-opaque");g.yf(O.element,"ytp-tooltip-opaque",!!V);O.type=J;O.api.addEventListener("appresize",O.KD);O.V&&(vz(O),O.fade.show(0))}}; vz=function(O){if(O.K){var V=O.K.getAttribute("data-tooltip-text");if(O.U&&O.K.getAttribute("aria-label")!==O.U)var J=O.U;var y=O.K.getAttribute("aria-keyshortcuts"),l=O.K.getAttribute("data-title-no-tooltip");y&&l&&(J=g.kv("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:l,SHORTCUT_KEY:y}));J&&O.K.setAttribute("aria-label",J);if(V&&!O.S){d65(O,!0);var m=O.K;O.updateValue("text",V);J=m.getAttribute("data-duration");O.update({title:O.U,duration:J});m=m.getAttribute("data-preview");O.env.L("delhi_modern_web_player")? (O.updateValue("title",l),O.updateValue("keyBoardShortcutTitle",y.toUpperCase())):d65(O,!1);y=243*O.scale;l=141*O.scale;O.bg.style.width=y+"px";O.bg.style.height=l+"px";O.bg.style.backgroundImage=m?"url("+m+")":"";O.bg.style.backgroundSize=y+"px "+l+"px";O.wrapper.style.width=y+"px";g.Og(O.element,["ytp-text-detail","ytp-preview"]);g.yf(O.element,"ytp-has-duration",!!J)}else l&&y&&O.env.L("delhi_modern_web_player")?(O.updateValue("text",l),O.updateValue("keyBoardShortcut",y.toUpperCase())):O.updateValue("text", O.U),g.Jn(O.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);J=O.K;J.hasAttribute("data-tooltip-offset-y")?(J=Number(J.getAttribute("data-tooltip-offset-y")),J=isNaN(J)?0:J):J=0;gMX(O,!!V,void 0,J)}}; gMX=function(O,V,J,y){var l=Math.min(O.Ys,300*O.scale);O.element.style.maxWidth=V?"":l+"px";O.Vz.bj(O.element,O.K,J,O.type===1,y);O.element.style.top?g.D0(O.element,"ytp-bottom"):O.element.style.bottom&&g.D0(O.element,"ytp-top");O.type===3&&O.fD.start()}; qPl=function(O,V){g.yf(O.element,"ytp-preview",V>=0);if(!(V<0||V===O.D)){O.D=V;V=243*O.scale;var J=141*O.scale,y=Pzd(O.j,O.D,V);avh(O.bg,y,V,J,!0);O.lw.start()}}; Q7Y=function(O){var V=O.K;O.type===3&&O.fD.stop();O.api.removeEventListener("appresize",O.KD);O.S||(O.env.L("player_tooltip_data_title_killswitch")?V.setAttribute("title",O.U):V.setAttribute("data-tooltip-title",O.U));O.U="";O.K=null;O.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});O.wrapper.style.width=""}; KxV=function(O){g.r.call(this,{X:"button",Fj:["ytp-watch-later-button","ytp-button"],N:{title:O.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.R2(O.Y()))},J:[{X:"div",C:"ytp-watch-later-icon",Rl:"{{icon}}"},{X:"div",C:"ytp-watch-later-title",Rl:"Watch later"}]});this.G=O;this.icon=null;this.visible=this.isRequestPending=this.K=!1;XqY(O);O.createClientVe(this.element,this,28665);this.listen("click", this.onClick,this);this.Z(O,"videoplayerreset",this.onReset);this.Z(O,"appresize",this.WL);this.Z(O,"videodatachange",this.WL);this.Z(O,"presentingplayerstatechange",this.WL);this.WL();O=this.G.Y();var V=g.vC("yt-player-watch-later-pending");O.D&&V?(qIo(),GHn(this)):this.Qz(2);g.yf(this.element,"ytp-show-watch-later-title",g.R2(O));Gc(this.G,this.element,this)}; tcr=function(O){var V=O.G.getPlayerSize(),J=O.G.Y(),y=O.G.getVideoData(),l=g.R2(J)&&g.iJ(O.G)&&g.R(O.G.getPlayerStateObject(),128),m=J.U;return J.WB&&V.width>=240&&!y.isAd()&&y.WB&&!l&&!y.tC&&!O.G.isEmbedsShortsMode()&&!m}; uNr=function(O,V){LiV(g.Fi(O.G.Y()),"wl_button",function(){qIo({videoId:V});window.location.reload()})}; GHn=function(O){if(!O.isRequestPending){O.isRequestPending=!0;O.Qz(3);var V=O.G.getVideoData();V=O.K?V.removeFromWatchLaterCommand:V.addToWatchLaterCommand;var J=O.G.a5(),y=O.K?function(){O.K=!1;O.isRequestPending=!1;O.Qz(2);O.G.Y().T&&O.G.MX("WATCH_LATER_VIDEO_REMOVED")}:function(){O.K=!0; O.isRequestPending=!1;O.Qz(1);O.G.Y().j&&O.G.pZ(O.element);O.G.Y().T&&O.G.MX("WATCH_LATER_VIDEO_ADDED")}; pU(J,V).then(y,function(){O.isRequestPending=!1;O.Qz(4,"An error occurred. Please try again later.");O.G.Y().T&&O.G.MX("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; AMX=function(O,V){if(V!==O.icon){switch(V){case 3:var J=fc();break;case 1:J=mw();break;case 2:J={X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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:J={X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path", vB:!0,N:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}O.updateValue("icon",J);O.icon=V}}; rMU=function(){g.Aj.apply(this,arguments);this.Fi=(this.kM=g.R2(this.api.Y()))&&(this.api.Y().j||kg()||Bv());this.wv=48;this.L_=69;this.gR=this.VO=null;this.xk=[];this.Fw=this.rq=this.iX=this.v4=this.GG=null;this.VT=[];this.contextMenu=this.Vu=this.overflowButton=this.UB=this.yu=this.searchButton=this.copyLinkButton=this.shareButton=this.e2=this.DI=this.title=this.channelAvatar=this.Zj=this.tooltip=null;this.m9=!1;this.jC=this.KQ=this.Tc=this.J9=null;this.XCn=this.Ny=this.H7=!1}; i0r=function(O){var V=O.api.Y(),J=g.R(O.api.getPlayerStateObject(),128);return V.D&&J&&!O.api.isFullscreen()}; Rod=function(O){if(O.Cu()&&!O.api.isEmbedsShortsMode()&&O.UB){var V=O.api.L("web_player_hide_overflow_button_if_empty_menu");!O.e2||V&&!tcr(O.e2)||Qsd(O.UB,O.e2);!O.shareButton||V&&!y35(O.shareButton)||Qsd(O.UB,O.shareButton);!O.copyLinkButton||V&&!k35(O.copyLinkButton)||Qsd(O.UB,O.copyLinkButton)}else{V=O.api.Y().getWebPlayerContextConfig();if(O.UB){for(var J=O.UB,y=g.n(J.actionButtons),l=y.next();!l.done;l=y.next())l.value.detach();J.actionButtons=[]}O.searchButton&&!g.h8(O.DI.element,O.searchButton.element)&& O.searchButton.rW(O.DI.element);!O.e2||(V==null?0:V.hideTopWatchNextButton)||g.h8(O.DI.element,O.e2.element)||O.e2.rW(O.DI.element);!O.shareButton||(V==null?0:V.hideTopShareButton)||g.h8(O.DI.element,O.shareButton.element)||O.shareButton.rW(O.DI.element);O.copyLinkButton&&!g.h8(O.DI.element,O.copyLinkButton.element)&&O.copyLinkButton.rW(O.DI.element)}}; BZ1=function(O,V,J){V=J?V.lastElementChild:V.firstElementChild;for(var y=null;V;){if(D5(V,"display")!=="none"&&V.getAttribute("aria-hidden")!=="true"){var l=void 0;V.tabIndex>=0?l=V:l=BZ1(O,V,J);l&&(y?J?l.tabIndex>y.tabIndex&&(y=l):l.tabIndexy/1E3+1)return{msg:"in-the-past"};if(m.isLivePlayback&&!isFinite(y))return{msg:"live-infinite"};y=V.HB();var F=null;y&&(F=y.isView()?y.mediaElement.Iq():y.Iq());if(F&&F.length>12&&g.K7(l))return{msg:"played-ranges"};if(!l.U)return null;if(!H)return{msg:"no-pvd-formats"};if(!l.U.K||!H.K)return{msg:"non-dash"};y=H.videoInfos[0];F=l.U.videoInfos[0];O.KD&&p7(m)&& (y=V.IF(),F=J.IF());if(!y||!F)return{msg:"no-video-info"};if(O.V&&(i$(y)||i$(F)))return{msg:"av1"};V=O.D&&m.xb()&&U4();if(F.containerType!==y.containerType)if(V)m.jB("sgap",{ierr:"container"});else return{msg:"container"};if(O.W&&!V&&(F.al!==y.al||F.al===""||y.al===""))return{msg:"codec"};if(O.S&&F.video&&y.video&&Math.abs(F.video.width/F.video.height-y.video.width/y.video.height)>.01)return{msg:"ratio"};if(g.K7(m)&&g.K7(l))return{msg:"content-protection"};H=H.K[0];l=l.U.K[0];J=H.audio;var N=l.audio; if(J.sampleRate!==N.sampleRate&&!g.l$)if(V)m.jB("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:H.itag,cr:J.sampleRate,ni:l.itag,nr:N.sampleRate};return(J.numChannels||2)!==(N.numChannels||2)?{msg:"channel-count"}:O.T&&m.xb()&&y.video.fps!==F.video.fps?{msg:"fps"}:null}; OA7=function(O,V,J){var y=O.getVideoData(),l=V.getVideoData();if(!y.Y().supportsGaplessShorts())return{nq:"env"};if((!J.qX||y.ZI&&!y.isAd()||l.ZI&&!l.isAd())&&(!J.j||y.ZI&&!y.isAd()||l.ZI)&&(!J.U||l.ZI&&!l.isAd()||y.ZI)&&(y.ZI||l.ZI))return{nq:"autoplay"};if(y.endSeconds>0)return{nq:"endcr"};if(!y.S)return{nq:"client"};if(!O.qE())return{nq:"no-empty"};O=D6X(J,O,V,Infinity);return O!=null?{nq:O.msg}:null}; LB=function(O){g.K.call(this);this.app=O;this.W=this.D=this.j=this.K=null;this.U=1;this.events=new g.jX(this);this.events.Z(this.app.cE,g.Gd("gaplessshortslooprange"),this.T);g.t(this,this.events)}; Vvn=function(){this.K=this.S=this.U=this.j=this.qX=this.V=this.KD=this.T=this.W=this.D=!1}; JRU=function(O){var V=new Vvn;V.D=O.L("h5_gapless_support_types_diff");V.T=!1;V.KD=O.L("html5_gapless_use_format_info_fix");V.V=O.L("html5_gapless_disable_on_av1")&&!O.L("html5_gapless_enable_on_av1");V.W=O.L("html5_gapless_check_codec_diff_strictly");V.qX=O.L("html5_gapless_on_ad_autoplay");V.S=O.L("html5_gapless_disable_diff_aspect_radio");V.j=O.L("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!O.L("html5_disable_loop_range_for_shorts_ads");V.K=O.L("html5_pseudogapless_shorts_seek_to_next_start"); V.U=O.L("html5_gapless_ad_autoplay_on_video_to_ad_only");return V}; g.nB=function(O,V,J,y){y=y===void 0?!1:y;ow.call(this);this.mediaElement=O;this.start=V;this.end=J;this.K=y}; yRU=function(O,V,J,y,l,m){m=m===void 0?0:m;g.K.call(this);var H=this;this.policy=O;this.K=V;this.j=J;this.QK=l;this.W=m;this.D=this.U=null;this.currentVideoDuration=this.V=-1;this.S=!1;this.VX=new hN;this.Ob=y-V.HY()*1E3;this.VX.then(void 0,function(){}); this.timeout=new g.t_(function(){H.bk("timeout")},1E4); g.t(this,this.timeout);this.T=isFinite(y)||this.QK.Y().experiments.Jv("html5_pseudogapless_shorts")&&p7(V.getVideoData());this.status={status:0,error:null}}; mZr=function(O){var V,J,y,l,m,H,F,N,x;return g.Q(function(W){if(W.j==1){if(O.GL())return W.return(Promise.reject(Error(O.status.error||"disposed")));O.timeout.start();return W.K(O.VX,2)}V=O.K.HB();if(V.isEnded())return O.bk("ended_in_finishTransition"),W.return(Promise.reject(Error(O.status.error||"")));if(!O.D||!cs(O.D))return O.bk("next_mse_closed"),W.return(Promise.reject(Error(O.status.error||"")));if(O.j.MK()!==O.D)return O.bk("next_mse_mismatch"),W.return(Promise.reject(Error(O.status.error|| "")));J=X4(O);y=J.Oa;l=J.wO;m=J.P6;O.K.DK(!1,!0);H=lx7(V,y,m,!O.j.getVideoData().isAd());O.j.setMediaElement(H);(F=O.K.SQ())&&O.j.le(F.mw,F.Rj);O.T&&(O.policy.K||O.j.seekTo(O.j.getCurrentTime()+.001,{HQ:!0,U_:3,yK:"gapless_pseudo"}),H.play());N=V.qI();N.cpn=O.K.getVideoData().clientPlaybackNonce;N.st=""+y;N.et=""+m;O.j.jB("gapless",N);O.K.jB("gaplessTo",{cpn:O.j.getVideoData().clientPlaybackNonce});x=O.K.getPlayerType()===O.j.getPlayerType();O.K.u4(l,!0,!1,x,O.j.getVideoData().clientPlaybackNonce); O.j.u4(O.j.getCurrentTime(),!0,!0,x,O.K.getVideoData().clientPlaybackNonce);O.j.ZW();g.YS(function(){!O.j.getVideoData().T&&O.j.getPlayerState().isOrWillBePlaying()&&O.j.GN()}); Ea(O,6);O.dispose();return W.return(Promise.resolve())})}; jPp=function(O){if(O.j.getVideoData().U){var V=O.QK.Y().L("html5_gapless_suspend_next_loader")&&O.W===1;O.j.G6(O.D,V,O.W===1&&tO(O.K.getVideoData()));Ea(O,3);$ZH(O);var J=HAn(O);V=J.yU;J=J.qm;V.subscribe("updateend",O.I0,O);J.subscribe("updateend",O.I0,O);O.I0(V);O.I0(J)}}; $ZH=function(O){O.K.unsubscribe("internalvideodatachange",O.Nc,O);O.j.unsubscribe("internalvideodatachange",O.Nc,O);O.QK.Y().L("html5_gapless_use_format_info_fix")&&(O.K.unsubscribe("internalvideoformatchange",O.Nc,O),O.j.unsubscribe("internalvideoformatchange",O.Nc,O));O.K.unsubscribe("mediasourceattached",O.Nc,O);O.j.unsubscribe("statechange",O.M6,O)}; lx7=function(O,V,J,y){O=O.isView()?O.mediaElement:O;return new g.nB(O,V,J,y)}; Ea=function(O,V){V<=O.status.status||(O.status={status:V,error:null},V===5&&O.VX.resolve())}; X4=function(O){var V=O.K.HB();V=V.isView()?V.start:0;var J=O.K.getVideoData().isLivePlayback?Infinity:O.K.U9(!0);J=Math.min(O.Ob/1E3,J)+V;var y=O.T?100:0;O=J-O.j.Yp()+y;return{Lp:V,Oa:O,wO:J,P6:Infinity}}; HAn=function(O){return{yU:O.U.K.BB,qm:O.U.j.BB}}; dy=function(O){g.K.call(this);var V=this;this.app=O;this.S=this.j=this.K=null;this.KD=!1;this.qX=this.V=this.U=this.D=null;this.W=JRU(this.app.Y());this.T=function(){g.YS(function(){CUY(V)})}}; Fbr=function(O,V,J,y,l){y=y===void 0?0:y;l=l===void 0?0:l;O.qE()||(gy(O),qQ(O));O.D=new hN;O.K=V;var m=J,H=l===0;H=H===void 0?!0:H;var F=O.app.ZN(),N=F.getVideoData().isLivePlayback?Infinity:F.U9(!0)*1E3;m>N&&(m=N-200,O.KD=!0);H&&F.getCurrentTime()>=m/1E3?O.T():(O.j=F,H&&(H=m,m=O.j,O.app.cE.addEventListener(g.Q9("vqueued"),O.T),H=isFinite(H)||H/1E3>m.getDuration()?H:0x8000000000000,O.S=new g.gz(H,0x8000000000000,{namespace:"vqueued"}),m.addCueRange(O.S)));H=y/=1E3;m=V.getVideoData().K;y&&m&&O.j&& (F=y,N=0,V.getVideoData().isLivePlayback&&(H=Math.min(J/1E3,O.j.U9(!0)),N=Math.max(0,H-O.j.getCurrentTime()),F=Math.min(y,V.U9()+N)),H=Nop(m,F)||y,H!==y&&O.K.jB("qvaln",{st:y,at:H,rm:N,ct:F}));V=H;y=O.K;y.getVideoData().zK=!0;y.getVideoData().S=!0;y.AB(!0);m={};O.j&&(m=O.j.Mj(),H=O.j.getVideoData().clientPlaybackNonce,m={crt:(m*1E3).toFixed(),cpn:H});y.jB("queued",m);V!==0&&y.seekTo(V+.01,{HQ:!0,U_:3,yK:"videoqueuer_queued"});O.U=new yRU(O.W,O.app.ZN(),O.K,J,O.app,l);J=O.U;J.status.status!==Infinity&& (Ea(J,1),J.K.subscribe("internalvideodatachange",J.Nc,J),J.j.subscribe("internalvideodatachange",J.Nc,J),J.QK.Y().L("html5_gapless_use_format_info_fix")&&(J.K.subscribe("internalvideoformatchange",J.Nc,J),J.j.subscribe("internalvideoformatchange",J.Nc,J)),J.K.subscribe("mediasourceattached",J.Nc,J),J.j.subscribe("statechange",J.M6,J),J.K.subscribe("newelementrequired",J.mD,J),J.Nc());return O.D}; CUY=function(O){var V,J,y,l,m,H,F;g.Q(function(N){switch(N.j){case 1:if(O.GL()||!O.D||!O.K)return N.return();O.KD&&O.app.ZN().KI(!0,!1);V=null;if(!O.U){N.uw(2);break}N.W(3);return N.K(mZr(O.U),5);case 5:N.S(2);break;case 3:V=J=N.D();case 2:if(!O.K)return N.return();NvU.Er("vqsp",function(){O.app.DG(O.K)}); if(!O.K)return N.return();y=O.K.HB();O.app.Y().L("html5_gapless_seek_on_negative_time")&&y&&y.getCurrentTime()<-.01&&O.K.seekTo(0);NvU.Er("vqpv",function(){O.app.playVideo()}); V&&(O.K?(l=V?V.message:"forced",(m=O.j)==null||m.jB("gapfulfbk",{r:l}),O.K.pT(l)):(H=O.j)==null||H.jB("gapsp",{}));F=O.D;qQ(O);F&&F.resolve();return N.return(Promise.resolve())}})}; qQ=function(O,V){V=V===void 0?!1:V;if(O.j){if(O.S){var J=O.j;O.app.cE.removeEventListener(g.Q9("vqueued"),O.T);J.removeCueRange(O.S)}O.j=null;O.S=null}O.U&&(O.U.status.status!==6&&(J=O.U,J.status.status!==Infinity&&J.W!==1&&J.bk("Canceled")),O.U=null);O.D=null;O.K&&!V&&O.K!==O.app.RB()&&O.K!==O.app.ZN()&&O.K.dispose();O.K&&V&&O.K.Dr();O.K=null;O.KD=!1}; gy=function(O){O.qX&&O.V&&O.qX.removeEventListener("timeupdate",O.V);O.V=null;O.qX=null}; UZp=function(O,V){if(O.app.Y().gC().K.s5(xZ7)){var J=O.app.Y().gC().K.s5(WbH);if(!(J<=0)){gy(O);var y,l=(y=O.app.ZN())==null?void 0:y.HB();l&&O.K&&(O.K.getVideoData().Yw=!0,O.V=function(){var m=l.getCurrentTime();m>=V+J/1E3&&(m=Date.now()-(m-V)*1E3,O.app.kI().tick("pbs",m),gy(O))},O.qX=l,l.addEventListener("timeupdate",O.V))}}}; ZA1=function(O){var V;return((V=O.U)==null?void 0:V.currentVideoDuration)||-1}; zkV=function(O,V,J){if(O.qE())return"qie";if(O.K==null||O.K.GL()||O.K.getVideoData()==null)return"qpd";if(V.videoId!==O.K.Ai())return"vinm";if(ZA1(O)<=0)return"ivd";if(J!==1)return"upt";if((J=O.U)==null)O=void 0;else if(J.getStatus().status!==5)O="niss";else if(D6X(J.policy,J.K,J.j,J.Ob)!=null)O="pge";else{V=HAn(J);O=V.yU;var y=V.qm;V=g.Ry(J.QK.Y().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var l=J.V+V;J.QK.Y().experiments.Jv("html5_pseudogapless_shorts")&&(l=X4(J).Oa+V);J=mT(y.hL(), l);O=mT(O.hL(),l);O=!(V>0)||J&&O?null:"neb"}return O!=null?O:null}; cRr=function(){g.BF.call(this);var O=this;this.fullscreen=0;this.D=this.U=this.pictureInPicture=this.K=this.j=this.inline=!1;this.W=function(){O.D_()}; KDU(this.W);this.V=this.getVisibilityState(this.R5(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Lf(),this.uK(),this.kZ(),this.yO())}; BJn=function(O){return!(O.isMinimized()||O.isInline()||O.isBackground()||O.Lf()||O.uK()||O.kZ()||O.yO())}; g.QF=function(O){g.K.call(this);this.B=O;this.videoData=this.playerState=null}; tx=function(O,V){g.K.call(this);var J=this;this.data=[];this.U=O||NaN;this.j=V||null;this.K=new g.t_(function(){Gi(J);KB(J)}); g.t(this,this.K)}; diV=function(O){Gi(O);return O.data.map(function(V){return V.value})}; Gi=function(O){var V=(0,g.cH)();O.data.forEach(function(J){J.expire0)V=O.byterate,this.KD= !0;else{var y;J=(((y=navigator.connection)==null?void 0:y.downlink)||0)*64*1024;J>0&&(V=J,this.KD=!0)}this.U.Ph(this.policy.V,V);O.delay>0&&this.T.Ph(1,Math.min(O.delay,2));O.stall>0&&this.S.Ph(1,O.stall);O.init>0&&(this.ol=Math.min(O.init,this.ol));O.interruptions&&(this.D=this.D.concat(O.interruptions),this.D.length>16&&this.D.pop());this.lw=(0,g.cH)();this.policy.S>0&&(this.yz=new g.t_(this.nD,this.policy.S,this),g.t(this,this.yz),this.yz.start())}; h$=function(O,V,J,y){O.U.Ph(y===void 0?V:y,J/V);O.V=(0,g.cH)()}; kP5=function(O){O.W||(O.W=(0,g.cH)());O.policy.qX&&(O.V=(0,g.cH)())}; DOl=function(O,V){if(O.W){var J=V-O.W;if(J<6E4){if(J>1E3){var y=O.interruptions;y.push(Math.ceil(J));y.sort(function(l,m){return m-l}); y.length>16&&y.pop()}O.O5+=J}}O.W=V}; Bz=function(O,V,J,y,l,m){m=m===void 0?!1:m;O.Vz.Ph(V,J/V);O.V=(0,g.cH)();l||O.qX.Ph(1,V-y);m||(O.W=0);O.lw>-1&&(0,g.cH)()-O.lw>3E4&&(XEr(aO(O)),O.lw=(0,g.cH)(),O.KD=!0)}; Pz=function(O,V,J){V=Math.max(V,O.j.K);O.S.Ph(1,J/V)}; yR=function(O){O=O.T.cC()+O.dW.cC()||0;O=isNaN(O)?.5:O;return O=Math.min(O,5)}; dZU=function(O,V,J){isNaN(J)||(O.fD+=J);isNaN(V)||(O.E5+=V)}; gjU=function(O){O=O.U.cC();return O>0?O:1}; mD=function(O,V,J){V=V===void 0?!1:V;J=J===void 0?1048576:J;var y=gjU(O);y=1/((O.S.cC()||0)*O.policy.KD+1/y);var l=O.Vz.cC();l=l>0?l:1;var m=Math.max(y,l);O.policy.W>0&&l=4E3}; qVh=function(O){this.experiments=O;this.K=17;this.U=13E4;this.V=.5;this.D=this.j=!1;this.lw=this.L("html5_use_histogram_for_bandwidth");this.W=g.Ry(this.experiments,"html5_auxiliary_estimate_weight");this.KD=g.Ry(this.experiments,"html5_stall_factor")||1;this.S=g.Ry(this.experiments,"html5_check_for_idle_network_interval_ms");this.T=this.experiments.Jv("html5_trigger_loader_when_idle_network");this.qX=this.experiments.Jv("html5_sabr_fetch_on_idle_network_preloaded_players")}; QPd=function(O,V,J){var y=new qVh(J);O&&(y.j=!0,y.V=.1);J.Jv("html5_media_time_weight")&&(y.j=!1);V&&(y.U=V/8);y.D=Mi()>=480;return y}; GGX=function(O,V,J){J=J===void 0?0:J;g.yc.call(this,V.uP());this.videoData=O;this.duration=J;this.K=this.startTimeSecs=0;this.j=this.U=!0}; Kbo=function(O){this.end=this.start=O}; g.kJ=function(){this.K=new Map;this.U=new Map;this.j=new Map}; tvr=function(O){var V=this;this.B=O;this.j=[];this.U=new Map;this.D=new Map;this.K=new Map;this.Ty={Dl:function(){return V.U}, hri:function(){return V.D}, fH:function(){return V.j}}}; uwH=function(O,V,J){O=O.j;var y=g.J0(O,{uR:V},function(H,F){return H.uR-F.uR}); y=y<0?(y+2)*-1:y;if(y>=0)for(var l=y;l<=y+1&&l=m.uR-J&&V<=m.OW+J)return m}}; rRr=function(O,V){g.jw(O.j,V,function(J,y){return J.uR===y.uR?J.durationMs-y.durationMs:J.uR-y.uR}); O.U.set(V.cpn,V);V.sC&&ARH(O,V.sC,V)}; iAo=function(O,V){for(var J=[],y=g.n(O.j),l=y.next();!l.done;l=y.next())l=l.value,V(l)||J.push(l);if(O.B.L("html5_sstm_fixes"))for(y=g.n(O.j),l=y.next();!l.done;l=y.next())l=l.value,V(l)&&O.U.delete(l.cpn);O.j=J}; Rkh=function(O,V){V=g.J0(O.j,{OW:V},function(J,y){return J.OW-y.OW}); return V>=0?O.j[V]:null}; Bvn=function(O,V){var J=O.j.indexOf(V);J>=0&&O.j.splice(J,1);O.U.delete(V.cpn)}; ARH=function(O,V,J){var y=O.K.get(V);y?(y.push(J),g.m$(y,function(l,m){return l.uR-m.uR})):O.K.set(V,[J])}; g.S_=function(O,V,J,y){g.K.call(this);var l=this;this.api=O;this.B=V;this.playback=J;this.app=y;this.KD=new g.kJ;this.j=new Map;this.WB=new Map;this.fD=new Map;this.Vz=null;this.yc=NaN;this.UR=this.oB=null;this.Xs=new g.t_(function(){PUr(l,l.yc,l.oB||void 0)}); this.events=new g.jX(this);this.TL=15E3;this.V=new g.t_(function(){l.S=!0;l.playback.Vw(l.TL);kG1(l);if(l.playback.getVideoData().Yr()){var m;l.k8({togab:(m=l.W)==null?void 0:m.identifier})}l.ZL(!1)},this.TL); this.S=!1;this.t$=new Map;this.nD=[];this.W=null;this.Wf=new Set;this.T=[];this.LD=[];this.MI=[];this.wX=[];this.yz=new Set;this.O5=0;this.qX=!1;this.xr=new Set;this.DD=new Set;this.zK=new Set;this.Ks=new Set;this.dX=this.rL=0;this.sb=this.eq=!1;this.JO=this.U="";this.lw=null;this.logger=new g.vK("dai");this.dD="";this.E5=!0;this.ol=new Map;this.NH=new Map;this.Ty={aGN:function(){return l.j}, Dl:function(){return l.K.Ty.Dl()}, RLD:function(){return l.U}, CrL:function(m){l.onCueRangeEnter(l.j.get(m))}, HGD:function(m){l.onCueRangeExit(l.j.get(m))}, oj5:function(m,H){l.j.set(m,H)}, GTn:function(m){l.JO=m}, j2:function(){return l.j2()}, BtX:function(m){return l.K.K.get(m)}, mBL:function(){return l.lw}, fH:function(){return l.K.Ty.fH()}, K4:function(m,H){l.K4(m,H)}, X4E:function(){return l.WB}, Bg:function(m){l.Bg(m)}}; this.playback.getPlayerType();this.K=new tvr(this.B);this.playback.pU(this);this.zL=this.B.Sq();g.t(this,this.Xs);g.t(this,this.events);g.t(this,this.V);this.OE=this.B.L("html5_use_new_ssdai_transition_detector");this.eB=this.B.gC().K.s5(vl5);O=this.playback.getVideoData();O.Yr()&&O.latencyClass==="NORMAL"&&(this.eB=this.B.gC().K.s5(SVU));this.aB=this.B.gC().K.s5(DZp);this.ul=this.playback.getVideoData().n0;this.OE?this.playback.subscribe("playbackstarted",this.K4,this):(this.events.Z(this.api,g.Q9("serverstitchedcuerange"), this.onCueRangeEnter),this.events.Z(this.api,g.Gd("serverstitchedcuerange"),this.onCueRangeExit));this.JL=this.B.L("html5_ssdai_report_stitch_error_after_skip_ad");iK(this.app.Ic(),this.playback,!1)}; l47=function(O,V,J,y,l,m,H,F,N){var x=O$l(O,m,m+l);O.S&&O.k8({adaftto:1});J||O.k8({missadcon:1,enter:m,len:l,aid:F});O.D&&!O.D.Zx&&(O.D.Zx=F);O.sb&&O.k8({adfbk:1,enter:m,len:l,aid:F});var W=O.playback;m>H&&DY(O,{reason:"enterTime_greater_than_return",uR:m,OW:H});var U=W.TK()*1E3;mW&&DY(O,{reason:"parent_return_greater_than_content_duration",OW:H,qJi:W});(W=Rkh(O.K,m))&&W.OW>m&&VG1(O,V.video_id|| "",m,H,W);if(x&&W)for(U=0;U=V&&l.end<=J&&(O.playback.removeCueRange(l),O.j.delete(l.getId()),O.k8({rmAdCR:1}));y=V4(O,V/1E3);V=y.Os;y=y.Ml;V&&(y=y*1E3-V.uR,FOn(O,V,y,V.uR+y),y=O.j.get(V.cpn))&&(y.start=V.uR,y.end=V.uR+V.durationMs);if(V=V4(O,J/1E3).Os){var m;y="playback_cpn_"+V.cpn+"_video_id_"+((m=V.videoData)==null?void 0:m.videoId)+"_durationMs_"+V.durationMs+"_enterTimeMs_"+ V.uR+"_parentReturnTimeMs_"+V.OW;O.sB("Invalid_clearEndTimeMs_"+J+"_that_falls_during_"+y+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; xtH=function(O){O.KD.clearAll();O.j.clear();O.K.clear();O.t$.clear();O.nD=[];O.W=null;O.Wf.clear();O.yz.clear();O.T=[];O.LD=[];O.MI=[];O.wX=[];O.xr.clear();O.DD.clear();O.zK.clear();O.Ks.clear();O.S=!1;O.O5=0;O.qX=!1;O.E5=!1;O.rL=0;O.dX=0;O.eq=!1;O.sb=!1;O.U="";sPY(O.app.Ic());iK(O.app.Ic(),O.playback,!1);O.fD.clear();O.V.isActive()&&O3(O)}; FOn=function(O,V,J,y){V.durationMs=J;V.OW=y;(y=O.fD.get(V.cpn))?y.vH(J/1E3):O.k8({nop_d:V.cpn})}; CGr=function(O,V,J){iAo(O.K,function(y){return y.uR>=V&&y.OW<=J})}; Z$r=function(O,V,J,y,l,m){if(!O.sb)if(g.WOH(O,J))O.k8({gdu:"undec",seg:J,itag:l});else if(V=UtH(O,V,J,y,m),!(O.playback.getVideoData().Yr()&&(V==null?0:V.Z9)))return V}; UtH=function(O,V,J,y,l){var m=O.t$.get(J);if(!m){if(m=xl(O,V))return m;V=O.Tm(J-1,y!=null?y:2);if(l)return O.k8({misscue:l,sq:J,type:y,prevsstate:V==null?void 0:V.BL,prevrecord:O.t$.has(J-1)}),O.t$.get(J-1);if((V==null?void 0:V.BL)===2)return O.k8({adnf:1,sq:J,type:y,prevrecord:O.t$.has(J-1)}),O.t$.get(J-1)}return m}; xl=function(O,V){V+=O.Cy();var J;if(O.playback.getVideoData().Yr()){a:{var y=V*1E3;O=g.n(O.K.j);for(J=O.next();!J.done;J=O.next()){J=J.value;var l=J.y0?J.y0*1E3:J.uR;if(y>=J.uR-1E3&&y<=l+J.durationMs+1E3){y=J;break a}}y=void 0}J={Os:y,Ml:V}}else J=V4(O,V),((y=J)==null?0:y.Os)||(J=V4(O,V,1));var m;return(m=J)==null?void 0:m.Os}; g.rO1=function(O,V,J,y,l,m,H){var F=l===3,N=Z$r(O,V,J,l,y,H);if(!N){y4(O,J,F);var x=g.WOH(O,J)?"undec":"ncp";O.k8({gvprp:x,mt:V,seg:J,tt:l,itag:y,ce:H});return null}F||O.t$.set(J,N);H=N.sC;var W;l=((W=O.Tm(J-1,l,m))==null?void 0:W.G9)||"";l===""&&O.k8({eds:1});W=zgY(O,N.ssdaiAdsConfig);m=O.playback.getVideoData();var U;F=((U=m.j)==null?void 0:U.containerType)||0;U=m.Jp[F];N=N.bQ&&J>=N.bQ?N.bQ:void 0;U={mu:H?c5h(O,H):[],adsConfig:W,G9:l,En:N,L2:Ka(U.split(";")[0]),xf:U.split(";")[1]||""};N={QI:U}; O.zL&&(V={gvprpro:"v",sq:J,mt:V.toFixed(3),itag:y,acpns:((x=U.mu)==null?void 0:x.join("_"))||"none",abid:H},O.k8(V));return N}; zgY=function(O,V){V=V===void 0?"":V;var J=tT(V)||void 0;if(!V||!J){var y;O.k8({adcfg:(y=V)==null?void 0:y.length,dcfg:J==null?void 0:J.length})}return J}; sDr=function(O){for(var V=g.n(O.j.values()),J=V.next();!J.done;J=V.next())O.playback.removeCueRange(J.value);O.j.clear();O.KD.clearAll()}; egU=function(O,V,J,y,l,m,H){if(V&&J){O.JO=J.cpn;O.Yo(J.cpn,J.startTimeSecs||l);H$1(O,J);var F=mtX(O,"a2a",J);O.k8(F);O.rL++;F=THU(O);O.playback.F9(V,J,y||0,l||0,!!m,!!H,void 0,F)}else O.k8({misspbkonadtrans:1,enter:(J==null?void 0:J.cpn)||"",exit:(V==null?void 0:V.cpn)||"",seek:m,skip:H})}; y4=function(O,V,J){if(J===void 0||!J){J=g.n(O.nD);for(var y=J.next();!y.done;y=J.next()){y=y.value;if(V>=y.start&&V<=y.end)return;if(V===y.end+1){y.end+=1;return}}O.nD.push(new Kbo(V))}}; g.WOH=function(O,V){O=g.n(O.nD);for(var J=O.next();!J.done;J=O.next())if(J=J.value,V>=J.start&&V<=J.end)return!0;return!1}; I4d=function(O,V,J){var y;if(y=O.playback.getVideoData().Yr())y=(y=O.K.Ku(V))&&y.sC?(O=O.K.K.get(y==null?void 0:y.sC))&&O.slice(-1)[0].cpn===V:!1;return y&&J===2?1E3:0}; VG1=function(O,V,J,y,l){var m;V={reason:"overlapping_playbacks",tJn:V,uR:J,OW:y,EJK:l.cpn,bGl:((m=l.videoData)==null?void 0:m.videoId)||"",nJv:l.durationMs,Prv:l.uR,ZGE:l.OW};DY(O,V)}; DY=function(O,V,J){O.playback.gx(V,J)}; c5h=function(O,V){var J=[];O=O.K.K.get(V);if(!O)return[];O=g.n(O);for(V=O.next();!V.done;V=O.next())V=V.value,V.cpn&&J.push(V.cpn);return J}; Ymp=function(O,V,J){var y=0;O=O.K.K.get(J);if(!O)return-1;O=g.n(O);for(J=O.next();!J.done;J=O.next()){if(J.value.cpn===V)return y;y++}return-1}; a47=function(O,V){var J=0;O=O.K.K.get(V);if(!O)return 0;O=g.n(O);for(V=O.next();!V.done;V=O.next())V=V.value,V.durationMs!==0&&V.OW!==V.uR&&J++;return J}; b$p=function(O,V,J){var y=!1;if(J=O.K.K.get(J)){J=g.n(J);for(var l=J.next();!l.done;l=J.next())l=l.value,l.durationMs!==0&&l.OW!==l.uR&&(l=l.cpn,V===l&&(y=!0),y&&!O.DD.has(l)&&(O.k8({decoratedAd:l}),O.DD.add(l)))}}; kG1=function(O){O.zL&&O.k8({adf:"0_"+((new Date).getTime()/1E3-O.dX)+"_isTimeout_"+O.S})}; O$l=function(O,V,J){if(O.T.length)for(var y=g.n(O.T),l=y.next(),m={};!l.done;m={AZ:void 0},l=y.next()){m.AZ=l.value;l=m.AZ.startSecs*1E3;var H=m.AZ.rN*1E3+l;if(V>l&&Vl&&J0&&(O.rL=0,O.JO="",O.Yo(O.playback.Iu(),0),O.api.publish("serverstitchedvideochange"));O.playback.JA(y,l);return!0}; O3=function(O){O.S=!1;O.V.isActive()&&kG1(O);O.V.stop();O.ZL(!1)}; p27=function(O,V){var J="";V?V.event==="unknown"?J="unknown":O.yz.has(V.identifier)?O.D&&O.D.t6===V.identifier?O.D.t6===V.identifier?J=P$(O.LD,function(y){return y.identifier===V.identifier})?"shortad":"pending":P$(O.LD,function(y){return y.identifier===V.identifier})||(J="noAdsAdded"):J="wrongAdBreakInfo":J="unscheduled":J="noCuepoint"; return J}; m5=function(O,V){O.U||O.qX||lR(O,O.JO);var J=V.X4,y=V.fl;if(y.cpn===O.JO)O.k8({igtranssame:1,enter:y.cpn,exit:J.cpn});else{var l=O.qX,m=!!O.U;O.U="";var H=V.DF,F=J.playerType===2?J.uR/1E3+J.videoData.oB:O.j2().videoData.oB;O.api.L("html5_ssdai_enable_media_end_cue_range")&&(m||l||J.playerType!==2?(l||m)&&O.k8({mecr:0,seek:l,skip:m}):O.api.A3(J.cpn));if(J.playerType===2&&y.playerType===2)m?O.k8({igtransskip:1,enter:y.cpn,exit:J.cpn,seek:l,skip:O.U}):egU(O,J,y,F,H,l,m);else{O.JO=y.cpn;O.Yo(y.cpn,y.startTimeSecs|| H);V=V.YYW;if(J.playerType===1&&y.playerType===2){O.O5=0;H$1(O,y);var N=mtX(O,"c2a",y);O.k8(N);O.rL++}else if(J.playerType===2&&y.playerType===1){O.api.publish("serverstitchedvideochange");N=mtX(O,"a2c");O.k8(N);O.rL=0;O.O5=F;N=J.cpn;var x=O.O5;if(N!==O.playback.Iu()){var W=O.fD.get(N);W?W.K=x:O.k8({nop_e:N})}O.Bg(J.sC)}N=THU(O);O.playback.F9(J,y,F,H,l,m,V,N)}f4Y(O)}}; hgd=function(O,V,J,y){O.B.L("html5_ssdai_log_ssevt_in_loader_timers")&&(y=O.qX?0:Math.round((y-J)*1E3),O.playback.jB("ssevt",{tag:"sstme",ad:V!==O.playback.Iu(),cpn:V,st:(J-O.playback.Cy()).toFixed(3),late:y}))}; oVY=function(O,V,J){O.playback.V1();O.playback.seekTo(V,J);O.playback.playVideo()}; vVY=function(O,V,J,y){V={X4:V,fl:J,DF:O.playback.getCurrentTime(),YYW:y};m5(O,V)}; lR=function(O,V){var J=V||O.JO,y=O.K.Ku(J);if(y){V=y.videoData;var l,m;J=y.y0||((m=(l=O.j.get(J))==null?void 0:l.start)!=null?m:0)/1E3;O=O.playback.getCurrentTime()-J;V.oB=O>0?O:0}else O.j2().videoData.oB=O.playback.getCurrentTime()}; f4Y=function(O){O.Ks.add(O.U);O.U="";O.qX=!1}; THU=function(O){if(O.eB||O.aB){var V=Array.from(O.app.Ic().T.values()),J=[],y=[],l=[],m=[],H=[],F=[];V=g.n(V);for(var N=V.next();!N.done;N=V.next())if(N=O.K.Ku(N.value.Iu()))N.serializedPlaybackPingContextLoggingData&&J.push(N.serializedPlaybackPingContextLoggingData),N.Hq&&y.push(N.Hq),N.bS&&y.push(N.bS),m.push(N.cpn),H.push(N.videoData.videoId||""),F.push(N.videoData.adFormat||N.videoData.Ks),N.serializedQoeContextData&&l.push(N.serializedQoeContextData);N=V=void 0;O.eB&&(N={serializedPlaybackPingContextLoggingData:J, serializedStitchedClipLoggingMetadata:y});O.aB&&(V={mu:m,AF:H,adFormats:F,serializedQoeContextData:l});return{SI:N,Wq:V}}}; MGd=function(O,V,J,y){g.K.call(this);var l=this;this.api=O;this.B=V;this.K=J;this.app=y;this.W=new Map;this.j=[];this.U=this.S=null;this.KD=NaN;this.V=this.D=this.qX=null;this.T=new g.t_(function(){w2Y(l,l.KD,l.qX||void 0)}); this.lw=[];this.fD=new g.t_(function(){var m=l.lw.pop();if(m){var H=m.ke,F=m.playerVars;m=m.playerType;F&&(F.prefer_gapless=!0,l.api.preloadVideoByPlayerVars(F,m,NaN,"",H),l.lw.length&&g.uL(l.fD,4500))}}); this.events=new g.jX(this);this.Ty={fLK:function(){return l.j}}; this.K.getPlayerType();g.t(this,this.T);g.t(this,this.fD);g.t(this,this.events);this.events.Z(this.api,g.Q9("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.q8)}; EVr=function(O,V,J,y,l,m){var H=V.cpn,F=V.docid||V.video_id||V.videoId||V.id,N=O.K;m=m===void 0?l+y:m;if(l>m)return $c(O,"enterAfterReturn enterTimeMs="+l+" is greater than parentReturnTimeMs="+m.toFixed(3),H,F),"";var x=N.TK()*1E3;if(lx)return N="returnAfterDuration parentReturnTimeMs="+m.toFixed(3)+" is greater than parentDurationMs="+x+". And timestampOffset in seconds is "+ N.HY(),$c(O,N,H,F),"";x=null;for(var W=g.n(O.j),U=W.next();!U.done;U=W.next()){U=U.value;if(l>=U.uR&&lU.uR)return $c(O,"overlappingReturn",H,F),"";if(m===U.uR)return $c(O,"outOfOrder",H,F),"";l===U.OW&&(x=U)}H="cs_childplayback_"+LOV++;F={iB:HO(y,!0),Ob:Infinity,target:null};var Z={ke:H,playerVars:V,playerType:J,durationMs:y,uR:l,OW:m,Od:F};O.j=O.j.concat(Z).sort(function(Y,b){return Y.uR-b.uR}); x?nV5(O,x,{iB:HO(x.durationMs,!0),Ob:x.Od.Ob,target:Z}):(V={iB:HO(l,!1),Ob:l,target:Z},O.W.set(V.iB,V),N.addCueRange(V.iB));V=!0;if(O.K===O.app.ZN()&&(N=N.getCurrentTime()*1E3,N>=Z.uR&&NV)break;if(m>V)return{Os:y,Ml:V-l};J=m-y.OW/1E3}return{Os:null,Ml:V-J}}; w2Y=function(O,V,J){J=J===void 0?{}:J;var y=O.V||O.app.ZN().getPlayerState();Fs(O,!0);V=isFinite(V)?V:O.K.g0();var l=QDd(O,V);V=l.Ml;var m=(l=l.Os)&&!jZ(O,l)||!l&&O.K!==O.app.ZN(),H=V*1E3;H=O.U&&O.U.start<=H&&H<=O.U.end;!m&&H||Cb(O);l?X25(O,l,V,J,y):GoH(O,V,J,y,"_execute")}; GoH=function(O,V,J,y,l){var m=O.K;m!==O.app.ZN()&&O.app.BR();O.B.L("html5_sabr_csdai_seek_log")||(l="");var H;m.seekTo(V,Object.assign({},{yK:"application_timelinemanager"+((H=l)!=null?H:"")},J));KOh(O,y)}; X25=function(O,V,J,y,l){var m=jZ(O,V);if(!m){V.playerVars.prefer_gapless=!0;var H=new g.WL(O.B,V.playerVars);H.ke=V.ke;O.api.W0(H,V.playerType)}H=O.app.ZN();m||H.addCueRange(V.Od.iB);H.seekTo(J,Object.assign({},{yK:"application_timelinemanager"},y));KOh(O,l)}; KOh=function(O,V){O=O.app.ZN();var J=O.getPlayerState();V.isOrWillBePlaying()&&!J.isOrWillBePlaying()?O.playVideo():V.isPaused()&&!J.isPaused()&&O.pauseVideo()}; Fs=function(O,V){O.KD=NaN;O.qX=null;O.T.stop();O.D&&V&&O.D.xN();O.V=null;O.D=null}; jZ=function(O,V){O=O.app.ZN();return!!O&&O.getVideoData().ke===V.ke}; tGn=function(O){var V=O.j.find(function(l){return jZ(O,l)}); if(V){var J=O.app.ZN();Cb(O);var y=new g.nr(8);V=qm7(O,V)/1E3;GoH(O,V,{},y,"_force");J.jB("forceParentTransition",{childPlayback:1});O.K.jB("forceParentTransition",{parentPlayback:1})}}; A5X=function(O,V,J){V=V===void 0?-1:V;J=J===void 0?Infinity:J;for(var y=V,l=J,m=g.n(O.W),H=m.next();!H.done;H=m.next()){var F=g.n(H.value);H=F.next().value;F=F.next().value;F.Ob>=y&&F.target&&F.target.OW<=l&&(O.K.removeCueRange(H),O.W.delete(H))}y=V;l=J;m=[];H=g.n(O.j);for(F=H.next();!F.done;F=H.next())if(F=F.value,F.uR>=y&&F.OW<=l){var N=O;N.S===F&&Cb(N);jZ(N,F)&&N.app.BR()}else m.push(F);O.j=m;y=QDd(O,V/1E3);V=y.Os;y=y.Ml;V&&(y*=1E3,uAn(O,V,y,V.OW===V.uR+V.durationMs?V.uR+y:V.OW));(V=QDd(O,J/1E3).Os)&& $c(O,"Invalid clearEndTimeMs="+J+" that falls during playback={timelinePlaybackId="+(V.ke+" video_id="+V.playerVars.video_id+" durationMs="+V.durationMs+" enterTimeMs="+V.uR+" parentReturnTimeMs="+V.OW+"}.Child playbacks can only have duration updated not their start."))}; uAn=function(O,V,J,y){V.durationMs=J;V.OW=y;y={iB:HO(J,!0),Ob:J,target:null};nV5(O,V,y);jZ(O,V)&&O.app.ZN().getCurrentTime()*1E3>J&&(V=qm7(O,V)/1E3,J=O.app.ZN().getPlayerState(),GoH(O,V,{},J,"_update"))}; $c=function(O,V,J,y){O.K.jB("timelineerror",{e:V,cpn:J?J:void 0,videoId:y?y:void 0})}; i$d=function(O){O&&O!=="web"&&r5X.includes(O)}; Nj=function(){g.K.call(this);this.K=new tx(5,null);g.t(this,this.K);this.j=new tx(15,null);g.t(this,this.j)}; vel=function(O,V){return V?!!O.K.get(V):!1}; RgV=function(O,V){O.dataset.version=V}; ko5=function(O){g.r.call(this,{X:"div",Fj:["html5-video-player"],N:{tabindex:O.Y().disableOrganicUi?"":"-1",id:O.webPlayerContextConfig.rootElementId},J:[{X:"div",C:g.gl.VIDEO_CONTAINER,N:{"data-layer":"0"}}]});var V=this;this.app=O;this.dL=this.DN(g.gl.VIDEO_CONTAINER);this.lJ=new g.iB(0,0,0,0);this.Kd=null;this.vJ=new g.iB(0,0,0,0);this.O8=this.z_=this.J1=NaN;this.Ue=this.mW=this.oS=this.Bw=!1;this.Zv=NaN;this.u0=!1;this.vO=null;this.Vf=new g.t_(function(){V.app.Y().L("web_enable_smart_zoom")&& V.app.cE.getInternalApi().isAutocropEnabled()||V.resize()},100); this.i$=function(){V.element.focus({preventScroll:!0})}; this.bb=function(){V.app.cE.publish("playerUnderlayVisibilityChange","visible");V.Kd.classList.remove(g.gl.VIDEO_CONTAINER_TRANSITIONING);V.Kd.removeEventListener(Qc,V.bb);V.Kd.removeEventListener("transitioncancel",V.bb)}; this.pR=this.Eo=!1;var J=this.element.addEventListener,y=this.element.removeEventListener;this.addEventListener=function(m,H,F){J.apply(V.element,[m,H,F])}; this.removeEventListener=function(m,H,F){y.apply(V.element,[m,H,F])}; var l=O.Y();l.transparentBackground&&this.a_("ytp-transparent");l.controlsType==="0"&&this.a_("ytp-hide-controls");g.D0(this.element,"ytp-exp-bottom-control-flexbox");g.D0(this.element,"ytp-modern-caption");l.L("enable_new_paid_product_placement")&&!g.sj(l)&&g.D0(this.element,"ytp-exp-ppp-update");g.D0(this.element,"ytp-livebadge-color");RgV(this.element,BH1(O));this.Kx=!1;this.NS=new g.Op(NaN,NaN);PGX(this);this.Z(O.cE,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.t(this,this.Vf)}; PGX=function(O){function V(H){O.Kd&&xc(O);WO(O)!==O.u0&&O.resize();O.app.Y().L("web_enable_smart_zoom")&&O.h6&&(H.state.isPaused()?O.h6.pause():g.Jg(H,8)&&O.h6.playState==="paused"&&O.h6.play())} function J(H,F){O.J_(H,F)} function y(H){H.getVideoData()&&O.updateVideoData(H.getVideoData())} function l(){O.vJ=new g.iB(0,0,0,0);O.lJ=new g.iB(0,0,0,0)} var m=O.app.cE;m.addEventListener("initializingmode",l);m.addEventListener("videoplayerreset",y);m.addEventListener("videodatachange",J);m.addEventListener("presentingplayerstatechange",V);O.addOnDisposeCallback(function(){m.removeEventListener("initializingmode",l);m.removeEventListener("videoplayerreset",y);m.removeEventListener("videodatachange",J);m.removeEventListener("presentingplayerstatechange",V)})}; Dtp=function(O){var V=O.app.ZN();if(V=V?V.getVideoData():null){if(g.kZ(V)||g.SW(V)||g.D2(V))return 16/9;if(bb(V)&&V.U.K)return O=V.U.videoInfos[0].video,SmH(O.width,O.height)}return(O=O.Kd)?SmH(O.videoWidth,O.videoHeight):16/9}; Ow5=function(O,V,J,y){var l=J,m=SmH(V.width,V.height);O.Bw?l=Jm?{width:V.width,height:V.width/l,aspectRatio:l}:ll?O.width=O.height*J:JN;if(WO(O)){var x=Dtp(O);var W=isNaN(x)||g.d9||wn&&g.CH||N;EN&&!g.RG(601)?x=l.aspectRatio:W=W||m.controlsType==="3";W?N?(W=m.L("place_shrunken_video_on_left_of_player")?16:O.getPlayerSize().width-V.width-16,x=Math.max((O.getPlayerSize().height-V.height)/2,0),W=new g.iB(W,x,V.width, V.height),O.Kd.style.setProperty("border-radius","12px")):W=new g.iB(0,0,V.width,V.height):(J=l.aspectRatio/x,W=new g.iB((V.width-l.width/J)/2,(V.height-l.height)/2,l.width/J,l.height),J===1&&g.CH&&(x=W.width-V.height*x,x>0&&(W.width+=x,W.height+=x)));g.yf(O.element,"ytp-fit-cover-video",Math.max(W.width-l.width,W.height-l.height)<1);if(F||O.Kx)O.Kd.style.display="";O.u0=!0}else{W=-V.height;EN?W*=window.devicePixelRatio:g.T0&&(W-=window.screen.height);W=new g.iB(0,W,V.width,V.height);if(F||O.Kx)O.Kd.style.display= "none";O.u0=!1}R1(O.vJ,W)||(O.vJ=W,g.Vw(m)?(O.Kd.style.setProperty("width",W.width+"px","important"),O.Kd.style.setProperty("height",W.height+"px","important")):g.HA(O.Kd,W.getSize()),y=new g.S1(W.left,W.top),g.JU(O.Kd,Math.round(y.x),Math.round(y.y)),y=!0);V=new g.iB((V.width-l.width)/2,(V.height-l.height)/2,l.width,l.height);R1(O.lJ,V)||(O.lJ=V,y=!0);g.Pp(O.Kd,"transform",J===1?"":"scaleX("+J+")");H&&N!==O.mW&&(N&&(O.Kd.addEventListener(Qc,O.bb),O.Kd.addEventListener("transitioncancel",O.bb),O.Kd.classList.add(g.gl.VIDEO_CONTAINER_TRANSITIONING)), O.mW=N,O.app.cE.publish("playerUnderlayVisibilityChange",O.mW?"transitioning":"hidden"));return y}; yLU=function(O){O.Eo=!O.Eo;O.pR=!0;O.element.classList.toggle("ytp-retro-player",O.Eo);O.resize();O.pR=!1;O.app.cE.MX("onRetroModeChanged",O.Eo)}; lh5=function(){this.csn=g.Fe();this.clientPlaybackNonce=null;this.elements=new Set;this.U=new Set;this.K=new Set;this.j=new Set}; mr7=function(O){if(O.csn!==g.Fe())if(O.csn==="UNDEFINED_CSN")O.csn=g.Fe();else{var V=g.Fe(),J=g.CY();if(V&&J){O.csn=V;for(var y=g.n(O.elements),l=y.next();!l.done;l=y.next())(l=l.value.visualElement)&&l.isClientVe()&&V&&J&&(g.Ut("combine_ve_grafts")?IY(TX(),l,J):g.ii(g.nY)(void 0,V,J,l))}if(V)for(O=g.n(O.K),J=O.next();!J.done;J=O.next())(J=J.value.visualElement)&&J.isClientVe()&&g.KY(V,J)}}; U3=function(O,V,J,y,l,m){g.K.call(this);this.T=O;this.jB=V;this.V=J;this.S=y;this.W=l;this.intervalMs=m;this.D=0;this.U=!1}; $rH=function(O){var V,J,y,l;return g.Q(function(m){if(m.j==1){if(O.Mq)return m.return();O.Mq=new Worker(WZ(O.T),void 0);m.W(2);J=Promise.withResolvers();V=setTimeout(function(){J.reject("timeout")},1E4); O.Mq.onerror=function(){J.reject("error")}; O.Mq.onmessage=function(){J.resolve();clearTimeout(V)}; return m.K(J.promise,4)}if(m.j!=2)return O.Mq.onmessage=null,O.Mq.onerror=null,O.Mq.addEventListener("message",function(H){return void O.receive(H)}),O.jB("workerCtor",{}),m.S(0); y=m.D();clearTimeout(V);(l=O.Mq)==null||l.terminate();O.Mq.onmessage=null;O.Mq.onerror=null;O.Mq=void 0;O.jB("workerErr",{e:""+y});m.V()})}; Hwr=function(O,V){if(O.Mq){if(O.K&&O.K.byteLength===V)var J=O.K;else{J=new Uint8Array(V);for(var y=0;V>0;){var l=new Uint8Array(Math.min(V,65536));crypto.getRandomValues(l);J.set(l,y);V-=l.length;y+=l.length}O.K=J}J.length>0&&J[0]++;y={};J=(y[0]=0,y[1]=performance.now(),y[2]=J,y);O.request(J)}}; jAd=function(O){if(O.Mq){var V={};V=(V[0]=1,V[1]=performance.now(),V);O.request(V)}}; CxH=function(O,V){if(O.Mq){var J={};V=(J[0]=2,J[1]=performance.now(),J[3]=V,J);O.request(V)}}; FXY=function(O){if(O.Mq){var V={};V=(V[0]=3,V[1]=performance.now(),V);O.request(V)}}; Nmn=function(O){g.Q(function(V){if(V.j==1){if(O.j!==void 0||O.U)return V.return();O.U=!0;return V.K($rH(O),2)}O.U=!1;if(!O.Mq)return V.return();Hwr(O,O.V);O.j=setInterval(function(){O.sendRequest()},O.intervalMs); V.V()})}; g.Zv=function(O,V,J,y){g.K.call(this);var l=this;this.logger=new g.vK("App");this.bK=this.GP=!1;this.u6={};this.On=[];this.g9=!1;this.aQ=null;this.intentionalPlayback=!1;this.h7=!0;this.QU=!1;this.pV=this.JY=this.Lg=null;this.DH=!0;this.mediaElement=this.ih=null;this.ew=NaN;this.Jc=!1;this.IG=this.pm=this.bO=this.screenLayer=this.playlist=null;this.d1=[];this.Z8=0;this.MG=new lg;this.YS=[];this.Ty={Ic:function(){return l.IX}, Tq:function(){return l.bO}}; if(!J)throw Error("b/179532961");this.Xi=(V==null?void 0:V.args)||{};this.webPlayerContextConfig=J;V=this.Xi;this.B=new jN(V,J,J.canaryState,y);g.t(this,this.B);ax7(this.B);y=njU(this.B);this.B.Sq()&&c_(y,function(H){l.PA("h5vcc",H)}); this.B.experiments.Jv("jspb_serialize_with_worker")&&euY();this.B.experiments.Jv("gzip_gel_with_worker")&&FrH();this.B.j&&SPH();this.L("html5_onesie")&&(this.CQ=new iW(this.B),g.t(this,this.CQ));this.Ax=new Ejh(QPd(g.F0(this.B),this.B.r5,this.B.experiments),new qC5(this.B.experiments),function(){return void l.y8()}); g.t(this,this.Ax);this.m4=O$(Pj(this.B)&&!0,V.enablesizebutton);this.Wm=O$(!1,V.player_wide);this.visibility=new cRr;g.t(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.cM(O$(!1,V.player_wide));this.GP=O$(!1,V.external_list);this.events=new g.jX(this);g.t(this,this.events);this.L("start_client_gcf")&&(W5(c5(),{IT:O8,QT:n61()}),this.qg=c5().resolve(O8),dnd(this.qg));this.HuL=new h1;g.t(this,this.HuL);this.iY=new lh5;y=new o9;this.cE=new g.t1(this,y);g.t(this,this.cE);this.template= new ko5(this);g.t(this,this.template);this.appState=1;this.S4=xrn(this);g.t(this,y);y={};this.qb=(y.internalvideodatachange=this.Up,y.playbackready=this.RhK,y.playbackstarted=this.UIE,y.statechange=this.fgE,y);this.Re=new F_(this.cE);this.ZD=WX1(this);y=this.B.V;!1!==y&&this.PA("badps",{hbp:y,hostname:window.location.hostname,ps:this.B.playerStyle});this.rC=new T81(this.B,this.ZD);this.cE.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||al(this.ZD))&&Uro(this);y=10;g.F0(this.B)&& (y=3);z0(this.B)&&(y=g.Ry(this.B.experiments,"tvhtml5_unplugged_preload_cache_size"));this.IX=new g.Ax(this.cE,y);y=Zwr(this);this.IX.JE(y);zPV(this);y={};this.Kn=(y.airplayactivechange=this.ivN,y.airplayavailabilitychange=this.oeD,y.beginseeking=this.VyB,y.sabrCaptionsDataLoaded=this.Zvj,y.endseeking=this.wfi,y.internalAbandon=this.xGz,y.internalaudioformatchange=this.kGj,y.internalvideodatachange=this.TNl,y.internalvideoformatchange=this.zgi,y.liveviewshift=this.yLN,y.playbackstalledatstart=this.NN5, y.progresssync=this.nen,y.onAbnormalityDetected=this.Fiz,y.onSnackbarMessage=this.Myw,y.onLoadProgress=this.cLX,y.SEEK_COMPLETE=this.bvz,y.SEEK_TO=this.HvN,y.onVideoProgress=this.aDB,y.onLoadedMetadata=this.IDj,y.onAutoplayBlocked=this.GGw,y.onPlaybackPauseAtStart=this.SWj,y.playbackready=this.COz,y.statechange=this.d3,y.newelementrequired=this.u8,y.heartbeatparams=this.LiB,y.videoelementevent=this.JL5,y.drmoutputrestricted=this.gej,y.signatureexpired=this.YWl,y.nonfatalerror=this.QGE,y.reloadplayer= this.POD,y);this.FM=new g.jX(this);g.t(this,this.FM);this.iA=new Nj;g.t(this,this.iA);this.r7=this.dS=-1;this.Ei=new g.t_(this.template.resize,16,this.template);g.t(this,this.Ei);this.Qc=new MGd(this.cE,this.B,this.RB(),this);this.uM=new dy(this);g.t(this,this.uM);this.PZ=new LB(this);g.t(this,this.PZ);i$d(this.B.K.c);this.events.Z(this.cE,g.Q9("appapi"),this.jXl);this.events.Z(this.cE,g.Gd("appapi"),this.lgL);this.events.Z(this.cE,g.Q9("appprogressboundary"),this.K85);this.events.Z(this.cE,g.Gd("applooprange"), this.Yv);this.events.Z(this.cE,"presentingplayerstatechange",this.q8);this.events.Z(this.cE,"resize",this.OaD);this.template.rW(FY(document,O));this.events.Z(this.cE,"offlineslatestatechange",this.veX);this.events.Z(this.cE,"sabrCaptionsTrackChanged",this.L8i);this.events.Z(this.cE,"sabrCaptionsBufferedRangesUpdated",this.wni);this.ZD.G.Y().TM&&bZ(this.ZD,"offline");this.B.nD&&g.Z8("ux",g.wy);O=g.Ry(this.B.experiments,"html5_defer_fetch_att_ms");this.wg=new g.t_(this.zcK,O,this);g.t(this,this.wg); this.hC().wN()&&(g.Mv()&&this.hC().nw.push("mdx"),cLl(this));this.rC.tick("fs");sAU(this);this.B.nD&&bZ(this.ZD,"ux",!0);g.R2(this.ZD.G.Y())&&bZ(this.ZD,"embed");this.L("web_player_sentinel_is_uniplayer")||g.en(new g.pn("Player experiment flags missing","web_player_sentinel_is_uniplayer"));O=this.L("web_player_sentinel_yt_experiments_sync");y=g.Ut("web_player_sentinel_yt_experiments_sync");O!==y&&g.en(new g.pn("b/195699950",{yt:O,player:y}));this.UK=Tm5(this);if(O=g.Ry(this.B.experiments,"html5_block_pip_safari_delay"))this.xK= new g.t_(this.Tn,O,this),g.t(this,this.xK);var m;J=eB((m=J==null?void 0:J.trustedEchoWorkerUrl)!=null?m:null);m=this.B.gC().K.s5(ePl);O=this.B.gC().K.s5(Ihd);y=this.B.gC().K.s5(YU7);V=this.B.gC().K.s5(ahY);J&&m>0&&O>0&&y>0&&V>0&&(this.ZX=new U3(J,function(H,F){l.RB().jB(H,F)},y,O,V,m),g.t(this,this.ZX),Nmn(this.ZX)); g.t(this,this.MG);oN=this.B.aB;this.cE.publish("applicationInitialized")}; Tm5=function(O){function V(J){J.stack&&J.stack.indexOf("player")!==-1&&O.ZN().wG(J)} Ie.subscribe("handleError",V);As.push(V);return function(){Ie.unsubscribe("handleError",V);var J=As.indexOf(V);J!==-1&&As.splice(J,1)}}; Zwr=function(O){var V=new g.WL(O.B,O.Xi);O.cE.publish("initialvideodatacreated",V);return zL(O,1,V,!1)}; zPV=function(O){var V=O.RB();V.setPlaybackRate(O.B.D?1:bwp(O,Number(g.vC("yt-player-playback-rate"))||1));V.u3(O.qb,O);V.Ij()}; WX1=function(O){var V="",J="",y=BH1(O),l=v$(y,"cb");l&&/^[\w-]+$/.test(l)&&(J=l);y.indexOf("//")===0&&(y=O.B.protocol+":"+y);l=y.lastIndexOf("/base.js");l!==-1&&(V=y.substring(0,l+1));if(y=Error().stack)if(y=y.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))y=y[1],y.includes(V)||g.en(Error("Player module URL mismatch: "+(y+" vs "+V+".")));V=new dXH(O.cE,V,J);J={};gnh(V,(J.destroyed=function(){O.onApiChange()},J)); return V}; xrn=function(O){if(O.B.storeUserVolume){O=g.vC("yt-player-volume")||{};var V=O.volume;O={volume:isNaN(V)?100:g.BZ(Math.floor(V),0,100),muted:!!O.muted}}else O={volume:100,muted:O.B.mute};return O}; cO=function(O){O.mediaElement=O.B.deviceIsAudioOnly?new g.Qo(g.I1("AUDIO")):MQ.pop()||new g.Qo(g.I1("VIDEO"));g.t(O,O.mediaElement);O.ZN().setMediaElement(O.mediaElement);try{O.B.dX?(O.pm&&O.events.oX(O.pm),O.pm=O.events.Z(O.mediaElement,"volumechange",O.jGE)):(O.mediaElement.VM(O.S4.muted),O.mediaElement.setVolume(O.S4.volume/100))}catch(l){O.bk("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(l&&typeof l==="object"&&"message"in l&&typeof l.message==="string"&&l.message.replace(/[;:,]/g, "_")));return}g.fz(O.FM);prV(O);var V=O.template,J=O.mediaElement.dC();V.Kd=J;V.Ue=!1;V.Kd.parentNode||po(V.dL,V.Kd,0);V.vJ=new g.iB(0,0,0,0);JLo(V);xc(V);J=V.Kd;g.D0(J,"video-stream");g.D0(J,g.gl.MAIN_VIDEO);var y=V.app.Y();y.PX&&J.setAttribute("data-no-fullscreen","true");y.L("html5_local_playsinline")?"playsInline"in Jq()&&(J.playsInline=!0):y.bW&&(J.setAttribute("webkit-playsinline",""),J.setAttribute("playsinline",""));y.nI&&V.Kd&&V.Z(J,"click",J.play,J);try{O.mediaElement.activate()}catch(l){O.bk("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(l&&typeof l==="object"&&"message"in l&&typeof l.message==="string"&&l.message.replace(/[;:,]/g,"_")))}}; hP7=function(O){if(!fhh(O)){var V=O.RB().HB();V&&(V=V.bD(),V instanceof Promise&&V.catch(function(){})); s3(O,Kr(O.getPlayerStateObject()))}}; prV=function(O){var V=O.mediaElement;$7()?O.FM.Z(V,"webkitpresentationmodechanged",O.yiD):window.document.pictureInPictureEnabled&&(O.FM.Z(V,"enterpictureinpicture",function(){O.jt(!0)}),O.FM.Z(V,"leavepictureinpicture",function(){O.jt(!1)})); iM&&(O.FM.Z(V,"webkitbeginfullscreen",function(){O.Ws(3)}),O.FM.Z(V,"webkitendfullscreen",function(){O.Ws(0)}))}; g.TL=function(O,V){return O.IX.Ku(V)||O.IX.V}; EJ=function(O,V){return O.L("web_player_misc_bugfix_b")?O.IX.Ku(V)||O.IX.V:O.IX.Ku(V)}; g.ohr=function(O,V,J,y){var l=O.rC;V===2&&(l=new T81(O.B));return new g.ih(O.B,V,l,O.template,function(m,H,F){O.cE.publish(m,H,F)},function(){return O.cE.getVisibilityState()},O.visibility,O,O.Ax,J,y,O.MG)}; zL=function(O,V,J,y,l){O=g.ohr(O,V,J,l);O=new g.yc(O);y&&O.Ij();return O}; eZ=function(O,V){return O.T3(V)?O.RB():V}; Iu=function(O,V){var J=O.ZN();return V===O.RB()&&O.T3(V)&&O.T3(J)?J:V}; vhr=function(O){if(!Yc(O)){var V=hj(O.ZD);V&&!V.created&&qel(O.ZD)&&V.create()}}; wrd=function(O){var V=O.getVideoData(),J=O.ZD;RiV(J)||J.Mb();!QY&&al(J)&&Vjn(J);bZ(J,"embed");bZ(J,"kids");bZ(J,"remote");bZ(J,"miniplayer");bZ(J,"offline");bZ(J,"unplugged");bZ(J,"ypc",!1,!0);bZ(J,"webgl",!1,!0);B8l(J)||(bZ(J,"captions",!0),bZ(J,"endscreen"),J.Ec(),bZ(J,"creatorendscreen",!0));J.rO();J.G.publish("modulesCreated");O.cE.publish("videoready",V)}; au=function(O){O=O.hC();O.wN();return $D(O)}; sAU=function(O){O.KC();var V=O.Xi;cO(O);O.events.Z(window,"resize",O.AiW);var J=O.hC();O.cE.il("onVolumeChange",O.S4);if(V&&a8Y(V)){var y=x$(O.B);y&&!O.GP&&(V.fetch=0);var l=g.R2(O.B);l&&!O.GP&&(V.fetch=0);bR(O,V);g.R2(O.B)&&O.rC.tick("ep_pr_s");if(!y||O.GP)if(l&&!O.GP)M2d(O);else if(!J.wN())O.playlist.onReady(function(){pb(O)})}O.DG(O.RB(),!1,!0); g.R(O.RB().getPlayerState(),128)||(V=GKn(!O.B.deviceIsAudioOnly),V==="fmt.noneavailable"?O.bk("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):V==="html5.missingapi"?O.bk(V,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):J&&J.wN()&&au(O)&&(O.B.YI||O.B.MU)?fb(O):J.I_?O.cE.mutedAutoplay({durationMode:J.mutedAutoplayDurationMode}):g.vC("yt-player-playback-on-reload")?(g.l6("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!O.B.O5}),g.oH("yt-player-playback-on-reload",!1),fb(O)): Ix(O.B)||LX5(O),g.ZG(O.B)||fs(O.B)==="MWEB"?(g.AG(g.ij(),function(){h3(O)}),g.AG(g.ij(),function(){sFH()})):(h3(O),sFH()))}; h3=function(O){if(!O.L("use_rta_for_player"))if(O.L("fetch_att_independently"))g.uL(O.wg);else{var V=O.getVideoData().botguardData;V&&g.wl(V,O.B,O.getVideoData().aN||"")}}; LX5=function(O){O.cE.publish("initializingmode");O.Ap(2);bZ(O.ZD,"remote");bZ(O.ZD,"miniplayer")}; fb=function(O){var V=O.RB();if(g.R(V.getPlayerState(),128))return!1;V=V.getVideoData();au(O)&&O.B.MU&&(MQ.length&&O.bK?(ou(O,{muted:!1,volume:O.S4.volume},!1),vO(O,!1)):MQ.length||O.S4.muted||(ou(O,{muted:!0,volume:O.S4.volume},!1),vO(O,!0)));au(O)&&g.R2(O.B)&&V.mutedAutoplay&&(ou(O,{muted:!0,volume:O.S4.volume},!1),vO(O,!0));V.LX&&ou(O,{muted:!0,volume:O.S4.volume},!1);nhV(O,1,V,!1);var J=O.RB();O.cE.publish("initializingmode");O.DG(J);O.Ap(3);var y;if(!(y=!O.B.N5)){if(y=O.IG){y=O.IG;var l=O.mediaElement; y=!!l&&l===y.mediaElement}y=y&&O.g9}y&&(O.DK(),cO(O),J.setMediaElement(O.mediaElement));J.PM();if(g.R(J.getPlayerState(),128))return!1;V.Pn||s3(O,3);return O.g9=!0}; Yc=function(O){O=rA(O.ZD);return!!O&&O.loaded}; Xrp=function(O,V){if(!O.ih)return!1;var J=O.ih.startTimeMs*.001-1,y=O.ih.endTimeMs*.001;O.ih.type==="repeatChapter"&&y--;return Math.abs(V-J)<=1E-6||Math.abs(V-y)<=1E-6||V>=J&&V<=y}; EhH=function(O){var V=O.ZN();if(O.L("html5_disable_loop_range_for_shorts_ads")&&V.getVideoData().isAd()?0:p7(V.getVideoData())&&!V.J7())V=w1(O)*1E3-O.getVideoData().yN,O.L("html5_gapless_new_slr")?(O=O.PZ,Mj(O.app,"gaplessshortslooprange"),V=new g.gz(0,V,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(O=O.app.ZN())&&O.addCueRange(V)):O.setLoopRange({startTimeMs:0,endTimeMs:V,type:"shortsLoop"})}; drH=function(O){var V=O.RB();if(!(g.R(V.getPlayerState(),64)&&O.hC().isLivePlayback&&O.ih.startTimeMs<5E3)){if(O.ih.type==="repeatChapter"){var J,y=(J=f9r(O.Fs()))==null?void 0:J.VZ(),l;J=(l=O.getVideoData())==null?void 0:l.dX;y instanceof g.Aj&&J&&(l=J[$5(J,O.ih.startTimeMs)],y.renderChapterSeekingAnimation(0,l.title));isNaN(Number(O.ih.loopCount))?O.ih.loopCount=0:O.ih.loopCount++;O.ih.loopCount===1&&O.cE.MX("innertubeCommand",O.getVideoData().OM)}y={yK:"application_loopRangeStart"};if(O.ih.type=== "clips"||O.ih.type==="shortsLoop")y.seekSource=58;V.seekTo(O.ih.startTimeMs*.001,y)}}; bwp=function(O,V){var J=O.cE.getAvailablePlaybackRates();V=Number(V.toFixed(2));O=J[0];J=J[J.length-1];V<=O?V=O:V>=J?V=J:(O=Math.floor(V*100+.001)%5,V=O===0?V:Math.floor((V-O*.01)*100+.001)/100);return V}; w1=function(O,V){V=g.TL(O,{playerType:V});V=eZ(O,V);return Lb(O,V.U9(),V)}; Lb=function(O,V,J){if(O.T3(J)&&(J=J.getVideoData(),!nb(O))){O=O.Qc;for(var y=g.n(O.j),l=y.next();!l.done;l=y.next())if(l=l.value,J.ke===l.ke){V+=l.uR/1E3;break}y=V;O=g.n(O.j);for(l=O.next();!l.done;l=O.next()){l=l.value;if(J.ke===l.ke)break;var m=l.uR/1E3;if(m1&&(l=!1);O.Jc&&l===V||(y=y.lock(l?"portrait":"landscape"),y!=null&&y.catch(function(){}),O.Jc=!0)}else O.Jc&&(O.Jc=!1,y.unlock())}; qj=function(O,V,J){O.cE.publish(V,J);var y=g.F0(O.B)||g.Vw(O.B)||g.pJ(O.B);if(J&&y){switch(V){case "cuerangemarkersupdated":var l="onCueRangeMarkersUpdated";break;case "cuerangesadded":l="onCueRangesAdded";break;case "cuerangesremoved":l="onCueRangesRemoved"}l&&O.cE.MX(l,J.map(function(m){return{getId:function(){return this.id}, end:m.end,id:m.getId(),namespace:m.namespace==="ad"?"ad":"",start:m.start,style:m.style,visible:m.visible,markerPositionMs:m.markerPositionMs}}))}}; Q4=function(O,V,J,y,l,m){J=J===void 0?!0:J;var H=g.TL(O,{playerType:l});if((H.getPlayerType()!==2||O.T3(H))&&!g.BL(H.getVideoData())){var F=O.IX.lV;F?F.seekTo(V,{JK:!J,O_:y,yK:"application",seekSource:m}):(H&&H===O.RB()&&O.ih&&!Xrp(O,V)&&O.setLoopRange(null),O.seekTo(V,J,y,l,m,"_request"))}}; Drh=function(O,V,J,y){J&&(O.DK(),cO(O));J=O.ZN();J.wx(V);var l=O.getVideoData(),m={};m.video_id=l.videoId;m.adformat=l.adFormat;l.isLivePlayback||(m.start=J.getCurrentTime(),m.resume="1");l.isLivePlayback&&Ey(l)&&g.jS(O.B)&&(m.live_utc_start=J.dN(),m.resume="1");l.lw&&(m.vvt=l.lw);l.V&&(m.vss_credentials_token=l.V,m.vss_credentials_token_type=l.F$);l.oauthToken&&(m.oauth_token=l.oauthToken);m.autoplay=1;m.reload_count=l.E5+1;m.reload_reason=V;l.YQ&&(m.unplugged_partner_opt_out=l.YQ);l.JL&&(m.ypc_is_premiere_trailer= l.JL);l.playerParams&&(m.player_params=l.playerParams);l.KD&&(m.itct=l.KD);O.loadVideoByPlayerVars(m,void 0,!0,void 0,void 0,y);V==="signature"&&O.bO&&vhr(O)}; OQp=function(O,V){O.hC().autonavState=V;g.oH("yt-player-autonavstate",V);O.cE.publish("autonavchange",V)}; Vb1=function(O){var V=O.getVideoData().hT,J=O.B.TL,y=O.isInline()&&!O.getVideoData().Yt,l=O.mediaElement;V||J||y?l.lx():(l.fC(),ou(O,O.S4))}; Xs=function(O){(O=hj(O.Fs()))&&O.created&&O.destroy()}; nb=function(O){return O.getVideoData().enableServerStitchedDai&&!!O.bO}; Jvh=function(O,V){V.bounds=O.getBoundingClientRect();for(var J=g.n(["display","opacity","visibility","zIndex"]),y=J.next();!y.done;y=J.next())y=y.value,V[y]=D5(O,y);V.hidden=!!O.hidden}; BH1=function(O){var V=O.webPlayerContextConfig.trustedJsUrl;return V?eB(V).toString():O.webPlayerContextConfig.jsUrl}; yvd=function(O,V){var J=O.Ku({playerType:1});if(J){if(J.getVideoData().clientPlaybackNonce===V)return J;if((O=O.uM.K)&&O.getVideoData().clientPlaybackNonce===V)return O}return null}; Uro=function(O){TI(O,function(){var V=this;return function y(){var l,m,H,F;return Hn(y,function(N){switch(N.j){case 1:return N.fD(2),V.rC.tick("wasm_s"),l=al(V.ZD)?function(x){return c_(JpV(V.ZD),function(W){return W.MB5(x)})}:void 0,N.W(4),m=JEr(V.webPlayerContextConfig.wasmModuleUrl,l,V.PA.bind(V)),H=Cd,N.KD(el(m),6); case 6:F=H(N.U);V.rC.tick(F.K?"wasm_fa":"wasm_fw");p3H(V.B,F);N.S(2);break;case 4:N.D(),V.rC.tick("wasm_ferr");case 2:N.T(),N.qX(0)}})}()})}; lCV=function(O){return O.name==="TypeError"&&O.stack.includes("/s/player/")&&gr()<=105}; mGh=function(O){return O.isTimeout?"NO_BID":"ERR_BID"}; $GU=function(){var O=null;CNX().then(function(V){return O=V},function(V){return O=mGh(V)}); return O}; HQo=function(){var O=n3(1E3,"NO_BID");return g.vu(zNr([CNX(),O]).TP(mGh),function(){O.cancel()})}; GL=function(O){return O.zK?g.E$().s5(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Kb=function(O){this.player=O;this.U=this.K=1}; FFl=function(O,V,J,y,l,m){V.client||(V.client={});O.player.Y().L("h5_remove_url_for_get_ad_break")||(V.client.originalUrl=J);var H=Vd(J),F=g.sd(J)?!1:!0;(H||F)&&typeof Intl!=="undefined"&&(V.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);F=g.sd(J)?!1:!0;if(H||F||y!==""){var N={};J=Pw($g(y)).split("&");var x=new Map;J.forEach(function(W){W=W.split("=");W.length>1&&x.set(W[0].toString(),decodeURIComponent(W[1].toString()))}); x.has("bid")&&(N.bid=x.get("bid"));N.params=[];jvH.forEach(function(W){x.has(W)&&(W={key:W,value:x.get(W)},N.params.push(W))}); Cq1(O,N);V.adSignalsInfo=N}V.client.unpluggedAppInfo||(V.client.unpluggedAppInfo={});V.client.unpluggedAppInfo.enableFilterMode=!1;J=l.K.cosver;J!=null&&J!=="cosver"&&(V.client.osVersion=J);J=l.K.cplatform;J!=null&&J!=="cplatform"&&J!==""&&(V.client.platform=J);J=l.K.cmodel;J!=null&&J!=="cmodel"&&(V.client.deviceModel=J);J=l.K.cplayer;J!=null&&J!=="cplayer"&&(V.client.playerType=J);J=l.K.cbrand;J!=null&&J!=="cbrand"&&(V.client.deviceMake=J);V.user||(V.user={});V.user.lockedSafetyMode=!1;g.Oj(l)&& AYX(V,m,O.player.getPlayerState(1));if(O=l.livingRoomPoTokenId)V.client.tvAppInfo=Object.assign({},V.client.tvAppInfo,{livingRoomPoTokenId:O})}; WFd=function(O,V){var J=!1;if(V==="")return J;V.split(",").forEach(function(y){var l={},m={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},H="ACTIVE";y[0]==="!"&&(y=y.substring(1),H="INACTIVE");y=y.split("-");y.length<3||(y[0]in NKX&&(m.clientName=NKX[y[0]]),y[1]in xG7&&(m.platform=xG7[y[1]]),m.applicationState=H,m.clientVersion=y.length>2?y[2]:"",l.remoteClient=m,O.remoteContexts?O.remoteContexts.push(l):O.remoteContexts=[l],J=!0)}); return J}; ZQn=function(O){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in UGp))return!1;O=O.split(RegExp("[:&]"));var V=UGp.FLAG_AUTO_CAPTIONS_DEFAULT_ON,J="f"+(1+Math.floor(V/31)).toString();V=1<=2?H[1]:"";var F=cv1.test(V),N=svY.exec(V);N=N!=null&&N.length>=2?N[1]:"";var x=TKo.exec(V);x=x!=null&&x.length>=2&&!Number.isNaN(Number(x[1]))?Number(x[1]):1;var W=evn.exec(V);W=W!=null&&W.length>=2?W[1]:"0";var U=mq(O.player.Y().bV),Z=O.player.getVideoData({playerType:1}),z=g.GE(Z.KD,!0),c="BISCOTTI_ID"in J?J.BISCOTTI_ID:"";FFl(O,z,V,c.toString(), O.player.Y(),Z);Z={splay:!1,lactMilliseconds:J.LACT.toString(),playerHeightPixels:Math.trunc(J.P_H),playerWidthPixels:Math.trunc(J.P_W),vis:Math.trunc(J.VIS),signatureTimestamp:20480,autonavState:GL(O.player.Y())};y&&(y={},WFd(y,J.YT_REMOTE)&&(Z.mdxContext=y));if(y=IC1.includes(U)?void 0:g.Mz("PREF")){for(var Y=y.split(RegExp("[:&]")),b=0,M=Y.length;b1&&w[1].toUpperCase()==="TRUE"){z.user.lockedSafetyMode= !0;break}}Z.autoCaptionsDefaultOn=ZQn(y)}V=YY5.exec(V);(V=V!=null&&V.length>=2?V[1]:"")&&N&&(z.user.credentialTransferTokens=[{token:V,scope:"VIDEO"}]);V={contentPlaybackContext:Z};H={adBlock:Math.trunc(J.AD_BLOCK),params:H,breakIndex:x,breakPositionMs:W,clientPlaybackNonce:J.CPN,topLevelDomain:U,isProxyAdTagRequest:F,context:z,adSignalsInfoString:Pw($g(c.toString())),overridePlaybackContext:V};l!==void 0&&(H.cueProcessedMs=Math.round(l).toString());N&&(H.videoId=N);J.LIVE_TARGETING_CONTEXT&&(H.liveTargetingParams= J.LIVE_TARGETING_CONTEXT);J.AD_BREAK_LENGTH&&(H.breakLengthMs=Math.trunc(J.AD_BREAK_LENGTH*1E3).toString());m&&(H.driftFromHeadMs=m.toString());H.currentMediaTimeMs=Math.round(O.player.getCurrentTime(1)*1E3);(O=O.player.getGetAdBreakContext())&&(H.getAdBreakContext=O);return H}; bQl=function(){Kb.apply(this,arguments)}; p1l=function(O,V,J,y,l){var m=J.A7;var H=J.iB;var F=O.player.Y().t0,N=0;J.cueProcessedMs&&H&&!m&&(J=H.end-H.start,J>0&&(N=Math.floor(J/1E3)));var x={AD_BLOCK:l,AD_BREAK_LENGTH:m?m.rN:N,AUTONAV_STATE:GL(O.player.Y()),CA_TYPE:"image",CPN:t3(O).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:O.player.Y1()*1E3,LACT:C2(),LIVE_INDEX:m?O.U++:1,LIVE_TARGETING_CONTEXT:m&&m.context?m.context:"",MIDROLL_POS:H?Math.round(H.start/1E3):0,MIDROLL_POS_MS:H?Math.round(H.start):0,VIS:O.player.getVisibilityState(),P_H:O.player.tv().BK().height, P_W:O.player.tv().BK().width,YT_REMOTE:F?F.join(","):""},W=mt(lM);Object.keys(W).forEach(function(U){W[U]!=null&&(x[U.toUpperCase()]=W[U].toString())}); y!==""&&(x.BISCOTTI_ID=y);y={};yd(V)&&(y.sts="20480",(O=O.player.Y().forcedExperiments)&&(y.forced_experiments=O));return Ot(g.bL(V,x),y)}; t3=function(O){return O.player.getVideoData({playerType:1})}; fCo=function(O,V){var J=O.player.Y(),y,l=(y=t3(O))==null?void 0:y.oauthToken;return g.bd(J,l).then(function(m){if(m&&Jy()){var H=Vc();J9(H,m)}return g.fU(O.player.a5(H),V,"/youtubei/v1/player/ad_break").then(function(F){return F})})}; hv5=function(O){this.gW=O}; ow7=function(O){this.G=O}; vwH=function(O){this.gW=O}; MbV=function(O){g.K.call(this);this.K=O;this.Jm=w1d(this)}; w1d=function(O){var V=new BSU(O.K.NI);g.t(O,V);O=[new hv5(O.K.gW),new ow7(O.K.G),new vwH(O.K.gW),new N9(O.K.Bc,O.K.w6),new Wf,new zU(O.K.lL,O.K.ME,O.K.gW),new xL,new FS(O.K.ME)];O=g.n(O);for(var J=O.next();!J.done;J=O.next())P0n(V,J.value);O=g.n(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(J=O.next();!J.done;J=O.next())Ux(V,J.value,function(){}); return V}; LFl=function(O,V){this.lL=O;this.Xj=V}; uR=function(O){var V=O.CD,J=O.Xj;O=O.zG;var y={rBW:new LFl(V.get(),J),Xj:J};return{Cs:new H_(J,O,V),context:y}}; A3=function(O,V,J,y,l){g.K.call(this);this.j=V;this.Av=J;this.CD=y;this.Ql=l;this.listeners=[];var m=new bj(this);g.t(this,m);m.Z(O,"internalAbandon",this.zhv);this.addOnDisposeCallback(function(){g.fz(m)})}; r1=function(O){this.G=O;this.adVideoId=this.K=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.j=this.U=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; nw5=function(O){O.contentCpn=null;O.adCpn=null;O.videoId=null;O.adVideoId=null;O.adFormat=null;O.D="AD_PLACEMENT_KIND_UNKNOWN";O.actionType="unknown_type";O.U=!1;O.j=!1}; X1l=function(O,V){O=g.n(V);for(V=O.next();!V.done;V=O.next())if((V=V.value.renderer)&&(V.instreamVideoAdRenderer||V.linearAdSequenceRenderer||V.sandwichedLinearAdRenderer||V.instreamSurveyAdRenderer)){sB("ad_i");g.TJ({isMonetized:!0});break}}; Ewr=function(O){var V;(V=O.G.getVideoData({playerType:1}))!=null&&V.T&&(O.j=!1,V={},O.K&&O.videoId&&(V.cttAuthInfo={token:O.K,videoId:O.videoId}),e4("video_to_ad",V))}; mo=function(O){O.j=!1;var V={};O.K&&O.videoId&&(V.cttAuthInfo={token:O.K,videoId:O.videoId});e4("ad_to_video",V);dGn(O)}; dGn=function(O){if(O.U)if(O.D==="AD_PLACEMENT_KIND_START"&&O.actionType==="video_to_ad")Za("video_to_ad");else{var V={adBreakType:AN(O.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:O.videoStreamType};O.actionType==="ad_to_video"?(O.contentCpn&&(V.targetCpn=O.contentCpn),O.videoId&&(V.targetVideoId=O.videoId)):(O.adCpn&&(V.targetCpn=O.adCpn),O.adVideoId&&(V.targetVideoId=O.adVideoId));O.adFormat&&(V.adType=O.adFormat);O.contentCpn&& (V.clientPlaybackNonce=O.contentCpn);O.videoId&&(V.videoId=O.videoId);O.adCpn&&(V.adClientPlaybackNonce=O.adCpn);O.adVideoId&&(V.adVideoId=O.adVideoId);g.TJ(V,O.actionType);O.G.Y().experiments.Jv("html5_ads_csi_qoes")&&(V=O.G.Mj(O.actionType==="ad_to_video"?1:2),V=(0,g.cH)()-1E3*V,Yz("qoes",V,O.actionType))}}; iR=function(O){g.K.call(this);this.G=O;this.K=new Map;this.j=new bj(this);g.t(this,this.j);this.j.Z(this.G,g.Q9("ad"),this.onCueRangeEnter,this);this.j.Z(this.G,g.Gd("ad"),this.onCueRangeExit,this)}; gwV=function(O,V,J,y,l,m,H){g.gz.call(this,V,J,{id:O,namespace:"ad",priority:l,visible:y,associatedClipId:m,markerPositionMs:H})}; Ru=function(O){this.G=O}; qYd=function(O,V){O.G.cueVideoByPlayerVars(V,2)}; BO=function(O){this.G=O}; PO=function(O){this.G=O}; wz=function(O,V){return O.G.Y().L(V)}; Qvr=function(O){return O.G.Y().L("substitute_ad_cpn_macro_in_ssdai")}; bz=function(O){var V,J,y;return((V=O.G.getVideoData({playerType:1}).getPlayerResponse())==null?void 0:(J=V.playerConfig)==null?void 0:(y=J.daiConfig)==null?void 0:y.enableServerStitchedDai)||!1}; tqn=function(O){return O.G.Y().L("html5_enable_vod_slar_with_notify_pacf")}; GaV=function(O){return O.G.Y().L("html5_recognize_predict_start_cue_point")}; HY=function(O){return O.G.Y().experiments.Jv("enable_desktop_player_underlay")}; KF5=function(O){return O.G.Y().experiments.Jv("html5_load_empty_player_in_media_break_sub_lra")}; Ps=function(O,V){return O.G.Y().L("html5_cue_video_for_preroll")&&(V==null?void 0:V.kind)==="AD_PLACEMENT_KIND_START"?!1:O.G.Y().experiments.Jv("html5_load_ads_instead_of_cue")}; kf=function(O){return O.G.Y().experiments.Jv("html5_preload_ads")}; tbh=function(O){return O.G.Y().experiments.Jv("should_ignore_cuepoints_during_lifa_preroll")}; V8=function(O){return O.G.Y().experiments.Jv("enable_ads_control_flow_deterministic_id_generation")}; u8r=function(O){return O.G.Y().experiments.Jv("enable_desktop_discovery_video_abandon_pings")||WJ(O.G.Y())}; Av7=function(O){return O.G.Y().experiments.Jv("enable_progres_commands_lr_feeds")}; rv1=function(O){return O.G.Y().experiments.Jv("enable_progress_commands_lr_shorts")}; iQY=function(O){return O.G.Y().experiments.Jv("enable_progress_commands_el_dai")}; pk=function(O){return O.G.Y().experiments.Jv("html5_cuepoint_identifier_logging")}; PnU=function(O){O=O.G.getVideoData({playerType:1});return!!O&&O.L("html5_preload_first_vod_video_ad")&&!O.isDaiEnabled()&&!O.isLivePlayback}; Rvh=function(O){return O.G.Y().experiments.Jv("html5_ssdai_enable_media_end_cue_range")}; BKp=function(O){switch(O){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}}; Pq1=function(){g.BF.call(this);var O=this;this.K={};this.addOnDisposeCallback(function(){for(var V=g.n(Object.keys(O.K)),J=V.next();!J.done;J=V.next())delete O.K[J.value]})}; kc=function(){if(kar===null){kar=new Pq1;hU(Sa).j="b";var O=hU(Sa),V=Ab(O)=="h"||Ab(O)=="b",J=!(xI(),!1);V&&J&&(O.W=!0,O.V=new g27)}return kar}; SYo=function(O,V,J){O.K[V]=J}; DGd=function(O){switch(O){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}}; SZ=function(O,V,J){this.Av=O;this.G=V;this.Xj=J;this.j=new Set;this.K=new Map;kc().subscribe("adactiveviewmeasurable",this.Ve,this);kc().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ge,this);kc().subscribe("adviewableimpression",this.wd,this);kc().subscribe("adaudioaudible",this.o1,this);kc().subscribe("adaudiomeasurable",this.kR,this)}; Oh=function(O,V,J){var y=J.zf,l=J.Pr,m=J.listener;J=J.Wa;if(O.K.has(V))DJ("Unexpected registration of layout in LidarApi");else{if(J){if(O.j.has(J))return;O.j.add(J)}O.K.set(V,m);dT(xI().AC,"fmd",1);RT1(hU(Sa),y);SYo(kc(),V,{NV:function(){if(!l)return{};var H=O.G.getPresentingPlayerType(!0),F;return(F=O.G.getVideoData({playerType:H}))!=null&&F.isAd()?{currentTime:O.Av.get().getCurrentTimeSec(H,!1,void 0),duration:l,isPlaying:Dv(O.Av.get(),H).isPlaying(),isVpaid:!1,isYouTube:!0,volume:O.Av.get().isMuted()? 0:O.Av.get().getVolume()/100}:{}}})}}; Ve=function(O,V){O.K.has(V)?(O.K.delete(V),delete kc().K[V]):DJ("Unexpected unregistration of layout in LidarApi")}; OXY=function(O,V){if(O.G.isLifaAdPlaying()){var J=O.G.Tt(!0,!0);O.LI(V,J.width*.5*1.1,J.height*.25*1.1,J.width*.5*.9,J.height*.5*.9)}}; yk5=function(O,V){var J={};VMX(O,J,V);Jkp(J);J.LACT=JW(function(){return C2().toString()}); J.VIS=JW(function(){return O.getVisibilityState().toString()}); J.SDKV="h.3.0";J.VOL=JW(function(){return O.isMuted()?"0":Math.round(O.getVolume()).toString()}); J.VED="";return J}; lX5=function(O,V){var J={};if(V||!O||!O.kind)return J;if(O.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||O.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!O.adTimeOffset||!O.adTimeOffset.offsetStartMilliseconds)return g.sk(Error("malformed AdPlacementConfig")),J;J.MIDROLL_POS=JW(dc(Math.round(Ka(O.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else J.MIDROLL_POS=JW(dc("0"));return J}; JW=function(O){return{toString:function(){return O()}}}; mfd=function(O,V,J){function y(F,N){(N=J[N])&&(m[F]=N)} function l(F,N){(N=J[N])&&(m[F]=H(N))} if(!J||g.Id(J))return O;var m=Object.assign({},O),H=V?encodeURIComponent:function(F){return F}; l("DV_VIEWABILITY","doubleVerifyViewability");l("IAS_VIEWABILITY","integralAdsViewability");l("MOAT_INIT","moatInit");l("MOAT_VIEWABILITY","moatViewability");y("GOOGLE_VIEWABILITY","googleViewability");y("VIEWABILITY","viewability");return m}; VMX=function(O,V,J){V.CPN=JW(function(){var y;(y=O.getVideoData({playerType:1}))?y=y.clientPlaybackNonce:(g.en(Error("Video data is null.")),y=null);return y}); V.AD_MT=JW(function(){if(J!=null)var y=J;else if(O.Y().L("enable_h5_shorts_ad_fill_ad_mt_macro")||O.Y().L("enable_desktop_discovery_pings_ad_mt_macro")||WJ(O.Y())){var l=O.getPresentingPlayerType(!0),m;y=((m=O.getVideoData({playerType:l}))==null?0:m.isAd())?O.getCurrentTime(l,!1):0}else y=O.getCurrentTime(2,!1);return $fr(y)}); V.MT=JW(function(){return $fr(O.getCurrentTime(1,!1))}); V.P_H=JW(function(){return O.tv().BK().height.toString()}); V.P_W=JW(function(){return O.tv().BK().width.toString()}); V.PV_H=JW(function(){return O.tv().getVideoContentRect().height.toString()}); V.PV_W=JW(function(){return O.tv().getVideoContentRect().width.toString()})}; $fr=function(O){return Math.round(Math.max(0,O*1E3)).toString()}; Jkp=function(O){O.CONN=JW(dc("0"));O.WT=JW(function(){return Date.now().toString()})}; HXY=function(){}; jXp=function(O,V,J,y,l){var m,H,F,N,x,W,U,Z,z,c,Y,b,M;g.Q(function(w){switch(w.j){case 1:m=!!V.scrubReferrer;H=g.bL(V.baseUrl,mfd(J,m,y));F={};if(!V.headers){w.uw(2);break}N=O.D();if(!N.K){x=N.getValue();w.uw(3);break}return w.K(N.K,4);case 4:x=w.U;case 3:W=x;U=g.n(V.headers);for(Z=U.next();!Z.done;Z=U.next())switch(z=Z.value,z.headerType){case "VISITOR_ID":g.ts("VISITOR_DATA")&&(F["X-Goog-Visitor-Id"]=g.ts("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.ts("EOM_VISITOR_DATA")&&(F["X-Goog-EOM-Visitor-Id"]= g.ts("EOM_VISITOR_DATA"));break;case "USER_AUTH":W&&(F.Authorization="Bearer "+W);break;case "PLUS_PAGE_ID":(c=O.W())&&(F["X-Goog-PageId"]=c);break;case "AUTH_USER":Y=O.K();!W&&Y&&(F["X-Goog-AuthUser"]=Y);break;case "DATASYNC_ID":if(b=void 0,(b=O.U())==null?0:b.Jv("enable_datasync_id_header_in_web_vss_pings"))M=O.j(),Vd(H)&&g.ts("LOGGED_IN")&&M&&(F["X-YouTube-DataSync-Id"]=M)}"X-Goog-EOM-Visitor-Id"in F&&"X-Goog-Visitor-Id"in F&&delete F["X-Goog-Visitor-Id"];case 2:g.hS(H,void 0,m,Object.keys(F).length!== 0?F:void 0,"",!0,l),w.V()}})}; Ct7=function(O,V,J,y,l){this.D=O;this.W=V;this.K=J;this.j=y;this.U=l}; Fnh=function(O,V){this.K=O;this.Xj=V}; ye=function(O,V,J,y,l,m){var H=H===void 0?new Ct7(function(){var F=O.Y(),N=O.getVideoData({playerType:1});return g.bd(F,N?g.He(N):"")},function(){return O.Y().pageId},function(){return O.Y().O5},function(){var F; return(F=O.Y().datasyncId)!=null?F:""},function(){return O.Y().experiments}):H; this.G=O;this.j=V;this.WY=J;this.CD=y;this.Cs=l;this.Xj=m;this.D=H;this.uX=null;this.K=new Map;this.U=new Fnh(H,this.Xj)}; xfd=function(O,V,J,y,l){var m=Xq(O.j.get(),J);m?(J=CE(O,NYY(m),m,void 0,void 0,y),V.hasOwnProperty("baseUrl")?O.D.send(V,J):O.U.send(V,J,{},l)):DJ("Trying to ping from an unknown layout",void 0,void 0,{layoutId:J})}; lH1=function(O,V,J,y,l,m){y=y===void 0?[]:y;var H=Xq(O.j.get(),V);if(H){var F=O.WY.get().EY(V,J),N=CE(O,NYY(H),H,l,m);y.forEach(function(x,W){x.baseUrl&&(O.U.send(x.baseUrl,N,F,x.attributionSrcMode),x.serializedAdPingMetadata&&O.Cs.K("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,H,new sc7(x,W),void 0,void 0,H.adLayoutLoggingData))})}else DJ("Trying to track from an unknown layout.",void 0,void 0,{layoutId:V, trackingType:J})}; JY=function(O,V){O.G.sendVideoStatsEngageEvent(V,void 0,2)}; Cx=function(O,V){g.l6("adsClientStateChange",V)}; Wno=function(O,V){O.K.has(V.l7())?DJ("Trying to register an existing AdErrorInfoSupplier."):O.K.set(V.l7(),V)}; Ufh=function(O,V){O.K.delete(V.l7())||DJ("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; xW=function(O,V,J){typeof J==="string"?O.G.getVideoData({playerType:1}).nW(V,J):O.G.getVideoData({playerType:1}).jB(V,J)}; NYY=function(O){var V=G_(O.clientMetadata,"metadata_type_ad_placement_config");O=G_(O.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:V,Gj:O}}; CE=function(O,V,J,y,l,m){var H=J?ZX1(O):{},F=J?zeX(O,J.layoutId):{},N=ck7(O),x,W=l!=null?l:(x=kp(O.CD.get(),2))==null?void 0:x.clientPlaybackNonce;l={};O=Object.assign({},yk5(O.G,y),lX5(V.adPlacementConfig,(J==null?void 0:J.renderingContent)!==void 0),F,H,N,(l.FINAL=JW(function(){return"1"}),l.AD_CPN=JW(function(){return W||""}),l)); (J==null?void 0:J.renderingContent)!==void 0||(O.SLOT_POS=JW(function(){return(V.Gj||0).toString()})); J={};m=Object.assign({},O,m);O=g.n(Object.values(sXo));for(y=O.next();!y.done;y=O.next())y=y.value,H=m[y],H!=null&&H.toString()!=null&&(J[y]=H.toString());return J}; ZX1=function(O){var V={},J,y=(J=O.uX)==null?void 0:J.vX/1E3;y!=null&&(V.SURVEY_ELAPSED_MS=JW(function(){return Math.round(y*1E3).toString()})); V.SURVEY_LOCAL_TIME_EPOCH_S=JW(function(){return Math.round(Date.now()/1E3).toString()}); return V}; zeX=function(O,V){O=O.K.get(V);if(!O)return{};O=O.cT();if(!O)return{};V={};return V.YT_ERROR_CODE=O.sj.toString(),V.ERRORCODE=O.EZ.toString(),V.ERROR_MSG=O.errorMessage,V}; ck7=function(O){var V={},J=O.G.getVideoData({playerType:1});V.ASR=JW(function(){var y;return(y=J==null?void 0:J.MO)!=null?y:null}); V.EI=JW(function(){var y;return(y=J==null?void 0:J.eventId)!=null?y:null}); return V}; lS=function(O,V,J){g.K.call(this);this.G=O;this.MP=V;this.Xj=J;this.listeners=[];this.PG=null;this.NO=new Map;V=new g.jX(this);g.t(this,V);V.Z(O,"videodatachange",this.lIL);O.Y().gC().K.s5(la)?V.Z(O,"playbackChange",this.ALl):V.Z(O,"serverstitchedvideochange",this.Quz);this.FQ=kp(this)}; kp=function(O,V){var J=O.G.getVideoData({playerType:V});return J?O.Uc(J,V||O.G.getPresentingPlayerType(!0)):null}; TYr=function(O,V,J){var y=O.Uc(V,J);O.FQ=y;O.listeners.forEach(function(l){l.b$(y)})}; mv=function(O,V){g.K.call(this);this.G=O;this.CD=V;this.listeners=[];this.kY=[];this.IU=function(){DJ("Called 'doUnlockPreroll' before it's initialized.")}; V=new bj(this);var J=new g.jX(this);g.t(this,J);g.t(this,V);V.Z(O,"progresssync",this.l_E);V.Z(O,"presentingplayerstatechange",this.Eev);V.Z(O,"fullscreentoggled",this.onFullscreenToggled);V.Z(O,"onVolumeChange",this.onVolumeChange);V.Z(O,"minimized",this.mx);V.Z(O,"overlayvisibilitychange",this.FC);V.Z(O,"shortsadswipe",this.oW);V.Z(O,"resize",this.zy);J.Z(O,g.Q9("appad"),this.A_)}; eep=function(O,V){O.kY=O.kY.filter(function(J){return J!==V})}; $q=function(O,V,J){return O.getCurrentTimeSec(V,J)}; HQ=function(O,V){var J;V=(J=O.CD.get().NO.get(V))!=null?J:null;if(V===null)return DJ("Expected ad video start time on playback timeline"),0;O=O.G.getCurrentTime(2,!0);return O0){var m=V.end.toString();l.forEach(function(H){(H=H.config&&H.config.adPlacementConfig)&&H.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&H.adTimeOffset&&H.adTimeOffset.offsetEndMilliseconds==="-1"&&H.adTimeOffset.offsetEndMilliseconds!==m&&(H.adTimeOffset.offsetEndMilliseconds=m)}); y.map(function(H){return g.e(H,dh)}).forEach(function(H){var F; (H=H==null?void 0:(F=H.slotEntryTrigger)==null?void 0:F.mediaTimeRangeTrigger)&&H.offsetEndMilliseconds==="-1"&&(H.offsetEndMilliseconds=m)})}return{h3:l, adSlots:y,YW:!1,ssdaiAdsConfig:O.ssdaiAdsConfig}}; xq=function(O){g.K.call(this);this.G=O;this.listeners=[];this.K=new bj(this);g.t(this,this.K);this.K.Z(this.G,"aduxclicked",this.onAdUxClicked);this.K.Z(this.G,"aduxmouseover",this.Ra);this.K.Z(this.G,"aduxmouseout",this.m2);this.K.Z(this.G,"muteadaccepted",this.pBw)}; fXY=function(O,V,J){V=g.Ia(V,function(y){return new bzn(y,J,y.id)}); O.G.MX("onAdUxUpdate",V)}; WQ=function(O,V){O=g.n(O.listeners);for(var J=O.next();!J.done;J=O.next())V(J.value)}; Uh=function(O,V){this.j=O;this.U=V===void 0?!1:V;this.K={}}; hep=function(O,V){var J=O.startSecs+O.rN;J=J<=0?null:J;if(J===null)return null;switch(O.event){case "start":case "continue":case "stop":break;case "predictStart":if(V)break;return null;default:return null}V=Math.max(O.startSecs,0);return{Xv:new zh(V,J),JvE:new zP(V,J-V,O.context,O.identifier,O.event,O.K)}}; okY=function(){this.K=[]}; dwn=function(O,V,J){var y=g.J0(O.K,V);if(y>=0)return V;V=-y-1;return V>=O.K.length||O.K[V]>J?null:O.K[V]}; ZE=function(O,V,J){g.K.call(this);this.G=O;this.Xj=V;this.gW=J;this.listeners=[];this.D=!1;this.T6=[];this.K=null;this.W=new Uh(this,GaV(V.get()));this.U=new okY;this.j=null}; vko=function(O,V){O.T6.push(V);for(var J=!1,y=g.n(O.listeners),l=y.next();!l.done;l=y.next())J=l.value.P8(V)||J;O.D=J;pk(O.Xj.get())&&xW(O.gW.get(),"onci","cpi."+V.identifier+";cpe."+V.event+";cps."+V.startSecs+";cbi."+J)}; MM5=function(O,V){Cx(O.gW.get(),{cuepointTrigger:{event:wDl(V.event),cuepointId:V.identifier,totalCueDurationMs:V.rN*1E3,playheadTimeMs:V.K,cueStartTimeMs:V.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:O.G.getVideoData({playerType:1}).clientPlaybackNonce}})}; wDl=function(O){switch(O){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 IG(O,"Unexpected cuepoint event")}}; zg=function(O){this.G=O}; cQ=function(O){this.G=O}; Lnl=function(O){switch(O){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:IG(O,"unknown transitionReason")}}; sh=function(){g.K.apply(this,arguments);this.wCv=new Map}; nk5=function(O){this.G=O}; XDl=function(O,V,J,y,l){g.K.call(this);var m=this,H=an(function(){return new OM(m.Xj)}); g.t(this,H);var F=an(function(){return new JJ(H)}); g.t(this,F);var N=an(function(){return new Lk}); g.t(this,N);var x=an(function(){return new wj(O)}); g.t(this,x);var W=an(function(){return new y8(H,F,m.Xj)}); g.t(this,W);var U=an(function(){return new jl}); g.t(this,U);this.UA=an(function(){return new xq(V)}); g.t(this,this.UA);this.Vc=an(function(){return new pm(l)}); g.t(this,this.Vc);this.GK=an(function(){return new r1(V)}); g.t(this,this.GK);this.X5=an(function(){return new iR(V)}); g.t(this,this.X5);this.S7=an(function(){return new Ru(V)}); g.t(this,this.S7);this.NI=an(function(){return new BO(V)}); g.t(this,this.NI);this.Xj=an(function(){return new PO(V)}); g.t(this,this.Xj);var Z=an(function(){return new Na(y)}); g.t(this,Z);var z=an(function(){return new B0(m.Xj)}); g.t(this,z);this.Gb=an(function(){return new zg(V)}); g.t(this,this.Gb);this.VQ=an(function(){return new on}); g.t(this,this.VQ);this.CD=an(function(){return new lS(V,U,m.Xj)}); g.t(this,this.CD);var c=uR({CD:this.CD,Xj:this.Xj,zG:z}),Y=c.context;this.Cs=c.Cs;this.Ql=an(function(){return new ZE(V,m.Xj,m.gW)}); g.t(this,this.Ql);this.EA=an(function(){return new cQ(V)}); g.t(this,this.EA);this.Av=an(function(){return new mv(V,m.CD)}); g.t(this,this.Av);this.U7=an(function(){return new sh}); g.t(this,this.U7);c=an(function(){return new eE(H,W,F,m.Xj,z,"SLOT_TYPE_ABOVE_FEED",m.Av,m.FJ,m.VY)}); g.t(this,c);this.wD=an(function(){return new vb(m.Xj)}); this.WY=an(function(){return new SZ(m.Av,V,m.Xj)}); g.t(this,this.WY);this.gW=an(function(){return new ye(V,N,m.WY,m.CD,m.Cs,m.Xj)}); g.t(this,this.gW);this.VI=new o6(hm,Tg,function(M,w,L,X){return $8(F.get(),M,w,L,X)},x,W,F,z,this.Xj,this.CD); g.t(this,this.VI);this.fv=new vY(x,c,J,O,this.CD,this.Av,this.GK);g.t(this,this.fv);var b=new A3(V,this.fv,this.Av,this.CD,this.Ql);this.WC=an(function(){return b}); this.LQ=b;this.FJ=new a6(x,W,this.WC,this.Ql,this.Av,this.Xj,this.gW,this.EA);g.t(this,this.FJ);this.ge=new Ms(x,W,this.X5,this.WC,Y);g.t(this,this.ge);this.XR=new AE(this.Xj,x,W,c,this.CD,this.ge,J,this.S7);g.t(this,this.XR);this.h4=an(function(){return new iY(Z,F,z,m.Xj,m.gW,m.Av,m.EA)}); g.t(this,this.h4);this.ll=an(function(){return new Rn}); g.t(this,this.ll);this.ac=new QN(O,this.UA,this.Xj);g.t(this,this.ac);this.MH=new Gj(O);g.t(this,this.MH);this.u5=new Kk(O);g.t(this,this.u5);this.rH=new uz(O,this.WC,Y);g.t(this,this.rH);this.yY=new Am(O,this.X5,this.Av,this.CD);g.t(this,this.yY);this.R1=new rj(O,this.CD);g.t(this,this.R1);this.VY=new BY(O,this.Ql,this.Av,this.gW,this.WC,this.FJ);g.t(this,this.VY);this.sE=new iz(O);g.t(this,this.sE);this.X6=new Dg(O);g.t(this,this.X6);this.kT=new R6(O);g.t(this,this.kT);this.AT=new SE(O);g.t(this, this.AT);this.X6=new Dg(O);g.t(this,this.X6);this.Bf=an(function(){return new EE}); g.t(this,this.Bf);this.gB=an(function(){return new dj(m.Av)}); g.t(this,this.gB);this.uq=an(function(){return new aHV(m.UA,m.gW,O,N,m.WY)}); g.t(this,this.uq);this.BX=an(function(){return new LE(m.XR,x,H)}); g.t(this,this.BX);this.mE=an(function(){return new EI(m.Xj,m.gW,m.sE,m.WY)}); g.t(this,this.mE);this.Gt=an(function(){return new ey(O,m.X6,m.sE,m.CD,m.EA,m.Av,m.U7,m.gW,U,m.Ql,m.WY,m.wD,m.S7,m.X5,m.GK,m.NI,m.Vc,m.Gb,m.Xj,N,Y)}); g.t(this,this.Gt);this.Or=an(function(){return new qk5(m.Av,m.gW,m.Vc,m.Xj,m.WY,m.CD)}); g.t(this,this.Or);this.aq=an(function(){return new HUr(m.UA,m.Av,m.gW,N,m.WY,m.u5,m.AT,m.Vc,m.Xj,J)}); g.t(this,this.aq);this.f2=an(function(){return new bY5(m.UA,m.gW,N)}); g.t(this,this.f2);this.zF=new Fo(O,this.VQ,H);g.t(this,this.zF);this.uB={sz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XR],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ge]]),Vm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h4],["SLOT_TYPE_ABOVE_FEED",this.ll],["SLOT_TYPE_FORECASTING",this.ll], ["SLOT_TYPE_IN_PLAYER",this.ll],["SLOT_TYPE_PLAYER_BYTES",this.ll],["SLOT_TYPE_PLAYER_UNDERLAY",this.ll],["SLOT_TYPE_PLAYBACK_TRACKING",this.ll],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.ll]]),A$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ac],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.MH],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MH],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MH],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.MH],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MH],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.MH],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.MH],["TRIGGER_TYPE_CLOSE_REQUESTED",this.u5],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.rH],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.yY],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.yY],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.yY],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yY],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.yY],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.yY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.R1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.R1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sE],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.rH],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kT],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.AT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.X6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.VY],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VY],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VY],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VY]]),fI:new Map([["SLOT_TYPE_ABOVE_FEED",this.Bf], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Bf],["SLOT_TYPE_FORECASTING",this.Bf],["SLOT_TYPE_IN_PLAYER",this.Bf],["SLOT_TYPE_PLAYER_BYTES",this.gB],["SLOT_TYPE_PLAYER_UNDERLAY",this.Bf],["SLOT_TYPE_PLAYBACK_TRACKING",this.Bf],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Bf]]),fh:new Map([["SLOT_TYPE_ABOVE_FEED",this.uq],["SLOT_TYPE_AD_BREAK_REQUEST",this.BX],["SLOT_TYPE_FORECASTING",this.mE],["SLOT_TYPE_PLAYER_BYTES",this.Gt],["SLOT_TYPE_PLAYBACK_TRACKING",this.Or],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.Or],["SLOT_TYPE_IN_PLAYER",this.aq],["SLOT_TYPE_PLAYER_UNDERLAY",this.f2]])};this.listeners=[N.get()];this.Li={XR:this.XR,ME:this.Xj.get(),HE:this.Vc.get(),K0:this.Av.get(),fv:this.fv,b5:H.get(),KV:this.VQ.get(),w6:this.ac,Bc:N.get(),lL:this.CD.get()}}; Ekn=function(O,V,J,y,l){g.K.call(this);var m=this,H=an(function(){return new OM(m.Xj)}); g.t(this,H);var F=an(function(){return new JJ(H)}); g.t(this,F);var N=an(function(){return new Lk}); g.t(this,N);var x=an(function(){return new wj(O)}); g.t(this,x);var W=an(function(){return new y8(H,F,m.Xj)}); g.t(this,W);var U=an(function(){return new jl}); g.t(this,U);this.UA=an(function(){return new xq(V)}); g.t(this,this.UA);this.Vc=an(function(){return new pm(l)}); g.t(this,this.Vc);this.GK=an(function(){return new r1(V)}); g.t(this,this.GK);this.X5=an(function(){return new iR(V)}); g.t(this,this.X5);this.S7=an(function(){return new Ru(V)}); g.t(this,this.S7);this.NI=an(function(){return new BO(V)}); g.t(this,this.NI);this.Xj=an(function(){return new PO(V)}); g.t(this,this.Xj);var Z=an(function(){return new Na(y)}); g.t(this,Z);var z=an(function(){return new B0(m.Xj)}); g.t(this,z);var c=an(function(){return new eE(H,W,F,m.Xj,z,null,null,m.FJ,m.VY)}); g.t(this,c);this.Gb=an(function(){return new zg(V)}); g.t(this,this.Gb);this.VQ=an(function(){return new on}); g.t(this,this.VQ);this.CD=an(function(){return new lS(V,U,m.Xj)}); g.t(this,this.CD);var Y=uR({CD:this.CD,Xj:this.Xj,zG:z}),b=Y.context;this.Cs=Y.Cs;this.Ql=an(function(){return new ZE(V,m.Xj,m.gW)}); this.Av=an(function(){return new mv(V,m.CD)}); g.t(this,this.Av);this.U7=an(function(){return new sh}); g.t(this,this.U7);this.WY=an(function(){return new SZ(m.Av,V,m.Xj)}); g.t(this,this.WY);this.gW=an(function(){return new ye(V,N,m.WY,m.CD,m.Cs,m.Xj)}); g.t(this,this.gW);this.wD=an(function(){return new vb(m.Xj)}); g.t(this,this.wD);this.VI=new o6(hm,Tg,function(w,L,X,u){return $8(F.get(),w,L,X,u)},x,W,F,z,this.Xj,this.CD); g.t(this,this.VI);this.fv=new vY(x,c,J,O,this.CD,this.Av,this.GK);g.t(this,this.fv);var M=new A3(V,this.fv,this.Av,this.CD,this.Ql);this.WC=an(function(){return M}); this.LQ=M;this.FJ=new a6(x,W,this.WC,this.Ql,this.Av,this.Xj,this.gW);g.t(this,this.FJ);this.ge=new Ms(x,W,this.X5,this.WC,b);g.t(this,this.ge);this.XR=new AE(this.Xj,x,W,c,this.CD,this.ge,J,this.S7);g.t(this,this.XR);this.h4=an(function(){return new iY(Z,F,z,m.Xj,m.gW,m.Av)}); g.t(this,this.h4);this.ll=an(function(){return new Rn}); g.t(this,this.ll);this.ac=new QN(O,this.UA,this.Xj);g.t(this,this.ac);this.MH=new Gj(O);g.t(this,this.MH);this.u5=new Kk(O);g.t(this,this.u5);this.rH=new uz(O,this.WC,b);g.t(this,this.rH);this.yY=new Am(O,this.X5,this.Av,this.CD);g.t(this,this.yY);this.sE=new iz(O);g.t(this,this.sE);this.kT=new R6(O);g.t(this,this.kT);this.AT=new SE(O);g.t(this,this.AT);this.EA=an(function(){return new cQ(V)}); g.t(this,this.EA);this.X6=new Dg(O);g.t(this,this.X6);this.VY=new BY(O,this.Ql,this.Av,this.gW,this.WC,this.FJ);g.t(this,this.VY);this.Bf=an(function(){return new EE}); g.t(this,this.Bf);this.gB=an(function(){return new dj(m.Av)}); g.t(this,this.gB);this.BX=an(function(){return new LE(m.XR,x,H)}); g.t(this,this.BX);this.mE=an(function(){return new EI(m.Xj,m.gW,m.sE,m.WY)}); g.t(this,this.mE);this.aq=an(function(){return new jcr(m.UA,m.Av,m.gW,N,m.WY,m.u5,m.AT,m.Vc,m.Xj,J)}); g.t(this,this.aq);this.Gt=an(function(){return new II(O,m.X6,m.sE,m.gW,m.WY,m.wD,m.S7,m.CD,m.Av,m.U7,m.X5,m.GK,m.NI,m.Vc,m.Gb,m.Xj,m.EA,b)}); g.t(this,this.Gt);this.zF=new Fo(O,this.VQ,H);g.t(this,this.zF);this.uB={sz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XR],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ge]]),Vm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h4],["SLOT_TYPE_FORECASTING",this.ll],["SLOT_TYPE_IN_PLAYER",this.ll], ["SLOT_TYPE_PLAYER_BYTES",this.ll]]),A$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.MH],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MH],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MH],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MH], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.MH],["TRIGGER_TYPE_CLOSE_REQUESTED",this.u5],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.rH],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yY],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.yY],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sE],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.rH],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kT],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.AT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.X6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.VY],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VY],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VY],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VY]]),fI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bf],["SLOT_TYPE_FORECASTING",this.Bf],["SLOT_TYPE_IN_PLAYER",this.Bf],["SLOT_TYPE_PLAYER_BYTES",this.gB]]), fh:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BX],["SLOT_TYPE_FORECASTING",this.mE],["SLOT_TYPE_IN_PLAYER",this.aq],["SLOT_TYPE_PLAYER_BYTES",this.Gt]])};this.listeners=[N.get()];this.Li={XR:this.XR,ME:this.Xj.get(),HE:this.Vc.get(),K0:this.Av.get(),fv:this.fv,b5:H.get(),KV:this.VQ.get(),w6:this.ac,Bc:N.get(),lL:this.CD.get()}}; dfY=function(O,V,J,y,l){g.K.call(this);var m=this,H=an(function(){return new OM(m.Xj)}); g.t(this,H);var F=an(function(){return new JJ(H)}); g.t(this,F);var N=an(function(){return new Lk}); g.t(this,N);var x=an(function(){return new wj(O)}); g.t(this,x);var W=an(function(){return new y8(H,F,m.Xj)}); g.t(this,W);var U=an(function(){return new jl}); g.t(this,U);this.UA=an(function(){return new xq(V)}); g.t(this,this.UA);this.Vc=an(function(){return new pm(l)}); g.t(this,this.Vc);this.GK=an(function(){return new r1(V)}); g.t(this,this.GK);this.X5=an(function(){return new iR(V)}); g.t(this,this.X5);this.S7=an(function(){return new Ru(V)}); g.t(this,this.S7);this.NI=an(function(){return new BO(V)}); g.t(this,this.NI);this.Xj=an(function(){return new PO(V)}); g.t(this,this.Xj);var Z=an(function(){return new Na(y)}); g.t(this,Z);var z=an(function(){return new B0(m.Xj)}); g.t(this,z);var c=an(function(){return new eE(H,W,F,m.Xj,z,null,null,null,null)}); g.t(this,c);this.Gb=an(function(){return new zg(V)}); g.t(this,this.Gb);this.CD=an(function(){return new lS(V,U,m.Xj)}); g.t(this,this.CD);var Y=uR({CD:this.CD,Xj:this.Xj,zG:z}),b=Y.context;this.Cs=Y.Cs;this.Av=an(function(){return new mv(V,m.CD)}); g.t(this,this.Av);this.U7=an(function(){return new sh}); g.t(this,this.U7);this.WY=an(function(){return new SZ(m.Av,V,m.Xj)}); g.t(this,this.WY);this.gW=an(function(){return new ye(V,N,m.WY,m.CD,m.Cs,m.Xj)}); g.t(this,this.gW);this.wD=an(function(){return new vb(m.Xj)}); g.t(this,this.wD);this.VI=new o6(hm,Tg,function(w,L,X,u){return $8(F.get(),w,L,X,u)},x,W,F,z,this.Xj,this.CD); g.t(this,this.VI);this.fv=new vY(x,c,J,O,this.CD,this.Av,this.GK);g.t(this,this.fv);var M=new A3(V,this.fv,this.Av,this.CD);this.WC=an(function(){return M}); this.LQ=M;this.ge=new Ms(x,W,this.X5,this.WC,b);g.t(this,this.ge);this.XR=new AE(this.Xj,x,W,c,this.CD,this.ge,J,this.S7);g.t(this,this.XR);this.h4=an(function(){return new iY(Z,F,z,m.Xj,m.gW,m.Av)}); g.t(this,this.h4);this.ll=an(function(){return new Rn}); g.t(this,this.ll);this.ac=new QN(O,this.UA,this.Xj);g.t(this,this.ac);this.MH=new Gj(O);g.t(this,this.MH);this.rH=new uz(O,this.WC,b);g.t(this,this.rH);this.yY=new Am(O,this.X5,this.Av,this.CD);g.t(this,this.yY);this.sE=new iz(O);g.t(this,this.sE);this.kT=new R6(O);g.t(this,this.kT);this.EA=an(function(){return new cQ(V)}); g.t(this,this.EA);this.X6=new Dg(O);g.t(this,this.X6);this.Bf=an(function(){return new EE}); g.t(this,this.Bf);this.gB=an(function(){return new dj(m.Av)}); g.t(this,this.gB);this.BX=an(function(){return new LE(m.XR,x,H)}); g.t(this,this.BX);this.mE=an(function(){return new EI(m.Xj,m.gW,m.sE,m.WY)}); g.t(this,this.mE);this.E2=an(function(){return new dbd(m.UA,m.Av,m.gW,N,J,m.Xj)}); g.t(this,this.E2);this.Gt=an(function(){return new II(O,m.X6,m.sE,m.gW,m.WY,m.wD,m.S7,m.CD,m.Av,m.U7,m.X5,m.GK,m.NI,m.Vc,m.Gb,m.Xj,m.EA,b)}); g.t(this,this.Gt);this.uB={sz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ge]]),Vm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h4],["SLOT_TYPE_FORECASTING",this.ll],["SLOT_TYPE_IN_PLAYER",this.ll],["SLOT_TYPE_PLAYER_BYTES",this.ll]]),A$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.MH],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MH],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MH],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MH],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.rH],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yY],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.yY],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sE],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.rH],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.X6]]),fI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bf],["SLOT_TYPE_ABOVE_FEED",this.Bf],["SLOT_TYPE_FORECASTING",this.Bf],["SLOT_TYPE_IN_PLAYER",this.Bf],["SLOT_TYPE_PLAYER_BYTES",this.gB]]),fh:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BX],["SLOT_TYPE_FORECASTING",this.mE],["SLOT_TYPE_IN_PLAYER", this.E2],["SLOT_TYPE_PLAYER_BYTES",this.Gt]])};this.listeners=[N.get()];this.Li={XR:this.XR,ME:this.Xj.get(),HE:this.Vc.get(),K0:this.Av.get(),fv:this.fv,b5:H.get(),KV:null,w6:this.ac,Bc:N.get(),lL:this.CD.get()}}; gkH=function(O,V,J,y,l){g.K.call(this);var m=this,H=an(function(){return new OM(m.Xj)}); g.t(this,H);var F=an(function(){return new JJ(H)}); g.t(this,F);var N=an(function(){return new Lk}); g.t(this,N);var x=an(function(){return new wj(O)}); g.t(this,x);var W=an(function(){return new y8(H,F,m.Xj)}); g.t(this,W);var U=an(function(){return new jl}); g.t(this,U);this.b3=an(function(){return new nk5(V)}); g.t(this,this.b3);this.UA=an(function(){return new xq(V)}); g.t(this,this.UA);this.Vc=an(function(){return new pm(l)}); g.t(this,this.Vc);this.GK=an(function(){return new r1(V)}); g.t(this,this.GK);this.X5=an(function(){return new iR(V)}); g.t(this,this.X5);this.S7=an(function(){return new Ru(V)}); g.t(this,this.S7);this.NI=an(function(){return new BO(V)}); g.t(this,this.NI);this.Xj=an(function(){return new PO(V)}); g.t(this,this.Xj);var Z=an(function(){return new Na(y)}); g.t(this,Z);var z=an(function(){return new B0(m.Xj)}); g.t(this,z);var c=an(function(){return new eE(H,W,F,m.Xj,z,null,null,null,null)}); g.t(this,c);this.Gb=an(function(){return new zg(V)}); g.t(this,this.Gb);this.CD=an(function(){return new lS(V,U,m.Xj)}); g.t(this,this.CD);var Y=uR({CD:this.CD,Xj:this.Xj,zG:z}),b=Y.context;this.Cs=Y.Cs;this.Av=an(function(){return new mv(V,m.CD)}); g.t(this,this.Av);this.U7=an(function(){return new sh}); g.t(this,this.U7);this.WY=an(function(){return new SZ(m.Av,V,m.Xj)}); g.t(this,this.WY);this.gW=an(function(){return new ye(V,N,m.WY,m.CD,m.Cs,m.Xj)}); g.t(this,this.gW);this.wD=an(function(){return new vb(m.Xj)}); g.t(this,this.wD);this.VI=new o6(iFV,Tg,function(w,L,X,u){return Zm1(F.get(),w,L,X,u)},x,W,F,z,this.Xj,this.CD); g.t(this,this.VI);this.fv=new vY(x,c,J,O,this.CD,this.Av,this.GK);g.t(this,this.fv);var M=new A3(V,this.fv,this.Av,this.CD);this.WC=an(function(){return M}); this.LQ=M;this.ge=new Ms(x,W,this.X5,this.WC,b);g.t(this,this.ge);this.XR=new AE(this.Xj,x,W,c,this.CD,this.ge,J,this.S7);g.t(this,this.XR);this.h4=an(function(){return new iY(Z,F,z,m.Xj,m.gW,m.Av)}); g.t(this,this.h4);this.ll=an(function(){return new Rn}); g.t(this,this.ll);this.ac=new QN(O,this.UA,this.Xj);g.t(this,this.ac);this.MH=new Gj(O);g.t(this,this.MH);this.rH=new uz(O,this.WC,b);g.t(this,this.rH);this.yY=new Am(O,this.X5,this.Av,this.CD);g.t(this,this.yY);this.sE=new iz(O);g.t(this,this.sE);this.kT=new R6(O);g.t(this,this.kT);this.EA=an(function(){return new cQ(V)}); g.t(this,this.EA);this.X6=new Dg(O);g.t(this,this.X6);this.Bf=an(function(){return new EE}); g.t(this,this.Bf);this.gB=an(function(){return new dj(m.Av)}); g.t(this,this.gB);this.BX=an(function(){return new LE(m.XR,x,H)}); g.t(this,this.BX);this.mE=an(function(){return new EI(m.Xj,m.gW,m.sE,m.WY)}); g.t(this,this.mE);this.Gt=an(function(){return new II(O,m.X6,m.sE,m.gW,m.WY,m.wD,m.S7,m.CD,m.Av,m.U7,m.X5,m.GK,m.NI,m.Vc,m.Gb,m.Xj,m.EA,b)}); g.t(this,this.Gt);this.EK=an(function(){return new FAo(m.UA,m.Av,m.gW,N,m.b3,J,m.CD)}); g.t(this,this.EK);this.uB={sz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ge]]),Vm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h4],["SLOT_TYPE_FORECASTING",this.ll],["SLOT_TYPE_IN_PLAYER",this.ll],["SLOT_TYPE_PLAYER_BYTES",this.ll]]),A$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.MH],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MH],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MH],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MH],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.rH],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yY],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.yY],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sE],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.rH],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.X6]]),fI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bf],["SLOT_TYPE_FORECASTING",this.Bf],["SLOT_TYPE_IN_PLAYER",this.Bf],["SLOT_TYPE_PLAYER_BYTES",this.gB]]),fh:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BX],["SLOT_TYPE_FORECASTING",this.mE],["SLOT_TYPE_IN_PLAYER",this.EK],["SLOT_TYPE_PLAYER_BYTES", this.Gt]])};this.listeners=[N.get()];this.Li={XR:this.XR,ME:this.Xj.get(),HE:this.Vc.get(),K0:this.Av.get(),fv:this.fv,b5:H.get(),KV:null,w6:this.ac,Bc:N.get(),lL:this.CD.get()}}; qbp=function(O,V,J,y,l){g.K.call(this);var m=this,H=an(function(){return new OM(m.Xj)}); g.t(this,H);var F=an(function(){return new JJ(H)}); g.t(this,F);var N=an(function(){return new Lk}); g.t(this,N);var x=an(function(){return new wj(O)}); g.t(this,x);var W=an(function(){return new y8(H,F,m.Xj)}); g.t(this,W);var U=an(function(){return new jl}); g.t(this,U);this.b3=an(function(){return new nk5(V)}); g.t(this,this.b3);this.UA=an(function(){return new xq(V)}); g.t(this,this.UA);this.Vc=an(function(){return new pm(l)}); g.t(this,this.Vc);this.GK=an(function(){return new r1(V)}); g.t(this,this.GK);this.X5=an(function(){return new iR(V)}); g.t(this,this.X5);this.S7=an(function(){return new Ru(V)}); g.t(this,this.S7);this.NI=an(function(){return new BO(V)}); g.t(this,this.NI);this.Xj=an(function(){return new PO(V)}); g.t(this,this.Xj);var Z=an(function(){return new Na(y)}); g.t(this,Z);var z=an(function(){return new B0(m.Xj)}); g.t(this,z);this.Gb=an(function(){return new zg(V)}); g.t(this,this.Gb);this.CD=an(function(){return new lS(V,U,m.Xj)}); g.t(this,this.CD);var c=uR({CD:this.CD,Xj:this.Xj,zG:z}),Y=c.context;this.Cs=c.Cs;this.Ql=an(function(){return new ZE(V,m.Xj,m.gW)}); g.t(this,this.Ql);this.EA=an(function(){return new cQ(V)}); g.t(this,this.EA);this.Av=an(function(){return new mv(V,m.CD)}); g.t(this,this.Av);this.U7=an(function(){return new sh}); g.t(this,this.U7);c=an(function(){return new eE(H,W,F,m.Xj,z,null,m.Av,m.FJ,m.VY,3)}); g.t(this,c);this.wD=an(function(){return new vb(m.Xj)}); this.WY=an(function(){return new SZ(m.Av,V,m.Xj)}); g.t(this,this.WY);this.gW=an(function(){return new ye(V,N,m.WY,m.CD,m.Cs,m.Xj)}); g.t(this,this.gW);this.fv=new vY(x,c,J,O,this.CD,this.Av,this.GK);g.t(this,this.fv);var b=new A3(V,this.fv,this.Av,this.CD,this.Ql);this.WC=an(function(){return b}); this.LQ=b;this.VI=new o6(RCV,Tg,function(M,w,L,X){return Zm1(F.get(),M,w,L,X)},x,W,F,z,this.Xj,this.CD); g.t(this,this.VI);this.FJ=new a6(x,W,this.WC,this.Ql,this.Av,this.Xj,this.gW,this.EA);g.t(this,this.FJ);this.ge=new Ms(x,W,this.X5,this.WC,Y);g.t(this,this.ge);this.XR=new AE(this.Xj,x,W,c,this.CD,this.ge,J,this.S7);g.t(this,this.XR);this.h4=an(function(){return new iY(Z,F,z,m.Xj,m.gW,m.Av,m.EA)}); g.t(this,this.h4);this.ll=an(function(){return new Rn}); g.t(this,this.ll);this.ac=new QN(O,this.UA,this.Xj);g.t(this,this.ac);this.MH=new Gj(O);g.t(this,this.MH);this.rH=new uz(O,this.WC,Y);g.t(this,this.rH);this.yY=new Am(O,this.X5,this.Av,this.CD);g.t(this,this.yY);this.R1=new rj(O,this.CD);g.t(this,this.R1);this.VY=new BY(O,this.Ql,this.Av,this.gW,this.WC,this.FJ);g.t(this,this.VY);this.sE=new iz(O);g.t(this,this.sE);this.kT=new R6(O);g.t(this,this.kT);this.X6=new Dg(O);g.t(this,this.X6);this.Bf=an(function(){return new EE}); g.t(this,this.Bf);this.gB=an(function(){return new dj(m.Av)}); g.t(this,this.gB);this.BX=an(function(){return new LE(m.XR,x,H)}); g.t(this,this.BX);this.mE=an(function(){return new EI(m.Xj,m.gW,m.sE,m.WY)}); g.t(this,this.mE);this.Gt=an(function(){return new ey(O,m.X6,m.sE,m.CD,m.EA,m.Av,m.U7,m.gW,U,m.Ql,m.WY,m.wD,m.S7,m.X5,m.GK,m.NI,m.Vc,m.Gb,m.Xj,N,Y)}); g.t(this,this.Gt);this.aq=an(function(){return new N6o(m.UA,m.Av,m.gW,N,m.b3,J,m.Xj,m.CD)}); g.t(this,this.aq);this.uB={sz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XR],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ge]]),Vm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h4],["SLOT_TYPE_FORECASTING",this.ll],["SLOT_TYPE_IN_PLAYER",this.ll],["SLOT_TYPE_PLAYER_BYTES",this.ll]]),A$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.ac],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.MH],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MH],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MH],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.MH],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MH],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MH],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.rH],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.yY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.R1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.R1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sE],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.rH],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.X6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.VY],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VY],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VY],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VY]]),fI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bf],["SLOT_TYPE_FORECASTING",this.Bf],["SLOT_TYPE_IN_PLAYER",this.Bf],["SLOT_TYPE_PLAYER_BYTES",this.gB]]),fh:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BX],["SLOT_TYPE_FORECASTING",this.mE],["SLOT_TYPE_PLAYER_BYTES",this.Gt],["SLOT_TYPE_IN_PLAYER",this.aq]])};this.listeners=[N.get()]; this.Li={XR:this.XR,ME:this.Xj.get(),HE:this.Vc.get(),K0:this.Av.get(),fv:this.fv,b5:H.get(),KV:null,w6:this.ac,Bc:N.get(),lL:this.CD.get()}}; Gyn=function(O,V,J,y){function l(){return m.j} g.K.call(this);var m=this;O.Y().experiments.Jv("html5_dispose_of_manager_before_dependency")?(this.K=QXd(l,O,V,J,y),this.j=(new bY(this.K)).U(),g.t(this,this.j),g.t(this,this.K)):(this.K=QXd(l,O,V,J,y),g.t(this,this.K),this.j=(new bY(this.K)).U(),g.t(this,this.j))}; eQ=function(O){return O.K.Li}; QXd=function(O,V,J,y,l){try{var m=V.Y();if(g.ZG(m))var H=new XDl(O,V,J,y,l);else if(g.sj(m))H=new Ekn(O,V,J,y,l);else if(HJ(m))H=new dfY(O,V,J,y,l);else if(g.pJ(m))H=new gkH(O,V,J,y,l);else if(g.Vw(m))H=new qbp(O,V,J,y,l);else throw new TypeError("Unknown web interface");return H}catch(F){return H=V.Y(),DJ("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:H.K.cplatform,interface:H.K.c,k$L:H.K.cver,oki:H.K.ctheme,ihl:H.K.cplayer,md5:H.playerStyle}),new bXn(O,V,J,y,l)}}; Knn=function(O){nI.call(this,O)}; tM1=function(O,V,J,y,l){KI.call(this,O,{X:"div",C:"ytp-ad-timed-pie-countdown-container",J:[{X:"svg",C:"ytp-ad-timed-pie-countdown",N:{viewBox:"0 0 20 20"},J:[{X:"circle",C:"ytp-ad-timed-pie-countdown-background",N:{r:"10",cx:"10",cy:"10"}},{X:"circle",C:"ytp-ad-timed-pie-countdown-inner",N:{r:"5",cx:"10",cy:"10"}},{X:"circle",C:"ytp-ad-timed-pie-countdown-outer",N:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",V,J,y,l);this.D=this.DN("ytp-ad-timed-pie-countdown-container");this.U=this.DN("ytp-ad-timed-pie-countdown-inner"); this.W=this.DN("ytp-ad-timed-pie-countdown-outer");this.j=Math.ceil(2*Math.PI*5);this.hide()}; u9V=function(O,V,J,y,l,m){Vb.call(this,O,{X:"div",C:"ytp-ad-action-interstitial",N:{tabindex:"0"},J:[{X:"div",C:"ytp-ad-action-interstitial-background-container"},{X:"div",C:"ytp-ad-action-interstitial-slot",J:[{X:"div",C:"ytp-ad-action-interstitial-instream-info"},{X:"div",C:"ytp-ad-action-interstitial-card",J:[{X:"div",C:"ytp-ad-action-interstitial-image-container"},{X:"div",C:"ytp-ad-action-interstitial-headline-container"},{X:"div",C:"ytp-ad-action-interstitial-description-container"},{X:"div", C:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",V,J,y);this.CR=l;this.jh=m;this.navigationEndpoint=this.K=this.skipButton=this.j=this.actionButton=null;this.LD=this.DN("ytp-ad-action-interstitial-instream-info");this.ol=this.DN("ytp-ad-action-interstitial-image-container");this.T=new vB(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,"ytp-ad-action-interstitial-image");g.t(this,this.T);this.T.rW(this.ol);this.dW=this.DN("ytp-ad-action-interstitial-headline-container"); this.W=new Qb(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,"ytp-ad-action-interstitial-headline");g.t(this,this.W);this.W.rW(this.dW);this.lw=this.DN("ytp-ad-action-interstitial-description-container");this.U=new Qb(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,"ytp-ad-action-interstitial-description");g.t(this,this.U);this.U.rW(this.lw);this.TL=this.DN("ytp-ad-action-interstitial-background-container");this.yz=new vB(this.api,this.layoutId,this.interactionLoggingClientData, this.HE,"ytp-ad-action-interstitial-background",!0);g.t(this,this.yz);this.yz.rW(this.TL);this.nD=this.DN("ytp-ad-action-interstitial-action-button-container");this.slot=this.DN("ytp-ad-action-interstitial-slot");this.ou=this.DN("ytp-ad-action-interstitial-card");this.D=new bj;g.t(this,this.D);this.hide()}; AkH=function(O){var V=g.Up("html5-video-player");V&&g.yf(V,"ytp-ad-display-override",O)}; BYl=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-ad-overlay-slot",J:[{X:"div",C:"ytp-ad-overlay-container"}]},"invideo-overlay",V,J,y);this.T=[];this.TL=this.dW=this.D=this.nD=this.LD=null;this.yz=!1;this.W=null;this.lw=0;O=this.DN("ytp-ad-overlay-container");this.ol=new PB(O,45E3,6E3,.3,.4);g.t(this,this.ol);this.U=rk7(this);g.t(this,this.U);this.U.rW(O);this.j=iXd(this);g.t(this,this.j);this.j.rW(O);this.K=Re1(this);g.t(this,this.K);this.K.rW(O);this.hide()}; rk7=function(O){var V=new g.OF({X:"div",C:"ytp-ad-text-overlay",J:[{X:"div",C:"ytp-ad-overlay-ad-info-button-container"},{X:"div",C:"ytp-ad-overlay-close-container",J:[{X:"button",C:"ytp-ad-overlay-close-button",J:[IC(Ptd)]}]},{X:"div",C:"ytp-ad-overlay-title",Rl:"{{title}}"},{X:"div",C:"ytp-ad-overlay-desc",Rl:"{{description}}"},{X:"div",Fj:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Rl:"{{displayUrl}}"}]});O.Z(V.DN("ytp-ad-overlay-title"),"click",function(J){IJ(O,V.element,J)}); O.Z(V.DN("ytp-ad-overlay-link"),"click",function(J){IJ(O,V.element,J)}); O.Z(V.DN("ytp-ad-overlay-close-container"),"click",O.mH);V.hide();return V}; iXd=function(O){var V=new g.OF({X:"div",Fj:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],J:[{X:"div",C:"ytp-ad-overlay-ad-info-button-container"},{X:"div",C:"ytp-ad-overlay-close-container",J:[{X:"button",C:"ytp-ad-overlay-close-button",J:[IC(Ptd)]}]},{X:"div",C:"ytp-ad-overlay-text-image",J:[{X:"img",N:{src:"{{imageUrl}}"}}]},{X:"div",C:"ytp-ad-overlay-title",Rl:"{{title}}"},{X:"div",C:"ytp-ad-overlay-desc",Rl:"{{description}}"},{X:"div",Fj:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Rl:"{{displayUrl}}"}]});O.Z(V.DN("ytp-ad-overlay-title"),"click",function(J){IJ(O,V.element,J)}); O.Z(V.DN("ytp-ad-overlay-link"),"click",function(J){IJ(O,V.element,J)}); O.Z(V.DN("ytp-ad-overlay-close-container"),"click",O.mH);O.Z(V.DN("ytp-ad-overlay-text-image"),"click",O.tjB);V.hide();return V}; Re1=function(O){var V=new g.OF({X:"div",C:"ytp-ad-image-overlay",J:[{X:"div",C:"ytp-ad-overlay-ad-info-button-container"},{X:"div",C:"ytp-ad-overlay-close-container",J:[{X:"button",C:"ytp-ad-overlay-close-button",J:[IC(Ptd)]}]},{X:"div",C:"ytp-ad-overlay-image",J:[{X:"img",N:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});O.Z(V.DN("ytp-ad-overlay-image"),"click",function(J){IJ(O,V.element,J)}); O.Z(V.DN("ytp-ad-overlay-close-container"),"click",O.mH);V.hide();return V}; kyV=function(O,V){if(V){var J=g.e(V,Gw)||null;J==null?g.sk(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(V=g.Up("video-ads ytp-ad-module")||null,V==null?g.sk(Error("Could not locate the root ads container element to attach the ad info dialog.")):(O.dW=new g.OF({X:"div",C:"ytp-ad-overlay-ad-info-dialog-container"}),g.t(O,O.dW),O.dW.rW(V),V=new qo(O.api,O.layoutId,O.interactionLoggingClientData,O.HE,O.dW.element,!1),g.t(O,V),V.init(i6("ad-info-hover-text-button"),J,O.macros), O.W?(V.rW(O.W,0),V.subscribe("f",O.ha5,O),V.subscribe("e",O.SA,O),O.Z(O.W,"click",O.eaB),O.Z(g.Up("ytp-ad-button",V.element),"click",function(){var y;if(g.e((y=g.e(J.button,tE))==null?void 0:y.serviceEndpoint,XCd))O.yz=O.api.getPlayerState(1)===2,O.api.pauseVideo();else O.api.onAdUxClicked("ad-info-hover-text-button",O.layoutId)}),O.TL=V):g.sk(Error("Ad info button container within overlay ad was not present."))))}else g.en(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; Dfd=function(O,V){if(SbU(O,Yq)||O.api.isMinimized())return!1;var J=JV(V.title),y=JV(V.description);if(g.Ku(J)||g.Ku(y))return!1;O.createServerVe(O.U.element,V.trackingParams||null);O.U.updateValue("title",JV(V.title));O.U.updateValue("description",JV(V.description));O.U.updateValue("displayUrl",JV(V.displayUrl));V.navigationEndpoint&&g.SF(O.T,V.navigationEndpoint);O.U.show();O.ol.start();O.logVisibility(O.U.element,!0);O.Z(O.U.element,"mouseover",function(){O.lw++}); return!0}; OlH=function(O,V){if(SbU(O,Yq)||O.api.isMinimized())return!1;var J=JV(V.title),y=JV(V.description);if(g.Ku(J)||g.Ku(y))return!1;O.createServerVe(O.j.element,V.trackingParams||null);O.j.updateValue("title",JV(V.title));O.j.updateValue("description",JV(V.description));O.j.updateValue("displayUrl",JV(V.displayUrl));O.j.updateValue("imageUrl",uR5(V.image));V.navigationEndpoint&&g.SF(O.T,V.navigationEndpoint);O.nD=V.imageNavigationEndpoint||null;O.j.show();O.ol.start();O.logVisibility(O.j.element,!0); O.Z(O.j.element,"mouseover",function(){O.lw++}); return!0}; VO5=function(O,V){if(O.api.isMinimized())return!1;var J=Ayh(V.image),y=J;J.width0?(V=new Yo(O.api,O.K), V.rW(O.playerOverlay),g.t(O,V)):(O=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(V)),g.sk(O))}}else g.sk(Error("addCommonComponents() needs to be called before starting countdown."))}; xCX=function(O){function V(J){return{toString:function(){return J()}}} O.macros.SURVEY_LOCAL_TIME_EPOCH_S=V(function(){var J=new Date;return(Math.round(J.valueOf()/1E3)+-1*J.getTimezoneOffset()*60).toString()}); O.macros.SURVEY_ELAPSED_MS=V(function(){return(Date.now()-O.U).toString()})}; Wuh=function(O,V,J,y,l){fP.call(this,O,V,J,y,"survey-question-multi-select");this.lw=l;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; UCn=function(O,V,J){O.noneOfTheAbove=new Hlp(O.api,O.layoutId,O.interactionLoggingClientData,O.HE);O.noneOfTheAbove.rW(O.answers);O.noneOfTheAbove.init(i6("survey-none-of-the-above"),V,J)}; zZ7=function(O){O.j.forEach(function(V){V.K.toggleButton(!1)}); Zlr(O,!0)}; Zlr=function(O,V){var J=O.D;O=cfp(O);V=V===void 0?!1:V;J.K&&(O?J.K.hide():J.K.show(),V&&J.K instanceof mp&&!J.K.D&&uQ1(J.K,!1));J.j&&(O?J.j.show():J.j.hide())}; cfp=function(O){return O.j.some(function(V){return V.K.isToggled()})||O.noneOfTheAbove.button.isToggled()}; hW=function(O,V,J,y,l){fP.call(this,O,V,J,y,"survey-question-single-select",function(H){m.api.Y().L("supports_multi_step_on_desktop")&&l([H])}); var m=this;this.hide()}; oJ=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-ad-survey",J:[{X:"div",C:"ytp-ad-survey-questions"}]},"survey",V,J,y);this.questions=[];this.j=[];this.conditioningRules=[];this.K=0;this.W=this.DN("ytp-ad-survey-questions");this.api.Y().L("fix_survey_color_contrast_on_destop")&&this.DN("ytp-ad-survey").classList.add("color-contrast-fix");this.api.Y().L("web_enable_speedmaster")&&this.DN("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; eZn=function(O,V){var J=O.j[V],y;(y=O.U)==null||y.dispose();g.e(J,q3)?sKr(O,g.e(J,q3),O.macros):g.e(J,gh)&&TDU(O,g.e(J,gh),O.macros);O.K=V}; sKr=function(O,V,J){var y=new hW(O.api,O.layoutId,O.interactionLoggingClientData,O.HE,O.D.bind(O));y.rW(O.W);y.init(i6("survey-question-single-select"),V,J);O.api.Y().L("supports_multi_step_on_desktop")?O.U=y:O.questions.push(y);g.t(O,y)}; TDU=function(O,V,J){var y=new Wuh(O.api,O.layoutId,O.interactionLoggingClientData,O.HE,O.D.bind(O));y.rW(O.W);y.init(i6("survey-question-multi-select"),V,J);O.api.Y().L("supports_multi_step_on_desktop")?O.U=y:O.questions.push(y);g.t(O,y)}; vQ=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-ad-survey-interstitial",J:[{X:"div",C:"ytp-ad-survey-interstitial-contents",J:[{X:"div",C:"ytp-ad-survey-interstitial-logo",J:[{X:"div",C:"ytp-ad-survey-interstitial-logo-image"}]},{X:"div",C:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",V,J,y);this.K=this.actionButton=null;this.interstitial=this.DN("ytp-ad-survey-interstitial");this.j=this.DN("ytp-ad-survey-interstitial-contents");this.text=this.DN("ytp-ad-survey-interstitial-text"); this.logoImage=this.DN("ytp-ad-survey-interstitial-logo-image");this.transition=new g.AV(this,500,!1,300);g.t(this,this.transition)}; Icr=function(O,V){V=V&&oC(V)||"";if(g.Ku(V))g.en(Error("Found ThumbnailDetails without valid image URL"));else{var J=O.style;O=O.style.cssText;var y=document.implementation.createHTMLDocument("").createElement("DIV");y.style.cssText=O;O=eL1(y.style);J.cssText=[O,'background-image:url("'+V+'");'].join("")}}; Yr5=function(O){var V=g.Up("html5-video-player");V&&g.yf(V,"ytp-ad-display-override",O)}; wB=function(O,V,J,y,l,m){m=m===void 0?0:m;KI.call(this,O,{X:"div",C:"ytp-preview-ad",J:[{X:"div",C:"ytp-preview-ad__text"}]},"preview-ad",V,J,y,l);var H=this;this.lw=m;this.j=0;this.D=-1;this.U=this.DN("ytp-preview-ad__text");switch(this.lw){case 1:this.U.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.AV(this,400,!1,100,function(){H.hide()}); g.t(this,this.transition);this.hide()}; Ma=function(O,V,J,y){Vb.call(this,O,{X:"img",C:"ytp-ad-avatar"},"ad-avatar",V,J,y);this.hide()}; acp=function(O){switch(O.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}}; LP=function(O,V,J,y,l,m){l=l===void 0?!1:l;m=m===void 0?!1:m;Vb.call(this,O,{X:"button",C:"ytp-ad-button-vm"},"ad-button",V,J,y);this.buttonText=this.buttonIcon=null;this.hide();this.K=l;this.j=m}; blh=function(O,V,J,y,l){KI.call(this,O,{X:"div",Fj:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],J:[{X:"div",C:"ytp-ad-avatar-lockup-card__avatar_and_text_container",J:[{X:"div",C:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",V,J,y,l);this.startMilliseconds=0;this.adAvatar=new Ma(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,this.adAvatar);po(this.element,this.adAvatar.element,0);this.headline=new zE(this.api,this.layoutId, this.interactionLoggingClientData,this.HE);g.t(this,this.headline);this.headline.rW(this.DN("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,this.description);this.description.rW(this.DN("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new LP(this.api, this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,this.adButton);this.adButton.rW(this.element);this.hide()}; nP=function(O,V,J,y){Vb.call(this,O,{X:"button",C:"ytp-skip-ad-button",J:[{X:"div",C:"ytp-skip-ad-button__text"}]},"skip-button",V,J,y);var l=this;this.j=!1;this.D=this.DN("ytp-skip-ad-button__text");this.transition=new g.AV(this,500,!1,100,function(){l.hide()}); g.t(this,this.transition);this.K=new PB(this.element,15E3,5E3,.5,.5,!0);g.t(this,this.K);this.hide()}; p4r=function(O,V,J,y,l){KI.call(this,O,{X:"div",C:"ytp-skip-ad"},"skip-ad",V,J,y,l);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.U=new nP(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,this.U);this.U.rW(this.element);this.hide()}; Xo=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-visit-advertiser-link"},"visit-advertiser-link",V,J,y);this.hide()}; Eh=function(O,V,J,y,l){Vb.call(this,O,{X:"div",C:"ytp-ad-player-overlay-layout",J:[{X:"div",C:"ytp-ad-player-overlay-layout__player-card-container"},{X:"div",C:"ytp-ad-player-overlay-layout__ad-info-container"},{X:"div",C:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{X:"div",C:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",V,J,y);this.j=l;this.dW=this.DN("ytp-ad-player-overlay-layout__player-card-container");this.K=this.DN("ytp-ad-player-overlay-layout__ad-info-container"); this.T=this.DN("ytp-ad-player-overlay-layout__skip-or-preview-container");this.lw=this.DN("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; fcn=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-ad-grid-card-text",J:[{X:"div",C:"ytp-ad-grid-card-text__metadata",J:[{X:"div",C:"ytp-ad-grid-card-text__metadata__headline"},{X:"div",C:"ytp-ad-grid-card-text__metadata__description",J:[{X:"div",C:"ytp-ad-grid-card-text__metadata__description__line"},{X:"div",C:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{X:"div",C:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",V,J,y);this.headline=new zE(this.api,this.layoutId,this.interactionLoggingClientData, this.HE);g.t(this,this.headline);this.headline.rW(this.DN("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new LP(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,!0);g.t(this,this.moreInfoButton);this.moreInfoButton.rW(this.DN("ytp-ad-grid-card-text__button"))}; dB=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",V,J,y);this.K=[]}; gB=function(O,V,J,y,l,m,H){KI.call(this,O,m,H,V,J,y,l);this.playerProgressOffsetMs=0;this.j=!1}; hZ5=function(O){var V=g.Up("html5-video-player");V&&g.yf(V,"ytp-ad-display-override",O)}; o0r=function(O,V,J,y,l){gB.call(this,O,V,J,y,l,{X:"div",C:"ytp-display-underlay-text-grid-cards",J:[{X:"div",C:"ytp-display-underlay-text-grid-cards__content_container",J:[{X:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header",J:[{X:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{X:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{X:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {X:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new dB(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,this.adGridCardCollection);this.adGridCardCollection.rW(this.DN("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new LP(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,this.adButton);this.adButton.rW(this.DN("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.U=this.DN("ytp-display-underlay-text-grid-cards__content_container");this.D=this.DN("ytp-display-underlay-text-grid-cards__content_container__header")}; qa=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-ad-details-line"},"ad-details-line",V,J,y);this.K=[];this.hide()}; Qe=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-image-background",J:[{X:"img",C:"ytp-image-background-image"}]},"image-background",V,J,y);this.hide()}; v0U=function(O,V,J,y,l){KI.call(this,O,{X:"svg",C:"ytp-timed-pie-countdown",N:{viewBox:"0 0 20 20"},J:[{X:"circle",C:"ytp-timed-pie-countdown__background",N:{r:"10",cx:"10",cy:"10"}},{X:"circle",C:"ytp-timed-pie-countdown__inner",N:{r:"5",cx:"10",cy:"10"}},{X:"circle",C:"ytp-timed-pie-countdown__outer",N:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",V,J,y,l);this.U=this.DN("ytp-timed-pie-countdown__inner");this.j=Math.ceil(2*Math.PI*5);this.hide()}; Gg=function(O,V,J,y){Vb.call(this,O,{X:"div",C:"ytp-video-interstitial-buttoned-centered-layout",N:{tabindex:"0"},J:[{X:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content",J:[{X:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{X:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",J:[{X:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{X:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {X:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{X:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{X:"div",C:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",V,J,y);this.j=null;this.D=this.DN("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.U=new bj;g.t(this,this.U);this.hide()}; w45=function(O){var V=g.Up("html5-video-player");V&&g.yf(V,"ytp-ad-display-override",O)}; MOl=function(O){if(!O.adAvatar||!g.e(O.adAvatar,KP))return g.sk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!O.headline)return g.sk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!O.adBadge||!g.e(O.adBadge,tW))return g.sk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!O.adButton||!g.e(O.adButton,uS))return g.sk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!O.adInfoRenderer|| !g.e(O.adInfoRenderer,Gw))return g.sk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;O=O.durationMilliseconds||0;return typeof O!=="number"||O<=0?(g.sk(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+O)),!1):!0}; AW=function(O,V){V=V===void 0?2:V;g.BF.call(this);this.api=O;this.K=null;this.handler=new bj(this);g.t(this,this.handler);this.j=AG1;this.handler.Z(this.api,"presentingplayerstatechange",this.zp);this.K=this.handler.Z(this.api,"progresssync",this.VK);this.Bv=V;this.Bv===1&&this.VK()}; rB=function(O,V,J){nI.call(this,O);this.api=O;this.HE=V;this.components={};O=new g.r({X:"div",Fj:["video-ads","ytp-ad-module"]});g.t(this,O);AT&&g.D0(O.element,"ytp-ads-tiny-mode");this.D=new V2(O.element);g.t(this,this.D);g.kD(this.api,O.element,4);HY(J)&&(J=new g.r({X:"div",Fj:["ytp-ad-underlay"]}),g.t(this,J),this.j=new V2(J.element),g.t(this,this.j),g.kD(this.api,J.element,0));g.t(this,TEY())}; LuU=function(O,V){O=g.Ym(O.components,V.id,null);O==null&&g.en(Error("Component not found for element id: "+V.id));return O||null}; n0X=function(O){g.zm.call(this,O);var V=this;this.j=null;this.created=!1;this.U=O.Y().L("h5_use_refactored_get_ad_break")?new bQl(this.player):new Kb(this.player);this.D=function(){if(V.j!=null)return V.j;var y=new MbV({w6:eQ(V.K).w6,lL:eQ(V.K).lL,G:V.player,ME:eQ(V.K).ME,gW:V.K.K.gW,Bc:eQ(V.K).Bc,NI:V.K.K.NI});V.j=y.Jm;return V.j}; this.K=new Gyn(this.player,this,this.U,this.D);g.t(this,this.K);var J=O.Y();!Cm(J)||g.Vw(J)||HJ(J)||(g.t(this,new rB(O,eQ(this.K).HE,eQ(this.K).ME)),g.t(this,new Knn(O)))}; X4h=function(O){O.created!==O.loaded&&DJ("Created and loaded are out of sync")}; g01=function(O){g.zm.prototype.load.call(O);var V=eQ(O.K).ME;try{O.player.getRootNode().classList.add("ad-created")}catch(F){DJ(F instanceof Error?F:String(F))}var J=O.player.getVideoData({playerType:1}),y=J&&J.videoId||"",l=J&&J.getPlayerResponse()||{},m=(l&&l.adPlacements||[]).map(function(F){return F.adPlacementRenderer}),H=((l==null?void 0:l.adSlots)||[]).map(function(F){return g.e(F,dh)}); l=l.playerConfig&&l.playerConfig.daiConfig&&l.playerConfig.daiConfig.enableDai||!1;J&&J.Gy();V=E01(m,H,V,eQ(O.K).b5);m=J&&J.clientPlaybackNonce||"";J=J&&J.UP||!1;H=1E3*O.player.getDuration(1);dCp(O);O.K.K.LQ.SG(m,H,J,V.aY,V.iq,V.aY,l,y)}; dCp=function(O){var V,J;if(J=(V=O.player.getVideoData({playerType:1}))==null||!V.UP)V=O.player.Y(),J=Cm(V)&&!g.jS(V)&&V.playerStyle==="desktop-polymer";J&&(O=O.player.getInternalApi(),O.addEventListener("updateKevlarOrC3Companion",VAd),O.addEventListener("updateEngagementPanelAction",JDV),O.addEventListener("changeEngagementPanelVisibility",yDn),window.addEventListener("yt-navigate-start",mVd))}; iS=function(O,V){V===O.Tf&&(O.Tf=void 0)}; qro=function(O){var V=eQ(O.K).fv,J=V.D().U8("SLOT_TYPE_PLAYER_BYTES",1);V=kp(V.CD.get(),1).clientPlaybackNonce;var y=!1;J=g.n(J);for(var l=J.next();!l.done;l=J.next()){l=l.value;var m=l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.slotEntryTrigger instanceof XD?l.slotEntryTrigger.oL:void 0;m&&m===V&&(y&&DJ("More than 1 preroll playerBytes slot detected",l),y=!0)}y||eQ(O.K).K0.IU()}; QKX=function(O){var V="";O=g.n(eQ(O.K).Bc.UC.keys());for(var J=O.next();!J.done;J=O.next()){J=J.value;if(J.slotType==="SLOT_TYPE_PLAYER_BYTES"&&J.PE==="core")return!0;V+=J.slotType+" "}Math.random()<.01&&DJ("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:V});return!1}; GZX=function(O){O=g.n(eQ(O.K).Bc.UC.values());for(var V=O.next();!V.done;V=O.next())if(V.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; iUn=function(O,V,J,y,l,m,H){J=J===void 0?[]:J;y=y===void 0?"":y;l=l===void 0?"":l;var F=eQ(O.K).ME,N=O.player.getVideoData({playerType:1});N&&N.getPlayerResponse();N&&N.Gy();J=E01(V,J,F,eQ(O.K).b5);SBY(eQ(O.K).XR,y,J.aY,J.iq,V,l,m,H)}; E01=function(O,V,J,y){V={aY:[],iq:V};O=g.n(O);for(var l=O.next();!l.done;l=O.next())if((l=l.value)&&l.renderer!=null){var m=l.renderer;if(!J.G.Y().L("html5_enable_vod_lasr_with_notify_pacf")){var H=void 0,F=void 0,N=void 0,x=void 0,W=y;g.e((x=m.sandwichedLinearAdRenderer)==null?void 0:x.adVideoStart,Tj)?(H=g.e((N=m.sandwichedLinearAdRenderer)==null?void 0:N.adVideoStart,Tj),H=Nz5(H,W),g.fY(m.sandwichedLinearAdRenderer.adVideoStart,Tj,H)):g.e((F=m.linearAdSequenceRenderer)==null?void 0:F.adStart,Tj)&& (N=g.e((H=m.linearAdSequenceRenderer)==null?void 0:H.adStart,Tj),H=Nz5(N,W),g.fY(m.linearAdSequenceRenderer.adStart,Tj,H))}V.aY.push(l)}return V}; g.RJ=function(O){if(typeof DOMParser!="undefined")return ED(new DOMParser,zhr(O),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.BQ=function(O){g.K.call(this);this.callback=O;this.K=new Ug(0,0,.4,0,.2,1,1,1);this.delay=new g.KZ(this.next,window,this);g.t(this,this.delay)}; g.Ku7=function(O){var V=O.Y();return V.wX&&!V.U&&g.R2(V)?O.isEmbedsShortsMode()?(O=O.Tt(),Math.min(O.width,O.height)>=315):!O.Cu():!1}; g.PQ=function(O){g.r.call(this,{X:"div",C:"ytp-more-videos-view",N:{tabIndex:"-1"}});var V=this;this.api=O;this.j=!0;this.U=new g.jX(this);this.K=[];this.suggestionData=[];this.columns=this.containerWidth=this.S=this.D=this.scrollPosition=0;this.title=new g.r({X:"h2",C:"ytp-related-title",Rl:"{{title}}"});this.previous=new g.r({X:"button",Fj:["ytp-button","ytp-previous"],N:{"aria-label":"Show previous suggested videos"},J:[g.$N()]});this.V=new g.BQ(function(J){V.suggestions.element.scrollLeft=-J}); this.next=new g.r({X:"button",Fj:["ytp-button","ytp-next"],N:{"aria-label":"Show more suggested videos"},J:[g.HB()]});g.t(this,this.U);this.W=O.Y().D;g.t(this,this.title);this.title.rW(this.element);this.suggestions=new g.r({X:"div",C:"ytp-suggestions"});g.t(this,this.suggestions);this.suggestions.rW(this.element);g.t(this,this.previous);this.previous.rW(this.element);this.previous.listen("click",this.sG,this);g.t(this,this.V);tOh(this);g.t(this,this.next);this.next.rW(this.element);this.next.listen("click", this.aA,this);this.U.Z(this.api,"appresize",this.zy);this.U.Z(this.api,"fullscreentoggled",this.xR);this.U.Z(this.api,"videodatachange",this.onVideoDataChange);this.zy(this.api.tv().getPlayerSize());this.onVideoDataChange()}; tOh=function(O){for(var V={Ki:0};V.Ki<16;V={Ki:V.Ki},++V.Ki){var J=new g.r({X:"a",C:"ytp-suggestion-link",N:{href:"{{link}}",target:O.api.Y().qX,"aria-label":"{{aria_label}}"},J:[{X:"div",C:"ytp-suggestion-image"},{X:"div",C:"ytp-suggestion-overlay",N:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},J:[{X:"div",C:"ytp-suggestion-title",Rl:"{{title}}"},{X:"div",C:"ytp-suggestion-author",Rl:"{{author_and_views}}"},{X:"div",N:{"data-is-live":"{{is_live}}"},C:"ytp-suggestion-duration", Rl:"{{duration}}"}]}]});g.t(O,J);var y=J.DN("ytp-suggestion-link");g.Pp(y,"transitionDelay",V.Ki/20+"s");O.U.Z(y,"click",function(l){return function(m){var H=l.Ki;if(O.j){var F=O.suggestionData[H],N=F.sessionData;O.W&&O.api.L("web_player_log_click_before_generating_ve_conversion_params")?(O.api.logClick(O.K[H].element),H=F.xn(),F={},g.R9(O.api,F),H=g.pp(H,F),g.bg(H,O.api,m)):g.a3(m,O.api,O.W,N||void 0)&&O.api.Gd(F.videoId,N,F.playlistId)}else m.preventDefault(),document.activeElement.blur()}}(V)); J.rW(O.suggestions.element);O.K.push(J);O.api.createServerVe(J.element,J)}}; uJ5=function(O){if(O.api.Y().L("web_player_log_click_before_generating_ve_conversion_params"))for(var V=Math.floor(-O.scrollPosition/(O.D+8)),J=Math.min(V+O.columns,O.suggestionData.length)-1;V<=J;V++)O.api.logVisibility(O.K[V].element,!0)}; g.kq=function(O){var V=O.api.UY()?32:16;V=O.S/2+V;O.next.element.style.bottom=V+"px";O.previous.element.style.bottom=V+"px";V=O.scrollPosition;var J=O.containerWidth-O.suggestionData.length*(O.D+8);g.yf(O.element,"ytp-scroll-min",V>=0);g.yf(O.element,"ytp-scroll-max",V<=J)}; rfX=function(O){for(var V=O.suggestionData.length,J=0;J0;){var O=this.K.pop();if(O in this.U)return O}return null}; Vs.prototype.getNext=Vs.prototype.j;Kn("globalThis",function(O){return O||g.tr}); Kn("Reflect",function(O){return O?O:{}}); Kn("Reflect.construct",function(){return ilr}); Kn("Reflect.setPrototypeOf",function(O){return O?O:r5?function(V,J){try{return r5(V,J),!0}catch(y){return!1}}:null}); Kn("Symbol",function(O){function V(m){if(this instanceof V)throw new TypeError("Symbol is not a constructor");return new J(y+(m||"")+"_"+l++,m)} function J(m,H){this.K=m;Ar(this,"description",{configurable:!0,writable:!0,value:H})} if(O)return O;J.prototype.toString=function(){return this.K}; var y="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",l=0;return V}); Kn("Symbol.iterator",function(O){if(O)return O;O=Symbol("Symbol.iterator");Ar(Array.prototype,O,{configurable:!0,writable:!0,value:function(){return QpV(MV1(this))}}); return O}); Kn("Promise",function(O){function V(H){this.K=0;this.U=void 0;this.j=[];this.S=!1;var F=this.D();try{H(F.resolve,F.reject)}catch(N){F.reject(N)}} function J(){this.K=null} function y(H){return H instanceof V?H:new V(function(F){F(H)})} if(O)return O;J.prototype.j=function(H){if(this.K==null){this.K=[];var F=this;this.U(function(){F.W()})}this.K.push(H)}; var l=g.tr.setTimeout;J.prototype.U=function(H){l(H,0)}; J.prototype.W=function(){for(;this.K&&this.K.length;){var H=this.K;this.K=[];for(var F=0;F0&&J>0;)if(y[--J]!=V[--l])return!1;return l<=0}}); Kn("Array.prototype.find",function(O){return O?O:function(V,J){return GrU(this,V,J).Sh}}); Kn("Array.prototype.entries",function(O){return O?O:function(){return NW(this,function(V,J){return[V,J]})}}); Kn("Array.prototype.keys",function(O){return O?O:function(){return NW(this,function(V){return V})}}); Kn("String.prototype.startsWith",function(O){return O?O:function(V,J){var y=Fz(this,V,"startsWith");V+="";var l=y.length,m=V.length;J=Math.max(0,Math.min(J|0,y.length));for(var H=0;H=m}}); Kn("Number.isFinite",function(O){return O?O:function(V){return typeof V!=="number"?!1:!isNaN(V)&&V!==Infinity&&V!==-Infinity}}); Kn("String.prototype.repeat",function(O){return O?O:function(V){var J=Fz(this,null,"repeat");if(V<0||V>1342177279)throw new RangeError("Invalid count value");V|=0;for(var y="";V;)if(V&1&&(y+=J),V>>>=1)J+=J;return y}}); Kn("Object.entries",function(O){return O?O:function(V){var J=[],y;for(y in V)kY(V,y)&&J.push([y,V[y]]);return J}}); Kn("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); Kn("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); Kn("Array.from",function(O){return O?O:function(V,J,y){J=J!=null?J:function(F){return F}; var l=[],m=typeof Symbol!="undefined"&&Symbol.iterator&&V[Symbol.iterator];if(typeof m=="function"){V=m.call(V);for(var H=0;!(m=V.next()).done;)l.push(J.call(y,m.value,H++))}else for(m=V.length,H=0;H>>0;if(V===0)return 32;var J=0;(V&4294901760)===0&&(V<<=16,J+=16);(V&4278190080)===0&&(V<<=8,J+=8);(V&4026531840)===0&&(V<<=4,J+=4);(V&3221225472)===0&&(V<<=2,J+=2);(V&2147483648)===0&&J++;return J}}); Kn("Number.isNaN",function(O){return O?O:function(V){return typeof V==="number"&&isNaN(V)}}); Kn("Array.prototype.values",function(O){return O?O:function(){return NW(this,function(V,J){return J})}}); Kn("Array.prototype.fill",function(O){return O?O:function(V,J,y){var l=this.length||0;J<0&&(J=Math.max(0,l+J));if(y==null||y>l)y=l;y=Number(y);y<0&&(y=Math.max(0,l+y));for(J=Number(J||0);J0&&J?J.repeat(Math.ceil(V/J.length)).substring(0,V):"")+y}}); Kn("Array.prototype.findIndex",function(O){return O?O:function(V,J){return GrU(this,V,J).ea}}); Kn("Promise.prototype.finally",function(O){return O?O:function(V){return this.then(function(J){return Promise.resolve(V()).then(function(){return J})},function(J){return Promise.resolve(V()).then(function(){throw J; })})}}); Kn("Math.imul",function(O){return O?O:function(V,J){V=Number(V);J=Number(J);var y=V&65535,l=J&65535;return y*l+((V>>>16&65535)*l+y*(J>>>16&65535)<<16>>>0)|0}}); Kn("Math.sign",function(O){return O?O:function(V){V=Number(V);return V===0||isNaN(V)?V:V>0?1:-1}}); Kn("WeakSet",function(O){function V(J){this.K=new WeakMap;if(J){J=g.n(J);for(var y;!(y=J.next()).done;)this.add(y.value)}} if(function(){if(!O||!Object.seal)return!1;try{var J=Object.seal({}),y=Object.seal({}),l=new O([J]);if(!l.has(J)||l.has(y))return!1;l.delete(J);l.add(y);return!l.has(J)&&l.has(y)}catch(m){return!1}}())return O; V.prototype.add=function(J){this.K.set(J,!0);return this}; V.prototype.has=function(J){return this.K.has(J)}; V.prototype.delete=function(J){return this.K.delete(J)}; return V}); Kn("Array.prototype.copyWithin",function(O){function V(J){J=Number(J);return J===Infinity||J===-Infinity?J:J|0} return O?O:function(J,y,l){var m=this.length;J=V(J);y=V(y);l=l===void 0?m:V(l);J=J<0?Math.max(m+J,0):Math.min(J,m);y=y<0?Math.max(m+y,0):Math.min(y,m);l=l<0?Math.max(m+l,0):Math.min(l,m);if(Jy;)--l in this?this[--J]=this[l]:delete this[--J];return this}}); Gr("copyWithin",function(O){return O?O:Array.prototype.copyWithin}); Kn("Array.prototype.at",function(O){return O?O:Wn}); Gr("at",function(O){return O?O:Wn}); Kn("String.prototype.at",function(O){return O?O:Wn}); Kn("Promise.withResolvers",function(O){return O?O:function(){var V,J;return{promise:new Promise(function(y,l){V=y;J=l}), resolve:V,reject:J}}}); Kn("Array.prototype.findLastIndex",function(O){return O?O:function(V,J){return KdY(this,V,J).ea}}); Gr("findLastIndex",function(O){return O?O:function(V,J){return KdY(this,V,J).ea}}); Kn("Number.parseInt",function(O){return O||parseInt});var K3,bm,tVH;K3=K3||{};g.Z1=this||self;bm="closure_uid_"+(Math.random()*1E9>>>0);tVH=0;g.nd(Xz,Error);Xz.prototype.name="CustomError";var $kr;var krh,pD,P$;krh=Array.prototype.indexOf?function(O,V){return Array.prototype.indexOf.call(O,V,void 0)}:function(O,V){if(typeof O==="string")return typeof V!=="string"||V.length!=1?-1:O.indexOf(V,0); for(var J=0;J=0;J--)if(J in O&&O[J]===V)return J;return-1}; g.Cu=Array.prototype.forEach?function(O,V,J){Array.prototype.forEach.call(O,V,J)}:function(O,V,J){for(var y=O.length,l=typeof O==="string"?O.split(""):O,m=0;m=.3:this.Vl>=.5};var QU={ZKE:0,wsv:1},DY5={NONE:0,A$X:1,SkD:2};var NVU="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");od.prototype.getValue=function(){return this.j}; g.I(vt,od);vt.prototype.U=function(O){this.j===null&&g.Tv(this.D,O)&&(this.j=O)}; g.I(Lu,od);Lu.prototype.U=function(O){this.j===null&&typeof O==="number"&&(this.j=O)}; g.I(nu,od);nu.prototype.U=function(O){this.j===null&&typeof O==="string"&&(this.j=O)};XC.prototype.disable=function(){this.j=!1}; XC.prototype.enable=function(){this.j=!0}; XC.prototype.isEnabled=function(){return this.j}; XC.prototype.reset=function(){this.K={};this.j=!0;this.U={}};var SH=document,Ep=window;var OSo=TD(1,!0),km=TD(610401301,!1);TD(899588437,!1);TD(772657768,!0);var V65=TD(513659523,!1),Jlp=TD(568333945,!0),jud=TD(1331761403,!1);TD(651175828,!1);TD(722764542,!1);TD(748402145,!1);TD(748402146,!1);var raV=TD(748402147,!0),SQ=TD(824648567,!0),hc=TD(824656860,OSo);TD(333098724,!1);TD(2147483644,!1);TD(2147483645,!1);TD(2147483646,OSo);TD(2147483647,!0);var Sw=!!g.cn("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var A0=String.prototype.trim?function(O){return O.trim()}:function(O){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(O)[1]},EEh=/&/g,dWH=//g,qz1=/"/g,QzU=/'/g,GDr=/\x00/g,Xnp=/[\x00&<>"']/;var DZ,ylr=g.Z1.navigator;DZ=ylr?ylr.userAgentData||null:null;var a1V=globalThis.trustedTypes,Ca;Ng.prototype.toString=function(){return this.K+""};UD.prototype.toString=function(){return this.K}; var f1d=new UD("about:invalid#zClosurez");var Tyo=cZ("tel"),cxH=cZ("sms"),pnX=[cZ("data"),cZ("http"),cZ("https"),cZ("mailto"),cZ("ftp"),new zk(function(O){return/^[^:]*([/?#]|$)/.test(O)})],hyr=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Yr.prototype.toString=function(){return this.K+""};ha.prototype.toString=function(){return this.K+""};Mg.prototype.toString=function(){return this.K};var na={};g.lo7=String.prototype.repeat?function(O,V){return O.repeat(V)}:function(O,V){return Array(V+1).join(O)};iw[" "]=function(){};var ka,wn,kV1,mKH,$KY,HSp,u8,AT,jUV;g.r$=lw();g.HM=cI7();g.d9=Vt("Edge");g.T0=g.d9||g.HM;ka=Vt("Gecko")&&!(u2(g.Pt(),"WebKit")&&!Vt("Edge"))&&!(Vt("Trident")||Vt("MSIE"))&&!Vt("Edge");g.z5=u2(g.Pt(),"WebKit")&&!Vt("Edge");wn=rO();kV1=idn();g.Pv=rIU();mKH=uw();$KY=Vt("iPad");HSp=Vt("iPod");u8=Aa();AT=u2(g.Pt(),"KaiOS"); a:{var CPo="",FIU=function(){var O=g.Pt();if(ka)return/rv:([^\);]+)(\)|;)/.exec(O);if(g.d9)return/Edge\/([\d\.]+)/.exec(O);if(g.HM)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(O);if(g.z5)return/WebKit\/(\S+)/.exec(O);if(g.r$)return/(?:Version)[ \/]?(\S+)/.exec(O)}(); FIU&&(CPo=FIU?FIU[1]:"");if(g.HM){var DE,NxX=g.Z1.document;DE=NxX?NxX.documentMode:void 0;if(DE!=null&&DE>parseFloat(CPo)){jUV=String(DE);break a}}jUV=CPo}var kDl=jUV,BVV={};var iM,RN;g.eU=mj();iM=uw()||Vt("iPod");RN=Vt("iPad");g.i8=TV1();g.l$=$r();g.CH=j1()&&!Aa();var mho=!g.HM&&!j1();g.T=g.S1.prototype;g.T.clone=function(){return new g.S1(this.x,this.y)}; g.T.equals=function(O){return O instanceof g.S1&&D6(this,O)}; g.T.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.T.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.T.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.T.scale=function(O,V){this.x*=O;this.y*=typeof V==="number"?V:O;return this};g.T=g.Op.prototype;g.T.clone=function(){return new g.Op(this.width,this.height)}; g.T.aspectRatio=function(){return this.width/this.height}; g.T.isEmpty=function(){return!J8(this)}; g.T.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.T.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.T.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.T.scale=function(O,V){this.width*=O;this.height*=typeof V==="number"?V:O;return this};lB.prototype.toString=function(){return this.K}; var yx={};new lB(yx,"");var Ou5=/^[a-z][a-z\d-]*$/i,VwH="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),y01="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),mk1=["action","formaction","href"];var Hur={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.T=Hp.prototype;g.T.dC=function(O){return FY(this.K,O)}; g.T.getElementsByTagName=function(O,V){return(V||this.K).getElementsByTagName(String(O))}; g.T.DN=function(O){return g.Up(O,this.K)}; g.T.setProperties=Z5;g.T.createElement=function(O){return sp(this.K,O)}; g.T.appendChild=g.a1;g.T.append=function(O,V){NTn(jg(O),O,arguments,1)}; g.T.canHaveChildren=function(O){if(O.nodeType!=1)return!1;switch(O.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.T.removeNode=g.fo;g.T.getChildren=function(O){return O.children!=void 0?O.children:Array.prototype.filter.call(O.childNodes,function(V){return V.nodeType==1})}; g.T.contains=g.h8;g.T.isFocusable=vp;Lo.prototype.now=function(){return 0}; Lo.prototype.j=function(){return 0}; Lo.prototype.U=function(){return 0}; Lo.prototype.K=function(){return 0};g.I(XY,Lo);XY.prototype.now=function(){return no()&&Ep.performance.now?Ep.performance.now():Lo.prototype.now.call(this)}; XY.prototype.j=function(){return no()&&Ep.performance.memory?Ep.performance.memory.totalJSHeapSize||0:Lo.prototype.j.call(this)}; XY.prototype.U=function(){return no()&&Ep.performance.memory?Ep.performance.memory.usedJSHeapSize||0:Lo.prototype.U.call(this)}; XY.prototype.K=function(){return no()&&Ep.performance.memory?Ep.performance.memory.jsHeapSizeLimit||0:Lo.prototype.K.call(this)};var JZ5=function(){if(!g.Z1.addEventListener||!Object.defineProperty)return!1;var O=!1,V=Object.defineProperty({},"passive",{get:function(){O=!0}}); try{var J=function(){}; g.Z1.addEventListener("test",J,V);g.Z1.removeEventListener("test",J,V)}catch(y){}return O}();var g51=Uk5("AnimationEnd"),Qc=Uk5("TransitionEnd");g.T=t8.prototype;g.T.getHeight=function(){return this.bottom-this.top}; g.T.clone=function(){return new t8(this.top,this.right,this.bottom,this.left)}; g.T.contains=function(O){return this&&O?O instanceof t8?O.left>=this.left&&O.right<=this.right&&O.top>=this.top&&O.bottom<=this.bottom:O.x>=this.left&&O.x<=this.right&&O.y>=this.top&&O.y<=this.bottom:!1}; g.T.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.T.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.T.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.T.scale=function(O,V){V=typeof V==="number"?V:O;this.left*=O;this.right*=O;this.top*=V;this.bottom*=V;return this};g.T=g.iB.prototype;g.T.clone=function(){return new g.iB(this.left,this.top,this.width,this.height)}; g.T.contains=function(O){return O instanceof g.S1?O.x>=this.left&&O.x<=this.left+this.width&&O.y>=this.top&&O.y<=this.top+this.height:this.left<=O.left&&this.left+this.width>=O.left+O.width&&this.top<=O.top&&this.top+this.height>=O.top+O.height}; g.T.getSize=function(){return new g.Op(this.width,this.height)}; g.T.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.T.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.T.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.T.scale=function(O,V){V=typeof V==="number"?V:O;this.left*=O;this.width*=O;this.top*=V;this.height*=V;return this};var zYr={};var Y2d=Qx(function(){var O=!1;try{var V=Object.defineProperty({},"passive",{get:function(){O=!0}}); g.Z1.addEventListener("test",null,V)}catch(J){}return O});aZX.prototype.isVisible=function(){return xK(SH)===1};var omH=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");cA.prototype.Cv=function(O,V,J){O=O+"//"+V+J;var y=XtV(this)-J.length;if(y<0)return"";this.K.sort(function(x,W){return x-W}); J=null;V="";for(var l=0;l=N.length){y-=N.length;O+=N;V=this.U;break}J=J==null?m:J}}y="";J!=null&&(y=""+V+"trn="+J);return O+y};var can=fD(function(O){return typeof O==="number"}),l4=fD(function(O){return typeof O==="string"}),sGr=fD(function(O){return typeof O==="boolean"}),xH=fD(function(O){return O!=null&&typeof O==="object"&&typeof O.then==="function"}),MSH=fD(function(O){return typeof O==="function"}),xKU=fD(function(O){return!!O&&(typeof O==="object"||typeof O==="function")});var Mw1={r4i:"allow-forms",FPE:"allow-modals",iwn:"allow-orientation-lock",onW:"allow-pointer-lock",kPW:"allow-popups",GPK:"allow-popups-to-escape-sandbox",VGj:"allow-presentation",gnE:"allow-same-origin",wXK:"allow-scripts",LPE:"allow-top-navigation",x8z:"allow-top-navigation-by-user-activation"},Qdd=Qx(function(){return L$Y()});oa.prototype.setInterval=function(O,V){return Ep.setInterval(O,V)}; oa.prototype.clearInterval=function(O){Ep.clearInterval(O)}; oa.prototype.setTimeout=function(O,V){return Ep.setTimeout(O,V)}; oa.prototype.clearTimeout=function(O){Ep.clearTimeout(O)};var p5=void 0,by,xYr=typeof TextDecoder!=="undefined",BTn,RYo=typeof String.prototype.isWellFormed==="function",iur=typeof TextEncoder!=="undefined";var Oan={},dN=null,V1V=ka||g.z5||typeof g.Z1.btoa=="function";var NOY=typeof Uint8Array!=="undefined",$gp=!g.HM&&typeof btoa==="function",HaX=/[-_.]/g,l6p={"-":"+",_:"/",".":"="},q_={};gN.prototype.isEmpty=function(){return this.K==null}; gN.prototype.sizeBytes=function(){var O=GT(this);return O?O.length:0}; var Fj7;var xgh=void 0;var BA=typeof Symbol==="function"&&typeof Symbol()==="symbol",WIH=Ra("jas",void 0,!0),wa=Ra(void 0,"1oa"),R$=Ra(void 0,Symbol()),UKX=Ra(void 0,"0ub"),dgo=Ra(void 0,"0ubs"),qpp=Ra(void 0,"0ubsb"),RQV=Ra(void 0,"0actk"),Ac=Ra("m_m","Y3l",!0),QGh=Ra(void 0,"vps"),ZSr=Ra();Math.max.apply(Math,g.q(Object.values({ZPz:1,P3N:2,ny5:4,CQl:8,tvv:16,gPw:32,ETz:64,zJL:128,cRL:256,oQi:512,QKw:1024,t8j:2048,wvj:4096,MKz:8192})));var UgY={NWj:{value:0,configurable:!0,writable:!0,enumerable:!1}},Wjh=Object.defineProperties,PA=BA?WIH:"NWj",ZI,zzr=[];SR(zzr,7);ZI=Object.freeze(zzr);var rR={},Dy={},Vgl=Object.freeze({}),h4={},Jc={};var mZ=typeof g.Z1.BigInt==="function"&&typeof g.Z1.BigInt(0)==="bigint";var QD=fD(function(O){return mZ?O>=cl7&&O<=sUd:O[0]==="-"?TOo(O,Txn):TOo(O,ezo)}),Txn=Number.MIN_SAFE_INTEGER.toString(),cl7=mZ?BigInt(Number.MIN_SAFE_INTEGER):void 0,ezo=Number.MAX_SAFE_INTEGER.toString(),sUd=mZ?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Hod=typeof Uint8Array.prototype.slice==="function",HR=0,j$=0,Q1o;var vR=typeof BigInt==="function"?BigInt.asIntN:void 0,wZp=typeof BigInt==="function"?BigInt.asUintN:void 0,qh=Number.isSafeInteger,Y2=Number.isFinite,gR=Math.trunc,YDh=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Gkl={};var Ior={vIL:!0};var S$;var Kjl,t1V;var l5V=$2(0),us={};Sf.prototype.init=function(O,V,J,y){var l=y===void 0?{}:y;y=l.Jb===void 0?!1:l.Jb;l=l.kc===void 0?!1:l.kc;this.Jb=y;this.kc=l;O&&(O=k_(O,this.kc),this.j=O.buffer,this.W=O.K,this.D=V||0,this.U=J!==void 0?this.D+J:this.j.length,this.K=this.D)}; Sf.prototype.free=function(){this.clear();Tt.length<100&&Tt.push(this)}; Sf.prototype.clear=function(){this.j=null;this.W=!1;this.K=this.U=this.D=0;this.Jb=!1}; Sf.prototype.reset=function(){this.K=this.D}; var Tt=[];ei.prototype.free=function(){this.K.clear();this.j=this.U=-1;Ib.length<100&&Ib.push(this)}; ei.prototype.reset=function(){this.K.reset();this.D=this.K.K;this.j=this.U=-1}; var Ib=[];var zdV,s15;wg.prototype.length=function(){return this.K.length}; wg.prototype.end=function(){var O=this.K;this.K=[];return O};var QJ=gg(),Yvn=gg(),aoV=gg(),bSd=gg(),pol=gg(),hz7=gg(),odh=gg(),vdr=gg(),wo5=gg(),M6V=gg(),LIp=gg();q1.prototype.toJSON=function(){return Va(this)}; q1.prototype.dH=function(O){return JSON.stringify(Va(this,O))}; q1.prototype.clone=function(){var O=this.qH,V=O[PA]|0;return ms(this,O,V)?$_(this,O,!0):new this.constructor(ls(O,V,!1))}; q1.prototype[Ac]=rR;q1.prototype.toString=function(){return this.qH.toString()};var oan=K5(function(O,V,J,y,l){if(O.j!==2)return!1;ab(O,MH(V,y,J),l);return!0},hdU),vaY=K5(function(O,V,J,y,l){if(O.j!==2)return!1; ab(O,MH(V,y,J),l);return!0},hdU),Si=Symbol(),iy=Symbol(),P8=Symbol(),Ean=Symbol(),LQY=Symbol(),t4,uy;var ndH=$2(0),Xor=VT(function(O,V,J){if(O.j!==1)return!1;yT(V,J,c8(O.K));return!0},lp,wo5),Edr=VT(function(O,V,J){if(O.j!==1)return!1; O=c8(O.K);yT(V,J,O===0?void 0:O);return!0},lp,wo5),dKr=VT(function(O,V,J,y){if(O.j!==1)return!1; ot(V,J,y,c8(O.K));return!0},lp,wo5),gdn=VT(function(O,V,J){if(SQ)return O.j!==0?O=!1:(yT(V,J,Oi(O.K,cR)),O=!0),O; if(O.j!==0)return!1;yT(V,J,Oi(O.K,ZF));return!0},mh,odh),qvp=VT(function(O,V,J){if(SQ)return O.j!==0?V=!1:(O=Oi(O.K,cR),yT(V,J,O===ndH?void 0:O),V=!0),V; if(O.j!==0)return!1;O=Oi(O.K,ZF);yT(V,J,O===0?void 0:O);return!0},mh,odh),QUh=VT(function(O,V,J,y){if(SQ)return O.j!==0?O=!1:(ot(V,J,y,Oi(O.K,cR)),O=!0),O; if(O.j!==0)return!1;ot(V,J,y,Oi(O.K,ZF));return!0},mh,odh),GqH=VT(function(O,V,J){if(O.j!==0)return!1; yT(V,J,W8(O.K));return!0},$I,bSd),KIU=VT(function(O,V,J){if(O.j!==0)return!1; O=W8(O.K);yT(V,J,O===0?void 0:O);return!0},$I,bSd),t6p=VT(function(O,V,J,y){if(O.j!==0)return!1; ot(V,J,y,W8(O.K));return!0},$I,bSd),ucp=VT(function(O,V,J){if(SQ)return O.j!==1?O=!1:(yT(V,J,zt(O.K)),O=!0),O; if(O.j!==1)return!1;yT(V,J,Ze(O.K));return!0},function(O,V,J){bo1(O,J,M1r(V))},vdr),Alh=JZ(function(O,V,J){if(SQ)return O.j!==1&&O.j!==2?O=!1:(V=at(V,V[PA]|0,J),O.j==2?UY1(O,zt,V):V.push(zt(O.K)),O=!0),O; if(O.j!==1&&O.j!==2)return!1;V=at(V,V[PA]|0,J);O.j==2?UY1(O,Ze,V):V.push(Ze(O.K));return!0},function(O,V,J){V=Od(M1r,V,!1); if(V!=null)for(var y=0;y>>0);return!0},function(O,V,J){V=fK(V); V!=null&&V!=null&&(Ei(O,J,0),L5(O.K,V))},pol),mx=VT(function(O,V,J){if(O.j!==0)return!1; yT(V,J,W8(O.K));return!0},function(O,V,J){V=pK(V); V!=null&&(V=parseInt(V,10),Ei(O,J,0),edd(O.K,V))},LIp);var uYX=new Map;g.I(A8V,Zo1);ioH.prototype.register=function(){iw(this)};g.I(Cp,q1);Cp.prototype.U=BcU([0,Edr,qvp,-2,KIU]);Sp7.prototype.s5=function(O){var V=this.K[O.key];if(O.valueType==="proto"){try{var J=JSON.parse(V);if(Array.isArray(J))return J}catch(y){}return O.defaultValue}return typeof V===typeof O.defaultValue?V:O.defaultValue};var ODX={Kuz:1,ly:2,rIN:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};JUH.prototype.Gr=function(O){if(typeof O==="string"&&O.length!=0){var V=this.AC;if(V.j){O=O.split("&");for(var J=O.length-1;J>=0;J--){var y=O[J].split("="),l=decodeURIComponent(y[0]);y.length>1?(y=decodeURIComponent(y[1]),y=/^[0-9]+$/g.exec(y)?parseInt(y,10):y):y=1;(l=V.K[l])&&l.U(y)}}}};var $M=null;var ZL=g.Z1.performance,DK7=!!(ZL&&ZL.mark&&ZL.measure&&ZL.clearMarks),W$=Qx(function(){var O;if(O=DK7){var V=V===void 0?window:V;if($M===null){$M="";try{O="";try{O=V.top.location.hash}catch(y){O=V.location.hash}if(O){var J=O.match(/\bdeid=([\d,]+)/);$M=J?J[1]:""}}catch(y){}}V=$M;O=!!V.indexOf&&V.indexOf("1337")>=0}return O}); Ud.prototype.disable=function(){this.K=!1;this.events!==this.j.google_js_reporting_queue&&(W$()&&g.Cu(this.events,jaU),this.events.length=0)}; Ud.prototype.start=function(O,V){if(!this.K)return null;var J=$_H()||m_r();O=new HD1(O,V,J);V="goog_"+O.label+"_"+O.uniqueId+"_start";ZL&&W$()&&ZL.mark(V);return O}; Ud.prototype.end=function(O){if(this.K&&typeof O.value==="number"){var V=$_H()||m_r();O.duration=V-O.value;V="goog_"+O.label+"_"+O.uniqueId+"_end";ZL&&W$()&&ZL.mark(V);!this.K||this.events.length>2048||this.events.push(O)}};var CAr=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),oL=/#|$/,ZDH=/[?&]($|#)/;cUr.prototype.Hm=function(O,V,J,y,l){l=l||this.JJ;try{var m=new cA;m.K.push(1);m.j[1]=sA("context",O);V.error&&V.meta&&V.id||(V=new XT(Ed(V)));if(V.msg){var H=V.msg.substring(0,512);m.K.push(2);m.j[2]=sA("msg",H)}var F=V.meta||{};if(this.eb)try{this.eb(F)}catch(z){}if(y)try{y(F)}catch(z){}y=[F];m.K.push(3);m.j[3]=y;var N=wtr();if(N.j){var x=N.j.url||"";m.K.push(4);m.j[4]=sA("top",x)}var W={url:N.K.url||""};if(N.K.url){var U=g.c$(N.K.url);var Z=zu(U[1],null,U[3],U[4])}else Z="";x=[W,{url:Z}];m.K.push(5); m.j[5]=x;yUr(this.K,l,m,J)}catch(z){try{yUr(this.K,l,{context:"ecmserr",rctx:O,msg:Ed(z),url:N&&N.K.url},J)}catch(c){}}return this.PU}; g.I(XT,lyY);var Lp,np,MB=new Ud;Lp=new function(){var O="https:";Ep&&Ep.location&&Ep.location.protocol==="http:"&&(O="http:");this.j=O;this.K=.01}; np=new cUr;Ep&&Ep.document&&(Ep.document.readyState=="complete"?TNp():MB.K&&N_(Ep,"load",function(){TNp()}));var YAU=Date.now(),tZ=-1,Gu=-1,n2o,up=-1,Kp=!1;AZ.prototype.equals=function(O,V){return!!O&&(!(V===void 0?0:V)||this.volume==O.volume)&&this.U==O.U&&A8(this.K,O.K)&&!0};rb.prototype.dC=function(){return this.S}; rb.prototype.equals=function(O,V){return this.D.equals(O.D,V===void 0?!1:V)&&this.S==O.S&&A8(this.U,O.U)&&A8(this.V,O.V)&&this.K==O.K&&this.W==O.W&&this.j==O.j&&this.T==O.T};var Ond={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Pl={z8:"start",Wb:"firstquartile",cz:"midpoint",Bz:"thirdquartile",COMPLETE:"complete",ERROR:"error",xA:"metric",PAUSE:"pause",NA:"resume",JX:"skip",jg:"viewable_impression",Q2:"mute",pM:"unmute",Xx:"fullscreen",fN:"exitfullscreen",B3:"bufferstart",sK:"bufferfinish",uZ:"fully_viewable_audible_half_duration_impression",LL:"measurable_impression",b1:"abandon",UG:"engagedview",rY:"impression",qY:"creativeview",LOADED:"loaded", Uuj:"progress",CLOSE:"close",QWK:"collapse",Yol:"overlay_resize",M2n:"overlay_unmeasurable_impression",N65:"overlay_unviewable_impression",JIL:"overlay_viewable_immediate_impression",T6N:"overlay_viewable_end_of_session_impression",KN:"custom_metric_viewable",Mw:"audio_audible",TU:"audio_measurable",Nw:"audio_impression"},AtH="start firstquartile midpoint thirdquartile resume loaded".split(" "),rtV=["start","firstquartile","midpoint","thirdquartile"],E2V=["abandon"],ca={UNKNOWN:-1,z8:0,Wb:1,cz:2, Bz:3,COMPLETE:4,xA:5,PAUSE:6,NA:7,JX:8,jg:9,Q2:10,pM:11,Xx:12,fN:13,uZ:14,LL:15,b1:16,UG:17,rY:18,qY:19,LOADED:20,KN:21,B3:22,sK:23,Nw:27,TU:28,Mw:29};var bDp={U8E:"addEventListener",E1z:"getMaxSize",n1E:"getScreenSize",PLW:"getState",bBw:"getVersion",EVL:"removeEventListener",HPL:"isViewable"};MRn.prototype.update=function(O){O&&O.document&&(this.S=ip(!1,O,this.isMobileDevice),this.K=ip(!0,O,this.isMobileDevice),nKl(this,O),LMo(this,O))};OL.prototype.cancel=function(){vA().clearTimeout(this.K);this.K=null}; OL.prototype.schedule=function(){var O=this,V=vA(),J=xI().K.K;this.K=V.setTimeout(FT(J,gb(143,function(){O.j++;O.U.sample()})),ayh())};g.T=V0.prototype;g.T.G0=function(){return!1}; g.T.initialize=function(){return this.isInitialized=!0}; g.T.Pd=function(){return this.K.dW}; g.T.gh=function(){return this.K.KD}; g.T.fail=function(O,V){if(!this.KD||(V===void 0?0:V))this.KD=!0,this.dW=O,this.T=0,this.K!=this||y0(this)}; g.T.getName=function(){return this.K.LD}; g.T.LJ=function(){return this.K.F2()}; g.T.F2=function(){return{}}; g.T.uY=function(){return this.K.T}; g.T.Ce=function(){var O=kI();O.K=ip(!0,this.U,O.isMobileDevice)}; g.T.Ey=function(){LMo(kI(),this.U)}; g.T.CH=function(){return this.D.K}; g.T.sample=function(){}; g.T.isActive=function(){return this.K.V}; g.T.aO=function(O){var V=this.K;this.K=O.uY()>=this.T?O:this;V!==this.K?(this.V=this.K.V,y0(this)):this.V!==this.K.V&&(this.V=this.K.V,y0(this))}; g.T.Mz=function(O){if(O.j===this.K){var V=!this.D.equals(O,this.qX);this.D=O;V&&d_H(this)}}; g.T.XX=function(){return this.qX}; g.T.dispose=function(){this.O5=!0}; g.T.GL=function(){return this.O5};g.T=lI.prototype;g.T.observe=function(){return!0}; g.T.unobserve=function(){}; g.T.LI=function(O){this.W=O}; g.T.dispose=function(){if(!this.GL()){var O=this.j;g.um(O.W,this);O.qX&&this.XX()&&EKp(O);this.unobserve();this.fD=!0}}; g.T.GL=function(){return this.fD}; g.T.LJ=function(){return this.j.LJ()}; g.T.uY=function(){return this.j.uY()}; g.T.Pd=function(){return this.j.Pd()}; g.T.gh=function(){return this.j.gh()}; g.T.aO=function(){}; g.T.Mz=function(){this.pJ()}; g.T.XX=function(){return this.O5};g.T=mK.prototype;g.T.uY=function(){return this.K.uY()}; g.T.Pd=function(){return this.K.Pd()}; g.T.gh=function(){return this.K.gh()}; g.T.create=function(O,V,J){var y=null;this.K&&(y=this.Ab(O,V,J),J6(this.K,y));return y}; g.T.PP=function(){return this.VB()}; g.T.VB=function(){return!1}; g.T.init=function(O){return this.K.initialize()?(J6(this.K,this),this.D=O,!0):!1}; g.T.aO=function(O){O.uY()==0&&this.D(O.Pd(),this)}; g.T.Mz=function(){}; g.T.XX=function(){return!1}; g.T.dispose=function(){this.W=!0}; g.T.GL=function(){return this.W}; g.T.LJ=function(){return{}};$u.prototype.add=function(O,V,J){++this.U;O=new qAn(O,V,J);this.K.push(new qAn(O.j,O.K,O.U+this.U/4096));this.j=!0;return this};uOY.prototype.toString=function(){var O="//pagead2.googlesyndication.com//pagead/gen_204",V=jD(this.K);V.length>0&&(O+="?"+V);return O};g.K.prototype.HK=!1;g.K.prototype.GL=function(){return this.HK}; g.K.prototype.dispose=function(){this.HK||(this.HK=!0,this.U5())}; g.K.prototype[Symbol.dispose]=function(){this.dispose()}; g.K.prototype.addOnDisposeCallback=function(O,V){this.HK?V!==void 0?O.call(V):O():(this.Jg||(this.Jg=[]),V&&(O=O.bind(V)),this.Jg.push(O))}; g.K.prototype.U5=function(){if(this.Jg)for(;this.Jg.length;)this.Jg.shift()()};var VVz=[0,gdn,rlY,-1];Nx.prototype.update=function(O,V,J){O&&(this.K+=V,this.j+=V,this.D+=V,this.U=Math.max(this.U,this.D));if(J===void 0?!O:J)this.D=0};var BNr=[1,.75,.5,.3,0];xu.prototype.update=function(O,V,J,y,l,m){m=m===void 0?!0:m;V=l?Math.min(O,V):V;for(l=0;l0&&V>=H;H=!(O>0&&O>=H)||J;this.K[l].update(m&&F,y,!m||H)}};eD.prototype.update=function(O,V,J,y){this.S=this.S!=-1?Math.min(this.S,V.Vl):V.Vl;this.lw=Math.max(this.lw,V.Vl);this.fD=this.fD!=-1?Math.min(this.fD,V.IW):V.IW;this.dW=Math.max(this.dW,V.IW);this.eB.update(V.IW,J.IW,V.K,O,y);this.ol+=O;V.Vl===0&&(this.LD+=O);this.j.update(V.Vl,J.Vl,V.K,O,y);J=y||J.z9!=V.z9?J.isVisible()&&V.isVisible():J.isVisible();V=!V.isVisible()||V.K;this.E5.update(J,O,V)}; eD.prototype.Ib=function(){return this.E5.U>=this.TL};if(SH&&SH.URL){var Jrz=SH.URL,yrz;a:{if(Jrz){var lUV=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Hc=lUV.exec(decodeURIComponent(Jrz));if(Hc){yrz=Hc[1]&&Hc[1].length>1?Hc[1].substring(1):"true";break a}}catch(O){}}yrz=""}np.PU=!(yrz.length>0)};var mlW=new t8(0,0,0,0);var ycY=new t8(0,0,0,0);g.I(p1,g.K);g.T=p1.prototype; g.T.U5=function(){if(this.KK.K){if(this.OP.h1){var O=this.KK.K;typeof O.removeEventListener==="function"&&O.removeEventListener("mouseover",this.OP.h1,FO());this.OP.h1=null}this.OP.Bm&&(O=this.KK.K,typeof O.removeEventListener==="function"&&O.removeEventListener("mouseout",this.OP.Bm,FO()),this.OP.Bm=null)}this.fZ&&this.fZ.dispose();this.xe&&this.xe.dispose();delete this.qR;delete this.Ym;delete this.v3;delete this.KK.XM;delete this.KK.K;delete this.OP;delete this.fZ;delete this.xe;delete this.AC; g.K.prototype.U5.call(this)}; g.T.Qm=function(){return this.xe?this.xe.K:this.position}; g.T.Gr=function(O){xI().Gr(O)}; g.T.XX=function(){return!1}; g.T.ZF=function(){return new eD}; g.T.w0=function(){return this.qR}; g.T.GA=function(O){return HKr(this,O,1E4)}; g.T.Qz=function(O,V,J,y,l,m,H){this.B4||(this.Cj&&(O=this.f_(O,J,l,H),y=y&&this.Kf.Vl>=(this.z9()?.3:.5),this.GE(m,O,y),this.Nu=V,O.Vl>0&&-1===this.SZ&&(this.SZ=V),this.H9==-1&&this.Ib()&&(this.H9=V),this.EM==-2&&(this.EM=ah(this.Qm())?O.Vl:-1),this.Kf=O),this.Ym(this))}; g.T.GE=function(O,V,J){this.w0().update(O,V,this.Kf,J)}; g.T.BT=function(){return new Nk}; g.T.f_=function(O,V,J,y){J=this.BT();J.K=V;V=vA().j;V=xK(SH)===0?-1:V.isVisible()?0:1;J.j=V;J.Vl=this.C_(O);J.z9=this.z9();J.IW=y;return J}; g.T.C_=function(O){return this.opacity===0&&gT(this.AC,"opac")===1?0:O}; g.T.z9=function(){return!1}; g.T.mU=function(){return this.BWz||this.pYE}; g.T.OO=function(){QT()}; g.T.Zk=function(){QT()}; g.T.lP=function(){return this.requestSource}; g.T.Es=function(){return 0}; g.T.Ib=function(){return this.qR.Ib()}; g.T.PF=function(){var O=this.Cj;O=(this.hasCompleted||this.GL())&&!O;var V=xI().j!==2||this.A0z;return this.B4||V&&O?2:this.Ib()?4:3}; g.T.Gq=function(){return 0};g.h6.prototype.next=function(){return g.jc}; g.jc={done:!0,value:void 0};g.h6.prototype.LB=function(){return this};g.I(WZH,Nk);var C0=ZKh([void 0,1,2,3,4,8,16]),FN=ZKh([void 0,4,8,16]),$ls={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Mx("p0",FN),p1:Mx("p1",FN),p2:Mx("p2",FN),p3:Mx("p3",FN),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:wf("mtos1",[0,2,4],!1,FN),mtos2:wf("mtos2",[0,2,4],!1,FN),mtos3:wf("mtos3",[0,2,4],!1,FN),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Mx("a0",FN),a1:Mx("a1",FN),a2:Mx("a2",FN),a3:Mx("a3",FN),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:Mx("c0",FN),c1:Mx("c1",FN),c2:Mx("c2",FN),c3:Mx("c3",FN),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Mx("qmtos",C0),qnc:Mx("qnc",C0),qmv:Mx("qmv",C0),qnv:Mx("qnv",C0), 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:Mx("ss0",FN),ss1:Mx("ss1",FN),ss2:Mx("ss2",FN),ss3:Mx("ss3",FN),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"},HnV=Object.assign({},$ls,{avid:dc("audio"),avas:"avas",vs:"vs"}),jpI={atos:"atos",avt:wf("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(O,V){return function(J){return J[O]===void 0&&V!==void 0?V:J[O]}}("ss",0), t:"t"};EL.prototype.getValue=function(){return this.j}; EL.prototype.update=function(O,V){O>=32||(this.K&1<=.5;B$(V.volume)&&(this.D=this.D!=-1?Math.min(this.D,V.volume):V.volume,this.V=Math.max(this.V,V.volume));m&&(this.O5+=O,this.qX+=l?O:0);this.K.update(V.Vl,J.Vl,V.K,O,y,l);this.U.update(!0,O);this.W.update(l,O);this.KD.update(J.fullscreen,O);this.Ks.update(l&&!m,O);O=Math.floor(V.mediaTime/1E3);this.Vz.update(O,V.isVisible());this.zL.update(O,V.Vl>=1);this.nD.update(O, vl(V))}};IFo.prototype.j=function(O){this.U||(this.K(O)?(O=Ls1(this.qX,this.D,O),this.W|=O,O=O==0):O=!1,this.U=O)};g.I(qx,IFo);qx.prototype.K=function(){return!0}; qx.prototype.V=function(){return!1}; qx.prototype.getId=function(){var O=this,V=ew(Pl,function(J){return J==O.D}); return ca[V].toString()}; qx.prototype.toString=function(){var O="";this.V()&&(O+="c");this.U&&(O+="s");this.W>0&&(O+=":"+this.W);return this.getId()+O};g.I(Q0,qx);Q0.prototype.j=function(O,V){V=V===void 0?null:V;V!=null&&this.S.push(V);qx.prototype.j.call(this,O)};g.I(GO,YGY);GO.prototype.j=function(){return null}; GO.prototype.U=function(){return[]};g.I(K1,lI);g.T=K1.prototype;g.T.XT=function(){if(this.element){var O=this.element,V=this.j.K.U;try{try{var J=oKl(O.getBoundingClientRect())}catch(x){J=new t8(0,0,0,0)}var y=J.right-J.left,l=J.bottom-J.top,m=TT5(O,V),H=m.x,F=m.y;var N=new t8(Math.round(F),Math.round(H+y),Math.round(F+l),Math.round(H))}catch(x){N=mlW.clone()}this.U=N;this.K=gKn(this,this.U)}}; g.T.Mo=function(){this.V=this.j.D.K}; g.T.ET=function(O){var V=gT(this.AC,"od")==1;return Jcr(O,this.V,this.element,V)}; g.T.No=function(){this.timestamp=QT()}; g.T.pJ=function(){this.No();this.XT();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var O=this.element;var V=new g.Op(O.videoWidth,O.videoHeight);O=this.K;var J=uB(O),y=O.getHeight(),l=V.width;V=V.height;l<=0||V<=0||J<=0||y<=0||(l/=V,V=J/y,O=O.clone(),l>V?(J/=l,y=(y-J)/2,y>0&&(y=O.top+y,O.top=Math.round(y),O.bottom=Math.round(y+J))):(y*=l,J=Math.round((J-y)/2),J>0&&(J=O.left+J,O.left=Math.round(J),O.right=Math.round(J+y))));this.K=O}this.Mo(); O=this.K;J=this.V;O=O.left<=J.right&&J.left<=O.right&&O.top<=J.bottom&&J.top<=O.bottom?new t8(Math.max(O.top,J.top),Math.min(O.right,J.right),Math.min(O.bottom,J.bottom),Math.max(O.left,J.left)):new t8(0,0,0,0);J=O.top>=O.bottom||O.left>=O.right?new t8(0,0,0,0):O;O=this.j.D;V=l=y=0;if((this.K.bottom-this.K.top)*(this.K.right-this.K.left)>0)if(this.ET(J))J=new t8(0,0,0,0);else{y=kI().D;V=new t8(0,y.height,y.width,0);var m;y=bI(J,(m=this.W)!=null?m:this.K);l=bI(J,kI().K);V=bI(J,V)}m=J.top>=J.bottom|| J.left>=J.right?new t8(0,0,0,0):rc(J,-this.K.left,-this.K.top);DL()||(l=y=0);this.qX=new rb(O,this.element,this.K,m,y,l,this.timestamp,V)}; g.T.getName=function(){return this.j.getName()};var CXz=new t8(0,0,0,0);g.I(t6,K1);g.T=t6.prototype;g.T.observe=function(){this.D();return!0}; g.T.Mz=function(){K1.prototype.pJ.call(this)}; g.T.No=function(){}; g.T.XT=function(){}; g.T.pJ=function(){this.D();K1.prototype.pJ.call(this)}; g.T.aO=function(O){O=O.isActive();O!==this.T&&(O?this.D():(kI().K=new t8(0,0,0,0),this.K=new t8(0,0,0,0),this.V=new t8(0,0,0,0),this.timestamp=-1));this.T=O};var N6={},LZr=(N6.firstquartile=0,N6.midpoint=1,N6.thirdquartile=2,N6.complete=3,N6);g.I(A6,p1);g.T=A6.prototype;g.T.XX=function(){return!0}; g.T.oT=function(){return this.XC==2}; g.T.GA=function(O){return HKr(this,O,Math.max(1E4,this.U/3))}; g.T.Qz=function(O,V,J,y,l,m,H){var F=this,N=this.S(this)||{};g.h0(N,l);this.U=N.duration||this.U;this.qX=N.isVpaid||this.qX;this.LD=N.isYouTube||this.LD;vA();this.eB=!1;l=bKh(this,V);aFr(this)===1&&(m=l);p1.prototype.Qz.call(this,O,V,J,y,N,m,H);this.Cc&&this.Cc.U&&g.Cu(this.V,function(x){x.j(F)})}; g.T.GE=function(O,V,J){p1.prototype.GE.call(this,O,V,J);Rh(this).update(O,V,this.Kf,J);this.TL=vl(this.Kf)&&vl(V);this.dW==-1&&this.zL&&(this.dW=this.w0().U.K);this.x3.U=0;O=this.Ib();V.isVisible()&&XM(this.x3,"vs");O&&XM(this.x3,"vw");B$(V.volume)&&XM(this.x3,"am");vl(V)?XM(this.x3,"a"):XM(this.x3,"mut");this.Ry&&XM(this.x3,"f");V.j!=-1&&(XM(this.x3,"bm"),V.j==1&&(XM(this.x3,"b"),vl(V)&&XM(this.x3,"umutb")));vl(V)&&V.isVisible()&&XM(this.x3,"avs");this.TL&&O&&XM(this.x3,"avw");V.Vl>0&&XM(this.x3, "pv");Bl(this,this.w0().U.K,!0)&&XM(this.x3,"gdr");sL(this.w0().j,1)>=2E3&&XM(this.x3,"pmx");this.eB&&XM(this.x3,"tvoff")}; g.T.ZF=function(){return new df}; g.T.w0=function(){return this.qR}; g.T.BT=function(){return new WZH}; g.T.f_=function(O,V,J,y){O=p1.prototype.f_.call(this,O,V,J,y===void 0?-1:y);O.fullscreen=this.Ry;O.paused=this.oT();O.volume=J.volume;B$(O.volume)||(this.UR++,V=this.Kf,B$(V.volume)&&(O.volume=V.volume));J=J.currentTime;O.mediaTime=J!==void 0&&J>=0?J:-1;return O}; g.T.C_=function(O){return kI(),this.Ry?1:p1.prototype.C_.call(this,O)}; g.T.Es=function(){return 1}; g.T.getDuration=function(){return this.U}; g.T.PF=function(){return this.B4?2:fFl(this)?5:this.Ib()?4:3}; g.T.Gq=function(){return this.Ks?this.w0().W.U>=2E3?4:3:2}; g.T.LI=function(O){this.xe&&this.xe.LI(O)};var Fdn=g.vn();uW5.prototype.reset=function(){this.K=[];this.j=[]}; var V$=hU(uW5);g.I(lD,mK);g.T=lD.prototype;g.T.getName=function(){return(this.j?this.j:this.K).getName()}; g.T.LJ=function(){return(this.j?this.j:this.K).LJ()}; g.T.uY=function(){return(this.j?this.j:this.K).uY()}; g.T.init=function(O){var V=!1;(0,g.Cu)(this.U,function(J){J.initialize()&&(V=!0)}); V&&(this.D=O,J6(this.K,this));return V}; g.T.dispose=function(){(0,g.Cu)(this.U,function(O){O.dispose()}); mK.prototype.dispose.call(this)}; g.T.PP=function(){return P$(this.U,function(O){return O.G0()})}; g.T.VB=function(){return P$(this.U,function(O){return O.G0()})}; g.T.Ab=function(O,V,J){return new K1(O,this.K,V,J)}; g.T.Mz=function(O){this.j=O.j};var DhX={threshold:[0,.3,.5,.75,1]};g.I(mz,K1);g.T=mz.prototype;g.T.observe=function(){var O=this;this.lw||(this.lw=QT());if(Iyo(298,function(){return O_5(O)}))return!0; this.j.fail("msf");return!1}; g.T.unobserve=function(){if(this.D&&this.element)try{this.D.unobserve(this.element),this.T?(this.T.unobserve(this.element),this.T=null):this.S&&(this.S.disconnect(),this.S=null)}catch(O){}}; g.T.pJ=function(){var O=$Q(this);O.length>0&&Ha(this,O);K1.prototype.pJ.call(this)}; g.T.XT=function(){}; g.T.ET=function(){return!1}; g.T.Mo=function(){}; g.T.LJ=function(){var O={};return Object.assign(this.j.LJ(),(O.niot_obs=this.lw,O.niot_cbk=this.KD,O))}; g.T.getName=function(){return"nio"};g.I(Ci,mK);Ci.prototype.getName=function(){return"nio"}; Ci.prototype.VB=function(){return!kI().j&&this.K.K.U.IntersectionObserver!=null}; Ci.prototype.Ab=function(O,V,J){return new mz(O,this.K,V,J)};g.I(F3,V0);F3.prototype.CH=function(){return kI().K}; F3.prototype.G0=function(){var O=Jt7();this.T!==O&&(this.K!=this&&O>this.K.T&&(this.K=this,y0(this)),this.T=O);return O==2};N$.prototype.sample=function(){U6(this,Jb(),!1)}; N$.prototype.D=function(){var O=DL(),V=QT();O?(Kp||(tZ=V,g.Cu(V$.K,function(J){var y=J.w0();y.yz=gf(y,V,J.XC!=1)})),Kp=!0):(this.S=H_V(this,V),Kp=!1,n2o=V,g.Cu(V$.K,function(J){J.Cj&&(J.w0().T=V)})); U6(this,Jb(),!O)}; var xQ=hU(N$);var Csp=null,tb="",Ki=!1;var xHH=Nar().rb,z7=Nar().oF;var Z_p={Lyv:"visible",B0z:"audible",VvD:"time",gQ5:"timetype"},zT7={visible:function(O){return/^(100|[0-9]{1,2})$/.test(O)}, audible:function(O){return O=="0"||O=="1"}, timetype:function(O){return O=="mtos"||O=="tos"}, time:function(O){return/^(100|[0-9]{1,2})%$/.test(O)||/^([0-9])+ms$/.test(O)}}; UHH.prototype.setTime=function(O,V,J){V=="ms"?(this.U=O,this.D=-1):(this.U=-1,this.D=O);this.W=J===void 0?"tos":J;return this};g.I(ea,qx);ea.prototype.getId=function(){return this.S}; ea.prototype.V=function(){return!0}; ea.prototype.K=function(O){var V=O.w0(),J=O.getDuration();return P$(this.T,function(y){if(y.K!=void 0)var l=stX(y,V);else b:{switch(y.W){case "mtos":l=y.j?V.W.U:V.U.K;break b;case "tos":l=y.j?V.W.K:V.U.K;break b}l=0}l==0?y=!1:(y=y.U!=-1?y.U:J!==void 0&&J>0?y.D*J:-1,y=y!=-1&&l>=y);return y})};g.I(IV,cch);IV.prototype.K=function(O){var V=new z0l;V.K=n1(O,$ls);V.j=n1(O,jpI);return V};g.I(YQ,qx);YQ.prototype.K=function(O){return fFl(O)};g.I(aV,YGY);g.I(bD,qx);bD.prototype.K=function(O){return O.w0().Ib()};g.I(pi,Q0);pi.prototype.K=function(O){var V=g.Kd(this.S,gT(xI().AC,"ovms"));return!O.B4&&(O.XC!=0||V)};g.I(fi,aV);fi.prototype.j=function(){return new pi(this.K)}; fi.prototype.U=function(){return[new bD("viewable_impression",this.K),new YQ(this.K)]};g.I(Li,t6);Li.prototype.D=function(){var O=g.cn("ima.admob.getViewability"),V=gT(this.AC,"queryid");typeof O==="function"&&V&&O(V)}; Li.prototype.getName=function(){return"gsv"};g.I(ni,mK);ni.prototype.getName=function(){return"gsv"}; ni.prototype.VB=function(){var O=kI();xI();return O.j&&!1}; ni.prototype.Ab=function(O,V,J){return new Li(this.K,V,J)};g.I(X3,t6);X3.prototype.D=function(){var O=this,V=g.cn("ima.bridge.getNativeViewability"),J=gT(this.AC,"queryid");typeof V==="function"&&J&&V(J,function(y){g.Id(y)&&O.S++;var l=y.opt_nativeViewVisibleBounds||{},m=y.opt_nativeViewHidden;O.K=vKr(y.opt_nativeViewBounds||{});var H=O.j.D;H.K=m?CXz.clone():vKr(l);O.timestamp=y.opt_nativeTime||-1;kI().K=H.K;y=y.opt_nativeVolume;y!==void 0&&(H.volume=y)})}; X3.prototype.getName=function(){return"nis"};g.I(E6,mK);E6.prototype.getName=function(){return"nis"}; E6.prototype.VB=function(){var O=kI();xI();return O.j&&!1}; E6.prototype.Ab=function(O,V,J){return new X3(this.K,V,J)};g.I(d2,V0);g.T=d2.prototype;g.T.G0=function(){return this.j.g6!=null}; g.T.F2=function(){var O={};this.Vz&&(O.mraid=this.Vz);this.fD&&(O.mlc=1);O.mtop=this.j.HEz;this.S&&(O.mse=this.S);this.ol&&(O.msc=1);O.mcp=this.j.compatibility;return O}; g.T.pI=function(O){var V=g.jF.apply(1,arguments);try{return this.j.g6[O].apply(this.j.g6,V)}catch(J){qB(538,J,.01,function(y){y.method=O})}}; g.T.initialize=function(){var O=this;if(this.isInitialized)return!this.gh();this.isInitialized=!0;if(this.j.compatibility===2)return this.S="ng",this.fail("w"),!1;if(this.j.compatibility===1)return this.S="mm",this.fail("w"),!1;kI().T=!0;this.U.document.readyState&&this.U.document.readyState=="complete"?Yfr(this):Yu(this.U,"load",function(){vA().setTimeout(gb(292,function(){return Yfr(O)}),100)},292); return!0}; g.T.Ce=function(){var O=kI(),V=hTd(this,"getMaxSize");O.K=new t8(0,V.width,V.height,0)}; g.T.Ey=function(){kI().D=hTd(this,"getScreenSize")}; g.T.dispose=function(){b_p(this);V0.prototype.dispose.call(this)};var N5z=new function(O,V){this.key=O;this.defaultValue=V===void 0?!1:V;this.valueType="boolean"}("45378663");g.T=q$.prototype;g.T.NL=function(O){f1(O,!1);R0l(O)}; g.T.sX=function(){}; g.T.oH=function(O,V,J,y){var l=this;O=new A6(Ep,O,J?V:-1,7,this.J6(),this.FN());O.mP=y;xWl(O.AC);dT(O.AC,"queryid",O.mP);O.Gr("");FZU(O,function(){return l.MF.apply(l,g.q(g.jF.apply(0,arguments)))},function(){return l.GLD.apply(l,g.q(g.jF.apply(0,arguments)))}); (y=hU(y$).K)&&$h1(O,y);this.U&&(O.LI(this.U),this.U=null);O.KK.XM&&hU(yt1);return O}; g.T.aO=function(O){switch(O.uY()){case 0:if(O=hU(y$).K)O=O.K,g.um(O.W,this),O.qX&&this.XX()&&EKp(O);G7();break;case 2:Wa()}}; g.T.Mz=function(){}; g.T.XX=function(){return!1}; g.T.GLD=function(O,V){O.B4=!0;switch(O.Es()){case 1:n_7(O,V);break;case 2:this.YO(O)}}; g.T.Ql5=function(O){var V=O.S(O);V&&(V=V.volume,O.Ks=B$(V)&&V>0);v2p(O,0);return ku(O,"start",DL())}; g.T.aj=function(O,V,J){U6(xQ,[O],!DL());return this.Pi(O,V,J)}; g.T.Pi=function(O,V,J){return ku(O,J,DL())}; g.T.LnX=function(O){return iD(O,"firstquartile",1)}; g.T.yvn=function(O){O.zL=!0;return iD(O,"midpoint",2)}; g.T.S5i=function(O){return iD(O,"thirdquartile",3)}; g.T.VBz=function(O){var V=iD(O,"complete",4);rf(O);return V}; g.T.giD=function(O){O.XC=3;return ku(O,"error",DL())}; g.T.cq=function(O,V,J){V=DL();if(O.oT()&&!V){var y=O.w0(),l=QT();y.T=l}U6(xQ,[O],!V);O.oT()&&(O.XC=1);return ku(O,J,V)}; g.T.INn=function(O,V){V=this.aj(O,V||{},"skip");rf(O);return V}; g.T.xXl=function(O,V){f1(O,!0);return this.aj(O,V||{},"fullscreen")}; g.T.wEK=function(O,V){f1(O,!1);return this.aj(O,V||{},"exitfullscreen")}; g.T.WA=function(O,V,J){V=O.w0();var y=QT();V.yz=gf(V,y,O.XC!=1);U6(xQ,[O],!DL());O.XC==1&&(O.XC=2);return ku(O,J,DL())}; g.T.cvj=function(O){U6(xQ,[O],!DL());return O.j()}; g.T.xL=function(O){U6(xQ,[O],!DL());this.iS(O);rf(O);return O.j()}; g.T.MF=function(){}; g.T.YO=function(){}; g.T.iS=function(){}; g.T.Z6=function(){}; g.T.z4=function(){}; g.T.FN=function(){this.K||(this.K=this.z4());return this.K==null?new GO:new fi(this.K)}; g.T.J6=function(){return new IV};g.I(RV,qx);RV.prototype.K=function(O){return O.Gq()==4};g.I(Ba,Q0);Ba.prototype.K=function(O){O=O.Gq();return O==3||O==4};g.I(Pa,aV);Pa.prototype.j=function(){return new Ba(this.K)}; Pa.prototype.U=function(){return[new RV(this.K)]};g.I(kQ,cch);kQ.prototype.K=function(O){O&&(O.e===28&&(O=Object.assign({},O,{avas:3})),O.vs===4||O.vs===5)&&(O=Object.assign({},O,{vs:3}));var V=new z0l;V.K=n1(O,HnV);V.j=n1(O,jpI);return V};g_1.prototype.j=function(){return g.cn(this.K)};g.I(Sa,q$);g.T=Sa.prototype;g.T.sX=function(O,V){var J=this,y=hU(y$);if(y.K!=null)switch(y.K.getName()){case "nis":var l=Ksr(this,O,V);break;case "gsv":l=G1d(this,O,V);break;case "exc":l=tfl(this,O)}l||(V.opt_overlayAdElement?l=void 0:V.opt_adElement&&(l=E_V(this,O,V.opt_adElement,V.opt_osdId)));l&&l.Es()==1&&(l.S==g.qY&&(l.S=function(m){return J.Z6(m)}),Qtr(this,l,V)); return l}; g.T.Z6=function(O){O.j=0;O.O5=0;if(O.D=="h"||O.D=="n"){xI();O.nD&&(xI(),Ab(this)!="h"&&Ab(this));var V=g.cn("ima.common.getVideoMetadata");if(typeof V==="function")try{var J=V(O.mP)}catch(l){O.j|=4}else O.j|=2}else if(O.D=="b")if(V=g.cn("ytads.bulleit.getVideoMetadata"),typeof V==="function")try{J=V(O.mP)}catch(l){O.j|=4}else O.j|=2;else if(O.D=="ml")if(V=g.cn("ima.common.getVideoMetadata"),typeof V==="function")try{J=V(O.mP)}catch(l){O.j|=4}else O.j|=2;else O.j|=1;O.j||(J===void 0?O.j|=8:J===null? O.j|=16:g.Id(J)?O.j|=32:J.errorCode!=null&&(O.O5=J.errorCode,O.j|=64));J==null&&(J={});V=J;O.T=0;for(var y in Ond)V[y]==null&&(O.T|=Ond[y]);dH7(V,"currentTime");dH7(V,"duration");B$(J.volume)&&B$()&&(J.volume*=NaN);return J}; g.T.z4=function(){xI();Ab(this)!="h"&&Ab(this);var O=uV5(this);return O!=null?new g_1(O):null}; g.T.YO=function(O){!O.K&&O.B4&&r2(this,O,"overlay_unmeasurable_impression")&&(O.K=!0)}; g.T.iS=function(O){O.jZ&&(O.Ib()?r2(this,O,"overlay_viewable_end_of_session_impression"):r2(this,O,"overlay_unviewable_impression"),O.jZ=!1)}; g.T.MF=function(){}; g.T.oH=function(O,V,J,y){if(xI().flags.s5(N5z)){var l=gT(xI().AC,"mm"),m={};(l=(m[NB.Yf]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",m[NB.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",m)[l])&&RT1(this,l);this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&qB(1044,Error())}O=q$.prototype.oH.call(this,O,V,J,y);this.W&&(V=this.V,O.W==null&&(O.W=new NRU),V.K[O.mP]=O.W,O.W.W=Fdn);return O}; g.T.NL=function(O){O&&O.Es()==1&&this.W&&delete this.V.K[O.mP];return q$.prototype.NL.call(this,O)}; g.T.FN=function(){this.K||(this.K=this.z4());return this.K==null?new GO:this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Pa(this.K):new fi(this.K)}; g.T.J6=function(){return this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new kQ:new IV}; g.T.LI=function(O,V,J,y,l){V=new t8(J,V+y,J+l,V);(O=O6(V$,O))?O.LI(V):this.U=V}; var xly=db(193,PsH,void 0,XUd);g.zD("Goog_AdSense_Lidar_sendVastEvent",xly);var WdI=gb(194,function(O,V){V=V===void 0?{}:V;O=i_r(hU(Sa),O,V);return Bal(O)}); g.zD("Goog_AdSense_Lidar_getViewability",WdI);var Ulz=db(195,function(){return uCd()}); g.zD("Goog_AdSense_Lidar_getUrlSignalsArray",Ulz);var ZnW=gb(196,function(){return JSON.stringify(uCd())}); g.zD("Goog_AdSense_Lidar_getUrlSignalsList",ZnW);var DHn=g.iX(["//ep2.adtrafficquality.google/sodar/",""]),O5n=g.iX(["//tpc.googlesyndication.com/sodar/",""]);g.I(VC,Error);g.I(lT,g.K);lT.prototype.kK=function(){return this.wpc.f()}; lT.prototype.Nb=function(O){this.wpc.c(O)}; lT.prototype.G$=function(O){return this.wpc.m(led(O))}; lT.prototype.Ac=function(O){return this.wpc.mws(led(O))}; g.I(JB,g.K);JB.prototype.snapshot=function(O){return this.jj.s(Object.assign({},O.Fq&&{c:O.Fq},O.nR&&{s:O.nR},O.bN!==void 0&&{p:O.bN}))}; JB.prototype.B2=function(O){this.jj.e(O)}; JB.prototype.KU=function(){return this.jj.l()};g.I($9,g.K);$9.prototype.share=function(){if(this.GL())throw Error("E:AD");this.j++;return this}; $9.prototype.dispose=function(){--this.j||g.K.prototype.dispose.call(this)};F7l.prototype.fB=function(O,V){this.K.fB("/client_streamz/bg/frs",O,V)}; Ngo.prototype.fB=function(O,V,J,y,l,m){this.K.fB("/client_streamz/bg/wrl",O,V,J,y,l,m)}; x1V.prototype.gN=function(O,V){this.K.E9("/client_streamz/bg/ec",O,V)}; W7V.prototype.fB=function(O,V,J){this.K.fB("/client_streamz/bg/el",O,V,J)}; U1l.prototype.gN=function(O,V){this.K.E9("/client_streamz/bg/cec",O,V)}; Z5p.prototype.gN=function(O,V){this.K.E9("/client_streamz/bg/po/csc",O,V)}; z4o.prototype.gN=function(O,V){this.K.E9("/client_streamz/bg/po/ctav",O,V)}; c4V.prototype.gN=function(O,V){this.K.E9("/client_streamz/bg/po/cwsc",O,V)};g.I(sb5,q1);g.I(Cq,q1);var zp=[1,2,3];var zHI=[0,zp,PPU,t6p,Rzo];var crz=[0,VE,[0,Xor,gdn]];g.I(Fu,q1);var Zl=[1,2,3];var spF=[0,Zl,QUh,dKr,yE,crz];g.I(Nq,q1);var T5s=[0,VE,zHI,spF];var eHz=[0,OP];g.I(x9,q1);var IUz=[0,OP,-1,iSr];var Yoz=[0,OP,-1,GqH,iSr];g.I(WG,q1);var PjV=[1,2,3];var aUy=[0,PjV,yE,IUz,yE,Yoz,yE,eHz];g.I(UW,q1);UW.prototype.UI=function(){var O=sf(this,3,tc,3,!0);VD(O);return O[void 0]};UW.prototype.U=BcU([0,OP,aUy,BxV,VE,T5s,ucp,Alh]);g.I(e4o,q1);g.T=cG.prototype;g.T.isEnabled=function(){if(!g.Z1.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Ja:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.T.set=function(O,V,J){var y=!1;if(typeof J==="object"){var l=J.sameSite;y=J.secure||!1;var m=J.domain||void 0;var H=J.path||void 0;var F=J.Ja}if(/[;=\s]/.test(O))throw Error('Invalid cookie name "'+O+'"');if(/[;\r\n]/.test(V))throw Error('Invalid cookie value "'+V+'"');F===void 0&&(F=-1);J=m?";domain="+m:"";H=H?";path="+H:"";y=y?";secure":"";F=F<0?"":F==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+F*1E3)).toUTCString();this.K.cookie=O+"="+V+J+H+F+y+(l!=null? ";samesite="+l:"")}; g.T.get=function(O,V){for(var J=O+"=",y=(this.K.cookie||"").split(";"),l=0,m;l=0;V--)this.remove(O[V])}; var vv=new cG(typeof document=="undefined"?null:document);Tp.prototype.compress=function(O){var V,J,y,l;return g.Q(function(m){switch(m.j){case 1:return V=new CompressionStream("gzip"),J=(new Response(V.readable)).arrayBuffer(),y=V.writable.getWriter(),m.K(y.write((new TextEncoder).encode(O)),2);case 2:return m.K(y.close(),3);case 3:return l=Uint8Array,m.K(J,4);case 4:return m.return(new l(m.U))}})}; Tp.prototype.isSupported=function(O){return O<1024?!1:typeof CompressionStream!=="undefined"};g.I(eI,q1);I_.prototype.setInterval=function(O){this.intervalMs=O;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; I_.prototype.start=function(){var O=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){O.tick()},this.intervalMs),this.j=this.K())}; I_.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; I_.prototype.tick=function(){var O=this;if(this.enabled){var V=Math.max(this.K()-this.j,0);V0?J:void 0));J=WU(J,4,b4(l>0?l:void 0));J=WU(J,5,b4(m>0?m:void 0));l=J.qH;m=l[PA]|0;J=OG(J,m)?J:ms(J,l,m)?$_(J,l):new J.constructor(ls(l,m,!0));Ef(H,g.bT,10,J)}H=this.K.clone();J=Date.now().toString();H=WU(H,4,dR(J));O=da(H,Lq,3,O.slice());y&&(H=new Y9,y=WU(H,13,b4(y)),H= new a_,y=Ef(H,Y9,2,y),H=new Mq,y=Ef(H,a_,1,y),y=BU(y,2,9),Ef(O,Mq,18,y));V&&ra(O,14,V);return O};g.gq.prototype.j=0;g.gq.prototype.reset=function(){this.K=this.U=this.D;this.j=0}; g.gq.prototype.getValue=function(){return this.U};g.I(H$,q1);var bnE=jH(H$);g.I(r8n,q1);var xM;xM=new ioH;g.I(Kq,g.K);g.T=Kq.prototype;g.T.U5=function(){Gp(this);this.j.stop();this.Vz.stop();g.K.prototype.U5.call(this)}; g.T.dispatch=function(O){if(O instanceof Lq)this.log(O);else try{var V=new Lq,J=O.dH();var y=is(V,8,J);this.log(y)}catch(l){tB(this,4,1)}}; g.T.log=function(O){tB(this,2,1);if(this.ol){O=O.clone();var V=this.E5++;O=ra(O,21,V);this.componentId&&is(O,26,this.componentId);V=O;var J=NH(V,1);var y=y===void 0?!1:y;var l=typeof J;y=J==null?J:l==="bigint"?String(vR(64,J)):a$(J)?l==="string"?o$(J):y?wR(J):Mh(J):void 0;y==null&&(y=Date.now(),y=Number.isFinite(y)?y.toString():"0",WU(V,1,dR(y)));(hc?or5(NH(V,15,void 0,void 0,G4)):or5(NH(V,15)))!=null||ra(V,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(y=this.experimentIds.clone(),Ef(V, eI,16,y));tB(this,1,1);V=this.K.length-1E3+1;V>0&&(this.K.splice(0,V),this.D+=V,tB(this,3,V));this.K.push(O);this.yC||this.j.enabled||this.j.start()}}; g.T.flush=function(O,V){var J=this;if(this.K.length===0)O&&O();else if(this.dW&&this.KD)this.U.j=3,A4X(this);else{var y=Date.now();if(this.yz>y&&this.O50&&(J.O5=Date.now(),J.yz=J.O5+Z);Z=Ld(R$);var Y;BA&&Z&&((Y=z.qH[Z])==null?void 0:Y[175237375])!=null&&uA(UKX,3);a:{var b=b===void 0?!1:b;if(Ld(ZSr)&&Ld(R$)&&void 0===ZSr){Y=z.qH;Z=Y[R$];if(!Z)break a;if(Z=Z.jx)try{Z(Y,175237375,Ior);break a}catch(M){M_(M)}}b&&(b=z.qH, (Y=Ld(R$))&&Y in b&&(b=b[Y])&&delete b[175237375])}b=xM.K?xM.j(z,xM.K,175237375,xM.U):xM.j(z,175237375,null,xM.U);if(b=b===null?void 0:b)b=g.Qa(b,1,-1),b!==-1&&(J.W=new g.gq(b<1?1:b,3E5,.1),J.j.setInterval(J.W.getValue()))}}O&&O();J.V=0},W=function(Z,z){var c=XV(m,Lq,3); var Y=Number(mYo(m,14));g.qq(J.W);J.j.setInterval(J.W.getValue());Z===401&&H&&(J.LD=H);Y&&(J.D+=Y);z===void 0&&(z=J.isRetryable(Z));z&&(J.K=c.concat(J.K),J.yC||J.j.enabled||J.j.start());tB(J,7,1);V&&V("net-send-failed",Z);++J.V},U=function(){J.network&&J.network.send(N,x,W)}; F?F.then(function(Z){tB(J,5,l);N.requestHeaders["Content-Encoding"]="gzip";N.requestHeaders["Content-Type"]="application/binary";N.body=Z;N.EV=2;U()},function(){tB(J,6,l); U()}):U()}}}}; g.T.isRetryable=function(O){return 500<=O&&O<600||O===401||O===0};uT.prototype.send=function(O,V,J){var y=this,l,m,H,F,N,x,W,U,Z,z;return g.Q(function(c){switch(c.j){case 1:return m=(l=y.va?new AbortController:void 0)?setTimeout(function(){l.abort()},O.timeoutMillis):void 0,c.W(2,3),H=Object.assign({},{method:O.requestType, headers:Object.assign({},O.requestHeaders)},O.body&&{body:O.body},O.withCredentials&&{credentials:"include"},{signal:O.timeoutMillis&&l?l.signal:null}),c.K(fetch(O.url,H),5);case 5:F=c.U;if(F.status!==200){(N=J)==null||N(F.status);c.uw(3);break}if((x=V)==null){c.uw(7);break}return c.K(F.text(),8);case 8:x(c.U);case 7:case 3:c.T();clearTimeout(m);c.qX(0);break;case 2:W=c.D();switch((U=W)==null?void 0:U.name){case "AbortError":(Z=J)==null||Z(408);break;default:(z=J)==null||z(400)}c.uw(3)}})}; uT.prototype.tV=function(){return 4};g.I(AB,g.K);AB.prototype.RV=function(){this.D=!0;return this}; AB.prototype.build=function(){this.network||(this.network=new uT);var O=new Kq({logSource:this.logSource,QJ:this.QJ?this.QJ:Mil,sessionIndex:this.sessionIndex,nbw:this.DL,Lc:this.U,yC:!1,RV:this.D,E4:this.E4,network:this.network});g.t(this,O);if(this.buildLabel){var V=this.buildLabel,J=dq(O.U);is(J,7,V)}O.S=new Tp;this.componentId&&(O.componentId=this.componentId);this.HR&&(O.HR=this.HR);this.pageId&&(O.pageId=this.pageId);this.K&&((J=this.K)?(O.experimentIds||(O.experimentIds=new eI),V=O.experimentIds, J=J.dH(),is(V,4,J)):O.experimentIds&&WU(O.experimentIds,4));this.j&&(O.dW=O.KD);Qbo(O.U);this.network.Mt&&this.network.Mt(this.logSource);this.network.CBn&&this.network.CBn(O);return O};g.I(rq,g.K);rq.prototype.flush=function(O){O=O||[];if(O.length){for(var V=new e4o,J=[],y=0;y-1?(V=O[H],J||(V.uo=!1)):(V=new D1n(V,this.src,m,!!y,l),V.uo=J,O.push(V));return V}; g.T.remove=function(O,V,J,y){O=O.toString();if(!(O in this.listeners))return!1;var l=this.listeners[O];V=yL(l,V,J,y);return V>-1?(Dl(l[V]),g.tI(l,V),l.length==0&&(delete this.listeners[O],this.K--),!0):!1}; g.T.removeAll=function(O){O=O&&O.toString();var V=0,J;for(J in this.listeners)if(!O||J==O){for(var y=this.listeners[J],l=0;l-1?O[l]:null}; g.T.hasListener=function(O,V){var J=O!==void 0,y=J?O.toString():"",l=V!==void 0;return g.eV(this.listeners,function(m){for(var H=0;H>>0);g.nd(g.xS,g.K);g.xS.prototype[ktV]=!0;g.T=g.xS.prototype;g.T.addEventListener=function(O,V,J,y){g.mS(this,O,V,J,y)}; g.T.removeEventListener=function(O,V,J,y){$Br(this,O,V,J,y)}; g.T.dispatchEvent=function(O){var V=this.fW;if(V){var J=[];for(var y=1;V;V=V.fW)J.push(V),++y}V=this.Xo;y=O.type||O;if(typeof O==="string")O=new g.PG(O,V);else if(O instanceof g.PG)O.target=O.target||V;else{var l=O;O=new g.PG(y,V);g.h0(O,l)}l=!0;var m;if(J)for(m=J.length-1;!O.j&&m>=0;m--){var H=O.currentTarget=J[m];l=Wu(H,y,!0,O)&&l}O.j||(H=O.currentTarget=V,l=Wu(H,y,!0,O)&&l,O.j||(l=Wu(H,y,!1,O)&&l));if(J)for(m=0;!O.j&&m0){this.j--;var O=this.K;this.K=O.next;O.next=null}else O=this.U();return O}; UT.prototype.put=function(O){this.D(O);this.j<100&&(this.j++,O.next=this.K,this.K=O)};var zF;sT.prototype.add=function(O,V){var J=Nbr.get();J.set(O,V);this.j?this.j.next=J:this.K=J;this.j=J}; sT.prototype.remove=function(){var O=null;this.K&&(O=this.K,this.K=this.K.next,this.K||(this.j=null),O.next=null);return O}; var Nbr=new UT(function(){return new TF},function(O){return O.reset()}); TF.prototype.set=function(O,V){this.K=O;this.scope=V;this.next=null}; TF.prototype.reset=function(){this.next=this.scope=this.K=null};var eT,I8=!1,CpH=new sT;xB1.prototype.reset=function(){this.context=this.j=this.U=this.K=null;this.D=!1}; var Whh=new UT(function(){return new xB1},function(O){O.reset()}); g.bF.prototype.then=function(O,V,J){return Ydo(this,ZW(typeof O==="function"?O:null),ZW(typeof V==="function"?V:null),J)}; g.bF.prototype.$goog_Thenable=!0;g.T=g.bF.prototype;g.T.finally=function(O){var V=this;O=ZW(O);return new g.bF(function(J,y){cZd(V,function(l){O();J(l)},function(l){O(); y(l)})})}; g.T.TP=function(O,V){return Ydo(this,null,ZW(O),V)}; g.T.catch=g.bF.prototype.TP;g.T.cancel=function(O){if(this.K==0){var V=new w4(O);g.YS(function(){sLr(this,V)},this)}}; g.T.GMD=function(O){this.K=0;a8(this,2,O)}; g.T.V4X=function(O){this.K=0;a8(this,3,O)}; g.T.qQ=function(){for(var O;O=Tbl(this);)eNn(this,O,this.K,this.S);this.V=!1}; var fLH=M_;g.nd(w4,Xz);w4.prototype.name="cancel";g.nd(g.MU,g.xS);g.T=g.MU.prototype;g.T.enabled=!1;g.T.PB=null;g.T.setInterval=function(O){this.zM=O;this.PB&&this.enabled?(this.stop(),this.start()):this.PB&&this.stop()}; g.T.UE5=function(){if(this.enabled){var O=g.vn()-this.zl;O>0&&O0&&(this.getStatus(),this.V=setTimeout(this.e9.bind(this), this.KD)),this.getStatus(),this.qX=!0,this.K.send(O),this.qX=!1}catch(H){this.getStatus(),KhY(this,H)}}; g.T.e9=function(){typeof K3!="undefined"&&this.K&&(this.D="Timed out after "+this.KD+"ms, aborting",this.j=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.T.abort=function(O){this.K&&this.U&&(this.getStatus(),this.U=!1,this.W=!0,this.K.abort(),this.W=!1,this.j=O||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),GF(this))}; g.T.U5=function(){this.K&&(this.U&&(this.U=!1,this.W=!0,this.K.abort(),this.W=!1),GF(this,!0));g.QL.EE.U5.call(this)}; g.T.r3=function(){this.GL()||(this.fD||this.qX||this.W?tH1(this):this.UfE())}; g.T.UfE=function(){tH1(this)}; g.T.isActive=function(){return!!this.K}; g.T.isComplete=function(){return g.tF(this)==4}; g.T.getStatus=function(){try{return g.tF(this)>2?this.K.status:-1}catch(O){return-1}}; g.T.getResponseHeader=function(O){if(this.K&&this.isComplete())return O=this.K.getResponseHeader(O),O===null?void 0:O}; g.T.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};R8.prototype.send=function(O,V,J){V=V===void 0?function(){}:V; J=J===void 0?function(){}:J; QLr(O.url,function(y){y=y.target;uF(y)?V(g.AF(y)):J(y.getStatus())},O.requestType,O.body,O.requestHeaders,O.timeoutMillis,O.withCredentials)}; R8.prototype.tV=function(){return 1};Pu.prototype.done=function(){this.logger.fQ(this.event,Bu()-this.startTime)}; g.I(kS,$9);g.I(DW,kS);g.T=DW.prototype;g.T.UH=function(){}; g.T.Jj=function(){}; g.T.fQ=function(){}; g.T.sB=function(){}; g.T.jV=function(){}; g.T.fV=function(O,V,J,y){return y}; g.T.Np=function(){}; g.T.HG=function(){}; g.T.Mp=function(){}; g.I(O9,kS);g.T=O9.prototype;g.T.update=function(O){this.logger.dispose();this.logger=O}; g.T.Jj=function(O){this.logger.Jj(O)}; g.T.fQ=function(O,V){this.logger.fQ(O,V)}; g.T.sB=function(O){this.logger.sB(O)}; g.T.jV=function(){this.logger.jV()}; g.T.fV=function(O,V,J,y){return this.logger.fV(O,V,J,y)}; g.T.Np=function(O){this.logger.Np(O)}; g.T.HG=function(O){this.logger.HG(O)}; g.T.Mp=function(O){this.logger.Mp(O)}; g.T.UH=function(O){this.logger.UH(O)}; g.I(ip5,g.K);g.I(Vv,kS);g.T=Vv.prototype;g.T.UH=function(O){this.metrics.Mzv.fB(O,this.Bh)}; g.T.Jj=function(O){this.metrics.eventCount.gN(O,this.Bh)}; g.T.fQ=function(O,V){this.metrics.pS.fB(V,O,this.Bh)}; g.T.sB=function(O){this.metrics.errorCount.gN(O,this.Bh)}; g.T.fV=function(O,V,J,y){function l(F){if(!m.GL()){var N=Bu()-H;m.metrics.zkB.fB(N,O,J,F,V,m.Bh)}} var m=this,H=Bu();y.then(function(){return void l(0)},function(F){return void l(F instanceof ET?F.code:-1)}); return y}; g.T.Np=function(O){this.metrics.t4K.gN(O,this.Bh)}; g.T.HG=function(O){this.metrics.Pa.gN(O,this.Bh)}; g.T.Mp=function(O){this.metrics.aKB.gN(O,this.Bh)}; g.I(JX,Vv);JX.prototype.jV=function(){RNr(this.K)};g.I(yv,q1);g.I(lN,q1);g.I(ma,q1);var H1p=jH(ma),PpU=function(O){return fD(function(V){return V instanceof O&&!OG(V)})}(ma); ma.messageId="bfkj";g.I(mU,q1);g.I($U,q1);var kuX=jH($U);g.I(jJ,g.K);jJ.prototype.snapshot=function(O){if(this.GL())throw Error("Already disposed");this.logger.Jj("n");var V=this.logger.share();return this.U.then(function(J){var y=J.wU;return new Promise(function(l){var m=new Pu(V,"n");y(function(H){m.done();V.UH(H.length);V.jV();V.dispose();l(H)},[O.Fq, O.nR,O.C2,O.bN])})})}; jJ.prototype.v9=function(O){var V=this;if(this.GL())throw Error("Already disposed");this.logger.Jj("n");var J=ST(this.logger,function(){return V.D([O.Fq,O.nR,O.C2,O.bN])},"n"); this.logger.UH(J.length);this.logger.jV();return J}; jJ.prototype.B2=function(O){this.U.then(function(V){var J;(J=V.rgB)==null||J(O)})}; jJ.prototype.KU=function(){return this.logger.share()};g.I(NE,q1);g.I(xU,q1);WP.prototype.ix=function(O){return Nfr(this,O,new DW,0)};g.I(U9,g.K);g.T=U9.prototype;g.T.snapshot=function(O){var V=this;return g.Q(function(J){switch(J.j){case 1:if(V.GL())throw Error("Already disposed");if(V.j||V.S){J.uw(2);break}return J.K(V.W.promise,2);case 2:if(!V.j){J.uw(4);break}return J.K(V.j.snapshot(O),5);case 5:return J.return(J.U);case 4:throw V.S;}})}; g.T.pause=function(){this.GL()||this.isPaused||(this.isPaused=!0,this.K&&this.K.pause())}; g.T.resume=function(){!this.GL()&&this.isPaused&&(this.isPaused=!1,this.K&&this.K.resume())}; g.T.checkForRefresh=function(){var O=this;return g.Q(function(V){if(O.GL())throw Error("Already disposed");var J;if(J=O.K)J=O.K,J.isExpired()?(s9(J),J.lT(0),J=!0):J=!1,J=!J;return J?V.uw(0):V.K(O.U.promise,0)})}; g.T.B2=function(O){var V,J;(V=this.j)==null||(J=V.B2)==null||J.call(V,O)}; g.T.handleError=function(O){if(!this.GL()){this.S=O;this.W.resolve();var V,J;(J=(V=this.options).PRL)==null||J.call(V,O)}}; g.T.KU=function(){return this.logger.share()}; var Ux7={aIE:432E5,Ay:3E5,Z2:10,mZ:1E4,US:3E4,dHz:3E4,PBn:6E4,aC:1E3,Jh:6E4,sL:6E5,BD:.25,Tu:2,maxAttempts:10};cP.prototype.pause=function(){this.isPaused||(this.isPaused=!0,s9(this))}; cP.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())}; cP.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var hHC,b1r=(hHC=Math.imul)!=null?hHC:function(O,V){return O*V|0},eJ=[196, 200,224,18];I5.prototype.dH=function(){return String(this.K)+","+this.j.join()}; I5.prototype.gH=function(O,V){var J=void 0;if(this.j[this.K]!==O){var y=this.j.indexOf(O);y!==-1?(this.j.splice(y,1),y0;)V[J++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(O%62),O=Math.floor(O/62);return V.join("")}};g.I(a5,g.K);a5.prototype.Ac=function(O,V){var J=this.G$(O);V==null||V(J);return ST(this.logger,function(){return g.nD(J,2)},this.j)}; g.I(fM,a5);fM.prototype.G$=function(O,V){var J=this;this.logger.Jj(this.K);++this.W>=this.V&&this.U.resolve();var y=O();O=ST(this.logger,function(){return J.D(y)},"C"); if(O===void 0)throw new VC(17,"YNJ:Undefined");if(!(O instanceof Uint8Array))throw new VC(18,"ODM:Invalid");V==null||V(O);return O}; g.I(hX,a5);hX.prototype.G$=function(){return this.D}; g.I(o5,a5);o5.prototype.G$=function(){var O=this;return ST(this.logger,function(){return EA(O.D)},"d")}; o5.prototype.Ac=function(){return this.D}; g.I(vP,a5);vP.prototype.G$=function(){if(this.D)return this.D;this.D=gup(this,function(O){return"_"+dxl(O)}); return gup(this,function(O){return O})}; g.I(ME,a5);ME.prototype.G$=function(){var O=Math.floor(Date.now()/1E3),V=[Math.random()*255,Math.random()*255],J=V.concat([this.D&255,this.clientState],[O>>24&255,O>>16&255,O>>8&255,O&255]);O=new Uint8Array(2+J.length);O[0]=34;O[1]=J.length;O.set(J,2);J=O.subarray(2);for(var y=V=V.length;y150))try{this.cache=new MD7(O,this.logger)}catch(V){this.reportError(new VC(22,"GBJ:init",V))}}; g.T.reportError=function(O){this.logger.sB(O.code);this.onError(O);return O}; var GOr=function(O){return fD(function(V){if(!xKU(V))return!1;for(var J=g.n(Object.entries(O)),y=J.next();!y.done;y=J.next()){var l=g.n(y.value);y=l.next().value;l=l.next().value;if(!(y in V)){if(l.gkK===!0)continue;return!1}if(!l(V[y]))return!1}return!0})}({jj:function(O){return fD(function(V){return V instanceof O})}(U9)},"");kOl.prototype.gN=function(O,V){this.K.E9("/client_streamz/youtube/aba/gac",O,V)};var wuX=(new Date).getTime();g.I(dP,q1);var oYy=jH(dP);SL7.prototype.getMetadata=function(){return this.metadata};gP.prototype.getMetadata=function(){return this.metadata}; gP.prototype.getStatus=function(){return this.status};qE.prototype.V=function(O,V){V=V===void 0?{}:V;return new SL7(O,this,V)}; qE.prototype.getName=function(){return this.name};var vYs=new qE("/google.internal.waa.v1.Waa/Create",NE,dP,function(O){return O.dH()},oYy);g.I(Qv,q1);var CIh=new qE("/google.internal.waa.v1.Waa/GenerateIT",xU,Qv,function(O){return O.dH()},jH(Qv));var oQY=new Set(["SAPISIDHASH","APISIDHASH"]);g.I(Gl,q1);Gl.prototype.getValue=function(){var O=NH(this,2);if(Array.isArray(O)||O instanceof q1)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return ef(this,2)};g.I(KM,q1);KM.prototype.getMessage=function(){return K_(this,2)}; var lB5=jH(KM);tX.prototype.I3=function(O,V){O==="data"?this.j.push(V):O==="metadata"?this.D.push(V):O==="status"?this.W.push(V):O==="end"?this.U.push(V):O==="error"&&this.K.push(V)}; tX.prototype.removeListener=function(O,V){O==="data"?R5(this.j,V):O==="metadata"?R5(this.D,V):O==="status"?R5(this.W,V):O==="end"?R5(this.U,V):O==="error"&&R5(this.K,V);return this}; tX.prototype.cancel=function(){this.xhr.abort()}; g.I(OiX,Error);g.nd(g.BP,gIY);g.BP.prototype.K=function(){var O=new PP(this.D,this.U);this.j&&O.setCredentialsMode(this.j);return O}; g.BP.prototype.setCredentialsMode=function(O){this.j=O}; g.nd(PP,g.xS);g.T=PP.prototype;g.T.open=function(O,V){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.lw=O;this.KD=V;this.readyState=1;kU(this)}; g.T.send=function(O){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.T.signal.aborted)throw this.abort(),Error("Request was aborted.");this.K=!0;var V={headers:this.qX,method:this.lw,credentials:this.W,cache:void 0,signal:this.T.signal};O&&(V.body=O);(this.fD||g.Z1).fetch(new Request(this.KD,V)).then(this.oiw.bind(this),this.qp.bind(this))}; g.T.abort=function(){this.response=this.responseText="";this.qX=new Headers;this.status=0;this.T.abort("Request was aborted.");this.U&&this.U.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.K&&this.readyState!=4&&(this.K=!1,SJ(this));this.readyState=0}; g.T.oiw=function(O){if(this.K&&(this.D=O,this.j||(this.status=this.D.status,this.statusText=this.D.statusText,this.j=O.headers,this.readyState=2,kU(this)),this.K&&(this.readyState=3,kU(this),this.K)))if(this.responseType==="arraybuffer")O.arrayBuffer().then(this.FnE.bind(this),this.qp.bind(this));else if(typeof g.Z1.ReadableStream!=="undefined"&&"body"in O){this.U=O.body.getReader();if(this.V){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.S=new TextDecoder;m$d(this)}else O.text().then(this.iDn.bind(this),this.qp.bind(this))}; g.T.viW=function(O){if(this.K){if(this.V&&O.value)this.response.push(O.value);else if(!this.V){var V=O.value?O.value:new Uint8Array(0);if(V=this.S.decode(V,{stream:!O.done}))this.response=this.responseText+=V}O.done?SJ(this):kU(this);this.readyState==3&&m$d(this)}}; g.T.iDn=function(O){this.K&&(this.response=this.responseText=O,SJ(this))}; g.T.FnE=function(O){this.K&&(this.response=O,SJ(this))}; g.T.qp=function(){this.K&&SJ(this)}; g.T.setRequestHeader=function(O,V){this.qX.append(O,V)}; g.T.getResponseHeader=function(O){return this.j?this.j.get(O.toLowerCase())||"":""}; g.T.getAllResponseHeaders=function(){if(!this.j)return"";for(var O=[],V=this.j.entries(),J=V.next();!J.done;)J=J.value,O.push(J[0]+": "+J[1]),J=V.next();return O.join("\r\n")}; g.T.setCredentialsMode=function(O){this.W=O}; Object.defineProperty(PP.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(O){this.setCredentialsMode(O?"include":"same-origin")}});g.Cn.prototype.toString=function(){var O=[],V=this.W;V&&O.push(mE(V,whF,!0),":");var J=this.K;if(J||V=="file")O.push("//"),(V=this.T)&&O.push(mE(V,whF,!0),"@"),O.push(g.dO(J).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),J=this.U,J!=null&&O.push(":",String(J));if(J=this.j)this.K&&J.charAt(0)!="/"&&O.push("/"),O.push(mE(J,J.charAt(0)=="/"?MVz:Ldm,!0));(J=this.D.toString())&&O.push("?",J);(J=this.V)&&O.push("#",mE(J,nYz));return O.join("")}; g.Cn.prototype.resolve=function(O){var V=this.clone(),J=!!O.W;J?g.O7(V,O.W):J=!!O.T;J?V.T=O.T:J=!!O.K;J?g.F1(V,O.K):J=O.U!=null;var y=O.j;if(J)g.VX(V,O.U);else if(J=!!O.j){if(y.charAt(0)!="/")if(this.K&&!this.j)y="/"+y;else{var l=V.j.lastIndexOf("/");l!=-1&&(y=V.j.slice(0,l+1)+y)}l=y;if(l==".."||l==".")y="";else if(g.t0(l,"./")||g.t0(l,"/.")){y=Gv(l,"/");l=l.split("/");for(var m=[],H=0;H1||m.length==1&&m[0]!="")&&m.pop(), y&&H==l.length&&m.push("")):(m.push(F),y=!0)}y=m.join("/")}else y=l}J?V.j=y:J=O.D.toString()!=="";J?J_(V,O.D.clone()):J=!!O.V;J&&(V.V=O.V);return V}; g.Cn.prototype.clone=function(){return new g.Cn(this)}; var whF=/[#\/\?@]/g,Ldm=/[#\?:]/g,MVz=/[#\?]/g,Fz5=/[#\?@]/g,nYz=/#/g;g.T=lL.prototype;g.T.add=function(O,V){Hy(this);this.U=null;O=jL(this,O);var J=this.K.get(O);J||this.K.set(O,J=[]);J.push(V);this.j=this.j+1;return this}; g.T.remove=function(O){Hy(this);O=jL(this,O);return this.K.has(O)?(this.U=null,this.j=this.j-this.K.get(O).length,this.K.delete(O)):!1}; g.T.clear=function(){this.K=this.U=null;this.j=0}; g.T.isEmpty=function(){Hy(this);return this.j==0}; g.T.forEach=function(O,V){Hy(this);this.K.forEach(function(J,y){J.forEach(function(l){O.call(V,l,y,this)},this)},this)}; g.T.Hs=function(){Hy(this);for(var O=Array.from(this.K.values()),V=Array.from(this.K.keys()),J=[],y=0;y0?String(O[0]):V}; g.T.toString=function(){if(this.U)return this.U;if(!this.K)return"";for(var O=[],V=Array.from(this.K.keys()),J=0;J>>3;m.U!=1&&m.U!=2&&m.U!=15&&x6(m,H,F,"unexpected tag");m.K=1;m.j=0;m.D=0} function J(N){m.D++;m.D==5&&N&240&&x6(m,H,F,"message length too long");m.j|=(N&127)<<(m.D-1)*7;N&128||(m.K=2,m.T=0,typeof Uint8Array!=="undefined"?m.W=new Uint8Array(m.j):m.W=Array(m.j),m.j==0&&l())} function y(N){m.W[m.T++]=N;m.T==m.j&&l()} function l(){if(m.U<15){var N={};N[m.U]=m.W;m.S.push(N)}m.K=0} for(var m=this,H=O instanceof Array?O:new Uint8Array(O),F=0;F0?O:null};Wy.prototype.isInputValid=function(){return this.K===null}; Wy.prototype.Mf=function(){return this.K}; Wy.prototype.nk=function(){return!1}; Wy.prototype.parse=function(O){this.K!==null&&sVh(this,O,"stream already broken");var V=null;try{var J=this.U;J.U||cbh(J,O,"stream already broken");J.K+=O;var y=Math.floor(J.K.length/4);if(y==0)var l=null;else{try{var m=ya7(J.K.slice(0,y*4))}catch(H){cbh(J,J.K,H.message)}J.j+=y*4;J.K=J.K.slice(y*4);l=m}V=l===null?null:this.D.parse(l)}catch(H){sVh(this,O,H.message)}this.j+=O.length;return V};g.T=Z0.prototype;g.T.isInputValid=function(){return this.W!=3}; g.T.Mf=function(){return this.qX}; g.T.done=function(){return this.W===2}; g.T.nk=function(){return!1}; g.T.parse=function(O){function V(){for(;U0;)if(z=O[U++],m.T===4?m.T=0:m.T++,!z)break a;if(z==='"'&&!m.S){m.K=y();break}if(z==="\\"&&!m.S&&(m.S=!0,z=O[U++], !z))break;if(m.S)if(m.S=!1,z==="u"&&(m.T=1),z=O[U++])continue;else break;F.lastIndex=U;z=F.exec(O);if(!z){U=O.length+1;break}U=z.index+1;z=O[z.index];if(!z)break}m.U+=U-c;continue;case 9:if(!z)continue;z==="r"?m.K=10:zz(m,O,U);continue;case 10:if(!z)continue;z==="u"?m.K=11:zz(m,O,U);continue;case 11:if(!z)continue;z==="e"?m.K=y():zz(m,O,U);continue;case 12:if(!z)continue;z==="a"?m.K=13:zz(m,O,U);continue;case 13:if(!z)continue;z==="l"?m.K=14:zz(m,O,U);continue;case 14:if(!z)continue;z==="s"?m.K=15: zz(m,O,U);continue;case 15:if(!z)continue;z==="e"?m.K=y():zz(m,O,U);continue;case 16:if(!z)continue;z==="u"?m.K=17:zz(m,O,U);continue;case 17:if(!z)continue;z==="l"?m.K=18:zz(m,O,U);continue;case 18:if(!z)continue;z==="l"?m.K=y():zz(m,O,U);continue;case 19:z==="."?m.K=20:zz(m,O,U);continue;case 20:if("0123456789.eE+-".indexOf(z)!==-1)continue;else U--,m.U--,m.K=y();continue;default:zz(m,O,U)}}} function y(){var z=H.pop();return z!=null?z:1} function l(z){m.j>1||(z||(z=W===-1?m.D+O.substring(x,U):O.substring(W,U)),m.KD?m.V.push(z):m.V.push(JSON.parse(z)),W=U)} for(var m=this,H=m.lw,F=m.fD,N=O.length,x=0,W=-1,U=0;U0?(Z=m.V,m.V=[],Z):null}return null};cy.prototype.isInputValid=function(){return this.W===null}; cy.prototype.Mf=function(){return this.W}; cy.prototype.nk=function(){return!1}; cy.prototype.parse=function(O){function V(N){m.j=6;m.W="The stream is broken @"+m.K+"/"+H+". Error: "+N+". With input:\n";throw Error(m.W);} function J(){m.U=new Z0({hbz:!0,Gu:!0})} function y(N){if(N)for(var x=0;x1)&&V("extra status: "+N);m.V=!0;var x={};x[2]=N[0];m.D.push(x)}} for(var m=this,H=0;H0?(O=m.D,m.D=[],O):null};s7.prototype.dT=function(){return this.K}; s7.prototype.getStatus=function(){return this.W}; s7.prototype.KD=function(O){O=O.target;try{if(O==this.K)a:{var V=g.tF(this.K),J=this.K.j,y=this.K.getStatus(),l=g.AF(this.K);O=[];if(g.r4(this.K)instanceof Array){var m=g.r4(this.K);m.length>0&&m[0]instanceof Uint8Array&&(this.qX=!0,O=m)}if(!(V<3||V==3&&!l&&O.length==0))if(y=y==200||y==206,V==4&&(J==8?Tz(this,7):J==7?Tz(this,8):y||Tz(this,3)),this.j||(this.j=T25(this.K),this.j==null&&Tz(this,5)),this.W>2)eL(this);else{if(O.length>this.U){var H=O.length;J=[];try{if(this.j.nk())for(var F=0;Fthis.U){F=l.slice(this.U);this.U=l.length;try{var x=this.j.parse(F);x!=null&&this.D&&this.D(x)}catch(W){Tz(this,5);eL(this);break a}}V==4?(l.length!= 0||this.qX?Tz(this,2):Tz(this,4),eL(this)):Tz(this,1)}}}catch(W){Tz(this,6),eL(this)}};g.T=ejo.prototype;g.T.I3=function(O,V){var J=this.j[O];J||(J=[],this.j[O]=J);J.push(V)}; g.T.addListener=function(O,V){this.I3(O,V);return this}; g.T.removeListener=function(O,V){var J=this.j[O];J&&g.um(J,V);(O=this.K[O])&&g.um(O,V);return this}; g.T.once=function(O,V){var J=this.K[O];J||(J=[],this.K[O]=J);J.push(V);return this}; g.T.LAE=function(O){var V=this.j.data;V&&IBl(O,V);(V=this.K.data)&&IBl(O,V);this.K.data=[]}; g.T.MjE=function(){switch(this.U.getStatus()){case 1:IZ(this,"readable");break;case 5:case 6:case 4:case 7:case 3:IZ(this,"error");break;case 8:IZ(this,"close");break;case 2:IZ(this,"end")}};Y6Y.prototype.serverStreaming=function(O,V,J,y){var l=this,m=O.substring(0,O.length-y.name.length);return vQp(function(H){var F=H.xz,N=H.getMetadata(),x=paH(l,!1);N=fBV(l,N,x,m+F.getName());var W=hjn(x,F.j,!0);H=F.K(H.g$);x.send(N,"POST",H);return W},this.wE).call(this,y.V(V,J))};wad.prototype.create=function(O,V,J){var y=this.K,l=this.j+"/$rpc/google.internal.waa.v1.Waa/Create";V=V||{};J=J===void 0?{}:J;return FKp(y,l,O,V,vYs,J)};var mR5,Z8U,MK7,KPo,DZp,vl5,SVU,EY1,dln,gYn,ahY,YU7,ePl,Ihd,m57,Qr1,Iq,xZ7,WbH,zqo,URh,Gr1,la,KdE,CO7,tVy,u1V,QxH,ArD,rrn,u5n,t0d,Ky5,inz,KXh,RHI,ghh,qj1,g$d,ypr;mR5=new Y6(45749396,!1);Z8U=new Y6(45751227,!1);MK7=new Y6(45751228,!1);KPo=new Y6(45745123,!1);DZp=new Y6(45742118,!1);vl5=new Y6(45742119,!1);SVU=new Y6(45754339,!1);EY1=new Y6(45739196,!1);dln=new Y6(45739198,!1);gYn=new Y6(45739197,!1); g.qoE=new function(O,V,J,y){this.Eg=O;this.FY=V;this.defaultValue=y;this.Gz="int"}(3,45750947,"drop_large_caption_max_bytes_per_second",$2("0")); ahY=new aZ(45746966,0);YU7=new aZ(45746967,0);ePl=new aZ(45737488,0);Ihd=new aZ(45737489,0);m57=new Y6(45751671,!1);Qr1=new Y6(45732791,!0);Iq=new Y6(45728572,!1);xZ7=new Y6(45737482,!1);WbH=new aZ(45741773,0);zqo=new Y6(45731083,!1);g.QpF=new Y6(45747967,!1);URh=new Y6(45728553,!1);Gr1=new Y6(45734191,!1);la=new Y6(45745610,!1);KdE=new Y6(45746773,!1);CO7=new Y6(45735523,!1);tVy=new aZ(45735428,4E3);u1V=new Y6(45748009,!1);QxH=new Y6(45752604,!1);ArD=new Y6(45755066,!1);rrn=new Y6(45735462,!1); u5n=new Y6(45751943,!1);t0d=new Y6(45751944,!1);Ky5=new Y6(45751945,!1);inz=new Y6(45727949,!1);KXh=new Y6(45752871,!1);RHI=new Y6(45747518,!1);ghh=new Y6(45728181,!1);qj1=new Y6(45746180,!1);g$d=new Y6(45740357,!1);ypr=new Y6(45732775,!1);g.B5C=new Y6(45734776,!1);var vjo=new aZ(45725542,0),wxh=new aZ(45739023,0),Lbo=new aZ(45743228,0),ojo=new aZ(45725543,0),pxl=new aZ(45725539,0),hkY=new aZ(45725541,0),fx1=new aZ(45725540,0),bAp=new aZ(45725538,0),Mvd=new aZ(45741339,0);var nQo="://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(" "),Xad=/\bocr\b/;var d$d=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.I(gQo,q1);g.I(q6X,q1);g.I(pZ,q1);pZ.prototype.getName=function(){return K_(this,1)}; pZ.prototype.getOptions=function(){return L_(this,q6X,3)}; pZ.prototype.clearOptions=function(){return WU(this,3)};g.I(fZ,q1);g.T=fZ.prototype;g.T.getName=function(){return K_(this,1)}; g.T.getOptions=function(){return L_(this,gQo,3)}; g.T.clearOptions=function(){return WU(this,3)}; g.T.hO=function(){return tt(this,6)}; g.T.PY=function(O){BU(this,6,O)};var Kzp=function(O){return function(V){V=JSON.parse(V);if(!Array.isArray(V))throw Error("Expected jspb data to be an array, got "+eF(V)+": "+V);kK(V,34);return new O(V)}}(fZ);var G7V=Symbol();var u3X=Symbol();Object.assign({},{attributes:{},handleError:function(O){throw O;}},{oJB:!0, GfB:!0,VVj:V65,gJN:V65,w1n:Jlp,L$i:!1,xxz:!1,yBz:!1,ebW:!1,kf5:!0,iGz:!1,JBD:!1,ICj:!1});var oZ=null,w7=!1,JBn=1,D$5=Symbol("SIGNAL"),Wc={version:0,xBj:0,GX:!1,producers:void 0,f0:void 0,iD:void 0,C3:void 0,SR:!1,n_:!1,P7:!1,kind:"unknown",Rk:function(){return!1}, Uv:function(){}, XN:function(){}, X1X:function(){}};var UP=Symbol("UNSET"),Zn=Symbol("COMPUTING"),zH=Symbol("ERRORED");Object.assign({},Wc,{value:UP,GX:!0,error:null,VJ:h_,kind:"computed",Rk:function(O){return O.value===UP||O.value===Zn}, Uv:function(O){if(O.value===Zn)throw Error("");var V=O.value;O.value=Zn;var J=RjV(O),y=!1;try{var l=O.p9();vy(null);y=V!==UP&&V!==zH&&l!==zH&&O.VJ(V,l)}catch(m){l=zH,O.error=m}finally{vy(J),O&&PDl(O)}y?O.value=V:(O.value=l,O.version++)}});Object.assign({},Wc,{P7:!0,n_:!0,GX:!0,kind:"effect"});var S6V=Object.assign({},Wc,{VJ:h_,value:void 0,kind:"signal"});Object.assign({},Wc,{value:UP,GX:!0,error:null,VJ:h_,kind:"linkedSignal",Rk:function(O){return O.value===UP||O.value===Zn}, Uv:function(O){if(O.value===Zn)throw Error("");var V=O.value;O.value=Zn;var J=RjV(O);try{var y=O.source();var l=O.p9(y,V===UP||V===zH?void 0:{source:O.THN,value:V});O.THN=y}catch(m){l=zH,O.error=m}finally{vy(J),O&&PDl(O)}V!==UP&&l!==zH&&O.VJ(V,l)?O.value=V:(O.value=l,O.version++)}});Object.assign({},Wc,{P7:!0,n_:!1,XN:function(O){O.schedule!==null&&O.schedule(O.WcW)}, Rrv:function(){}});g.I(Xy,g.xS);Xy.prototype.dispose=function(){window.removeEventListener("offline",this.U);window.removeEventListener("online",this.U);this.kP.pK(this.W);delete Xy.instance}; Xy.prototype.fE=function(){return this.K}; Xy.prototype.e7=function(){var O=this;this.W=this.kP.nf(function(){var V;return g.Q(function(J){if(J.j==1)return O.K?((V=window.navigator)==null?0:V.onLine)?J.uw(3):J.K(nZ(O),3):J.K(nZ(O),3);O.e7();J.V()})},3E4)};g.I(ll5,q1);var YE7=Rdr(ll5,[0,mx,VVz,GqH,mx,-2,GqH,gdn]);d7.prototype.set=function(O,V){V=V===void 0?!0:V;0<=O&&O<52&&Number.isInteger(O)&&this.data[O]!==V&&(this.data[O]=V,this.K=-1)}; d7.prototype.get=function(O){return!!this.data[O]};var qn;g.nd(g.KZ,g.K);g.T=g.KZ.prototype;g.T.start=function(){this.stop();this.D=!1;var O=$qV(this),V=Hq1(this);O&&!V&&this.j.mozRequestAnimationFrame?(this.K=g.mS(this.j,"MozBeforePaint",this.U),this.j.mozRequestAnimationFrame(null),this.D=!0):this.K=O&&V?O.call(this.j,this.U):this.j.setTimeout(Zun(this.U),20)}; g.T.stop=function(){if(this.isActive()){var O=$qV(this),V=Hq1(this);O&&!V&&this.j.mozRequestAnimationFrame?C3(this.K):O&&V?V.call(this.j,this.K):this.j.clearTimeout(this.K)}this.K=null}; g.T.isActive=function(){return this.K!=null}; g.T.pL=function(){this.D&&this.K&&C3(this.K);this.K=null;this.V.call(this.W,g.vn())}; g.T.U5=function(){this.stop();g.KZ.EE.U5.call(this)};g.nd(g.t_,g.K);g.T=g.t_.prototype;g.T.wl=0;g.T.U5=function(){g.t_.EE.U5.call(this);this.stop();delete this.K;delete this.j}; g.T.start=function(O){this.stop();this.wl=g.L3(this.U,O!==void 0?O:this.zM)}; g.T.stop=function(){this.isActive()&&g.Z1.clearTimeout(this.wl);this.wl=0}; g.T.isActive=function(){return this.wl!=0}; g.T.HP=function(){this.wl=0;this.K&&this.K.call(this.j)};g.I(g.iL,g.K);g.T=g.iL.prototype;g.T.F1=function(O){this.U=arguments;this.PB||this.j?this.K=!0:RZ(this)}; g.T.stop=function(){this.PB&&(g.Z1.clearTimeout(this.PB),this.PB=null,this.K=!1,this.U=null)}; g.T.pause=function(){this.j++}; g.T.resume=function(){this.j--;this.j||!this.K||this.PB||(this.K=!1,RZ(this))}; g.T.U5=function(){g.K.prototype.U5.call(this);this.stop()};g.By.prototype[Symbol.iterator]=function(){return this}; g.By.prototype.next=function(){var O=this.K.next();return{value:O.done?void 0:this.j.call(void 0,O.value),done:O.done}};g.nd(g.lk,g.xS);g.T=g.lk.prototype;g.T.isPlaying=function(){return this.K==1}; g.T.isPaused=function(){return this.K==-1}; g.T.G5=function(){this.BH("begin")}; g.T.Ns=function(){this.BH("end")}; g.T.onFinish=function(){this.BH("finish")}; g.T.onStop=function(){this.BH("stop")}; g.T.BH=function(O){this.dispatchEvent(O)};var PXz=Qx(function(){var O=g.I1("DIV"),V=g.z5?"-webkit":ka?"-moz":null,J="transition:opacity 1s linear;";V&&(J+=V+"-transition:opacity 1s linear;");V=lZr({style:J});if(O.nodeType===1&&/^(script|style)$/i.test(O.tagName))throw Error("");O.innerHTML=bw(V);return g.Sg(O.firstChild,"transition")!=""});g.nd(mr,g.lk);g.T=mr.prototype;g.T.play=function(){if(this.isPlaying())return!1;this.G5();this.BH("play");this.startTime=g.vn();this.K=1;if(PXz())return g.Pp(this.j,this.V),this.U=g.L3(this.g3B,void 0,this),!0;this.gF(!1);return!1}; g.T.g3B=function(){g.jR(this.j);FU7(this.j,this.S);g.Pp(this.j,this.D);this.U=g.L3((0,g.hI)(this.gF,this,!1),this.W*1E3)}; g.T.stop=function(){this.isPlaying()&&this.gF(!0)}; g.T.gF=function(O){g.Pp(this.j,"transition","");g.Z1.clearTimeout(this.U);g.Pp(this.j,this.D);this.endTime=g.vn();this.K=0;if(O)this.onStop();else this.onFinish();this.Ns()}; g.T.U5=function(){this.stop();mr.EE.U5.call(this)}; g.T.pause=function(){};var xqr={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};$F("Element","attributes")||$F("Node","attributes");$F("Element","innerHTML")||$F("HTMLElement","innerHTML");$F("Node","nodeName");$F("Node","nodeType");$F("Node","parentNode");$F("Node","childNodes");$F("HTMLElement","style")||$F("Element","style");$F("HTMLStyleElement","sheet");var s_Y=Uqr("getPropertyValue"),Tqh=Uqr("setProperty");$F("Element","namespaceURI")||$F("Node","namespaceURI");var cBl={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var alX,Afd,YWp,Il7,bqV;alX=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]");Afd=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.krn=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.jr=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]");YWp=/^http:\/\/.*/;g.SoC=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Il7=/\s+/;bqV=/[\d\u06f0-\u06f9]/;FK.prototype.LB=function(){return new N2(this.j())}; FK.prototype[Symbol.iterator]=function(){return new xF(this.j())}; FK.prototype.K=function(){return new xF(this.j())}; g.I(N2,g.h6);N2.prototype.next=function(){return this.j.next()}; N2.prototype[Symbol.iterator]=function(){return new xF(this.j)}; N2.prototype.K=function(){return new xF(this.j)}; g.I(xF,FK);xF.prototype.next=function(){return this.U.next()};Ug.prototype.clone=function(){return new Ug(this.K,this.S,this.U,this.W,this.D,this.V,this.j,this.T)}; Ug.prototype.equals=function(O){return this.K==O.K&&this.S==O.S&&this.U==O.U&&this.W==O.W&&this.D==O.D&&this.V==O.V&&this.j==O.j&&this.T==O.T};zh.prototype.clone=function(){return new zh(this.start,this.end)};(function(){if(kV1){var O=/Windows NT ([0-9.]+)/;return(O=O.exec(g.Pt()))?O[1]:"0"}return wn?(O=/1[0|1][_.][0-9_.]+/,(O=O.exec(g.Pt()))?O[0].replace(/_/g,"."):"10"):g.Pv?(O=/Android\s+([^\);]+)(\)|;)/,(O=O.exec(g.Pt()))?O[1]:""):mKH||$KY||HSp?(O=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(O=O.exec(g.Pt()))?O[1].replace(/_/g,"."):""):""})();var hLh=function(){if(g.eU)return cM(/Firefox\/([0-9.]+)/);if(g.HM||g.d9||g.r$)return kDl;if(g.l$){if(Aa()||rO()){var O=cM(/CriOS\/([0-9.]+)/);if(O)return O}return cM(/Chrome\/([0-9.]+)/)}if(g.CH&&!Aa())return cM(/Version\/([0-9.]+)/);if(iM||RN){if(O=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Pt()))return O[1]+"."+O[2]}else if(g.i8)return(O=cM(/Android\s+([0-9.]+)/))?O:cM(/Version\/([0-9.]+)/);return""}();g.nd(g.Th,g.K);g.T=g.Th.prototype;g.T.subscribe=function(O,V,J){var y=this.j[O];y||(y=this.j[O]=[]);var l=this.V;this.K[l]=O;this.K[l+1]=V;this.K[l+2]=J;this.V=l+3;y.push(l);return l}; g.T.unsubscribe=function(O,V,J){if(O=this.j[O]){var y=this.K;if(O=O.find(function(l){return y[l+1]==V&&y[l+2]==J}))return this.nE(O)}return!1}; g.T.nE=function(O){var V=this.K[O];if(V){var J=this.j[V];this.D!=0?(this.U.push(O),this.K[O+1]=function(){}):(J&&g.um(J,O),delete this.K[O],delete this.K[O+1],delete this.K[O+2])}return!!V}; g.T.publish=function(O,V){var J=this.j[O];if(J){var y=Array(arguments.length-1),l=arguments.length,m;for(m=1;m0&&this.D==0)for(;J=this.U.pop();)this.nE(J)}}return m!=0}return!1}; g.T.clear=function(O){if(O){var V=this.j[O];V&&(V.forEach(this.nE,this),delete this.j[O])}else this.K.length=0,this.j={}}; g.T.U5=function(){g.Th.EE.U5.call(this);this.clear();this.U.length=0};g.er.prototype.set=function(O,V){V===void 0?this.ra.remove(O):this.ra.set(O,g.d4(V))}; g.er.prototype.get=function(O){try{var V=this.ra.get(O)}catch(J){return}if(V!==null)try{return JSON.parse(V)}catch(J){throw"Storage: Invalid value was encountered";}}; g.er.prototype.remove=function(O){this.ra.remove(O)};g.nd(If,g.er);If.prototype.set=function(O,V){If.EE.set.call(this,O,wGU(V))}; If.prototype.zm=function(O){O=If.EE.get.call(this,O);if(O===void 0||O instanceof Object)return O;throw"Storage: Invalid value was encountered";}; If.prototype.get=function(O){if(O=this.zm(O)){if(O=O.data,O===void 0)throw"Storage: Invalid value was encountered";}else O=void 0;return O};g.nd(YF,If);YF.prototype.set=function(O,V,J){if(V=wGU(V)){if(J){if(J=J.length)return g.jc;var l=J.key(V++);if(O)return g.oh(l);l=J.getItem(l);if(typeof l!=="string")throw"Storage mechanism: Invalid value was encountered";return g.oh(l)}; return y}; g.T.clear=function(){fv(this);this.K.clear()}; g.T.key=function(O){fv(this);return this.K.key(O)};g.nd(hn,pv);g.nd(n9o,pv);g.nd(of,bk);of.prototype.set=function(O,V){this.j.set(this.K+O,V)}; of.prototype.get=function(O){return this.j.get(this.K+O)}; of.prototype.remove=function(O){this.j.remove(this.K+O)}; of.prototype.LB=function(O){var V=this.j[Symbol.iterator](),J=this,y=new g.h6;y.next=function(){var l=V.next();if(l.done)return l;for(l=l.value;l.slice(0,J.K.length)!=J.K;){l=V.next();if(l.done)return l;l=l.value}return g.oh(O?l.slice(J.K.length):J.j.get(l))}; return y};wC.prototype.getValue=function(){return this.j}; wC.prototype.clone=function(){return new wC(this.K,this.j)};g.T=M2.prototype;g.T.gH=function(O,V){var J=this.K;J.push(new wC(O,V));O=J.length-1;V=this.K;for(J=V[O];O>0;){var y=O-1>>1;if(V[y].K>J.K)V[O]=V[y],O=y;else break}V[O]=J}; g.T.remove=function(){var O=this.K,V=O.length,J=O[0];if(!(V<=0)){if(V==1)O.length=0;else{O[0]=O.pop();O=0;V=this.K;for(var y=V.length,l=V[O];O>1;){var m=O*2+1,H=O*2+2;m=Hl.K)break;V[O]=V[m];O=m}V[O]=l}return J.getValue()}}; g.T.JR=function(){for(var O=this.K,V=[],J=O.length,y=0;y>>16&65535|0;for(var m;J!==0;){m=J>2E3?2E3:J;J-=m;do l=l+V[y++]|0,O=O+l|0;while(--m);l%=65521;O%=65521}return l|O<<16|0};for(var Hw={},cc,yIV=[],sP=0;sP<256;sP++){cc=sP;for(var l1E=0;l1E<8;l1E++)cc=cc&1?3988292384^cc>>>1:cc>>>1;yIV[sP]=cc}Hw=function(O,V,J,y){J=y+J;for(O^=-1;y>>8^yIV[(O^V[y])&255];return O^-1};var kF={};kF={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 uk=[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],ik=[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],mUo=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],RLn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],VW=Array(576);Eg(VW);var Js=Array(60);Eg(Js);var rC=Array(512);Eg(rC);var tn=Array(256);Eg(tn);var An=Array(29);Eg(An);var Rf=Array(30);Eg(Rf);var JFh,yFh,lWn,VTp=!1;var xC;xC=[new N4(0,0,0,0,function(O,V){var J=65535;for(J>O.mB-5&&(J=O.mB-5);;){if(O.Jx<=1){jB(O);if(O.Jx===0&&V===0)return 1;if(O.Jx===0)break}O.OR+=O.Jx;O.Jx=0;var y=O.Ze+J;if(O.OR===0||O.OR>=y)if(O.Jx=O.OR-y,O.OR=y,yW(O,!1),O.cf.Ye===0)return 1;if(O.OR-O.Ze>=O.d0-262&&(yW(O,!1),O.cf.Ye===0))return 1}O.gH=0;if(V===4)return yW(O,!0),O.cf.Ye===0?3:4;O.OR>O.Ze&&yW(O,!1);return 1}), new N4(4,4,8,4,CV),new N4(4,5,16,8,CV),new N4(4,6,32,32,CV),new N4(4,4,16,16,Fv),new N4(8,16,32,32,Fv),new N4(8,16,128,128,Fv),new N4(8,32,128,256,Fv),new N4(32,128,258,1024,Fv),new N4(32,258,258,4096,Fv)];var O3H={};O3H=function(){this.input=null;this.rA=this.iM=this.ij=0;this.output=null;this.vW=this.Ye=this.H_=0;this.msg="";this.state=null;this.qV=2;this.uO=0};var $UH=Object.prototype.toString; Ww.prototype.push=function(O,V){var J=this.cf,y=this.options.chunkSize;if(this.ended)return!1;var l=V===~~V?V:V===!0?4:0;typeof O==="string"?J.input=dqn(O):$UH.call(O)==="[object ArrayBuffer]"?J.input=new Uint8Array(O):J.input=O;J.ij=0;J.iM=J.input.length;do{J.Ye===0&&(J.output=new XK.VS(y),J.H_=0,J.Ye=y);O=Dqp(J,l);if(O!==1&&O!==0)return this.Ns(O),this.ended=!0,!1;if(J.Ye===0||J.iM===0&&(l===4||l===2))if(this.options.to==="string"){var m=XK.El(J.output,J.H_);V=m;m=m.length;if(m<65537&&(V.subarray&& JID||!V.subarray))V=String.fromCharCode.apply(null,XK.El(V,m));else{for(var H="",F=0;F0||J.Ye===0)&&O!==1);if(l===4)return(J=this.cf)&&J.state?(y=J.state.status,y!==42&&y!==69&&y!==73&&y!==91&&y!==103&&y!==113&&y!==666?O=Sr(J,-2):(J.state=null,O=y===113?Sr(J,-3):0)):O=-2,this.Ns(O),this.ended=!0,O===0;l===2&&(this.Ns(0),J.Ye=0);return!0}; Ww.prototype.Ns=function(O){O===0&&(this.result=this.options.to==="string"?this.chunks.join(""):XK.pH(this.chunks));this.chunks=[];this.err=O;this.msg=this.cf.msg};var T2="@@redux/INIT"+sn(),xU7="@@redux/REPLACE"+sn();var WSp=typeof Symbol==="function"&&Symbol.observable||"@@observable";var mWs=[0,kqH,-3,lr];g.I(cFh,q1);var kA5=Rdr(cFh,[0,mx,Svh,OP,kqH,OP,-1,lr,kqH,lr,-1,mx,lr,Svh,VE,mWs,OP,-1,lr]);var Yop=2137575370;var $W1=function(O,V){return function(){var J=new A8V(O,V,h4);return function(){return J}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var XCd=new g.YC("adInfoDialogEndpoint");var S8l=new g.YC("adPingingEndpoint");var bJ7=new g.YC("crossDeviceProgressCommand");var N3=new g.YC("actionCompanionAdRenderer");var u3=new g.YC("adActionInterstitialRenderer");var Hdm=new g.YC("adDurationRemainingRenderer");var Gw=new g.YC("adHoverTextButtonRenderer");var L2H=new g.YC("adInfoDialogRenderer");var Tj=new g.YC("adMessageRenderer");var K6=new g.YC("adPreviewRenderer");var W3=new g.YC("adsEngagementPanelRenderer");var vzX=new g.YC("dismissablePanelTextPortraitImageRenderer");var M3=new g.YC("adsEngagementPanelSectionListViewModel");var jzn=new g.YC("flyoutCtaRenderer");var xT=new g.YC("imageCompanionAdRenderer");var KE=new g.YC("instreamAdPlayerOverlayRenderer");var FuH=new g.YC("instreamSurveyAdBackgroundImageRenderer");var QQ=new g.YC("instreamSurveyAdPlayerOverlayRenderer");var p6=new g.YC("instreamSurveyAdRenderer"),q3=new g.YC("instreamSurveyAdSingleSelectQuestionRenderer"),gh=new g.YC("instreamSurveyAdMultiSelectQuestionRenderer"),TH=new g.YC("instreamSurveyAdAnswerRenderer"),CmW=new g.YC("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var aM=new g.YC("instreamVideoAdRenderer");var FCW=new g.YC("textOverlayAdContentRenderer"),NV1=new g.YC("enhancedTextOverlayAdContentRenderer"),xWW=new g.YC("imageOverlayAdContentRenderer");var tY=new g.YC("playerOverlayLayoutRenderer");var AY=new g.YC("videoInterstitialButtonedCenteredLayoutRenderer");var X7d=new g.YC("aboveFeedAdLayoutRenderer");var Ezr=new g.YC("belowPlayerAdLayoutRenderer");var nzr=new g.YC("inPlayerAdLayoutRenderer");var dF7=new g.YC("inPlayerOrganicOverlayAdLayoutRenderer");var oM=new g.YC("playerBytesAdLayoutRenderer");var El=new g.YC("playerBytesSequenceItemAdLayoutRenderer");var XG=new g.YC("playerUnderlayAdLayoutRenderer");var bf=new g.YC("adIntroRenderer");var ex=new g.YC("playerBytesSequentialLayoutRenderer");var zX1=new g.YC("slidingTextPlayerOverlayRenderer");var f6=new g.YC("surveyTextInterstitialRenderer");var v3=new g.YC("videoAdTrackingRenderer");var p7Y=new g.YC("videoInterstitialCenteredLayoutViewModel");var WC1=new g.YC("simpleAdBadgeRenderer");var zC=new g.YC("skipAdRenderer"),UWz=new g.YC("skipButtonRenderer");var dh=new g.YC("adSlotRenderer");var L6=new g.YC("squeezebackPlayerSidePanelRenderer");var ZdV=new g.YC("timedPieCountdownRenderer");var KP=new g.YC("adAvatarViewModel");var tW=new g.YC("adBadgeViewModel");var uS=new g.YC("adButtonViewModel");var zy1=new g.YC("adDetailsLineViewModel");var cIs=new g.YC("adDisclosureBannerViewModel");var szC=new g.YC("adPodIndexViewModel");var TVz=new g.YC("imageBackgroundViewModel");var eys=new g.YC("adGridCardCollectionViewModel");var I1I=new g.YC("adGridCardTextViewModel");var YzW=new g.YC("adPreviewViewModel");var a1F=new g.YC("playerAdAvatarLockupCardButtonedViewModel");var bds=new g.YC("skipAdButtonViewModel");var pnm=new g.YC("skipAdViewModel");var f1C=new g.YC("timedPieCountdownViewModel");var hyI=new g.YC("visitAdvertiserLinkViewModel");var Ul=new g.YC("bannerImageLayoutViewModel");var Zp=new g.YC("topBannerImageTextIconButtonedLayoutViewModel");var zw=new g.YC("adsEngagementPanelLayoutViewModel");var n6=new g.YC("displayUnderlayTextGridCardsLayoutViewModel");g.ib=new g.YC("browseEndpoint");var oEI=new g.YC("confirmDialogEndpoint");var X9V=new g.YC("commandContext");var iVY=new g.YC("rawColdConfigGroup");var rso=new g.YC("rawHotConfigGroup");g.l1=new g.YC("commandExecutorCommand");g.I(s85,q1);var Z67={sNE:0,Dsz:1,oMj:32,Lon:61,CYv:67,cUL:103,yUL:86,icW:42,kk5:60,Woj:62,weB:73,VMw:76,ItX:88,Qb5:90,EMK:99,rUw:98,SIE:100,gMw:102,nM5:41,PYB:69,ZcW:70,bcn:71,LC5:2,xPi:27,ANDROID:3,Icv:54,QzN:14,MGn:91,SCB:55,CMw:24,Eni:20,nnN:18,ZwL:21,bwl:104,T0B:30,acl:29,tGD:28,ltL:101,szn:34,N0n:36,PMz:38,IOS:5,FBB:15,y$z:92,iPn:40,kdB:25,GdE:17,VKW:19,gyN:64,wHl:66,LBB:26,IoL:22,QpB:33,SbN:68,C3W:35,xcL:53,c$D:37,oyj:39,CWv:7,EQK:57,nQ5:43,Z4w:59,PWN:93,zNL:74,b4D:75,H4D:85,Yuj:65,NMB:80,TMl:8,QNl:10, zq5:58,JpB:63,Mvn:72,J4W:23,MMW:11,N5l:13,y_W:12,Suw:16,Fow:56,xsj:31,GgK:77,HB5:84,GkX:87,M85:89,Ykn:94,DPN:95};g.I(a4,q1);a4.prototype.wy=function(){return K_(this,3)}; a4.prototype.CS=function(){return K_(this,5)}; a4.prototype.U1=function(O){return is(this,5,O)};g.I(bi,q1);g.I(T4Y,q1);g.I(pV,q1);g.T=pV.prototype;g.T.getDeviceId=function(){return K_(this,6)}; g.T.nY=function(O){var V=sf(this,9,pK,3,!0);VD(V,O);return V[O]}; g.T.getPlayerType=function(){return tt(this,36)}; g.T.setHomeGroupInfo=function(O){return Ef(this,T4Y,81,O)}; g.T.clearLocationPlayabilityToken=function(){return WU(this,89)};g.I(fV,q1);fV.prototype.getValue=function(){return K_(this,vU(this,uvH,2))}; var uvH=[2,3,4,5,6];g.I(hs,q1);hs.prototype.setTrackingParams=function(O){return WU(this,1,Za5(O,!1))};g.I(o4,q1);g.I(vw,q1);vw.prototype.nY=function(O){var V=sf(this,5,fK,3,!0);VD(V,O);return V[O]};g.I(wG,q1);wG.prototype.getToken=function(){return At(this,2)}; wG.prototype.setToken=function(O){return is(this,2,O)};g.I(M4,q1);M4.prototype.setSafetyMode=function(O){return BU(this,5,O)};g.I(LV,q1);LV.prototype.Ya=function(O){return Ef(this,pV,1,O)};var uf=new g.YC("thumbnailLandscapePortraitRenderer");g.vEz=new g.YC("changeEngagementPanelVisibilityAction");var FNX=new g.YC("continuationCommand");var wnE=new g.YC("openPopupAction");g.KT=new g.YC("signalAction");g.ec=new g.YC("webCommandMetadata");var cJh=new g.YC("metadataBadgeRenderer");var CH1=new g.YC("signalServiceEndpoint");var ae=new g.YC("innertubeCommand");var rGY=new g.YC("loggingDirectives");var JXd={upi:"EMBEDDED_PLAYER_MODE_UNKNOWN",v1n:"EMBEDDED_PLAYER_MODE_DEFAULT",XsX:"EMBEDDED_PLAYER_MODE_PFP",Wyz:"EMBEDDED_PLAYER_MODE_PFL"};var i9X=new g.YC("channelThumbnailEndpoint");var rJr=new g.YC("embeddedPlayerErrorMessageRenderer");var K61=new g.YC("embeddedPlayerOverlayVideoDetailsRenderer"),RbX=new g.YC("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),BXn=new g.YC("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var UPh=new g.YC("embedsInfoPanelRenderer");var eVV=new g.YC("feedbackEndpoint");var MFm=new g.YC("youtubeIconSource");var LCz=new g.YC("callToActionButtonViewModel");var nEz=new g.YC("interactionLoggingCommandMetadata");var kzr={AUi:"WEB_DISPLAY_MODE_UNKNOWN",Xez:"WEB_DISPLAY_MODE_BROWSER",dsz:"WEB_DISPLAY_MODE_MINIMAL_UI",OcL:"WEB_DISPLAY_MODE_STANDALONE",udE:"WEB_DISPLAY_MODE_FULLSCREEN"};g.I(nV,q1);nV.prototype.getPlayerType=function(){return tt(this,7)}; nV.prototype.Ai=function(){return K_(this,19)}; nV.prototype.setVideoId=function(O){return is(this,19,O)};g.I(Xv,q1);g.I(En,q1);g.I(dG,q1); var Xnz=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539,541];var EEn=new g.YC("loggingContext");g.I(gG,q1);g.I(q4,q1);q4.prototype.Ai=function(){return At(this,vU(this,i9,1))}; q4.prototype.setVideoId=function(O){return ht(this,1,i9,KK(O))}; q4.prototype.getPlaylistId=function(){return At(this,vU(this,i9,2))}; var i9=[1,2];g.I(g.QW,q1);g.QW.prototype.MJ=d5(0);var dWy=new g.YC("dismissPlayerOverlayCommand");var YZ=new g.YC("changeKeyedMarkersVisibilityCommand");var gEz=new g.YC("changeMarkersVisibilityCommand");var TXH=new g.YC("loadMarkersCommand");var qzz=new g.YC("suggestedActionDataViewModel");var GWr=new g.YC("timelyActionViewModel");var Qgl=new g.YC("timelyActionsOverlayViewModel");var Ujo=new g.YC("productListItemRenderer");var Qz1=new g.YC("shoppingOverlayRenderer");var tlU=new g.YC("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var GDD=new g.YC("adFeedbackEndpoint");var KC1=new g.YC("menuEndpoint");var ssp=new g.YC("phoneDialerEndpoint");var zVl=new g.YC("sendSmsEndpoint");var GIp=new g.YC("copyTextEndpoint");var tFm=new g.YC("shareEndpoint"),uzm=new g.YC("shareEntityEndpoint"),AIy=new g.YC("shareEntityServiceEndpoint"),rI1=new g.YC("webPlayerShareEntityServiceEndpoint");g.fI=new g.YC("urlEndpoint");g.eW=new g.YC("watchEndpoint");var idd=new g.YC("watchPlaylistEndpoint");var sRV=new g.YC("compositeVideoOverlayRenderer");var RyI=new g.YC("miniplayerRenderer");var gHn=new g.YC("paidContentOverlayRenderer");var s6Y=new g.YC("playerMutedAutoplayOverlayRenderer"),Tjp=new g.YC("playerMutedAutoplayEndScreenRenderer");var xs1=new g.YC("unserializedPlayerResponse"),v8h=new g.YC("unserializedPlayerResponse");var BVF=new g.YC("playlistEditEndpoint");var tE=new g.YC("buttonRenderer"),I7=new g.YC("toggleButtonRenderer");var h6X=new g.YC("counterfactualRenderer");var PmF=new g.YC("resolveUrlCommandMetadata");var kDW=new g.YC("modifyChannelNotificationPreferenceEndpoint");var kS7=new g.YC("pingingEndpoint");var Szy=new g.YC("unsubscribeEndpoint");g.RT=new g.YC("subscribeButtonRenderer");var DWD=new g.YC("subscribeEndpoint");var hfp=new g.YC("buttonViewModel");var ozH=new g.YC("qrCodeRenderer");var cE5={pvX:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Bk5:"LIVING_ROOM_APP_MODE_MAIN",spB:"LIVING_ROOM_APP_MODE_KIDS",h$n:"LIVING_ROOM_APP_MODE_MUSIC",e$w:"LIVING_ROOM_APP_MODE_UNPLUGGED",tKK:"LIVING_ROOM_APP_MODE_GAMING"};var NX1=new g.YC("autoplaySwitchButtonRenderer");var BJ,NB1,E8r,Yhl;BJ=new g.YC("decoratedPlayerBarRenderer");NB1=new g.YC("chapteredPlayerBarRenderer");E8r=new g.YC("multiMarkersPlayerBarRenderer");Yhl=new g.YC("chapterRenderer");g.ZP7=new g.YC("markerRenderer");var hOn=new g.YC("decoratedPlayheadRenderer");var Z9d=new g.YC("desktopOverlayConfigRenderer");var w75=new g.YC("engagementPanelSectionListRenderer");var W6n=new g.YC("gatedActionsOverlayViewModel");var TBX=new g.YC("heatMarkerRenderer");var sJ1=new g.YC("heatmapRenderer");var si5=new g.YC("watchToWatchTransitionRenderer");var uLY=new g.YC("playlistPanelRenderer");var OuV=new g.YC("productUpsellSuggestedActionViewModel");var Vwy=new g.YC("suggestedActionTimeRangeTrigger"),J0z=new g.YC("suggestedActionsRenderer"),y0z=new g.YC("suggestedActionRenderer");var eO5=new g.YC("timedMarkerDecorationRenderer");var Onn=new g.YC("cipher");var W85=new g.YC("playerVars");var wYh=new g.YC("playerVars");var YM=g.Z1.window,lZI,mkz,G2=(YM==null?void 0:(lZI=YM.yt)==null?void 0:lZI.config_)||(YM==null?void 0:(mkz=YM.ytcfg)==null?void 0:mkz.data_)||{};g.zD("yt.config_",G2);var As=[];var vSn=/^[\w.]*$/,pu7={q:!0,search_query:!0},b3H=String(Bw);var lM=new function(){var O=window.document;this.K=window;this.j=O}; g.zD("yt.ads_.signals_.getAdSignalsString",function(O){return Pw($g(O))});g.vn();var MTX="XMLHttpRequest"in g.Z1?function(){return new XMLHttpRequest}:null;var $kD="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.q($kD);var ES7={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"},i3h="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.q($kD)),tTo=!1,Q8X=T8;g.I(Yg,Xz);pW.prototype.then=function(O,V,J){return this.K?this.K.then(O,V,J):this.U===1&&O?(O=O.call(J,this.j))&&typeof O.then==="function"?O:hy(O):this.U===2&&V?(O=V.call(J,this.j))&&typeof O.then==="function"?O:fW(O):this}; pW.prototype.getValue=function(){return this.j}; pW.prototype.$goog_Thenable=!0;var oN=!1;var EN=iM||RN;var OM7=/^([0-9\.]+):([0-9\.]+)$/;g.I(Cz,Xz);Cz.prototype.name="BiscottiError";g.I(jd,Xz);jd.prototype.name="BiscottiMissingError";var lNX={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},FQ=null;var wnY=g.iX(["data-"]),Wao={};var HuD=0,Nv=g.z5?"webkit":ka?"moz":g.HM?"ms":g.r$?"o":"",jdm=g.cn("ytDomDomGetNextId")||function(){return++HuD}; g.zD("ytDomDomGetNextId",jdm);var cXp={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};cC.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; cC.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; cC.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var s$=g.Z1.ytEventsEventsListeners||{};g.zD("ytEventsEventsListeners",s$);var e1p=g.Z1.ytEventsEventsCounter||{count:0};g.zD("ytEventsEventsCounter",e1p);var bM5=Qx(function(){var O=!1;try{var V=Object.defineProperty({},"passive",{get:function(){O=!0}}); window.addEventListener("test",null,V)}catch(J){}return O}),INd=Qx(function(){var O=!1; try{var V=Object.defineProperty({},"capture",{get:function(){O=!0}}); window.addEventListener("test",null,V)}catch(J){}return O});var a7;a7=window;g.cH=a7.ytcsi&&a7.ytcsi.now?a7.ytcsi.now:a7.performance&&a7.performance.timing&&a7.performance.now&&a7.performance.timing.navigationStart?function(){return a7.performance.timing.navigationStart+a7.performance.now()}:function(){return(new Date).getTime()};g.nd(aH,g.K);aH.prototype.qX=function(O){O.K===void 0&&s5V(O);var V=O.K;O.j===void 0&&s5V(O);this.K=new g.S1(V,O.j)}; aH.prototype.Qm=function(){return this.K||new g.S1}; aH.prototype.KD=function(){if(this.K){var O=(0,g.cH)();if(this.D!=0){var V=this.V,J=this.K,y=V.x-J.x;V=V.y-J.y;y=Math.sqrt(y*y+V*V)/(O-this.D);this.j[this.U]=Math.abs((y-this.W)/this.W)>.5?1:0;for(J=V=0;J<4;J++)V+=this.j[J]||0;V>=3&&this.S();this.W=y}this.D=O;this.V=this.K;this.U=(this.U+1)%4}}; aH.prototype.U5=function(){g.xg(this.T);g.ed(this.lw)};g.I(bj,g.K);bj.prototype.Z=function(O,V,J,y,l){J=g.ii((0,g.hI)(J,y||this.UR));J={target:O,name:V,callback:J};var m;l&&bM5()&&(m={passive:!0});O.addEventListener(V,J.callback,m);this.V.push(J);return J}; bj.prototype.oX=function(O){for(var V=0;V=u.Yy)||b.K.version>=G||b.K.objectStoreNames.contains(X)||w.push(X)}N=w;if(N.length===0){Y.uw(5);break}x=Object.keys(J.options.YM);W=F.objectStoreNames(); if(J.WJ.options.version+1)throw Z.close(),J.U=!1,N7d(J,z);return Y.return(Z);case 8:throw V(),U instanceof Error&&!g.Ut("ytidb_async_stack_killswitch")&& (U.stack=U.stack+"\n"+H.substring(H.indexOf("\n")+1)),Fh(U,J.name,"",(c=J.options.version)!=null?c:-1);}})} function V(){J.K===y&&(J.K=void 0)} var J=this;if(!this.U)throw N7d(this);if(this.K)return this.K;var y,l={blocking:function(m){m.close()}, closed:V,lKW:V,upgrade:this.options.upgrade};return this.K=y=O()};var nH=new MV("YtIdbMeta",{YM:{databases:{Yy:1}},upgrade:function(O,V){V(1)&&g.eA(O,"databases",{keyPath:"actualName"})}});var qV,g9=new function(){}(new function(){});new g.HP;g.I(KH,MV);KH.prototype.j=function(O,V,J){J=J===void 0?{}:J;return(this.options.shared?eGX:T7r)(O,V,Object.assign({},J))}; KH.prototype.delete=function(O){O=O===void 0?{}:O;return(this.options.shared?bZo:I0V)(this.name,O)};var c0D={},f0H=g.tD("ytGcfConfig",{YM:(c0D.coldConfigStore={Yy:1},c0D.hotConfigStore={Yy:1},c0D),shared:!1,upgrade:function(O,V){V(1)&&(g.bH(g.eA(O,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.bH(g.eA(O,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.I(Rj,g.K);Rj.prototype.U5=function(){for(var O=g.n(this.j),V=O.next();!V.done;V=O.next()){var J=this.K;V=J.indexOf(V.value);V>=0&&J.splice(V,1)}this.j.length=0;g.K.prototype.U5.call(this)};O8.prototype.U1=function(O){this.hotHashData=O;g.zD("yt.gcf.config.hotHashData",this.hotHashData||null)};var sdI=typeof TextEncoder!=="undefined"?new TextEncoder:null,U2l=sdI?function(O){return sdI.encode(O)}:function(O){O=g.LD(O); for(var V=new Uint8Array(O.length),J=0;J=V?!1:!0}; g.T.PJ=function(){var O=this;if(!YR(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.wH.VH("QUEUED",this.cn).then(function(V){V&&!O.Sl(V,O.uS)?O.kP.nf(function(){return g.Q(function(J){if(J.j==1)return V.id===void 0?J.uw(2):J.K(O.wH.h5(V.id,O.cn),2);O.PJ();J.V()})}):O.Ds.fE()&&O.M4()})};var pO;var k2o={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71, visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336, appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358, webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376, parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394, prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418, sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501, parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297, biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456, youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486, crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511, embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540,keyValueStoreStatsEvent:541,deviceLocationPermissionEvent:542,remoteControlStarted:543,remoteControlCompleted:544};var eYW={},LrU=g.tD("ServiceWorkerLogsDatabase",{YM:(eYW.SWHealthLog={Yy:1},eYW),shared:!0,upgrade:function(O,V){V(1)&&g.bH(g.eA(O,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var oF={},qgo=0;var vk;Mc.prototype.requestComplete=function(O,V){V&&(this.j=!0);O=this.removeParams(O);this.K.get(O)||this.K.set(O,V)}; Mc.prototype.isEndpointCFR=function(O){O=this.removeParams(O);return(O=this.K.get(O))?!1:O===!1&&this.j?!0:null}; Mc.prototype.removeParams=function(O){return O.split("?")[0]}; Mc.prototype.removeParams=Mc.prototype.removeParams;Mc.prototype.isEndpointCFR=Mc.prototype.isEndpointCFR;Mc.prototype.requestComplete=Mc.prototype.requestComplete;Mc.getInstance=Krr;g.I(LO,g.xS);g.T=LO.prototype;g.T.fE=function(){return this.K.fE()}; g.T.Au=function(O){this.K.K=O}; g.T.KnD=function(){var O=window.navigator.onLine;return O===void 0?!0:O}; g.T.n9=function(){this.j=!0}; g.T.listen=function(O,V){return this.K.listen(O,V)}; g.T.To=function(O){return nZ(this.K,O)}; LO.prototype.sendNetworkCheckRequest=LO.prototype.To;LO.prototype.listen=LO.prototype.listen;LO.prototype.enableErrorFlushing=LO.prototype.n9;LO.prototype.getWindowStatus=LO.prototype.KnD;LO.prototype.networkStatusHint=LO.prototype.Au;LO.prototype.isNetworkAvailable=LO.prototype.fE;LO.getInstance=trp;g.I(g.nO,g.xS);g.nO.prototype.fE=function(){var O=g.cn("yt.networkStatusManager.instance.isNetworkAvailable");return O?O.bind(this.j)():!0}; g.nO.prototype.Au=function(O){var V=g.cn("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);V&&V(O)}; g.nO.prototype.To=function(O){var V=this,J;return g.Q(function(y){J=g.cn("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(V.j);return g.Ut("skip_network_check_if_cfr")&&Krr().isEndpointCFR("generate_204")?y.return(new Promise(function(l){var m;V.Au(((m=window.navigator)==null?void 0:m.onLine)||!0);l(V.fE())})):J?y.return(J(O)):y.return(!0)})};var Xf;g.I(E8,aF);E8.prototype.writeThenSend=function(O,V){V||(V={});V=gS(O,V);g.Kz()||(this.K=!1);aF.prototype.writeThenSend.call(this,O,V)}; E8.prototype.sendThenWrite=function(O,V,J){V||(V={});V=gS(O,V);g.Kz()||(this.K=!1);aF.prototype.sendThenWrite.call(this,O,V,J)}; E8.prototype.sendAndWrite=function(O,V){V||(V={});V=gS(O,V);g.Kz()||(this.K=!1);aF.prototype.sendAndWrite.call(this,O,V)}; E8.prototype.awaitInitialization=function(){return this.U.promise};var ivU=g.Z1.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.zD("ytNetworklessLoggingInitializationOptions",ivU);g.qc.prototype.isReady=function(){!this.config_&&uyl()&&(this.config_=g.JS());return!!this.config_};var IZD,KO,u0;IZD=g.Z1.ytPubsubPubsubInstance||new g.Th;KO=g.Z1.ytPubsubPubsubSubscribedKeys||{};u0=g.Z1.ytPubsubPubsubTopicToKeys||{};g.tS=g.Z1.ytPubsubPubsubIsSynchronous||{};g.Th.prototype.subscribe=g.Th.prototype.subscribe;g.Th.prototype.unsubscribeByKey=g.Th.prototype.nE;g.Th.prototype.publish=g.Th.prototype.publish;g.Th.prototype.clear=g.Th.prototype.clear;g.zD("ytPubsubPubsubInstance",IZD);g.zD("ytPubsubPubsubTopicToKeys",u0);g.zD("ytPubsubPubsubIsSynchronous",g.tS); g.zD("ytPubsubPubsubSubscribedKeys",KO);var D2h={};g.I(OZ,g.K);OZ.prototype.append=function(O){if(!this.j)throw Error("This does not support the append operation");O=O.dC();this.dC().appendChild(O)}; g.I(V2,OZ);V2.prototype.dC=function(){return this.K};g.I(J7,g.K);J7.prototype.onTouchStart=function(O){this.S=!0;this.j=O.touches.length;this.K.isActive()&&(this.K.stop(),this.W=!0);O=O.touches;this.V=Js7(this,O)||O.length!=1;var V=O.item(0);this.V||!V?this.qX=this.T=Infinity:(this.T=V.clientX,this.qX=V.clientY);for(V=this.U.length=0;V=0)}if(V||O&&Math.pow(O.clientX-this.T,2)+Math.pow(O.clientY-this.qX,2)>25)this.D=!0}; J7.prototype.onTouchEnd=function(O){var V=O.changedTouches;V&&this.S&&this.j==1&&!this.D&&!this.W&&!this.V&&Js7(this,V)&&(this.KD=O,this.K.start());this.j=O.touches.length;this.j===0&&(this.D=this.S=!1,this.U.length=0);this.W=!1};var y2=Date.now().toString();var jt={};var UZ=Symbol("injectionDeps");Fm.prototype.toString=function(){return"InjectionToken("+this.name+")"}; $4l.prototype.resolve=function(O){return O instanceof ND?Zm(this,O.key,[],!0):Zm(this,O,[])};var z$;var sZ=window;var Yt=g.Ut("web_enable_lifecycle_monitoring")&&T$()!==0,ZVr=g.Ut("web_enable_lifecycle_monitoring");x47.prototype.cancel=function(){for(var O=g.n(this.K),V=O.next();!V.done;V=O.next())V=V.value,V.jobId===void 0||V.WJ||this.scheduler.pK(V.jobId),V.WJ=!0;this.j.resolve()};g.T=am.prototype;g.T.install=function(O){this.plugins.push(O);return this}; g.T.uninstall=function(){var O=this;g.jF.apply(0,arguments).forEach(function(V){V=O.plugins.indexOf(V);V>-1&&O.plugins.splice(V,1)})}; g.T.transition=function(O,V){var J=this;Yt&&Fmd(this.state);var y=this.transitions.find(function(m){return Array.isArray(m.from)?m.from.find(function(H){return H===J.state&&m.to===O}):m.from===J.state&&m.to===O}); if(y){this.j&&(Wmd(this.j),this.j=void 0);zuX(this,O,V);this.state=O;Yt&&et(this.state);y=y.action.bind(this);var l=this.plugins.filter(function(m){return m[O]}).map(function(m){return m[O]}); y(U4X(this,l),V)}else throw Error("no transition specified from "+this.state+" to "+O);}; g.T.XKi=function(O){var V=g.jF.apply(1,arguments);g.ij();for(var J=g.n(O),y=J.next(),l={};!y.done;l={jc:void 0},y=J.next())l.jc=y.value,gU5(function(m){return function(){p2(m.jc.name);h7(function(){return m.jc.callback.apply(m.jc,g.q(V))}); f2(m.jc.name)}}(l))}; g.T.WJn=function(O){var V=g.jF.apply(1,arguments),J,y,l,m;return g.Q(function(H){H.j==1&&(g.ij(),J=g.n(O),y=J.next(),l={});if(H.j!=3){if(y.done)return H.uw(0);l.v0=y.value;l.sx=void 0;m=function(F){return function(){p2(F.v0.name);var N=h7(function(){return F.v0.callback.apply(F.v0,g.q(V))}); xH(N)?F.sx=g.Ut("web_lifecycle_error_handling_killswitch")?N.then(function(){f2(F.v0.name)}):N.then(function(){f2(F.v0.name)},function(x){NGo(x); f2(F.v0.name)}):f2(F.v0.name)}}(l); gU5(m);return l.sx?H.K(l.sx,3):H.uw(3)}l={v0:void 0,sx:void 0};y=J.next();return H.uw(2)})}; g.T.zx=function(O){var V=g.jF.apply(1,arguments),J=this,y=O.map(function(l){return{A1:function(){p2(l.name);h7(function(){return l.callback.apply(l,g.q(V))}); f2(l.name)}, priority:b9(J,l)}}); y.length&&(this.j=new x47(y))}; g.tr.Object.defineProperties(am.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var v5;g.I(om,am);om.prototype.W=function(O,V){var J=this;this.K=g.AG(0,function(){J.currentState==="application_navigating"&&J.transition("none")},5E3); O(V==null?void 0:V.event)}; om.prototype.V=function(O,V){this.K&&(g.E7.pK(this.K),this.K=null);O(V==null?void 0:V.event)};var Vy=[];g.zD("yt.logging.transport.getScrapedGelPayloads",function(){return Vy});wk.prototype.storePayload=function(O,V){O=MD(O);this.store[O]?this.store[O].push(V):(this.j={},this.store[O]=[V]);this.K++;g.Ut("more_accurate_gel_parser")&&(V=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(V));return O}; wk.prototype.smartExtractMatchingEntries=function(O){if(!O.keys.length)return[];for(var V=n2(this,O.keys.splice(0,1)[0]),J=[],y=0;y=0){y=!1;break a}}y=!0}y&&(V=pY(V))&&this.C8(V)}}; g.T.fn=function(O){return O}; g.T.onTouchStart=function(O){this.fD.onTouchStart(O)}; g.T.onTouchMove=function(O){this.fD.onTouchMove(O)}; g.T.onTouchEnd=function(O){if(this.fD)this.fD.onTouchEnd(O)}; g.T.C8=function(O){this.layoutId?this.HE.executeCommand(O,this.layoutId):(O=new g.pn("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.sk(O))}; g.T.createServerVe=function(O,V){this.api.createServerVe(O,this);this.api.setTrackingParams(O,V)}; g.T.logVisibility=function(O,V){this.api.hasVe(O)&&this.api.logVisibility(O,V,this.interactionLoggingClientData)}; g.T.U5=function(){this.clear(null);this.oX(this.eB);for(var O=g.n(this.O5),V=O.next();!V.done;V=O.next())this.oX(V.value);g.OF.prototype.U5.call(this)};g.I(YN,Vb); YN.prototype.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);this.K=V;if(V.text==null&&V.icon==null)g.en(Error("ButtonRenderer did not have text or an icon set."));else{switch(V.style||null){case "STYLE_UNKNOWN":O="ytp-ad-button-link";break;default:O=null}O!=null&&g.D0(this.element,O);V.text!=null&&(O=g.yb(V.text),g.Ku(O)||(this.element.setAttribute("aria-label",O),this.U=new g.OF({X:"span",C:"ytp-ad-button-text",Rl:O}),g.t(this,this.U),this.U.rW(this.element)));V.accessibilityData&&V.accessibilityData.accessibilityData&& V.accessibilityData.accessibilityData.label&&!g.Ku(V.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",V.accessibilityData.accessibilityData.label);V.icon!=null&&(V=IC(V.icon,this.D),V!=null&&(this.j=new g.OF({X:"span",C:"ytp-ad-button-icon",J:[V]}),g.t(this,this.j)),this.W?po(this.element,this.j.element,0):this.j.rW(this.element))}}; YN.prototype.clear=function(){this.hide()}; YN.prototype.onClick=function(O){Vb.prototype.onClick.call(this,O);O=g.n(sH1(this));for(var V=O.next();!V.done;V=O.next())V=V.value,this.layoutId?this.HE.executeCommand(V,this.layoutId):g.sk(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.I(aC,g.K);aC.prototype.U5=function(){this.j&&g.ed(this.j);this.K.clear();bo=null;g.K.prototype.U5.call(this)}; aC.prototype.register=function(O,V){V&&this.K.set(O,V)}; var bo=null;g.I(hV,Vb); hV.prototype.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);O=V.hoverText||null;V=V.button&&g.e(V.button,tE)||null;V==null?g.sk(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new YN(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,void 0,void 0,void 0,void 0,this.U),g.t(this,this.button),this.button.init(i6("button"),V,this.macros),O&&this.button.element.setAttribute("aria-label",g.yb(O)),this.button.rW(this.element),this.T&&!g.SL(this.button.element,"ytp-ad-clickable")&& g.D0(this.button.element,"ytp-ad-clickable"),this.U&&g.D0(this.button.element,"ytp-ad-hover-text-button--clean-player"),O&&(this.j=new g.OF({X:"div",C:"ytp-ad-hover-text-container"}),this.W&&(V=new g.OF({X:"div",C:"ytp-ad-hover-text-callout"}),V.rW(this.j.element),g.t(this,V)),g.t(this,this.j),this.j.rW(this.element),V=pI(O),po(this.j.element,V,0)),this.show())}; hV.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();Vb.prototype.hide.call(this)}; hV.prototype.show=function(){this.button&&this.button.show();Vb.prototype.show.call(this)};g.I(vB,Vb); vB.prototype.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);J=(O=V.thumbnail)&&oC(O)||"";g.Ku(J)?Math.random()<.01&&g.en(Error("Found AdImage without valid image URL")):(this.K?g.Pp(this.element,"backgroundImage","url("+J+")"):Z5(this.element,{src:J}),Z5(this.element,{alt:O&&O.accessibility&&O.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())}; vB.prototype.clear=function(){this.hide()};g.I(wW,Vb);g.T=wW.prototype;g.T.hide=function(){Vb.prototype.hide.call(this);this.U&&this.U.focus()}; g.T.show=function(){this.U=document.activeElement;Vb.prototype.show.call(this);this.D.focus()}; g.T.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);this.j=V;V.dialogMessages||V.title!=null?V.confirmLabel==null?g.sk(Error("ConfirmDialogRenderer.confirmLabel was not set.")):V.cancelLabel==null?g.sk(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Y$p(this,V):g.sk(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.T.clear=function(){g.fz(this.K);this.hide()}; g.T.Df=function(){this.hide()}; g.T.wF=function(){var O=this.j.cancelEndpoint;O&&(this.layoutId?this.HE.executeCommand(O,this.layoutId):g.sk(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.T.v8=function(){var O=this.j.confirmNavigationEndpoint||this.j.confirmEndpoint;O&&(this.layoutId?this.HE.executeCommand(O,this.layoutId):g.sk(Error("Missing layoutId for confirm dialog.")));this.hide()};g.I(Mo,Vb);g.T=Mo.prototype; g.T.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);this.U=V;if(V.defaultText==null&&V.defaultIcon==null)g.sk(Error("ToggleButtonRenderer must have either text or icon set."));else if(V.defaultIcon==null&&V.toggledIcon!=null)g.sk(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":O="ytp-ad-toggle-button-default-style";break;default:O=null}O!=null&&g.D0(this.D,O)}O={};V.defaultText? (J=g.yb(V.defaultText),g.Ku(J)||(O.buttonText=J,this.api.Y().experiments.Jv("a11y_h5_associate_survey_question")||this.K.setAttribute("aria-label",J),this.api.Y().experiments.Jv("fix_h5_toggle_button_a11y")&&this.j.setAttribute("aria-label",J))):g.CD(this.dW,!1);V.defaultTooltip&&(O.tooltipText=V.defaultTooltip,this.K.hasAttribute("aria-label")||this.j.setAttribute("aria-label",V.defaultTooltip));V.defaultIcon?(J=IC(V.defaultIcon),this.updateValue("untoggledIconTemplateSpec",J),V.toggledIcon?(this.lw= !0,J=IC(V.toggledIcon),this.updateValue("toggledIconTemplateSpec",J)):(g.CD(this.T,!0),g.CD(this.W,!1)),g.CD(this.K,!1)):g.CD(this.j,!1);g.Id(O)||this.update(O);V.isToggled&&(g.D0(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(V.isToggled));LI(this);this.Z(this.element,"change",this.YU);this.show()}}; g.T.onClick=function(O){this.O5.length>0&&(this.toggleButton(!this.isToggled()),this.YU());Vb.prototype.onClick.call(this,O)}; g.T.YU=function(){g.yf(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var O=g.n(aiH(this,this.isToggled())),V=O.next();!V.done;V=O.next())V=V.value,this.layoutId?this.HE.executeCommand(V,this.layoutId):g.sk(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);LI(this)}; g.T.clear=function(){this.hide()}; g.T.toggleButton=function(O){g.yf(this.D,"ytp-ad-toggle-button-toggled",O);this.K.checked=O;LI(this)}; g.T.isToggled=function(){return this.K.checked};g.I(nI,bj);nI.prototype.W=function(O){if(Array.isArray(O)){O=g.n(O);for(var V=O.next();!V.done;V=O.next())V=V.value,V instanceof bzn&&this.U(V)}};g.I(Xa,Vb);g.T=Xa.prototype;g.T.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);V.reasons?V.confirmLabel==null?g.sk(Error("AdFeedbackRenderer.confirmLabel was not set.")):(V.cancelLabel==null&&g.en(Error("AdFeedbackRenderer.cancelLabel was not set.")),V.title==null&&g.en(Error("AdFeedbackRenderer.title was not set.")),oOX(this,V)):g.sk(Error("AdFeedbackRenderer.reasons were not set."))}; g.T.clear=function(){IH(this.W);IH(this.T);this.D.length=0;this.hide()}; g.T.hide=function(){this.K&&this.K.hide();this.j&&this.j.hide();Vb.prototype.hide.call(this);this.U&&this.U.focus()}; g.T.show=function(){this.K&&this.K.show();this.j&&this.j.show();this.U=document.activeElement;Vb.prototype.show.call(this);this.W.focus()}; g.T.hP=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.T.jcv=function(){this.hide()}; EF.prototype.dC=function(){return this.K.element}; EF.prototype.getCommand=function(){return this.j}; EF.prototype.isChecked=function(){return this.U.checked};g.I(dW,wW);dW.prototype.Df=function(O){wW.prototype.Df.call(this,O);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; dW.prototype.wF=function(O){wW.prototype.wF.call(this,O);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; dW.prototype.v8=function(O){wW.prototype.v8.call(this,O);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.I(gW,Vb);g.T=gW.prototype; g.T.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);this.W=V;if(V.dialogMessage==null&&V.title==null)g.sk(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{V.confirmLabel==null&&g.en(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(O=V.closeOverlayRenderer&&g.e(V.closeOverlayRenderer,tE)||null)this.K=new YN(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.t(this,this.K),this.K.init(i6("button"),O,this.macros),this.K.rW(this.element);V.title&&(O=g.yb(V.title),this.updateValue("title",O));if(V.adReasons)for(O=V.adReasons,J=0;J=this.ol?(this.lw.hide(),this.yz=!0,this.publish("i")):this.U&&this.U.isTemplated()&&(O=Math.max(0,Math.ceil((this.ol-O)/1E3)),O!=this.nD&&(Gs(this.U,{TIME_REMAINING:String(O)}),this.nD=O)))}};g.I(RC,KI);g.T=RC.prototype; g.T.init=function(O,V,J){KI.prototype.init.call(this,O,V,J);if(V.image&&V.image.thumbnail)if(V.headline)if(V.description)if((O=V.actionButton&&g.e(V.actionButton,tE))&&O.navigationEndpoint){var y=this.api.getVideoData({playerType:2});if(y!=null)if(V.image&&V.image.thumbnail){var l=V.image.thumbnail.thumbnails;l!=null&&l.length>0&&g.Ku(g.Qt(l[0].url))&&(l[0].url=y.profilePicture)}else g.en(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.U.init(i6("ad-image"),V.image,J);this.W.init(i6("ad-text"), V.headline,J);this.D.init(i6("ad-text"),V.description,J);this.j.init(i6("button"),O,J);J=Gz(this.j.element);QX(this.j.element,J+" This link opens in new tab");this.lw=O.navigationEndpoint;this.api.FO()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.N2.bind(this));this.dW=V.startMs||0;tV(this)}else g.sk(Error("FlyoutCtaRenderer has no valid action button."));else g.sk(Error("FlyoutCtaRenderer has no description AdText."));else g.sk(Error("FlyoutCtaRenderer has no headline AdText.")); else g.en(Error("FlyoutCtaRenderer has no image."))}; g.T.onClick=function(O){KI.prototype.onClick.call(this,O);this.api.pauseVideo();!g.h8(this.j.element,O.target)&&this.lw&&(this.layoutId?this.HE.executeCommand(this.lw,this.layoutId):g.sk(Error("Missing layoutId for flyout cta.")))}; g.T.Uk=function(){if(this.K){var O=this.K.getProgressState();(O&&O.current||this.ol)&&1E3*O.current>=this.dW&&(uo(this),g.Vf(this.element,"ytp-flyout-cta-inactive"),this.j.element.removeAttribute("tabIndex"))}}; g.T.Ub=function(){this.clear()}; g.T.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.N2.bind(this))}; g.T.show=function(){this.j&&this.j.show();KI.prototype.show.call(this)}; g.T.hide=function(){this.j&&this.j.hide();KI.prototype.hide.call(this)}; g.T.N2=function(O){O=="hidden"?this.show():this.hide()};g.I(BB,Vb);g.T=BB.prototype; g.T.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);this.K=V;if(this.K.rectangle)for(O=this.K.likeButton&&g.e(this.K.likeButton,I7),V=this.K.dislikeButton&&g.e(this.K.dislikeButton,I7),this.U.init(i6("toggle-button"),O,J),this.j.init(i6("toggle-button"),V,J),this.Z(this.element,"change",this.TB),this.D.show(100),this.show(),J=g.n(this.K&&this.K.impressionCommands||[]),O=J.next();!O.done;O=J.next())O=O.value,this.layoutId?this.HE.executeCommand(O,this.layoutId):g.sk(Error("Missing layoutId for instream user sentiment."))}; g.T.clear=function(){this.hide()}; g.T.hide=function(){this.U.hide();this.j.hide();Vb.prototype.hide.call(this)}; g.T.show=function(){this.U.show();this.j.show();Vb.prototype.show.call(this)}; g.T.TB=function(){CTo(this.element,"ytp-ad-instream-user-sentiment-selected");this.K.postMessageAction&&this.api.MX("onYtShowToast",this.K.postMessageAction);this.D.hide()}; g.T.onClick=function(O){this.O5.length>0&&this.TB();Vb.prototype.onClick.call(this,O)};g.I(PB,g.K);g.T=PB.prototype;g.T.U5=function(){this.reset();g.K.prototype.U5.call(this)}; g.T.reset=function(){g.fz(this.D);this.V=!1;this.K&&this.K.stop();this.W.stop();this.U&&(this.U=!1,this.S.play())}; g.T.start=function(){this.reset();this.D.Z(this.j,"mouseover",this.zB,this);this.D.Z(this.j,"mouseout",this.Je,this);this.KD&&(this.D.Z(this.j,"focusin",this.zB,this),this.D.Z(this.j,"focusout",this.Je,this));this.K?this.K.start():(this.V=this.U=!0,g.Pp(this.j,{opacity:this.qX}))}; g.T.zB=function(){this.U&&(this.U=!1,this.S.play());this.W.stop();this.K&&this.K.stop()}; g.T.Je=function(){this.V?this.W.start():this.K&&this.K.start()}; g.T.cw=function(){this.U||(this.U=!0,this.T.play(),this.V=!0)};var Gbr=[new kN("b.f_",0),new kN("j.s_",2),new kN("r.s_",4),new kN("e.h_",6),new kN("i.s_",8),new kN("s.t_",10),new kN("p.h_",12),new kN("s.i_",14),new kN("f.i_",16),new kN("a.b_",18),new kN("a.o_"),new kN("g.o_",22),new kN("p.i_",24),new kN("p.m_"),new kN("n.k_",20),new kN("i.f_"),new kN("a.s_"),new kN("m.c_"),new kN("n.h_",26),new kN("o.p_"),new kN("m.p_",28),new kN("o.a_"),new kN("d.p_"),new kN("e.i_")].reduce(function(O,V){O[V.j]=V;return O},{});g.I(yk,KI);g.T=yk.prototype; g.T.init=function(O,V,J){KI.prototype.init.call(this,O,V,J);this.lw=V;(this.dW=td7(this))&&g.en(Error("hasAdControlInClickCommands_ is true."));if(!V||g.Id(V))g.sk(Error("SkipButtonRenderer was not specified or empty."));else if(!V.message||g.Id(V.message))g.sk(Error("SkipButtonRenderer.message was not specified or empty."));else if(O=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},V=this.api.Y().L("delhi_modern_web_player_icons"),V=IC(O,!1,!1,V),V==null?g.sk(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+O.iconType+ ".")):(this.api.Y().L("disable_touch_events_on_skip_button")&&(V.N=Object.assign({},V.N,{"aria-hidden":"true",focusable:"false"})),this.U=new g.OF({X:"button",Fj:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],J:[{X:"span",C:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",J:[V]}]}),g.t(this,this.U),this.U.rW(this.D.element),this.j=new Qb(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,"ytp-ad-skip-button-text"),this.W&&this.j.element.classList.add("ytp-ad-skip-button-text-centered"), this.j.init(i6("ad-text"),this.lw.message,J),g.t(this,this.j),po(this.U.element,this.j.element,0)),!this.api.Y().L("disable_touch_events_on_skip_button")){var y=y===void 0?null:y;J=this.api.Y();!(this.O5.length>0)&&J.j&&(AT?0:"ontouchstart"in document.documentElement&&(ptY()||UA()))&&(this.oX(this.eB),y&&this.oX(y),this.O5=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}}; g.T.clear=function(){this.ol.reset();this.hide()}; g.T.hide=function(){this.D.hide();this.j&&this.j.hide();uo(this);KI.prototype.hide.call(this)}; g.T.onClick=function(O){if(this.U!=null){if(O){var V=O||window.event;V.returnValue=!1;V.preventDefault&&V.preventDefault()}var J;if(q$Y(O,{contentCpn:((J=this.api.getVideoData({playerType:1}))==null?void 0:J.clientPlaybackNonce)||""})===0)this.api.MX("onAbnormalityDetected");else if(KI.prototype.onClick.call(this,O),this.publish("j"),this.api.MX("onAdSkip"),this.yz||!this.dW)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.T.fn=function(O){if(!this.yz)return this.dW&&DJ("SkipButton click commands not pruned while ALC exist"),O;var V,J=(V=g.e(O,g.l1))==null?void 0:V.commands;if(!J)return O;O=[];for(V=0;V=this.W&&uQ1(this,!0)};g.I($o,YN);$o.prototype.init=function(O,V,J){YN.prototype.init.call(this,O,V,J);O=!1;V.text!=null&&(O=g.yb(V.text),O=!g.Ku(O));O?V.navigationEndpoint==null?g.en(Error("No visit advertiser clickthrough provided in renderer,")):V.style!=="STYLE_UNKNOWN"?g.en(Error("Button style was not a link-style type in renderer,")):this.show():g.en(Error("No visit advertiser text was present in the renderer."))};g.I(HS,Vb); HS.prototype.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);O=V.text;g.Ku(JV(O))?g.en(Error("SimpleAdBadgeRenderer has invalid or empty text")):(O&&O.text&&(V=O.text,this.U&&!this.j&&(V=this.api.Y(),V=O.text+" "+(V&&V.j?"\u2022":"\u00b7")),V={text:V,isTemplated:O.isTemplated},O.style&&(V.style=O.style),O.targetId&&(V.targetId=O.targetId),O=new Qb(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),O.init(i6("simple-ad-badge"),V,J),O.rW(this.element),g.t(this,O)),this.show())}; HS.prototype.clear=function(){this.hide()};g.I(jo,Re);g.I(CJ,g.BF);g.T=CJ.prototype;g.T.wS=function(){return this.durationMs}; g.T.stop=function(){this.K&&this.handler.oX(this.K)}; g.T.VK=function(O){this.j={seekableStart:0,seekableEnd:this.durationMs/1E3,current:O.current};this.publish("h")}; g.T.getProgressState=function(){return this.j}; g.T.qA=function(O){g.Jg(O,2)&&this.publish("g")};g.I(F6,g.BF);g.T=F6.prototype;g.T.wS=function(){return this.durationMs}; g.T.start=function(){this.K||(this.K=!0,this.timer.start())}; g.T.stop=function(){this.K&&(this.K=!1,this.timer.stop())}; g.T.VK=function(){this.vX+=100;var O=!1;this.vX>this.durationMs&&(this.vX=this.durationMs,this.timer.stop(),O=!0);this.j={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.vX/1E3};this.publish("h");O&&this.publish("g")}; g.T.getProgressState=function(){return this.j};g.I(WS,KI);g.T=WS.prototype;g.T.init=function(O,V,J){KI.prototype.init.call(this,O,V,J);var y;if(V==null?0:(y=V.templatedCountdown)==null?0:y.templatedAdText){O=V.templatedCountdown.templatedAdText;if(!O.isTemplated){g.en(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.j=new Qb(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);this.j.init(i6("ad-text"),O,{});this.j.rW(this.element);g.t(this,this.j)}this.show()}; g.T.clear=function(){this.hide()}; g.T.hide=function(){uo(this);KI.prototype.hide.call(this)}; g.T.Ub=function(){this.hide()}; g.T.Uk=function(){if(this.K!=null){var O=this.K.getProgressState();if(O!=null&&O.current!=null&&this.j){var V=this.K instanceof CJ?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:O.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.K instanceof F6?O.seekableEnd:this.api.getDuration(2,!1);O=O.current;var J,y,l=((J=this.api.getVideoData())==null?0:(y=J.Yr)==null?0:y.call(J))?Math.max(V-O,0):V-O;Gs(this.j,{FORMATTED_AD_DURATION_REMAINING:String(g.Nw(l)), TIME_REMAINING:String(Math.ceil(l))})}}}; g.T.show=function(){tV(this);KI.prototype.show.call(this)};g.I(UK,Qb);UK.prototype.onClick=function(O){Qb.prototype.onClick.call(this,O);this.api.onAdUxClicked(this.componentType)};g.I(zE,Vb);zE.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});if(O=V.content){g.o1(this.element,O);var J,y;V=((J=V.interaction)==null?void 0:(y=J.accessibility)==null?void 0:y.label)||O;this.element.setAttribute("aria-label",V)}else g.sk(Error("AdSimpleAttributedString does not have text content"))}; zE.prototype.clear=function(){this.hide()}; zE.prototype.onClick=function(O){Vb.prototype.onClick.call(this,O)};g.I(cS,Vb); cS.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});(O=V.label)&&O.content&&!g.Ku(O.content)?(this.adBadgeText.init(i6("ad-simple-attributed-string"),new Zf(O)),(V=V.adPodIndex)&&V.content&&!g.Ku(V.content)&&(this.K=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),this.K.rW(this.element),g.t(this,this.K),this.K.element.classList.add("ytp-ad-badge__pod-index"),this.K.init(i6("ad-simple-attributed-string"),new Zf(V))),this.element.classList.add(this.j?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.sk(Error("No label is returned in AdBadgeViewModel."))}; cS.prototype.show=function(){this.adBadgeText.show();var O;(O=this.K)==null||O.show();Vb.prototype.show.call(this)}; cS.prototype.hide=function(){this.adBadgeText.hide();var O;(O=this.K)==null||O.hide();Vb.prototype.hide.call(this)};g.I(sK,Vb);sK.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});(O=V.adPodIndex)&&O.content&&!g.Ku(O.content)&&(this.K=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),this.K.rW(this.element),g.t(this,this.K),this.K.init(i6("ad-simple-attributed-string"),new Zf(O)),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()}; sK.prototype.show=function(){var O;(O=this.K)==null||O.show();Vb.prototype.show.call(this)}; sK.prototype.hide=function(){var O;(O=this.K)==null||O.hide();Vb.prototype.hide.call(this)};g.I(TE,Vb); TE.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});if(V!=null&&V.text){var J;if(((J=V.text)==null?0:J.content)&&!g.Ku(V.text.content)){this.K=new g.OF({X:"div",C:"ytp-ad-disclosure-banner__text",Rl:V.text.content});g.t(this,this.K);this.K.rW(this.element);if(this.api.Y().L("enable_ad_disclosure_banner_a11y_fix")){var y,l,m=(y=V.interaction)==null?void 0:(l=y.accessibility)==null?void 0:l.label;m||(m=V.text.content+" This link opens in new tab");QX(this.element,m)}else{var H;y=((m= V.interaction)==null?void 0:(H=m.accessibility)==null?void 0:H.label)||V.text.content;this.element.setAttribute("aria-label",y)}var F;if((F=V.interaction)==null?0:F.onTap)this.api.Y().L("remove_chevron_from_ad_disclosure_banner_h5")||(this.j=new g.OF({X:"div",C:"ytp-ad-disclosure-banner__chevron",J:[g.HB()]}),g.t(this,this.j),this.j.rW(this.element)),this.api.Y().L("enable_ad_disclosure_banner_a11y_fix")&&(g7(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.I2)); this.show()}}else g.sk(Error("No banner text found in AdDisclosureBanner."))}; TE.prototype.I2=function(O){if(O.key==="Enter"||O.key===" ")O.preventDefault(),this.element.click()}; TE.prototype.clear=function(){this.hide()};g.I(Yo,g.OF);Yo.prototype.VK=function(){var O=this.j.getProgressState(),V=O.seekableEnd;this.api.getPresentingPlayerType()===2&&(V=this.U?this.U/1E3:O.seekableEnd);this.progressBar.style.width=I0(new eo(O.seekableStart,V),O.current,0)*100+"%"}; Yo.prototype.onStateChange=function(){g.Vw(this.api.Y())||(this.api.getPresentingPlayerType()===2?this.K===-1&&(this.show(),this.K=this.j.subscribe("h",this.VK,this),this.VK()):this.K!==-1&&(this.hide(),this.j.nE(this.K),this.K=-1))};g.I(b1,Vb); b1.prototype.init=function(O,V,J,y){Vb.prototype.init.call(this,O,V,J);if(V.skipOrPreviewRenderer){if(O=g.e(V.skipOrPreviewRenderer,zC))J=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.j,this.T),J.rW(this.LD),J.init(i6("skip-button"),O,this.macros),g.t(this,J);if(O=g.e(V.skipOrPreviewRenderer,zC))var l=O.skipOffsetMilliseconds}V.brandInteractionRenderer&&(O=V.brandInteractionRenderer.brandInteractionRenderer,J=new BB(this.api,this.layoutId,this.interactionLoggingClientData,this.HE), J.rW(this.dW),J.init(i6("instream-user-sentiment"),O,this.macros),g.t(this,J));if(O=g.e(V,jzn))if(O=g.e(O,jzn))J=new RC(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.j,!!V.showWithoutLinkedMediaLayout),g.t(this,J),J.rW(this.W),J.init(i6("flyout-cta"),O,this.macros);y=y&&y.videoAdDurationSeconds;V.adBadgeRenderer&&(J=V.adBadgeRenderer,O=g.e(J,tW),O!=null?(J=new cS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,!1),g.t(this,J),J.rW(this.K),J.init(i6("ad-badge"), O,this.macros),this.U=J.element):(O=J.simpleAdBadgeRenderer,O==null&&(O={text:{text:"Ad",isTemplated:!1}}),J=new HS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,!0),g.t(this,J),J.rW(this.K),J.init(i6("simple-ad-badge"),O,this.macros)));V.adPodIndex&&(O=g.e(V.adPodIndex,szC),O!=null&&(J=new sK(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,J),J.rW(this.K),J.init(i6("ad-pod-index"),O)));V.adDurationRemaining&&!V.showWithoutLinkedMediaLayout&&(O=V.adDurationRemaining.adDurationRemainingRenderer, O==null&&(O={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),y=new WS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.j,y,!1),g.t(this,y),y.rW(this.K),y.init(i6("ad-duration-remaining"),O,this.macros));V.adInfoRenderer&&(y=g.e(V.adInfoRenderer,Gw))&&(O=new qo(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.element,void 0,!1),g.t(this,O),this.U!==null?this.K.insertBefore(O.element,this.U.nextSibling):O.rW(this.K), O.init(i6("ad-info-hover-text-button"),y,this.macros));V.visitAdvertiserRenderer&&(O=g.e(V.visitAdvertiserRenderer,tE))&&(J=RKo(this)&&this.D?this.D:this.K)&&(y=new $o(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,y),y.rW(J),y.init(i6("visit-advertiser"),O,this.macros),g7(y.element),O=Gz(y.element),QX(y.element,O+" This link opens in new tab"));!(y=this.api.Y())||g.Db(y)||g.R2(y)||y.controlsType!="3"&&!y.disableOrganicUi||(l=new Yo(this.api,this.j,l,!1),l.rW(this.ol), g.t(this,l));V.adDisclosureBannerRenderer&&(V=g.e(V.adDisclosureBannerRenderer,cIs))&&(l=new TE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),l.rW(this.lw),l.init(i6("ad-disclosure-banner"),V),g.t(this,l));this.api.Y().L("enable_updated_html5_player_focus_style")&&g.D0(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; b1.prototype.clear=function(){this.hide()};hg.prototype.flush=function(O,V){O=O===void 0?[]:O;V=V===void 0?!1:V;if(g.Ut("enable_client_streamz_web")){O=g.n(O);for(var J=O.next();!J.done;J=O.next())J=ae1(J.value),this.K&&Ef(J,WG,2,this.K),J={serializedIncrementBatch:g.nD(J.U())},g.l6("streamzIncremented",J,{sendIsolatedPayload:V})}}; g.I(BEr,hg);g.I(kbn,hg);var o0,mXr=new Map;vS.prototype.set=function(O,V,J){J=J!==void 0?Date.now()+J:void 0;this.K.set(O,V,J)}; vS.prototype.get=function(O){return this.K.get(O)}; vS.prototype.remove=function(O){this.K.remove(O)};var Dvr=null;var X6=null,EK=null,d_=null,lVo=null;g.zD("yt.www.ads.eventcache.getLastCompanionData",function(){return X6}); g.zD("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.zD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return EK}); g.zD("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return d_}); g.zD("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return lVo});var $VH=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);g_.prototype.handleResponse=function(O,V){if(!V)throw Error("request needs to be passed into ConsistencyService");var J,y;V=((J=V.Hi.context)==null?void 0:(y=J.request)==null?void 0:y.consistencyTokenJars)||[];var l;(O=(l=O.responseContext)==null?void 0:l.consistencyTokenJar)&&this.replace(V,O)}; g_.prototype.replace=function(O,V){O=g.n(O);for(var J=O.next();!J.done;J=O.next())delete this.K[J.value.encryptedTokenJarContents];jjX(this,V)};var fZD=window.location.hostname.split(".").slice(-2).join("."),o7;Qk.getInstance=function(){o7=g.cn("yt.clientLocationService.instance");o7||(o7=new Qk,g.zD("yt.clientLocationService.instance",o7));return o7}; g.T=Qk.prototype; g.T.setLocationOnInnerTubeContext=function(O){O.client||(O.client={});if(this.K)O.client.locationInfo||(O.client.locationInfo={}),O.client.locationInfo.latitudeE7=Math.floor(this.K.coords.latitude*1E7),O.client.locationInfo.longitudeE7=Math.floor(this.K.coords.longitude*1E7),O.client.locationInfo.horizontalAccuracyMeters=Math.round(this.K.coords.accuracy),O.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.U||this.locationPlayabilityToken)O.client.locationPlayabilityToken=this.U|| this.locationPlayabilityToken}; g.T.handleResponse=function(O){var V;O=(V=O.responseContext)==null?void 0:V.locationPlayabilityToken;O!==void 0&&(this.locationPlayabilityToken=O,this.K=void 0,g.ts("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=qw(this))&&this.localStorage.set("yt-location-playability-token",O,15552E3):g.wr("YT_CL",JSON.stringify({loctok:O}),15552E3,fZD,!0))}; g.T.clearLocationPlayabilityToken=function(O){O==="TVHTML5"?(this.localStorage=qw(this))&&this.localStorage.remove("yt-location-playability-token"):g.LW("YT_CL");this.U=void 0;this.j!==-1&&(clearTimeout(this.j),this.j=-1)}; g.T.getCurrentPositionFromGeolocation=function(){var O=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var V=!1,J=1E4;g.ts("INNERTUBE_CLIENT_NAME")==="MWEB"&&(V=!0,J=15E3);return new Promise(function(y,l){navigator.geolocation.getCurrentPosition(function(m){O.K=m;y(m)},function(m){l(m)},{enableHighAccuracy:V, maximumAge:0,timeout:J})})}; g.T.createUnpluggedLocationInfo=function(O){var V={};O=O.coords;if(O==null?0:O.latitude)V.latitudeE7=Math.floor(O.latitude*1E7);if(O==null?0:O.longitude)V.longitudeE7=Math.floor(O.longitude*1E7);if(O==null?0:O.accuracy)V.locationRadiusMeters=Math.round(O.accuracy);return V}; g.T.createLocationInfo=function(O){var V={};O=O.coords;if(O==null?0:O.latitude)V.latitudeE7=Math.floor(O.latitude*1E7);if(O==null?0:O.longitude)V.longitudeE7=Math.floor(O.longitude*1E7);return V};g.T=WNV.prototype;g.T.contains=function(O){return Object.prototype.hasOwnProperty.call(this.K,O)}; g.T.get=function(O){if(this.contains(O))return this.K[O]}; g.T.set=function(O,V){this.K[O]=V}; g.T.Hs=function(){return Object.keys(this.K)}; g.T.remove=function(O){delete this.K[O]};KJ.prototype.getModuleId=function(O){return O.serviceId.getModuleId()}; KJ.prototype.get=function(O){a:{var V=this.mappings.get(O.toString());switch(V.type){case "mapping":O=V.value;break a;case "factory":V=V.value();this.mappings.set(O.toString(),{type:"mapping",value:V});O=V;break a;default:O=IG(V)}}return O}; KJ.prototype.registerService=function(O,V){this.mappings.set(O.toString(),{type:"mapping",value:V});return O}; new KJ;var vc={},ZHr=(vc.WEB_UNPLUGGED="^unplugged/",vc.WEB_UNPLUGGED_ONBOARDING="^unplugged/",vc.WEB_UNPLUGGED_OPS="^unplugged/",vc.WEB_UNPLUGGED_PUBLIC="^unplugged/",vc.WEB_CREATOR="^creator/",vc.WEB_KIDS="^kids/",vc.WEB_EXPERIMENTS="^experiments/",vc.WEB_MUSIC="^music/",vc.WEB_REMIX="^music/",vc.WEB_MUSIC_EMBEDDED_PLAYER="^music/",vc.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",vc);Ag.prototype.W=function(O,V,J){V=V===void 0?{}:V;J=J===void 0?l0:J;var y={context:g.GE(O.clickTrackingParams,!1,this.D)};var l=this.j(O);if(l){this.K(y,l,V);var m;V=g.u1(this.U());(l=(m=g.e(O.commandMetadata,g.ec))==null?void 0:m.apiUrl)&&(V=l);m=PF1(nW(V));O=Object.assign({},{command:O},void 0);y={input:m,hq:Et(m),Hi:y,config:O};y.config.qN?y.config.qN.identity=J:y.config.qN={identity:J};return y}J=new g.pn("Error: Failed to create Request from Command.",O);g.sk(J)}; g.tr.Object.defineProperties(Ag.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.I(r_,Ag);g.I(i1,r_);i1.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",hq:Et("/getDatasyncIdsEndpoint","GET"),Hi:{}}}; i1.prototype.U=function(){return[]}; i1.prototype.j=function(){}; i1.prototype.K=function(){};var hYn={},B9r=(hYn.GET_DATASYNC_IDS=tg(i1),hYn);var wZ={},omy=(wZ["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",wZ["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",wZ["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",wZ["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",wZ["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",wZ["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",wZ["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", wZ["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",wZ["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",wZ["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",wZ["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",wZ["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",wZ["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",wZ["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",wZ["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", wZ["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",wZ["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",wZ["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",wZ["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",wZ["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",wZ["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",wZ["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", wZ["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",wZ.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",wZ["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",wZ["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",wZ["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",wZ["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",wZ["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",wZ["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", wZ["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",wZ["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",wZ["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",wZ["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",wZ["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",wZ["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",wZ["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",wZ["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",wZ["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",wZ["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",wZ.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",wZ["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",wZ["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",wZ["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",wZ["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",wZ["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",wZ["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",wZ["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",wZ["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",wZ["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",wZ["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",wZ["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",wZ["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",wZ["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",wZ["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",wZ["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",wZ["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",wZ["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",wZ["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",wZ["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",wZ["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",wZ["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", wZ["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",wZ["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",wZ["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",wZ["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",wZ["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",wZ["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",wZ["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",wZ["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",wZ["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", wZ["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",wZ["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",wZ["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",wZ["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",wZ["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",wZ["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",wZ["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",wZ["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", wZ),M6={},YNh=(M6.auto_search="LATENCY_ACTION_AUTO_SEARCH",M6.ad_to_ad="LATENCY_ACTION_AD_TO_AD",M6.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",M6.app_startup="LATENCY_ACTION_APP_STARTUP",M6.browse="LATENCY_ACTION_BROWSE",M6.cast_splash="LATENCY_ACTION_CAST_SPLASH",M6.channel_activity="LATENCY_ACTION_FAMILY_CENTER_CHANNEL_ACTIVITY",M6.channels="LATENCY_ACTION_CHANNELS",M6.chips="LATENCY_ACTION_CHIPS",M6.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",M6.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", M6.editor="LATENCY_ACTION_EDITOR",M6.embed="LATENCY_ACTION_EMBED",M6.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",M6.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",M6.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",M6.explore="LATENCY_ACTION_EXPLORE",M6.favorites="LATENCY_ACTION_FAVORITES",M6.home="LATENCY_ACTION_HOME",M6.inboarding="LATENCY_ACTION_INBOARDING",M6.landing="LATENCY_ACTION_LANDING",M6.learning="LATENCY_ACTION_LEARNING", M6.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",M6.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",M6.library="LATENCY_ACTION_LIBRARY",M6.live="LATENCY_ACTION_LIVE",M6.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",M6.management="LATENCY_ACTION_MANAGEMENT",M6.mini_app="LATENCY_ACTION_MINI_APP_PLAY",M6.notification_settings="LATENCY_ACTION_FAMILY_CENTER_NOTIFICATION_SETTINGS",M6.onboarding="LATENCY_ACTION_ONBOARDING",M6.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", M6.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",M6.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",M6.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",M6.prebuffer="LATENCY_ACTION_PREBUFFER",M6.prefetch="LATENCY_ACTION_PREFETCH",M6.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",M6.profile_switcher="LATENCY_ACTION_LOGIN",M6.projects="LATENCY_ACTION_PROJECTS",M6.reel_watch="LATENCY_ACTION_REEL_WATCH",M6.results="LATENCY_ACTION_RESULTS",M6.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", M6.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",M6.privacy_policy="LATENCY_ACTION_FAMILY_CENTER_PRIVACY_POLICY",M6.review="LATENCY_ACTION_REVIEW",M6.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",M6.search_ui="LATENCY_ACTION_SEARCH_UI",M6.search_suggest="LATENCY_ACTION_SUGGEST",M6.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",M6.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",M6.seek="LATENCY_ACTION_PLAYER_SEEK",M6.settings="LATENCY_ACTION_SETTINGS",M6.store="LATENCY_ACTION_STORE", M6.supervision_dashboard="LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_DASHBOARD",M6.bedtime_reminder_settings="LATENCY_ACTION_FAMILY_CENTER_BEDTIME_REMINDER_SETTINGS",M6.break_reminder_settings="LATENCY_ACTION_FAMILY_CENTER_BREAK_REMINDER_SETTINGS",M6.supervision_settings_dashboard="LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_SETTINGS_DASHBOARD",M6.time_management="LATENCY_ACTION_FAMILY_CENTER_TIME_MANAGEMENT",M6.update_profile="LATENCY_ACTION_FAMILY_CENTER_UPDATE_PROFILE",M6.viewing_permissions="LATENCY_ACTION_FAMILY_CENTER_VIEWING_PERMISSIONS", M6.shorts_settings="LATENCY_ACTION_FAMILY_CENTER_SHORTS_SETTINGS",M6.privacy_settings="LATENCY_ACTION_FAMILY_CENTER_PRIVACY_SETTINGS",M6.tenx="LATENCY_ACTION_TENX",M6.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",M6.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",M6.watch="LATENCY_ACTION_WATCH",M6.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",M6["watch,watch7"]="LATENCY_ACTION_WATCH",M6["watch,watch7_html5"]="LATENCY_ACTION_WATCH",M6["watch,watch7ad"]="LATENCY_ACTION_WATCH",M6["watch,watch7ad_html5"]= "LATENCY_ACTION_WATCH",M6.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",M6.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",M6.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",M6.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",M6.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",M6.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",M6.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",M6.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",M6); Object.assign(YNh,omy);g.I(Jd,m4);var dVd=new $R("aft-recorded",Jd);var vmI=g.Z1.ytLoggingGelSequenceIdObj_||{};g.zD("ytLoggingGelSequenceIdObj_",vmI);var mA=g.Z1.ytLoggingLatencyUsageStats_||{};g.zD("ytLoggingLatencyUsageStats_",mA);y6.prototype.tick=function(O,V,J,y){$z(this,"tick_"+O+"_"+V)||g.l6("latencyActionTicked",{tickName:O,clientActionNonce:V},{timestamp:J,cttAuthInfo:y})}; y6.prototype.info=function(O,V,J){var y=Object.keys(O).join("");$z(this,"info_"+y+"_"+V)||(O=Object.assign({},O),O.clientActionNonce=V,g.l6("latencyActionInfo",O,{cttAuthInfo:J}))}; y6.prototype.jspbInfo=function(O,V,J){for(var y="",l=0;l=this.start&&(O=2&&J.ssdaiAdsConfig&&DJ("Unexpected ad placement renderers length",O.slot,null,{length:y.length});var l;((l=J.adSlots)==null?0:l.some(function(m){var H,F;return((H=g.e(m,dh))==null?void 0:(F=H.adSlotMetadata)==null?void 0:F.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||y.some(function(m){var H,F,N,x; return!!((H=m.renderer)==null?0:(F=H.linearAdSequenceRenderer)==null?0:(N=F.linearAds)==null?0:N.length)||!((x=m.renderer)==null||!x.instreamVideoAdRenderer)})||Rx7(O)})}; Km.prototype.Og=function(){ntY(this.K)};tu.prototype.YY=function(){var O=this;LRY(this.j,function(){var V=G_(O.slot.clientMetadata,"metadata_type_ad_break_request_data");return V.cueProcessedMs?O.K.get().fetch({Lb:V.getAdBreakUrl,B7:new g.gz(V.qx,V.pG),cueProcessedMs:V.cueProcessedMs}):O.K.get().fetch({Lb:V.getAdBreakUrl,B7:new g.gz(V.qx,V.pG)})})}; tu.prototype.Og=function(){ntY(this.j)};uY.prototype.YY=function(){var O=this.slot.clientMetadata,V,J=(V=this.slot.fulfilledLayout)!=null?V:G_(O,"metadata_type_fulfilled_layout");C9X(this.callback,this.slot,J)}; uY.prototype.Og=function(){V9(this.callback,this.slot,new P("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")};rz.prototype.build=function(O,V){return V.fulfilledLayout||Au(V,{jy:["metadata_type_fulfilled_layout"]})?new uY(O,V):this.U(O,V)};g.I(iY,rz); iY.prototype.U=function(O,V){if(Au(V,{jy:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Km(O,V,this.K,this.j,this.zG,this.Xj,this.gW,this.Av,this.EA);if(Au(V,{jy:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new tu(O,V,this.K,this.j,this.zG,this.Xj);throw new P("Unsupported slot with type: "+V.slotType+" and client metadata: "+KF(V.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.I(Rn,rz);Rn.prototype.U=function(O,V){throw new P("Unsupported slot with type: "+V.slotType+" and client metadata: "+KF(V.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.T=Bko.prototype;g.T.BY=function(){return this.slot}; g.T.hv=function(){return this.layout}; g.T.init=function(){}; g.T.release=function(){}; g.T.startRendering=function(O){if(O.layoutId!==this.layout.layoutId)this.callback.E7(this.slot,O,new qd("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=G_(O.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.fd(this.slot,O),B61(this.U, this.slot,V)):DJ("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,O)}}; g.T.Wn=function(O,V){O.layoutId!==this.layout.layoutId?this.callback.E7(this.slot,O,new qd("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.Cd(this.slot,O,V),k$r(this),SZo(this))};g.I(DQ,g.BF);g.T=DQ.prototype;g.T.BY=function(){return this.j.slot}; g.T.hv=function(){return this.j.layout}; g.T.init=function(){this.U.get().addListener(this)}; g.T.release=function(){this.U.get().removeListener(this);this.dispose()}; g.T.kL=function(){}; g.T.Fu=function(){}; g.T.rT=function(){}; g.T.hV=function(){}; g.T.startRendering=function(O){var V=this;SS(this.j,O,function(){return void V.Rt()})}; g.T.Rt=function(){this.U.get().Rt(this.K)}; g.T.Wn=function(O,V){var J=this;SS(this.j,O,function(){var y=J.U.get();fXY(y,J.K,3);J.K=[];J.callback.Cd(J.slot,O,V)})}; g.T.U5=function(){this.U.GL()||this.U.get().removeListener(this);g.BF.prototype.U5.call(this)}; g.tr.Object.defineProperties(DQ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.j.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.j.layout}}});HE.prototype.EY=function(O,V){V=V===void 0?!1:V;var J=(this.U.get(O)||[]).concat();if(V=V&&JPH(O)){var y=this.U.get(V);y&&J.push.apply(J,g.q(y))}Fj(this,O,J);this.K.add(O);V&&this.K.add(V)}; HE.prototype.Y8=function(O,V){V=V===void 0?!1:V;if(!this.K.has(O)){var J=V&&JPH(O);J&&(V=!this.K.has(J));this.EY(O,V)}};g.I(mbH,Re);g.I(ZO,DQ);g.T=ZO.prototype;g.T.Nf=function(O,V){yH("ads-engagement-panel-layout",O,this.V.get().UC,this.gW.get(),this.D,this.W,this.BY(),this.hv(),V)}; g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),g.e(this.hv().renderingContent,zw),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(V,J,y,l,m){return new mbH(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(O,V){this.W===V.layoutId&&(this.D===null?this.D=this.gW.get().KE():DJ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)};g.I(HYX,Re);g.I(zN,DQ);g.T=zN.prototype;g.T.Nf=function(O,V){yH("banner-image",O,this.V.get().UC,this.gW.get(),this.D,this.W,this.BY(),this.hv(),V)}; g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),g.e(this.hv().renderingContent,Ul),this.callback,"metadata_type_banner_image_layout_view_model",function(V,J,y,l,m){return new HYX(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(O,V){this.W===V.layoutId&&(this.D===null?this.D=this.gW.get().KE():DJ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)};g.I(cE,Re);g.I(sI,DQ);g.T=sI.prototype;g.T.Nf=function(O,V){yH("action-companion",O,this.V.get().UC,this.gW.get(),this.D,this.W,this.BY(),this.hv(),V)}; g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),g.e(this.hv().renderingContent,N3),this.callback,"metadata_type_action_companion_ad_renderer",function(V,J,y,l,m){return new cE(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(O,V){V.layoutId===this.layout.layoutId?this.Yi.Y8("impression"):this.W===V.layoutId&&(this.D===null?this.D=this.gW.get().KE():DJ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)};g.I(FVV,Re);g.I(TN,DQ);g.T=TN.prototype;g.T.Nf=function(O,V){yH("image-companion",O,this.V.get().UC,this.gW.get(),this.D,this.W,this.BY(),this.hv(),V)}; g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),g.e(this.hv().renderingContent,xT),this.callback,"metadata_type_image_companion_ad_renderer",function(V,J,y,l,m){return new FVV(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(O,V){V.layoutId===this.layout.layoutId?this.Yi.Y8("impression"):this.W===V.layoutId&&(this.D===null?this.D=this.gW.get().KE():DJ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)};g.I(xb7,Re);g.I(eP,DQ);g.T=eP.prototype;g.T.Nf=function(O,V){yH("shopping-companion",O,this.V.get().UC,this.gW.get(),this.D,this.W,this.BY(),this.hv(),V)}; g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(V,J,y,l,m){return new xb7(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(O,V){V.layoutId===this.layout.layoutId?this.Yi.Y8("impression"):this.W===V.layoutId&&(this.D===null?this.D=this.gW.get().KE():DJ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)};g.I(aE,DQ);g.T=aE.prototype;g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(V,J,y,l,m){return new cE(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(){}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)}; g.T.Nf=function(){};g.T=cPr.prototype;g.T.BY=function(){return this.slot}; g.T.hv=function(){return this.layout}; g.T.init=function(){this.Av.get().addListener(this);this.Av.get().kY.push(this);var O=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=G_(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");l3(this.layout.D4)&&Oh(this.WY.get(),this.layout.layoutId,{zf:V,Pr:O,listener:this})}; g.T.release=function(){this.Av.get().removeListener(this);eep(this.Av.get(),this);l3(this.layout.D4)&&Ve(this.WY.get(),this.layout.layoutId)}; g.T.startRendering=function(O){this.callback.fd(this.slot,O)}; g.T.Wn=function(O,V){u8r(this.Xj.get())&&!this.K&&(this.Yi.Y8("abandon"),this.K=!0);this.callback.Cd(this.slot,O,V)}; g.T.A_=function(O){switch(O.id){case "part2viewed":this.Yi.Y8("start");this.Yi.Y8("impression");break;case "videoplaytime25":this.Yi.Y8("first_quartile");break;case "videoplaytime50":this.Yi.Y8("midpoint");break;case "videoplaytime75":this.Yi.Y8("third_quartile");break;case "videoplaytime100":u8r(this.Xj.get())?this.K||(this.Yi.Y8("complete"),this.K=!0):this.Yi.Y8("complete");UI(this.Yi)&&xp(this.Yi,Infinity,!0);Av7(this.Xj.get())&&Yp(this.j,Infinity,!0);break;case "engagedview":UI(this.Yi)||this.Yi.Y8("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:DJ("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.T.onVolumeChange=function(){}; g.T.O9=function(){}; g.T.mx=function(){}; g.T.FC=function(){}; g.T.onFullscreenToggled=function(){}; g.T.pw=function(){}; g.T.QZ=function(){}; g.T.W8=function(O){Av7(this.Xj.get())&&Yp(this.j,O*1E3,!1);UI(this.Yi)&&xp(this.Yi,O*1E3,!1)}; g.T.oW=function(){}; g.T.Ve=function(){this.Yi.Y8("active_view_measurable")}; g.T.wd=function(){this.Yi.Y8("active_view_viewable")}; g.T.Ge=function(){this.Yi.Y8("active_view_fully_viewable_audible_half_duration")}; g.T.kR=function(){this.Yi.Y8("audio_measurable")}; g.T.o1=function(){this.Yi.Y8("audio_audible")};g.I(b3,DQ);g.T=b3.prototype;g.T.init=function(){DQ.prototype.init.call(this);var O=G_(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V={adsClientData:this.layout.IB};this.K.push(new jo(O,this.layout.layoutId,G_(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),V,!0))}; g.T.Bi=function(){this.D||this.Av.get().resumeVideo(1)}; g.T.startRendering=function(O){DQ.prototype.startRendering.call(this,O);jQ(this.Av.get(),"ad-showing");this.callback.fd(this.slot,O);this.W.Tf=this}; g.T.Wn=function(O,V){DQ.prototype.Wn.call(this,O,V);CP(this.Av.get(),"ad-showing");iS(this.W,this)}; g.T.Nf=function(O){switch(O){case "ad-info-icon-button":(this.D=this.Av.get().oT(1))||this.Av.get().pauseVideo();break;case "visit-advertiser":this.Av.get().pauseVideo()}}; g.T.U5=function(){DQ.prototype.U5.call(this)};g.I(pE,Re);g.I(fE,DQ);g.T=fE.prototype;g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(V,J,y,l,m){return new pE(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(){}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)}; g.T.Nf=function(){};g.I(hY,Re);g.I(oE,DQ);oE.prototype.init=function(){DQ.prototype.init.call(this);this.K.push(new hY(g.e(this.layout.renderingContent,n6),this.layout.layoutId,{adsClientData:this.layout.IB}))}; oE.prototype.Nf=function(){nk(this.D.get(),this.W)&&JY(this.gW.get(),3)}; oE.prototype.startRendering=function(O){DQ.prototype.startRendering.call(this,O);this.callback.fd(this.slot,O)}; oE.prototype.U5=function(){DQ.prototype.U5.call(this)};g.I(vE,Re);g.I(wL,DQ);wL.prototype.init=function(){DQ.prototype.init.call(this);var O=g.e(this.layout.renderingContent,u3)||G_(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),V=OI(this.Yi);this.K.push(new vE(O,V,this.layout.layoutId,{adsClientData:this.layout.IB},!0,!0))}; wL.prototype.startRendering=function(O){DQ.prototype.startRendering.call(this,O);this.callback.fd(this.slot,O)}; wL.prototype.Nf=function(O,V){if(V===this.layout.layoutId)switch(O){case "skip-button":var J;(O=(J=G_(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&J2(O,this.BY(),this.layout)}}; wL.prototype.U5=function(){DQ.prototype.U5.call(this)};LE.prototype.build=function(O,V,J,y){if(ML(y,{jy:["metadata_type_ad_break_response_data"],TG:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Bko(O,J,y,this.j,this.U,this.K);throw new qd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+KF(y.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.I(emd,Re);g.I(nE,DQ);g.T=nE.prototype;g.T.Nf=function(O,V){yH("ads-engagement-panel",O,this.V.get().UC,this.gW.get(),this.D,this.W,this.BY(),this.hv(),V)}; g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),g.e(this.hv().renderingContent,W3),this.callback,"metadata_type_ads_engagement_panel_renderer",function(V,J,y,l,m){return new emd(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(O,V){V.layoutId===this.layout.layoutId?this.Yi.Y8("impression"):this.W===V.layoutId&&(this.D===null?this.D=this.gW.get().KE():DJ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)};g.I(Xj,DQ);g.T=Xj.prototype;g.T.Nf=function(O,V){yH("top-banner-image-text-icon-buttoned",O,this.V.get().UC,this.gW.get(),this.D,this.W,this.BY(),this.hv(),V)}; g.T.startRendering=function(O){VH(this.Yi,this.BY(),this.hv(),g.e(this.hv().renderingContent,Zp),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(V,J,y,l,m){return new pE(V,J,y,l,m)},this.K); DQ.prototype.startRendering.call(this,O)}; g.T.fd=function(O,V){this.W===V.layoutId&&(this.D===null?this.D=this.gW.get().KE():DJ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.U5=function(){Sq(this.OA(),this);DQ.prototype.U5.call(this)};aHV.prototype.build=function(O,V,J,y){if(ML(y,IHr())||g.e(y.renderingContent,W3)!==void 0)return new nE(O,J,y,this.UA,this.gW,this.OA,this.WY,this.K);if(ML(y,C6V())||g.e(y.renderingContent,N3)!==void 0)return new sI(O,J,y,this.UA,this.gW,this.OA,this.WY,this.K);if(ML(y,Ndd())||g.e(y.renderingContent,xT)!==void 0)return new TN(O,J,y,this.UA,this.gW,this.OA,this.WY,this.K);if(ML(y,WV5()))return new eP(O,J,y,this.UA,this.gW,this.OA,this.WY,this.K);if(ML(y,zm5()))return new aE(O,J,y,this.UA,this.gW,this.OA, this.WY,this.K);if(ML(y,jeX())||g.e(y.renderingContent,Ul)!==void 0)return new zN(O,J,y,this.UA,this.gW,this.OA,this.WY,this.K);if(ML(y,Ykd())||g.e(y.renderingContent,Zp)!==void 0)return new Xj(O,J,y,this.UA,this.gW,this.OA,this.WY,this.K);if(ML(y,seU()))return new fE(O,J,y,this.UA,this.gW,this.OA,this.WY,this.K);if(ML(y,$bh())||g.e(y.renderingContent,zw)!==void 0)return new ZO(O,J,y,this.UA,this.gW,this.OA,this.WY,this.K);throw new qd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+ KF(y.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};bY5.prototype.build=function(O,V,J,y){if(ML(y,{jy:["metadata_type_linked_player_bytes_layout_id"],TG:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new oE(O,J,y,this.UA,this.gW,this.K);throw new qd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+KF(y.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.T=pFr.prototype;g.T.BY=function(){return this.slot}; g.T.hv=function(){return this.layout}; g.T.init=function(){}; g.T.release=function(){}; g.T.startRendering=function(O){O.layoutId!==this.layout.layoutId?this.callback.E7(this.slot,O,new qd("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.fd(this.slot,O),this.Yi.Y8("impression"),$W(this.rB,O))}; g.T.Wn=function(O,V){O.layoutId!==this.layout.layoutId?this.callback.E7(this.slot,O,new qd("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.Cd(this.slot,O,V)};g.T=hmd.prototype;g.T.BY=function(){return this.slot}; g.T.hv=function(){return this.layout}; g.T.init=function(){}; g.T.release=function(){}; g.T.startRendering=function(O){O.layoutId!==this.layout.layoutId?this.callback.E7(this.slot,O,new qd("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.fd(this.slot,O),this.Yi.Y8("impression"),$W(this.rB,O))}; g.T.Wn=function(O,V){O.layoutId!==this.layout.layoutId?this.callback.E7(this.slot,O,new qd("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.Cd(this.slot,O,V)};EI.prototype.build=function(O,V,J,y){if(!this.Xj.get().G.Y().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(ML(y,fHr()))return new pFr(O,J,y,this.gW,this.rB)}else if(ML(y,{jy:[],TG:["LAYOUT_TYPE_FORECASTING"]}))return new hmd(O,J,y,this.gW,this.rB);throw new qd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+KF(y.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.I(wFh,Re);g.I(dL,DQ);g.T=dL.prototype;g.T.init=function(){DQ.prototype.init.call(this);var O=g.e(this.layout.renderingContent,tY)||G_(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),V={adsClientData:this.layout.IB};this.K.push(new wFh(O,G_(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,V))}; g.T.Bi=function(){this.D||this.Av.get().resumeVideo(2)}; g.T.startRendering=function(O){DQ.prototype.startRendering.call(this,O);this.callback.fd(this.slot,O);this.W.Tf=this}; g.T.Wn=function(O,V){DQ.prototype.Wn.call(this,O,V);iS(this.W,this)}; g.T.Nf=function(O,V){if(!wz(this.Xj.get(),"stop_handling_click_for_non_rendering_overlay_layout")||V===this.layout.layoutId){if(nk(this.V.get(),this.S))switch(O){case "visit-advertiser-link":JY(this.gW.get(),3)}switch(O){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Av.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Av.get().oT(2))||this.Av.get().pauseVideo();break; case "visit-advertiser-link":this.Av.get().pauseVideo();Mn1(this).IE();break;case "skip-button":if(O=Mn1(this),this.layout.renderingContent&&!Es(this.layout.clientMetadata,"metadata_type_dai")||!O||!O.wc){var J;(O=(J=G_(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&J2(O,this.BY(),this.layout)}else DJ("Requesting to skip by LegacyPlayerBytes when components enabled"),O.Yh(this.BY(),this.layout)}}}; g.T.U5=function(){DQ.prototype.U5.call(this)};g.I(gL,DQ);g.T=gL.prototype;g.T.init=function(){DQ.prototype.init.call(this);var O=g.e(this.layout.renderingContent,KE)||G_(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V={adsClientData:this.layout.IB},J;(J=!!this.layout.renderingContent)||(J=qL(this),J=!(J&&J.wc));this.K.push(new jo(O,this.layout.layoutId,G_(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),V,J))}; g.T.Bi=function(){this.D||this.Av.get().resumeVideo(2)}; g.T.startRendering=function(O){DQ.prototype.startRendering.call(this,O);this.callback.fd(this.slot,O);this.W.Tf=this}; g.T.Wn=function(O,V){DQ.prototype.Wn.call(this,O,V);iS(this.W,this)}; g.T.Nf=function(O,V){if(!this.Xj||!wz(this.Xj.get(),"stop_handling_click_for_non_rendering_overlay_layout")||V===this.layout.layoutId){if(nk(this.V.get(),this.S))switch(O){case "visit-advertiser":JY(this.gW.get(),3)}switch(O){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Av.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Av.get().oT(2))||this.Av.get().pauseVideo();break; case "visit-advertiser":this.Av.get().pauseVideo();qL(this).IE();break;case "skip-button":if(O=qL(this),this.layout.renderingContent&&!Es(this.layout.clientMetadata,"metadata_type_dai")||!O||!O.wc){var J;(O=(J=G_(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&J2(O,this.BY(),this.layout)}else DJ("Requesting to skip by LegacyPlayerBytes"),O.Yh(this.BY(),this.layout)}}}; g.T.U5=function(){DQ.prototype.U5.call(this)};g.I(nbX,Re);g.I(QH,DQ);g.T=QH.prototype;g.T.startRendering=function(O){var V=this;SS(this.j,O,function(){V.K.push(new nbX(G_(V.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),O.layoutId,O.IB));V.Rt();V.callback.fd(V.slot,O);g.R(Dv(V.Av.get(),1),512)&&V.callback.E7(V.BY(),V.hv(),new qd("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.T.QZ=function(){}; g.T.pw=function(O){if(O.state.isError()){var V;this.callback.E7(this.BY(),this.hv(),new qd("A player error happened during adNotify",{playerErrorCode:(V=O.state.o5)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.T.onFullscreenToggled=function(){}; g.T.mx=function(){}; g.T.FC=function(){}; g.T.O9=function(){}; g.T.onVolumeChange=function(){}; g.T.A_=function(){}; g.T.oW=function(){}; g.T.Nf=function(){};g.I(EbY,Re);g.I(GN,DQ);GN.prototype.init=function(){DQ.prototype.init.call(this);var O=g.e(this.layout.renderingContent,AY),V=OI(this.Yi);this.K.push(new EbY(O,V,this.layout.layoutId,{adsClientData:this.layout.IB}))}; GN.prototype.startRendering=function(O){DQ.prototype.startRendering.call(this,O);this.callback.fd(this.slot,O)}; GN.prototype.Nf=function(O,V){if(V===this.layout.layoutId)switch(O){case "skip-button":var J;(O=(J=G_(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&J2(O,this.BY(),this.layout)}}; GN.prototype.U5=function(){DQ.prototype.U5.call(this)};dbd.prototype.build=function(O,V,J,y){if(O=rL(O,J,y,this.UA,this.Av,this.gW,this.j,this.K,this.Xj))return O;throw new qd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+KF(y.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.T=BE.prototype;g.T.BY=function(){return this.slot}; g.T.hv=function(){return this.layout}; g.T.init=function(){this.Av.get().addListener(this);this.Av.get().kY.push(this);var O=gbV(this),V=g.e(this.layout.renderingContent,v3),J=V?mY(V.pings):G_(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");V=V?Vnl(V.pings):G_(this.layout.clientMetadata,"metadata_type_active_view_identifier");l3(this.layout.D4)&&Oh(this.WY.get(),this.layout.layoutId,{zf:J,Pr:O,listener:this,Wa:V})}; g.T.release=function(){this.Av.get().removeListener(this);eep(this.Av.get(),this);l3(this.layout.D4)&&Ve(this.WY.get(),this.layout.layoutId)}; g.T.startRendering=function(O){this.callback.fd(this.slot,O)}; g.T.Wn=function(O,V){PE(this,"abandon");this.callback.Cd(this.slot,O,V)}; g.T.A_=function(O){switch(O.id){case "part2viewed":this.Yi.Y8("start");this.Yi.Y8("impression");break;case "videoplaytime25":this.Yi.Y8("first_quartile");break;case "videoplaytime50":this.Yi.Y8("midpoint");break;case "videoplaytime75":this.Yi.Y8("third_quartile");break;case "videoplaytime100":PE(this,"complete");UI(this.Yi)&&xp(this.Yi,Infinity,!0);rv1(this.Xj.get())&&Yp(this.j,Infinity,!0);break;case "engagedview":UI(this.Yi)||this.Yi.Y8("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:DJ("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.T.onVolumeChange=function(){}; g.T.O9=function(){}; g.T.mx=function(){}; g.T.FC=function(){}; g.T.onFullscreenToggled=function(){}; g.T.pw=function(O){this.K||(g.Jg(O,4)&&!g.Jg(O,2)?NL(this.Yi,"pause"):Vk(O,4)<0&&!(Vk(O,2)<0)&&NL(this.Yi,"resume"))}; g.T.QZ=function(){}; g.T.W8=function(O){rv1(this.Xj.get())&&Yp(this.j,O*1E3,!1);UI(this.Yi)&&xp(this.Yi,O*1E3,!1)}; g.T.oW=function(){PE(this,"swipe")}; g.T.Ve=function(){this.Yi.Y8("active_view_measurable")}; g.T.wd=function(){this.Yi.Y8("active_view_viewable")}; g.T.Ge=function(){this.Yi.Y8("active_view_fully_viewable_audible_half_duration")}; g.T.kR=function(){this.Yi.Y8("audio_measurable")}; g.T.o1=function(){this.Yi.Y8("audio_audible")};qk5.prototype.build=function(O,V,J,y){if(J.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.e(y.renderingContent,v3)!==void 0)return new BE(O,J,y,this.Av,this.gW,this.Vc,this.Xj,this.WY,this.CD);V=["metadata_type_ad_placement_config"];for(var l=g.n(jP()),m=l.next();!m.done;m=l.next())V.push(m.value);if(ML(y,{jy:V,TG:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return J.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new BE(O,J,y,this.Av,this.gW,this.Vc,this.Xj,this.WY,this.CD):new cPr(O,J,y, this.Av,this.gW,this.Vc,this.Xj,this.WY);throw new qd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+KF(y.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Emm,XN; Emm={y4i:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",eND:"AUTHENTICATION_MALFORMED",pcW:"AUTHENTICATION_MISSING",mjD:"BAD_REQUEST",djW:"CAST_SESSION_DEVICE_MISMATCHED",OKD:"CAST_SESSION_VIDEO_MISMATCHED",A_W:"CAST_TOKEN_EXPIRED",r_z:"CAST_TOKEN_FAILED",FEE:"CAST_TOKEN_MALFORMED",iKB:"CGI_PARAMS_MALFORMED",oTz:"CGI_PARAMS_MISSING",aej:"DEVICE_FALLBACK",Fyj:"GENERIC_WITH_LINK_AND_CPN",iBn:"ERROR_HDCP",o1z:"LICENSE",GRl:"VIDEO_UNAVAILABLE",yRN:"FORMAT_UNAVAILABLE",CLX:"GEO_FAILURE", pHW:"HTML5_AUDIO_RENDERER_ERROR",qbl:"GENERIC_WITHOUT_LINK",KBK:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",jpv:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",mcW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",R$l:"HTML5_SPS_UMP_STATUS_REJECTED",r$w:"INVALID_DRM_MESSAGE",vVi:"PURCHASE_NOT_FOUND",WuE:"PURCHASE_REFUNDED",nVW:"RENTAL_EXPIRED",NbL:"RETRYABLE_ERROR",hyv:"SERVER_ERROR",frl:"SIGNATURE_EXPIRED",O4l:"STOPPED_BY_ANOTHER_PLAYBACK",Apz:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",rpD:"STREAMING_NOT_ALLOWED", FzW:"STREAM_LICENSE_NOT_FOUND",LzX:"TOO_MANY_REQUESTS",x5W:"TOO_MANY_REQUESTS_WITH_LINK",ypL:"TOO_MANY_STREAMS_PER_ENTITLEMENT",cpD:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",qI5:"VIDEO_FORBIDDEN",KoB:"VIDEO_NOT_FOUND",vTE:"BROWSER_OR_EXTENSION_ERROR"};XN={}; g.Ql=(XN.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.",XN.DEVICE_FALLBACK="Sorry, this video is not available on this device.",XN.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",XN.LICENSE="Sorry, there was an error licensing this video.",XN.VIDEO_UNAVAILABLE= "Video unavailable",XN.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",XN.GEO_FAILURE="This video isn't available in your country.",XN.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",XN.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",XN.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",XN.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", XN.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",XN.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",XN.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",XN.PURCHASE_NOT_FOUND="This video requires payment.",XN.PURCHASE_REFUNDED="This video's purchase has been refunded.",XN.RENTAL_EXPIRED="This video's rental has expired.",XN.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",XN.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",XN.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",XN.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",XN.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",XN.SERVER_ERROR="There was an internal server error. Please try again later.",XN.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",XN.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",XN.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",XN.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",XN.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",XN.TOO_MANY_REQUESTS="Please log in to watch this video.", XN.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",XN.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",XN.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",XN.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",XN.VIDEO_FORBIDDEN="Access to this video is forbidden.",XN.VIDEO_NOT_FOUND="This video can not be found.",XN.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",XN);var dkd;var gmE=g.Pt(),q2z=gmE.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!q2z||q2z.length<2)dkd=void 0;else{var QdC=gmE.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);dkd=QdC&&QdC.length===6?Number(QdC[5].replace("_",".")):0}var ud=dkd,X_=ud>=0;g.I(g.jX,bj);g.jX.prototype.Z=function(O,V,J,y,l){return bj.prototype.Z.call(this,O,V,J,y,l)};var EP={},BK=(EP.FAIRPLAY="fairplay",EP.PLAYREADY="playready",EP.WIDEVINE="widevine",EP.CLEARKEY=null,EP.FLASHACCESS=null,EP.UNKNOWN=null,EP.WIDEVINE_CLASSIC=null,EP);CN.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var dZ={},mW=(dZ.WIDTH={name:"width",video:!0,valid:640,Bs:99999},dZ.HEIGHT={name:"height",video:!0,valid:360,Bs:99999},dZ.FRAMERATE={name:"framerate",video:!0,valid:30,Bs:9999},dZ.BITRATE={name:"bitrate",video:!0,valid:3E5,Bs:2E9},dZ.EOTF={name:"eotf",video:!0,valid:"bt709",Bs:"catavision"},dZ.CHANNELS={name:"channels",video:!1,valid:2,Bs:99},dZ.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Bs:"invalidformat"},dZ.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Bs:"nope"},dZ.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Bs:"av99.0.05M.08"},dZ.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Bs:"invalid"},dZ.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",Bs:"false"},dZ);var GvF=["h","H"],K$s=["9","("],twy=["9h","(h"],uCC=["8","*"],A0s=["a","A"],r0E=["o","O"],iuD=["m","M"],RYz=["mac3","MAC3"],BTd=["meac3","MEAC3"],gZ={},sIH=(gZ.h=GvF,gZ.H=GvF,gZ["9"]=K$s,gZ["("]=K$s,gZ["9h"]=twy,gZ["(h"]=twy,gZ["8"]=uCC,gZ["*"]=uCC,gZ.a=A0s,gZ.A=A0s,gZ.o=r0E,gZ.O=r0E,gZ.m=iuD,gZ.M=iuD,gZ.mac3=RYz,gZ.MAC3=RYz,gZ.meac3=BTd,gZ.MEAC3=BTd,gZ),P2d=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),C$o=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var S={},KN=(S["0"]="f",S["160"]="h",S["133"]="h",S["134"]="h",S["135"]="h",S["136"]="h",S["137"]="h",S["264"]="h",S["266"]="h",S["138"]="h",S["298"]="h",S["299"]="h",S["304"]="h",S["305"]="h",S["214"]="h",S["216"]="h",S["374"]="h",S["375"]="h",S["140"]="a",S["141"]="a",S["327"]="sa",S["258"]="m",S["380"]="mac3",S["328"]="meac3",S["161"]="H",S["142"]="H",S["143"]="H",S["144"]="H",S["222"]="H",S["223"]="H",S["145"]="H",S["224"]="H",S["225"]="H",S["146"]="H",S["226"]="H",S["227"]="H",S["147"]="H",S["384"]= "H",S["376"]="H",S["385"]="H",S["377"]="H",S["149"]="A",S["261"]="M",S["381"]="MAC3",S["329"]="MEAC3",S["598"]="9",S["278"]="9",S["242"]="9",S["243"]="9",S["244"]="9",S["775"]="9",S["776"]="9",S["777"]="9",S["778"]="9",S["779"]="9",S["780"]="9",S["781"]="9",S["782"]="9",S["783"]="9",S["247"]="9",S["248"]="9",S["353"]="9",S["355"]="9",S["356"]="9",S["271"]="9",S["577"]="9",S["313"]="9",S["579"]="9",S["272"]="9",S["302"]="9",S["303"]="9",S["407"]="9",S["408"]="9",S["308"]="9",S["315"]="9",S["330"]= "9h",S["331"]="9h",S["332"]="9h",S["333"]="9h",S["334"]="9h",S["335"]="9h",S["336"]="9h",S["337"]="9h",S["338"]="so",S["600"]="o",S["250"]="o",S["251"]="o",S["774"]="o",S["194"]="*",S["195"]="*",S["220"]="*",S["221"]="*",S["196"]="*",S["197"]="*",S["279"]="(",S["280"]="(",S["317"]="(",S["318"]="(",S["273"]="(",S["274"]="(",S["357"]="(",S["358"]="(",S["275"]="(",S["359"]="(",S["360"]="(",S["276"]="(",S["583"]="(",S["584"]="(",S["314"]="(",S["585"]="(",S["561"]="(",S["277"]="(",S["361"]="(h",S["362"]= "(h",S["363"]="(h",S["364"]="(h",S["365"]="(h",S["366"]="(h",S["591"]="(h",S["592"]="(h",S["367"]="(h",S["586"]="(h",S["587"]="(h",S["368"]="(h",S["588"]="(h",S["562"]="(h",S["409"]="(",S["410"]="(",S["411"]="(",S["412"]="(",S["557"]="(",S["558"]="(",S["394"]="1",S["395"]="1",S["396"]="1",S["397"]="1",S["398"]="1",S["399"]="1",S["720"]="1",S["721"]="1",S["400"]="1",S["401"]="1",S["571"]="1",S["402"]="1",S["694"]="1h",S["695"]="1h",S["696"]="1h",S["697"]="1h",S["698"]="1h",S["699"]="1h",S["700"]="1h", S["701"]="1h",S["702"]="1h",S["703"]="1h",S["386"]="3",S["387"]="w",S["406"]="6",S["787"]="1",S["788"]="1",S["548"]="1e",S["549"]="1e",S["550"]="1e",S["551"]="1e",S["809"]="1e",S["810"]="1e",S["552"]="1e",S["811"]="1e",S["812"]="1e",S["553"]="1e",S["813"]="1e",S["814"]="1e",S["554"]="1e",S["815"]="1e",S["816"]="1e",S["555"]="1e",S["817"]="1e",S["818"]="1e",S["572"]="1e",S["556"]="1e",S["645"]="(",S["646"]="(",S["647"]="(",S["648"]="(",S["649"]="(",S["650"]="(",S["651"]="(",S["652"]="(",S["653"]="(", S["654"]="(",S["655"]="(",S["656"]="(",S["657"]="(",S["658"]="(",S["659"]="(",S["660"]="(",S["661"]="(",S["662"]="(",S["663"]="(",S["664"]="(",S["665"]="(",S["666"]="(",S["667"]="(",S["668"]="(",S["669"]="(",S["670"]="(",S["671"]="(",S["672"]="(",S["673"]="(",S["674"]="(h",S["675"]="(h",S["676"]="(h",S["677"]="(h",S["678"]="(h",S["679"]="(h",S["680"]="(h",S["681"]="(h",S["682"]="(h",S["683"]="(h",S["684"]="(h",S["685"]="(h",S["686"]="(h",S["687"]="(h",S["688"]="A",S["689"]="A",S["690"]="A",S["691"]= "MEAC3",S["773"]="i",S["806"]="I",S["805"]="I",S["829"]="9",S["830"]="9",S["831"]="9",S["832"]="9",S["833"]="9",S["834"]="9",S["835"]="9",S["836"]="9",S["892"]="9",S["893"]="9",S["837"]="9",S["838"]="9",S["839"]="9",S["840"]="9",S["841"]="(",S["842"]="(",S["843"]="(",S["844"]="(",S["845"]="(",S["846"]="(",S["847"]="(",S["848"]="(",S["894"]="(",S["895"]="(",S["849"]="(",S["850"]="(",S["851"]="(",S["852"]="(",S["865"]="9",S["866"]="9",S["867"]="9",S["868"]="9",S["869"]="9",S["870"]="9",S["871"]="9", S["872"]="9",S["896"]="9",S["897"]="9",S["873"]="9",S["874"]="9",S["875"]="9",S["876"]="9",S["877"]="(",S["878"]="(",S["879"]="(",S["880"]="(",S["881"]="(",S["882"]="(",S["883"]="(",S["884"]="(",S["898"]="(",S["899"]="(",S["885"]="(",S["886"]="(",S["887"]="(",S["888"]="(",S["900"]="2",S["901"]="2",S["902"]="2",S["903"]="2",S["904"]="2",S["905"]="2",S["906"]="2",S["907"]="2",S["908"]="2",S);var q6={},kMH=(q6.STEREO_LAYOUT_UNKNOWN=0,q6.STEREO_LAYOUT_LEFT_RIGHT=1,q6.STEREO_LAYOUT_TOP_BOTTOM=2,q6);var ksl={cjw:0,rjz:124,AjK:144,oVi:220,iyX:240,GXB:340,kXE:360,Vrn:480,wii:588,gVj:608,LuN:720,xuX:740,uqD:1080,duw:1100,OyE:1440,FuK:2160,yjz:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var QE,rl,GH,D8Y;QE={};g.g3=(QE.auto=0,QE.tiny=144,QE.light=144,QE.small=240,QE.medium=360,QE.large=480,QE.hd720=720,QE.hd1080=1080,QE.hd1440=1440,QE.hd2160=2160,QE.hd2880=2880,QE.highres=4320,QE);rl={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};GH={}; D8Y=(GH.QUALITY_ORDINAL_UNKNOWN=0,GH.QUALITY_ORDINAL_144P_SAVER=124,GH.QUALITY_ORDINAL_144P=144,GH.QUALITY_ORDINAL_240P_SAVER=220,GH.QUALITY_ORDINAL_240P=240,GH.QUALITY_ORDINAL_360P_SAVER=340,GH.QUALITY_ORDINAL_360P=360,GH.QUALITY_ORDINAL_480P=480,GH.QUALITY_ORDINAL_608P_SAVER=588,GH.QUALITY_ORDINAL_608P=608,GH.QUALITY_ORDINAL_720P=720,GH.QUALITY_ORDINAL_720P_ENHANCED=740,GH.QUALITY_ORDINAL_1080P=1080,GH.QUALITY_ORDINAL_1080P_ENHANCED=1100,GH.QUALITY_ORDINAL_1440P=1440,GH.QUALITY_ORDINAL_2160P=2160, GH.QUALITY_ORDINAL_HIGHRES=9999,GH);var Qj="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");qI.prototype.isHdr=function(){return this.K==="smpte2084"||this.K==="arib-std-b67"};tq.prototype.ey=function(){return this.containerType===2}; tq.prototype.isEncrypted=function(){return!!this.AL}; tq.prototype.jE=function(){return!!this.audio}; tq.prototype.z3=function(){return!!this.video}; var r3=!1;g.I(N8,g.BF);g.T=N8.prototype;g.T.appendBuffer=function(O,V,J){if(this.BB.zc()!==this.appendWindowStart+this.start||this.BB.k7()!==this.appendWindowEnd+this.start||this.BB.HY()!==this.timestampOffset+this.start)this.BB.supports(1),this.BB.Ol(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.BB.Pv(this.timestampOffset+this.start);this.BB.appendBuffer(O,V,J)}; g.T.abort=function(){this.BB.abort()}; g.T.remove=function(O,V){this.BB.remove(O+this.start,V+this.start)}; g.T.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.T.clear=function(){this.BB.clear()}; g.T.Ol=function(O,V){this.appendWindowStart=O;this.appendWindowEnd=V}; g.T.Wy=function(){return this.timestampOffset+this.start}; g.T.zc=function(){return this.appendWindowStart}; g.T.k7=function(){return this.appendWindowEnd}; g.T.Pv=function(O){this.timestampOffset=O}; g.T.HY=function(){return this.timestampOffset}; g.T.hL=function(O){O=this.BB.hL(O===void 0?!1:O);return FU(O,this.start,this.end)}; g.T.s9=function(){return this.BB.s9()}; g.T.Bj=function(){return this.BB.Bj()}; g.T.hR=function(){return this.BB.hR()}; g.T.By=function(){return this.BB.By()}; g.T.mI=function(){this.BB.mI()}; g.T.pQ=function(O){return this.BB.pQ(O)}; g.T.xu=function(){return this.BB.xu()}; g.T.II=function(){return this.BB.II()}; g.T.rf=function(O,V,J){this.BB.rf(O,V,J)}; g.T.F3=function(O,V,J){this.BB.F3(O,V,J)}; g.T.cS=function(O,V){return this.BB.cS(O,V)}; g.T.supports=function(O){return this.BB.supports(O)}; g.T.So=function(){return this.BB.So()}; g.T.isView=function(){return!0}; g.T.AA=function(){return this.BB.AA()?this.isActive:!1}; g.T.isLocked=function(){return this.Yq&&!this.isActive}; g.T.qI=function(O){O=this.BB.qI(O);O.vw=this.start+"-"+this.end;return O}; g.T.Qs=function(){return this.BB.Qs()}; g.T.K6=function(){return this.BB.K6()}; g.T.mV=function(){return this.BB.mV()}; g.T.U5=function(){this.BB.Vq(this.zA);g.BF.prototype.U5.call(this)};var DT=!1;g.I(Ws,g.BF);g.T=Ws.prototype;g.T.appendBuffer=function(O,V,J){this.W5=!1;J&&(this.s0=J);if(O.length){var y;((y=this.Z4)==null?0:y.appendBuffer)?this.Z4.appendBuffer(O):this.Z4?this.Z4.append(O):this.WK&&this.WK.webkitSourceAppend(this.id,O)}V&&(V.isEncrypted()&&(this.gP=this.s0),V.type===3&&(this.Sj=V),this.aJ.push(V.rX()),this.aJ.length>4&&this.aJ.shift());this.dV&&(this.dV.length>=2||O.length>1048576?delete this.dV:this.dV.push(O))}; g.T.abort=function(){try{this.Z4?this.Z4.abort():this.WK&&this.WK.webkitSourceAbort(this.id)}catch(O){YVd&&g.en(new g.pn("Error while abort the source buffer: "+O.name+", "+O.message))}this.s0=this.Sj=null}; g.T.remove=function(O,V,J){this.W5=!1;var y;if((y=this.Z4)==null?0:y.remove)J&&J({b:yr(this.hL()),s:O,e:V}),this.Z4.remove(O,V)}; g.T.removeAll=function(){this.remove(this.zc(),this.k7())}; g.T.clear=function(){this.hR()||(this.abort(),this.removeAll(),this.gP=this.s0=this.Sj=null,this.appendWindowStart=this.timestampOffset=0,this.W7=JN([],[]),this.W5=!1,this.dV=xf?[]:void 0,this.x9=!0)}; g.T.zc=function(){if(DT&&this.z3)return this.appendWindowStart;var O;return((O=this.Z4)==null?void 0:O.appendWindowStart)||0}; g.T.k7=function(){var O;return((O=this.Z4)==null?void 0:O.appendWindowEnd)||0}; g.T.Ol=function(O,V){this.Z4&&(DT&&this.z3?(this.appendWindowStart=O,this.Z4.appendWindowEnd=V):O>this.zc()?(this.Z4.appendWindowEnd=V,this.Z4.appendWindowStart=O):(this.Z4.appendWindowStart=O,this.Z4.appendWindowEnd=V))}; g.T.Wy=function(){return this.timestampOffset}; g.T.Pv=function(O){DT?this.timestampOffset=O:this.supports(1)&&(this.Z4.timestampOffset=O)}; g.T.HY=function(){return DT?this.timestampOffset:this.supports(1)?this.Z4.timestampOffset:0}; g.T.hL=function(O){if(O===void 0?0:O)return this.W5||this.s9()||(this.W7=this.hL(!1),this.W5=!0),this.W7;try{return this.Z4?this.Z4.buffered:this.WK?this.WK.webkitSourceBuffered(this.id):JN([0],[Infinity])}catch(V){return JN([],[])}}; g.T.s9=function(){var O;return((O=this.Z4)==null?void 0:O.updating)||!1}; g.T.hR=function(){return this.x9}; g.T.By=function(){return!this.x9&&this.s9()}; g.T.mI=function(){this.x9=!1}; g.T.pQ=function(O){var V=O==null?void 0:O.al;O=O==null?void 0:O.containerType;return!V&&!O||V===this.al&&O===this.containerType}; g.T.xu=function(){return this.s0}; g.T.II=function(){return this.gP}; g.T.cS=function(O,V){return this.containerType!==O||this.al!==V}; g.T.rf=function(O,V,J){if(this.containerType!==O||J&&this.cS(O,J))this.supports(4),U4()&&this.Z4.changeType(V),J&&(this.al=J);this.containerType=O}; g.T.F3=function(O,V,J){this.containerType&&this.cS(O,V)&&U4()&&this.Z4.changeType(J);this.containerType=O;this.al=V}; g.T.So=function(){return this.Sj}; g.T.isView=function(){return!1}; g.T.supports=function(O){switch(O){case 1:var V;return((V=this.Z4)==null?void 0:V.timestampOffset)!==void 0;case 0:var J;return!((J=this.Z4)==null||!J.appendBuffer);case 2:var y;return!((y=this.Z4)==null||!y.remove);case 3:var l,m;return!!(((l=this.Z4)==null?0:l.addEventListener)&&((m=this.Z4)==null?0:m.removeEventListener));case 4:return!(!this.Z4||!this.Z4.changeType);default:return!1}}; g.T.AA=function(){return!this.s9()}; g.T.isLocked=function(){return!1}; g.T.qI=function(O){O.to=this.HY();O.up=this.s9();var V,J=((V=this.Z4)==null?void 0:V.appendWindowStart)||0,y;V=((y=this.Z4)==null?void 0:y.appendWindowEnd)||Infinity;O.aw=J.toFixed(3)+"-"+V.toFixed(3);return O}; g.T.Bj=function(){var O;return((O=this.Z4)==null?void 0:O.writeHead)||0}; g.T.Qs=function(){for(var O={},V=0;V=7&&(!V||((y=this.Il)==null?0:y.L("mweb_ios_allow_playback_workaround_when_ready")))&&Qel(this,function(){g.CW(function(){WpX(O,O.getCurrentTime(),0)},500)})}return V}; g.T.seekTo=function(O){this.g8()>0&&(X_&&ud<4&&(O=Math.max(.1,O)),this.setCurrentTime(O))}; g.T.xT=function(){if(!this.j&&this.SB)if(this.SB.W)try{var O;TM(this,{l:"mer",sr:(O=this.Il)==null?void 0:O.OY(),rs:Iw(this.SB)});this.SB.clear();this.j=this.SB;this.SB=void 0}catch(V){O=new g.pn("Error while clearing Media Source in MediaElement: "+V.name+", "+V.message),g.sk(O),this.stopVideo()}else this.stopVideo()}; g.T.stopVideo=function(){var O=this;if(!this.j){var V;(V=this.SB)==null||Fp1(V);if(TvX){if(!this.U){var J=new hN;J.then(void 0,function(){}); this.U=J;ekn&&this.pause();g.CW(function(){O.U===J&&(M8(O),J.resolve())},200)}}else M8(this)}}; g.T.Hc=function(){var O=this.pE();return jC(O)&&this.getDuration()?$f(O,this.getCurrentTime()):0}; g.T.Id=function(){var O=this.getDuration();return O===Infinity?1:O?this.Hc()/O:0}; g.T.qI=function(){try{var O=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:yr(this.Iq(),",",3),vbu:yr(this.pE()),vbs:yr(this.NJ()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.g8(),vns:""+this.Pj(),vec:""+this.qU(),vemsg:this.Mf(),vvol:""+this.getVolume(),vdom:""+ +this.hs(),vsrc:""+ +!!this.sY(),vw:""+O.width,vh:""+O.height}}catch(V){return{}}}; g.T.hasError=function(){return this.qU()>0}; g.T.addEventListener=function(O,V){this.D.listen(O,V,!1,this);this.Xy(O)}; g.T.removeEventListener=function(O,V){this.D.oX(O,V,!1,this)}; g.T.dispatchEvent=function(O){if(this.U&&O.type==="pause")return!1;if(IxY){var V,J=((V=O.K)==null?void 0:V.timeStamp)||Infinity;V=J>performance.now()?J-Date.now()+performance.now():J;J=this.j||this.SB;if((J==null?0:J.hR())||V<=((J==null?void 0:J.V)||0)){var y;TM(this,{l:"mede",sr:(y=this.Il)==null?void 0:y.OY(),et:O.type});return!1}if(this.DS)return TM(this,{l:"medes",et:O.type}),J&&O.type==="seeking"&&(J.V=performance.now(),this.DS=!1),!1}return this.D.dispatchEvent(O)}; g.T.fC=function(){this.V=!1}; g.T.lx=function(){this.V=!0;this.VM(!0)}; g.T.Kp=function(){this.V&&!this.EX()&&this.VM(!0)}; g.T.equals=function(O){return!!O&&O.dC()===this.dC()}; g.T.U5=function(){this.S&&this.removeEventListener("volumechange",this.Kp);TvX&&M8(this);g.K.prototype.U5.call(this)}; var TvX=!1,ekn=!1,IxY=!1,zl5=!1;g.T=g.nr.prototype;g.T.isPaused=function(){return g.R(this,4)}; g.T.isPlaying=function(){return g.R(this,8)&&!g.R(this,512)&&!g.R(this,64)&&!g.R(this,2)}; g.T.isOrWillBePlaying=function(){return g.R(this,8)&&!g.R(this,2)&&!g.R(this,1024)}; g.T.isCued=function(){return g.R(this,64)&&!g.R(this,8)&&!g.R(this,4)}; g.T.isBuffering=function(){return g.R(this,1)&&!g.R(this,2)}; g.T.isError=function(){return g.R(this,128)}; g.T.isSuspended=function(){return g.R(this,512)}; g.T.hW=function(){return g.R(this,64)&&g.R(this,4)}; g.T.toString=function(){return"PSt."+this.state.toString(16)}; var K0={},tM=(K0.BUFFERING="buffering-mode",K0.CUED="cued-mode",K0.ENDED="ended-mode",K0.PAUSED="paused-mode",K0.PLAYING="playing-mode",K0.SEEKING="seeking-mode",K0.UNSTARTED="unstarted-mode",K0);g.I(u7,g.K);g.T=u7.prototype;g.T.BY=function(){return this.slot}; g.T.hv=function(){return this.layout}; g.T.init=function(){var O=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=G_(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");l3(this.layout.D4)&&Oh(this.WY.get(),this.layout.layoutId,{zf:V,Pr:O,listener:this});Wno(this.gW.get(),this);this.vG()}; g.T.Dk=function(){}; g.T.release=function(){l3(this.layout.D4)&&Ve(this.WY.get(),this.layout.layoutId);Ufh(this.gW.get(),this);this.sO()}; g.T.EO=function(){}; g.T.R0=function(){}; g.T.startRendering=function(O){if(O.layoutId!==this.layout.layoutId){this.kJ.E7(this.slot,O,new qd("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");var V=!1}else V=!0;V&&(this.j7="rendering_start_requested",this.f4(-1),this.RP(O),this.Rv(!1))}; g.T.fd=function(O,V){if(V.layoutId===this.layout.layoutId){this.j7="rendering";this.K=this.Av.get().isMuted()||this.Av.get().getVolume()===0;this.Y8("impression");this.Y8("start");if(this.Av.get().isMuted()){rQ(this,"mute");var J;O=((J=tN(this))==null?void 0:J.muteCommands)||[];fm(this.Vc.get(),O,this.layout.layoutId)}if(this.Av.get().isFullscreen()){this.EY("fullscreen");var y;J=((y=tN(this))==null?void 0:y.fullscreenCommands)||[];fm(this.Vc.get(),J,this.layout.layoutId)}y=this.GK.get();y.U&&!y.j&& (y.W=!1,y.j=!0,y.actionType!=="ad_to_video"&&(ac("pbs",void 0,y.actionType),g.Ut("finalize_all_timelines")&&KNn(y.actionType)));this.f4(1);this.l8(V);var l;V=((l=tN(this))==null?void 0:l.impressionCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId)}}; g.T.FA=function(O,V,J){this.W={sj:3,EZ:O==="load_timeout"?402:400,errorMessage:V.message};this.Y8("error");var y;O=((y=tN(this))==null?void 0:y.errorCommands)||[];fm(this.Vc.get(),O,this.layout.layoutId);this.kJ.E7(this.slot,this.layout,V,J)}; g.T.s$=function(){if(this.j7==="rendering"){rQ(this,"pause");var O,V=((O=tN(this))==null?void 0:O.pauseCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId);this.f4(2)}}; g.T.B9=function(){if(this.j7==="rendering"){rQ(this,"resume");var O,V=((O=tN(this))==null?void 0:O.resumeCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId)}}; g.T.wM=function(O,V){V=V===void 0?!1:V;if(this.j7==="rendering"){xp(this.Yi,O*1E3,V);this.K||xp(this.Yi,O*1E3,V===void 0?!1:V);var J=this.b9();J&&(J/=1E3,(O>=J*.25||V)&&this.Y8("first_quartile"),(O>=J*.5||V)&&this.Y8("midpoint"),(O>=J*.75||V)&&this.Y8("third_quartile"),this.Xj.get().G.Y().experiments.Jv("enable_progress_command_flush_on_kabuki")?Yp(this.j,O*1E3,V):Yp(this.j,O*1E3,pSd(this)?V:!1))}}; g.T.nC=function(){var O;return((O=kp(this.CD.get(),1))==null?void 0:O.clientPlaybackNonce)||""}; g.T.CU=function(O,V){O.layoutId!==this.layout.layoutId?this.kJ.E7(this.slot,O,new qd("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.T.Cd=function(O,V,J){if(V.layoutId===this.layout.layoutId)switch(this.j7="not_rendering",this.layoutExitReason=void 0,(O=J!=="normal"||this.position+1===this.D)&&this.Rv(O),this.tG(J),this.f4(0),J){case "abandoned":if(WE(this.Yi,"impression")){var y,l=((y=tN(this))==null?void 0:y.abandonCommands)||[];fm(this.Vc.get(),l,this.layout.layoutId)}break;case "normal":y=((l=tN(this))==null?void 0:l.completeCommands)||[];fm(this.Vc.get(),y,this.layout.layoutId);break;case "skipped":var m;y=((m=tN(this))== null?void 0:m.skipCommands)||[];fm(this.Vc.get(),y,this.layout.layoutId)}}; g.T.l7=function(){return this.layout.layoutId}; g.T.cT=function(){return this.W}; g.T.Ve=function(){if(this.j7==="rendering"){this.Yi.Y8("active_view_measurable");var O,V=((O=tN(this))==null?void 0:O.activeViewMeasurableCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId)}}; g.T.Ge=function(){if(this.j7==="rendering"){this.Yi.Y8("active_view_fully_viewable_audible_half_duration");var O,V=((O=tN(this))==null?void 0:O.activeViewFullyViewableAudibleHalfDurationCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId)}}; g.T.wd=function(){if(this.j7==="rendering"){this.Yi.Y8("active_view_viewable");var O,V=((O=tN(this))==null?void 0:O.activeViewViewableCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId)}}; g.T.o1=function(){if(this.j7==="rendering"){this.Yi.Y8("audio_audible");var O,V=((O=tN(this))==null?void 0:O.activeViewAudioAudibleCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId)}}; g.T.kR=function(){if(this.j7==="rendering"){this.Yi.Y8("audio_measurable");var O,V=((O=tN(this))==null?void 0:O.activeViewAudioMeasurableCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId)}}; g.T.Rv=function(O){this.GK.get().Rv(G_(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,O,this.position,this.D,!1)}; g.T.onFullscreenToggled=function(O){if(this.j7==="rendering")if(O){this.EY("fullscreen");var V,J=((V=tN(this))==null?void 0:V.fullscreenCommands)||[];fm(this.Vc.get(),J,this.layout.layoutId)}else this.EY("end_fullscreen"),V=((J=tN(this))==null?void 0:J.endFullscreenCommands)||[],fm(this.Vc.get(),V,this.layout.layoutId)}; g.T.onVolumeChange=function(){if(this.j7==="rendering")if(this.Av.get().isMuted()){rQ(this,"mute");var O,V=((O=tN(this))==null?void 0:O.muteCommands)||[];fm(this.Vc.get(),V,this.layout.layoutId)}else rQ(this,"unmute"),O=((V=tN(this))==null?void 0:V.unmuteCommands)||[],fm(this.Vc.get(),O,this.layout.layoutId)}; g.T.mx=function(){}; g.T.FC=function(){}; g.T.O9=function(){}; g.T.A_=function(){}; g.T.oW=function(){}; g.T.EY=function(O){this.Yi.EY(O,!this.K)}; g.T.Y8=function(O){this.Yi.Y8(O,!this.K)};g.I(Rw,u7);g.T=Rw.prototype;g.T.vG=function(){}; g.T.sO=function(){var O=this.gW.get();O.uX===this&&(O.uX=null);this.timer.stop()}; g.T.EO=function(){this.timer.stop();u7.prototype.s$.call(this)}; g.T.R0=function(){ffV(this);u7.prototype.B9.call(this)}; g.T.b9=function(){return G_(this.hv().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.T.Wn=function(O,V){var J=this;this.CU(O,function(){J.j7!=="rendering_stop_requested"&&(J.j7="rendering_stop_requested",J.layoutExitReason=V,el7(J,V),J.timer.stop())})}; g.T.VK=function(){var O=Date.now(),V=O-this.I6;this.I6=O;this.vX+=V;this.vX>=this.b9()?(this.vX=this.b9(),this.wM(this.vX/1E3,!0),Bs(this,this.vX),this.Fr()):(this.wM(this.vX/1E3),Bs(this,this.vX))}; g.T.pw=function(O){if(this.j7!=="not_rendering"){O=IfV(this,O);var V=this.Av.get().getPresentingPlayerType()===2;this.j7==="rendering_start_requested"?V&&i3(O)&&this.SU():V?g.Jg(O,2)?DJ("Receive player ended event during MediaBreak",this.BY(),this.hv()):YK7(this,O):this.oJ()}}; g.T.RP=function(){afn(this);YbY(this.Av.get());this.gW.get().uX=this;Ic("pbp")||Ic("pbs")||ac("pbp");Ic("pbp","watch")||Ic("pbs","watch")||ac("pbp",void 0,"watch");this.SU()}; g.T.l8=function(O){this.GK.get();var V=G_(O.clientMetadata,"metadata_type_ad_placement_config").kind,J=this.position===0;O=G_(O.clientMetadata,"metadata_type_linked_in_player_layout_type");O={adBreakType:AN(V),adType:F9V(O)};var y=void 0;J?V!=="AD_PLACEMENT_KIND_START"&&(y="video_to_ad"):y="ad_to_ad";sB("ad_mbs",void 0,y);g.TJ(O,y);ffV(this)}; g.T.oJ=function(){this.Fr()}; g.T.tG=function(){}; g.T.QZ=function(){};g.I(SC,u7);g.T=SC.prototype;g.T.oJ=function(){this.Fr()}; g.T.pw=function(O){this.Vg(O)}; g.T.vG=function(){G_(this.hv().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=G_(this.hv().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.T.sO=function(){G_(this.hv().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.T2&&this.X5.get().removeCueRange(this.T2);this.T2=void 0;var O;(O=this.mX)==null||O.dispose();this.Ci&&this.Ci.dispose()}; g.T.RP=function(O){var V=G_(O.clientMetadata,"metadata_type_ad_placement_config");V=Ps(this.Xj.get(),V);var J=kf(this.Xj.get());if(V&&J){J=G_(O.clientMetadata,"metadata_type_preload_player_vars");var y=this.Xj.get();y=g.Ry(y.G.Y().experiments,"html5_preload_wait_time_secs");J&&this.Ci&&this.Ci.start(y*1E3)}J=G_(O.clientMetadata,"metadata_type_ad_video_id");y=G_(O.clientMetadata,"metadata_type_legacy_info_card_vast_extension");J&&y&&this.Gb.get().G.Y().ol.add(J,{GW:y});(J=G_(O.clientMetadata,"metadata_type_sodar_extension_data"))&& vtp(this.wD.get(),J);aXp(this.Av.get(),!1);afn(this);V?(J=this.S7.get(),O=G_(O.clientMetadata,"metadata_type_player_vars"),J.G.loadVideoByPlayerVars(O,!1,2)):qYd(this.S7.get(),G_(O.clientMetadata,"metadata_type_player_vars"));var l;(l=this.mX)==null||l.start();V||this.S7.get().G.playVideo(2)}; g.T.l8=function(){var O;(O=this.mX)==null||O.stop();this.Sw();(this.adCpn=T_p(this))||DJ("Media layout confirmed started, but ad CPN not set.");this.NI.get().Yk("onAdStart",this.adCpn);this.FU=Date.now()}; g.T.b9=function(){var O;return(O=kp(this.CD.get(),2))==null?void 0:O.Yd}; g.T.IE=function(){this.Yi.EY("clickthrough")}; g.T.Wn=function(O,V){var J=this;this.CU(O,function(){if(J.j7!=="rendering_stop_requested"){J.j7="rendering_stop_requested";J.layoutExitReason=V;el7(J,V);var y;(y=J.mX)==null||y.stop();J.Ci&&J.Ci.stop();aXp(J.Av.get(),!0);var l;((l=J.shrunkenPlayerBytesConfig)==null?0:l.shouldRequestShrunkenPlayerBytes)&&J.Av.get().rM(!1)}})}; g.T.onCueRangeEnter=function(O){O!==this.T2?DJ("Received CueRangeEnter signal for unknown layout.",this.BY(),this.hv(),{cueRangeId:O}):(this.X5.get().removeCueRange(this.T2),this.T2=void 0,O=G_(this.hv().clientMetadata,"metadata_type_video_length_seconds"),this.wM(O,!0),this.Y8("complete"))}; g.T.tG=function(O){O!=="abandoned"&&this.NI.get().Yk("onAdComplete");this.NI.get().Yk("onAdEnd",this.adCpn)}; g.T.Sw=function(){this.T2="adcompletioncuerange:"+this.hv().layoutId;this.X5.get().addCueRange(this.T2,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}; g.T.onCueRangeExit=function(){}; g.T.QZ=function(O){this.j7==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&O>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Av.get().rM(!0),this.wM(O))}; g.T.wM=function(O,V){u7.prototype.wM.call(this,O,V===void 0?!1:V);V=Date.now()-this.FU;var J=O*1E3,y={contentCpn:this.nC(),adCpn:T_p(this)};if(O-this.M_>=5){var l=V0&&NM(this.K(),V)}; g.T.Q1=function(O){this.W.delete(O.slotId);for(var V=[],J=g.n(this.Ls.values()),y=J.next();!y.done;y=J.next()){y=y.value;var l=y.trigger;l instanceof $T&&l.triggeringSlotId===O.slotId&&V.push(y)}V.length>0&&NM(this.K(),V)}; g.T.xI=function(O){for(var V=[],J=g.n(this.Ls.values()),y=J.next();!y.done;y=J.next()){y=y.value;var l=y.trigger;l instanceof PT&&l.slotType===O.slotType&&l.K!==O.slotId&&V.push(y)}V.length>0&&NM(this.K(),V)}; g.T.kp=function(O){this.U.add(O.slotId);for(var V=[],J=g.n(this.Ls.values()),y=J.next();!y.done;y=J.next())y=y.value,y.trigger instanceof VQ&&O.slotId===y.trigger.triggeringSlotId&&V.push(y);V.length>0&&NM(this.K(),V)}; g.T.G3=function(O){this.U.delete(O.slotId);this.D.add(O.slotId);for(var V=[],J=g.n(this.Ls.values()),y=J.next();!y.done;y=J.next())if(y=y.value,y.trigger instanceof JE)O.slotId===y.trigger.triggeringSlotId&&V.push(y);else if(y.trigger instanceof qN){var l=y.trigger;O.slotId===l.slotId&&this.j.has(l.triggeringLayoutId)&&V.push(y)}V.length>0&&NM(this.K(),V)}; g.T.cK=function(O){for(var V=[],J=g.n(this.Ls.values()),y=J.next();!y.done;y=J.next())y=y.value,y.trigger instanceof yQ&&O.slotId===y.trigger.triggeringSlotId&&V.push(y);V.length>0&&NM(this.K(),V)}; g.T.I5=function(O){for(var V=[],J=g.n(this.Ls.values()),y=J.next();!y.done;y=J.next())y=y.value,y.trigger instanceof lf&&O.slotId===y.trigger.triggeringSlotId&&V.push(y);V.length>0&&NM(this.K(),V)}; g.T.vK=function(O,V){this.V.add(V.layoutId)}; g.T.m0=function(O,V){this.V.delete(V.layoutId)}; g.T.fd=function(O,V){this.j.add(V.layoutId);for(var J=[],y=g.n(this.Ls.values()),l=y.next();!l.done;l=y.next())if(l=l.value,l.trigger instanceof Qp)V.layoutId===l.trigger.triggeringLayoutId&&J.push(l);else if(l.trigger instanceof BT){var m=l.trigger;O.slotType===m.slotType&&V.layoutType===m.layoutType&&V.layoutId!==m.K&&J.push(l)}else l.trigger instanceof qN&&(m=l.trigger,V.layoutId===m.triggeringLayoutId&&this.D.has(m.slotId)&&J.push(l));J.length>0&&NM(this.K(),J)}; g.T.Cd=function(O,V,J){this.j.delete(V.layoutId);O=[];for(var y=g.n(this.Ls.values()),l=y.next();!l.done;l=y.next())if(l=l.value,l.trigger instanceof Kx&&V.layoutId===l.trigger.triggeringLayoutId&&O.push(l),l.trigger instanceof GC){var m=l.trigger;V.layoutId===m.triggeringLayoutId&&m.K.includes(J)&&O.push(l)}O.length>0&&NM(this.K(),O)}; g.T.nu=function(){}; g.T.SG=function(){this.D.clear()}; g.T.KP=function(){};g.I(Kk,g.K);Kk.prototype.LK=function(O,V,J,y){if(this.Ls.has(V.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(V instanceof Eu))throw new P("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in CloseRequestedTriggerAdapter");this.Ls.set(V.triggerId,new C6(O,V,J,y))}; Kk.prototype.Sk=function(O){this.Ls.delete(O.triggerId)};g.I(uz,g.K);uz.prototype.LK=function(O,V,J,y){if(this.Ls.has(V.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(V instanceof XD||V instanceof Sy))throw new P("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ls.set(V.triggerId,new C6(O,V,J,y))}; uz.prototype.Sk=function(O){this.Ls.delete(O.triggerId)}; uz.prototype.SG=function(O){for(var V=[],J=V.push,y=J.apply,l=[],m=g.n(this.Ls.values()),H=m.next();!H.done;H=m.next())H=H.value,H.trigger instanceof XD&&H.trigger.oL===O&&l.push(H);y.call(J,V,g.q(l));J=V.push;y=J.apply;l=[];m=g.n(this.Ls.values());for(H=m.next();!H.done;H=m.next())H=H.value,H.trigger instanceof Sy&&H.trigger.K!==O&&l.push(H);y.call(J,V,g.q(l));V.length&&NM(this.K(),V)}; uz.prototype.KP=function(O){for(var V=[],J=V.push,y=J.apply,l=[],m=g.n(this.Ls.values()),H=m.next();!H.done;H=m.next()){H=H.value;var F=H.trigger;F instanceof Sy&&F.K===O&&l.push(H)}y.call(J,V,g.q(l));V.length&&NM(this.K(),V)};g.I(Am,g.K);g.T=Am.prototype;g.T.LK=function(O,V,J,y){if(this.Ls.has(V.triggerId))throw new P("Tried to register duplicate trigger for slot.");var l="adtriggercuerange:"+V.triggerId;if(V instanceof ie)OmY(this,O,V,J,y,l,V.K.start,V.K.end,V.oL,V.visible);else if(V instanceof go)OmY(this,O,V,J,y,l,0x7ffffffffffff,0x8000000000000,V.oL,V.visible);else throw new P("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in CueRangeTriggerAdapter");}; g.T.Sk=function(O){var V=this.Ls.get(O.triggerId);V&&this.X5.get().removeCueRange(V.cueRangeId);this.Ls.delete(O.triggerId)}; g.T.onCueRangeEnter=function(O){if(O=VS1(this,O))if(O=this.Ls.get(O))if(g.R(Dv(this.Av.get()),32))this.K.add(O.cueRangeId);else{var V=O==null?void 0:O.YH.trigger;(V instanceof ie||V instanceof go)&&NM(this.j(),[O.YH])}}; g.T.onCueRangeExit=function(O){(O=VS1(this,O))&&(O=this.Ls.get(O))&&this.K.delete(O.cueRangeId)}; g.T.pw=function(O){if(Vk(O,16)<0){O=g.n(this.K);for(var V=O.next();!V.done;V=O.next())this.onCueRangeEnter(V.value,!0);this.K.clear()}}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.fd=function(){}; g.T.Cd=function(){}; g.T.nu=function(){}; g.T.QZ=function(){}; g.T.onFullscreenToggled=function(){}; g.T.mx=function(){}; g.T.FC=function(){}; g.T.O9=function(){}; g.T.onVolumeChange=function(){}; g.T.A_=function(){}; g.T.oW=function(){};g.I(rj,g.K); rj.prototype.LK=function(O,V,J,y){if(this.j.has(V.triggerId)||this.U.has(V.triggerId))throw new P("Tried to re-register the trigger.");O=new C6(O,V,J,y);if(O.trigger instanceof ro)this.j.set(O.trigger.triggerId,O);else if(O.trigger instanceof t2)this.U.set(O.trigger.triggerId,O);else throw new P("Incorrect TriggerType: Tried to register trigger of type "+O.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.j.has(O.trigger.triggerId)&&O.slot.slotId===this.K&&NM(this.D(),[O])}; rj.prototype.Sk=function(O){this.j.delete(O.triggerId);this.U.delete(O.triggerId)}; rj.prototype.b$=function(O){O=O.slotId;if(this.K!==O){var V=[];this.K!=null&&V.push.apply(V,g.q(JuX(this.U,this.K)));O!=null&&V.push.apply(V,g.q(JuX(this.j,O)));this.K=O;V.length&&NM(this.D(),V)}};g.I(iz,g.K);g.T=iz.prototype;g.T.LK=function(O,V,J,y){if(this.Ls.has(V.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(V instanceof kW))throw new P("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ls.set(V.triggerId,new C6(O,V,J,y))}; g.T.Sk=function(O){this.Ls.delete(O.triggerId)}; g.T.fd=function(){}; g.T.Cd=function(){}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){};g.I(R6,g.K);g.T=R6.prototype;g.T.nu=function(O,V){for(var J=[],y=g.n(this.Ls.values()),l=y.next();!l.done;l=y.next()){l=l.value;var m=l.trigger;m.opportunityType===O&&(m.associatedSlotId&&m.associatedSlotId!==V||J.push(l))}J.length&&NM(this.K(),J)}; g.T.LK=function(O,V,J,y){if(this.Ls.has(V.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(V instanceof MtU))throw new P("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in OpportunityEventTriggerAdapter");this.Ls.set(V.triggerId,new C6(O,V,J,y))}; g.T.Sk=function(O){this.Ls.delete(O.triggerId)}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.fd=function(){}; g.T.Cd=function(){};g.I(BY,g.K);g.T=BY.prototype;g.T.LK=function(O,V,J,y){O=new C6(O,V,J,y);if(V instanceof ue||V instanceof RI||V instanceof A2||V instanceof DM||V instanceof xFX){if(this.Ls.has(V.triggerId))throw new P("Tried to register duplicate trigger for slot.");this.Ls.set(V.triggerId,O)}else throw new P("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in PrefetchTriggerAdapter");}; g.T.Sk=function(O){this.Ls.delete(O.triggerId)}; g.T.PC=function(O){var V=O.slotFulfillmentTriggers.find(function(J){return J instanceof ue}); V&&(PY(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",V.breakDurationMs,new Set([O.slotId]),!0),xW(this.gW.get(),"ads_css","sid."+O.slotId+";bd."+V.breakDurationMs))}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.fd=function(){}; g.T.Cd=function(){}; g.T.nu=function(){}; g.T.P8=function(O){var V=this;if(!this.K)return xW(this.gW.get(),"ads_nfi","a.pta;cid."+O.identifier),!1;this.j&&this.j.stop();this.W&&g.uL(this.W);var J=$Mr(this,O);if(!J){var y=yur(this),l=this.S!==void 0&&Date.now()<=this.S+1E4;xW(this.gW.get(),"ads_ncfs","cid."+O.identifier+";cd."+O.rN.toFixed(3)+";ccs."+l+";cfa."+this.D+";bdc."+y.length+";"+y.slice(0,6).map(function(m){return";bd."+m}).join("")); return l?(fk(this.FJ,this.K,O),!0):!1}(y=G_(J.slot.clientMetadata,"metadata_type_triggering_cue_point"))?y.current=O:DJ("Expected triggering cue point ref to be available",J.slot);(new g.t_(function(){var m=J.trigger,H=J.slot;PY(V,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",m.breakDurationMs,new Set,!0);PY(V,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",m.breakDurationMs,new Set,!1);for(var F=0,N=g.n(V.Ls.values()),x=N.next();!x.done;x=N.next()){x=x.value;var W=x.trigger; x.slot.slotId===H.slotId&&(V.Ls.delete(W.triggerId),F++)}xW(V.gW.get(),"ads_csf","sid."+H.slotId+";bd."+m.breakDurationMs+";dt."+F)},10)).start(); return!0}; g.T.XE=function(){}; g.T.SG=function(O){var V=this;this.D=!1;this.S=Date.now();if(this.K&&this.K.contentCpn!==O)DJ("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:O,fetchInstructionsCpn:this.K.contentCpn}),k8(this);else{this.U=new g.t_(function(){if(V.D)delete V.U;else{var y=V.Av.get().getGetAdBreakContext(),l;if(Number(y==null?void 0:(l=y.livePlaybackPosition)==null?void 0:l.utcTimeMillis)>0)delete V.U,mMr(V);else{var m;(m=V.U)==null||m.start()}}},200); var J;(J=this.U)==null||J.start()}}; g.T.KP=function(O){this.K&&this.K.contentCpn!==O&&DJ("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:O,fetchInstructionsCpn:this.K.contentCpn},!0);k8(this)}; g.T.rz=function(O){var V=this;if(this.K)DJ("Unexpected multiple fetch instructions for the current content");else{this.K=O;O=jn5(O);this.j=new g.t_(function(){mMr(V)},O?O:6E5); this.j.start();this.W=new g.t_(function(){V.K&&(V.j&&(V.j.stop(),V.j.start()),lQ1(V,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Hmd(this.K)); O=this.Av.get().getCurrentTimeSec(1,!1);for(var J=g.n(this.Ql.get().T6),y=J.next();!y.done;y=J.next())y=y.value,xW(this.gW.get(),"nocache","ct."+Date.now()+";cmt."+O+";d."+y.rN.toFixed(3)+";tw."+(y.startSecs-O)+";cid."+y.identifier+";")}}; g.T.U5=function(){g.K.prototype.U5.call(this);k8(this)};g.I(SE,g.K);g.T=SE.prototype;g.T.LK=function(O,V,J,y){if(this.Ls.has(V.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(V instanceof jx))throw new P("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ls.set(V.triggerId,new C6(O,V,J,y));O=this.K.has(V.triggeringLayoutId)?this.K.get(V.triggeringLayoutId):new Set;O.add(V);this.K.set(V.triggeringLayoutId,O)}; g.T.Sk=function(O){this.Ls.delete(O.triggerId);if(!(O instanceof jx))throw new P("Incorrect TriggerType: Tried to unregister trigger of type "+O.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var V=this.j.get(O.triggerId);V&&(V.dispose(),this.j.delete(O.triggerId));if(V=this.K.get(O.triggeringLayoutId))V.delete(O),V.size===0&&this.K.delete(O.triggeringLayoutId)}; g.T.PC=function(){}; g.T.Q1=function(){}; g.T.xI=function(){}; g.T.kp=function(){}; g.T.G3=function(){}; g.T.cK=function(){}; g.T.I5=function(){}; g.T.vK=function(){}; g.T.m0=function(){}; g.T.nu=function(){}; g.T.fd=function(O,V){var J=this;if(this.K.has(V.layoutId)){O=this.K.get(V.layoutId);O=g.n(O);var y=O.next();for(V={};!y.done;V={Gs:void 0},y=O.next())V.Gs=y.value,y=new g.t_(function(l){return function(){var m=J.Ls.get(l.Gs.triggerId);NM(J.U(),[m])}}(V),V.Gs.durationMs),y.start(),this.j.set(V.Gs.triggerId,y)}}; g.T.Cd=function(){};g.I(Dg,g.K);Dg.prototype.LK=function(O,V){if(this.Ls.has(V.triggerId))throw new P("Tried to register duplicate trigger for slot.");throw new P("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in VideoTransitionTriggerAdapter.");}; Dg.prototype.Sk=function(O){this.Ls.delete(O.triggerId)};y8.prototype.ph=function(O){return O.kind==="AD_PLACEMENT_KIND_START"};g.I($H,g.K);$H.prototype.logEvent=function(O){this.K(O)}; $H.prototype.K=function(O,V,J,y,l,m,H,F,N,x,W,U){var Z=this;U=U===void 0?0:U;wz(this.Xj.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+O,"slot:",l,"layout:",m,"ping:",H,"Opportunity:",{opportunityType:V,associatedSlotId:J,YJL:y,amW:F,adSlotLoggingData:N,adLayoutLoggingData:x});try{var z=function(){if(!Z.Xj.get().G.Y().L("html5_disable_client_tmp_logs")&&O!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){O||DJ("Empty PACF event type",l,m);var c=ru(Z.j.get()),Y={eventType:O,eventOrder:++Z.eventCount}, b={};l&&(b.slotData=AA(c,l));m&&(b.layoutData=mD1(c,m));H&&(b.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:H.K.serializedAdPingMetadata,pingIndex:H.index});F&&(b.triggerData=u_(F.trigger,F.category));V&&(b.opportunityData=$DU(c,V,J,y));c={organicPlaybackContext:{contentCpn:kp(Z.CD.get(),1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=kp(Z.CD.get(),1).Gy;var M;c.organicPlaybackContext.isMdxPlayback=(M=kp(Z.CD.get(),1))==null?void 0: M.isMdxPlayback;var w;if((w=kp(Z.CD.get(),1))==null?0:w.daiEnabled)c.organicPlaybackContext.isDaiContent=!0;var L;if(M=(L=kp(Z.CD.get(),2))==null?void 0:L.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:M};c&&(b.externalContext=c);Y.adClientData=b;N&&(Y.serializedSlotAdServingData=N.serializedSlotAdServingDataEntry);x&&(Y.serializedAdServingData=x.serializedAdServingDataEntry);W&&(Y.errorInfo=W);g.l6("adsClientStateChange",{adsClientEvent:Y})}}; U&&U>0?g.AG(g.ij(),function(){return z()},U):z()}catch(c){wz(this.Xj.get(),"html5_log_pacf_logging_errors")&&g.AG(g.ij(),function(){DJ(c instanceof Error?c:String(c),l,m,{pacf_message:"exception during pacf logging"})})}};g.I(H_,$H);H_.prototype.K=function(O,V,J,y,l,m,H,F,N,x,W){var U=this.Xj.get();g.F0(U.G.Y())?(U=this.Xj.get(),U=g.Ry(U.G.Y().experiments,"H5_async_logging_delay_ms")):U=void 0;$H.prototype.K.call(this,O,V,J,y,l,m,H,F,N,x,W,U)};jl.prototype.clear=function(){this.K.clear()};FL.prototype.state=function(){return this.K==="fulfilled"?{state:"fulfilled",value:this.result}:this.K==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; FL.prototype.D=function(O){xH(O)||NP(O)?c_(W_(O),this.D.bind(this),this.reject.bind(this)):(this.K="fulfilled",this.result=O,zI(this))}; FL.prototype.reject=function(O){this.K="rejected";this.error=O;zI(this)}; var NP=fD(function(O){return xKU(O)?O instanceof FL:!1});var L9X=!1,ai,bO,p9,f9,hJ;g.I(oi,g.K); oi.prototype.encrypt=function(O){var V=O.length;O=new Uint8Array(O.buffer.slice(O.byteOffset,O.byteOffset+V));for(var J=this.j,y=0;y=64&&(this.V.set(O.subarray(0,64-this.j),this.j),V=64-this.j,this.j=0,Evp(this,this.V,0));for(;V+64<=J;V+=64)Evp(this,O,V);V=l.length?(V.append(l),O-=l.length):O?(V.append(new Uint8Array(l.buffer,l.byteOffset,O)),J.append(new Uint8Array(l.buffer,l.byteOffset+O,l.length-O)),O=0):J.append(l);return{mF:V,AR:J}}; Q8.prototype.isFocused=function(O){return O>=this.U&&O=0;var bEU=Qx(function(){var O,V;return(V=(O=window).matchMedia)==null?void 0:V.call(O,"(prefers-reduced-motion: reduce)").matches});var oY;g.hh=new CR;oY=0;var xD=MPo()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.d9?!0:!1;var Ln={nn:function(O,V){var J=O[0];O[0]=O[V%O[C[6]]];O[V%O[C[6]]]=J}, d9:function(O,V){O[C[44]](0,V)}, uA:function(O){O[C[22]]()}};var x3r={OwW:"adunit",zlW:"detailpage",UKw:"editpage",DKz:"embedded",J$B:"leanback",jFK:"previewpage",Ryv:"profilepage",qD:"unplugged",piE:"playlistoverview",d55:"sponsorshipsoffer",lri:"shortspage",T8j:"handlesclaiming",DcN:"immersivelivepage",MkK:"creatormusic",vyK:"immersivelivepreviewpage",fcD:"admintoolyurt",jNz:"shortsaudiopivot",nT5:"consumption",KEj:"background_audio_playback"};var LYY=2592E3;var R7,xgn,bK;R7={};g.gl=(R7.STOP_EVENT_PROPAGATION="html5-stop-propagation",R7.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",R7.IV_DRAWER_OPEN="ytp-iv-drawer-open",R7.MAIN_VIDEO="html5-main-video",R7.VIDEO_CONTAINER="html5-video-container",R7.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",R7.HOUSE_BRAND="house-brand",R7);xgn={};bK=(xgn.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",xgn.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",xgn);var tPV={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var iEp={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},Rt1={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"},RIH={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var $P5={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Nl[C[70]][C[34]]=function(O,V){this[C[5]][O]!==V&&(this[C[5]][O]=V,this[C[28]]=C[0])}; g.Nl[C[70]][C[10]]=function(O){$Y(42,this);return this[C[5]][O]||null}; g.Nl[C[70]][C[63]]=function(){this[C[28]]||(this[C[28]]=Ip(2,this));return this[C[28]]}; g.Nl[C[70]][C[26]]=function(){var O=new g.Nl(this[C[7]],this[C[21]]);O[C[11]]=this[C[11]];O[C[15]]=this[C[15]];O[C[40]]=this[C[40]];O[C[5]]=g.b2(this[C[5]]);O[C[28]]=this[C[28]];return O}; var fUr=[UVp];g.GX.prototype.getLanguageInfo=function(){return this.wC}; g.GX.prototype.getXtags=function(){if(!this.xtags){var O=this.id.split(";");O.length>1&&(this.xtags=O[1])}return this.xtags}; g.GX.prototype.toString=function(){return this.wC.name}; g.GX.prototype.isAutoDubbed=function(){return this.wC.getIsAutoDubbed()}; g.GX.prototype.getLanguageInfo=g.GX.prototype.getLanguageInfo;g.GX.prototype.isAutoDubbed=g.GX.prototype.isAutoDubbed;Ke.prototype.equals=function(O){return this.j===O.j&&this.K===O.K&&this.U===O.U&&this.reason===O.reason&&(!uV||this.jq===O.jq)}; Ke.prototype.isLocked=function(){return this.U&&!!this.j&&this.j===this.K}; Ke.prototype.compose=function(O){if(O.U&&Ah(O))return xZ;if(O.U||Ah(this))return O;if(this.U||Ah(O))return this;var V=this.j&&O.j?Math.max(this.j,O.j):this.j||O.j,J=this.K&&O.K?Math.min(this.K,O.K):this.K||O.K;V=Math.min(V,J);var y=0;uV&&(y=this.jq!==0&&O.jq!==0?Math.min(this.jq,O.jq):this.jq===0?O.jq:this.jq);return uV&&V===this.j&&J===this.K&&y===this.jq||!uV&&V===this.j&&J===this.K?this:uV?new Ke(V,J,!1,J===this.K&&y===this.jq?this.reason:O.reason,y):new Ke(V,J,!1,J===this.K?this.reason:O.reason)}; Ke.prototype.D=function(O){return!O.video||uV&&this.jq!==0&&this.jq=0}; g.T.Dt=function(){var O=this.segments[this.segments.length-1];return O?O.endTime:NaN}; g.T.TK=function(){return this.segments[0].startTime}; g.T.Hd=function(){return this.segments.length}; g.T.TR=function(){return 0}; g.T.tO=function(O){return(O=this.ws(O))?O.wW:-1}; g.T.MM=function(O){return(O=this.eK(O))?O.sourceURL:""}; g.T.getStartTime=function(O){return(O=this.eK(O))?O.startTime:0}; g.T.MV=function(O){return this.getStartTime(O)+this.getDuration(O)}; g.T.aI=d5(3);g.T.isLoaded=function(){return this.segments.length>0}; g.T.eK=function(O){if(this.K&&this.K.wW===O)return this.K;O=g.J0(this.segments,new $4(O,0,0,0,""),function(V,J){return V.wW-J.wW}); return this.K=O>=0?this.segments[O]:null}; g.T.ws=function(O){if(this.K&&this.K.startTime<=O&&O=0?this.segments[O]:this.segments[Math.max(0,-O-2)]}; g.T.append=function(O){if(O.length)if(O=g.kE(O),this.segments.length){var V=this.segments.length?g.Ez(this.segments).endTime:0,J=O[0].wW-this.bR();J>1&&Sod(this.segments);for(J=J>0?0:-J+1;JO.wW&&this.index.mC()<=O.wW+1}; g.T.update=function(O,V,J){this.index.append(O);cqX(this.index,J);O=this.index;O.j=V;O.U="update"}; g.T.lk=function(){return this.oy()?!0:yB.prototype.lk.call(this)}; g.T.nG=function(O,V){var J=this.index.MM(O),y=this.index.getStartTime(O),l=this.index.getDuration(O),m;V?l=m=0:m=this.info.jq>0?this.info.jq*l:1E3;return new zQ([new Ch(3,this,void 0,"liveCreateRequestInfoForSegment",O,y,l,0,m,!V)],J)}; g.T.sQ=function(){return this.oy()?0:this.initRange.length}; g.T.ut=function(){return!1};ao.prototype.update=function(O){var V=void 0;this.j&&(V=this.j);var J=new ao,y=Array.from(O.getElementsByTagName("S"));if(y.length){var l=+Io(O,"timescale")||1,m=(+y[0].getAttribute("t")||0)/l,H=+Io(O,"startNumber")||0;J.D=m;var F=V?V.startSecs+V.rN:0,N=Date.parse(x87(Io(O,"yt:segmentIngestTime")))/1E3;J.W=O.parentElement.tagName==="SegmentTemplate";J.W&&(J.S=Io(O,"media"));O=V?H-V.wW:1;J.V=O>0?0:-O+1;O=g.n(y);for(y=O.next();!y.done;y=O.next()){y=y.value;for(var x=+y.getAttribute("d")/l,W=(+y.getAttribute("yt:sid")|| 0)/l,U=+y.getAttribute("r")||0,Z=0;Z<=U;Z++)if(V&&H<=V.wW)H++;else{var z=new FTn(H,F,x,N+W,m);J.K.push(z);var c=y;var Y=l,b=z.startSecs;z=c.getAttribute("yt:cuepointTimeOffset");var M=c.getAttribute("yt:cuepointDuration");if(z&&M){z=Number(z);b=-z/Y+b;Y=Number(M)/Y;M=c.getAttribute("yt:cuepointContext")||null;var w=c.getAttribute("yt:cuepointIdentifier")||"";c=c.getAttribute("yt:cuepointEvent")||"";c=new zP(b,Y,M,w,UgE[c]||"unknown",z)}else c=null;c&&J.U.push(c);H++;F+=x;m+=x;N+=x+W}}J.K.length&& (J.j=g.Ez(J.K))}this.V=J.V;this.j=J.j||this.j;g.SF(this.K,J.K);g.SF(this.U,J.U);this.W=J.W;this.S=J.S;this.D===-1&&(this.D=J.getStreamTimeOffset())}; ao.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.I(ph,g.HX);g.T=ph.prototype;g.T.O0=function(){return this.fu}; g.T.uQ=function(O,V){O=fh(this,O);return O>=0&&(V||!this.segments[O].pending)}; g.T.mC=function(){return this.Mc?this.segments.length?this.ws(this.TK()).wW:-1:g.HX.prototype.mC.call(this)}; g.T.TK=function(){if(this.FR)return 0;if(!this.Mc)return g.HX.prototype.TK.call(this);if(!this.segments.length)return 0;var O=Math.max(g.Ez(this.segments).endTime-this.qs,0);return this.rD>0&&this.ws(O).wW0)return this.tR/1E3;if(!this.segments.length)return g.HX.prototype.Dt.call(this);var O=this.bR();if(!this.Mc||O<=this.segments[this.segments.length-1].wW)O=this.segments[this.segments.length-1];else{var V=this.segments[this.segments.length-1];O=new $4(O,Math.max(0,V.startTime-(V.wW-O)*this.fu),this.fu,0,"sq/"+O,void 0,void 0,!0)}return this.FR?Math.min(this.qs,O.endTime):O.endTime}; g.T.Hd=function(){return this.Mc?this.segments.length?this.bR()-this.mC()+1:0:g.HX.prototype.Hd.call(this)}; g.T.bR=function(){var O=Math.min(this.j4,Math.max(g.HX.prototype.bR.call(this),this.b2)),V=this.qs*1E3;V=this.tR>0&&this.tR0&&this.b2>0&&!V&&(V=this.ws(this.qs))&&(O=Math.min(V.wW-1,O));return O}; g.T.yG=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.T.G7=function(O){var V=fh(this,O.wW);if(V>=0)this.segments[V]=O;else if(this.segments.splice(-(V+1),0,O),this.Qr&&O.wW%(300/this.fu)===0){var J=this.segments[0].wW,y=Math.floor(this.Qr/this.fu);O=O.wW-y;V=-(V+1)-y;V>0&&O>J&&(this.segments=this.segments.slice(V))}}; g.T.qv=function(){return this.b2}; g.T.Nv=function(O){return bQ?!this.j&&O>=0&&this.bR()<=O:g.HX.prototype.Nv.call(this,O)}; g.T.ws=function(O){if(!this.Mc)return g.HX.prototype.ws.call(this,O);if(!this.segments.length)return null;var V=this.segments[this.segments.length-1];if(O=V.endTime)V=V.wW+Math.floor((O-V.endTime)/this.fu+1);else{V=l2(this.segments,function(y){return O=y.endTime?1:0}); if(V>=0)return this.segments[V];var J=-(V+1);V=this.segments[J-1];J=this.segments[J];V=Math.floor((O-V.endTime)/((J.startTime-V.endTime)/(J.wW-V.wW-1))+1)+V.wW}return this.eK(V)}; g.T.eK=function(O){if(!this.Mc)return g.HX.prototype.eK.call(this,O);if(!this.segments.length)return null;var V=fh(this,O);if(V>=0)return this.segments[V];var J=-(V+1);V=this.fu;if(J===0)var y=Math.max(0,this.segments[0].startTime-(this.segments[0].wW-O)*V);else J===this.segments.length?(y=this.segments[this.segments.length-1],y=y.endTime+(O-y.wW-1)*V):(y=this.segments[J-1],V=this.segments[J],V=(V.startTime-y.endTime)/(V.wW-y.wW-1),y=y.endTime+(O-y.wW-1)*V);return new $4(O,y,V,0,"sq/"+O,void 0,void 0, !0)}; var bQ=!1;g.I(hi,e3);g.T=hi.prototype;g.T.dj=function(){return!0}; g.T.lk=function(){return!0}; g.T.E1=function(O){return this.sP()&&O.j&&!O.U||!O.vE.index.Nv(O.wW)}; g.T.ST=function(){}; g.T.Ed=function(O,V){return typeof O!=="number"||isFinite(O)?e3.prototype.Ed.call(this,O,V===void 0?!1:V):new zQ([new Ch(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.M8,void 0,this.M8*this.info.jq)],"")}; g.T.nG=function(O,V){var J=J===void 0?!1:J;if(this.index.uQ(O))return e3.prototype.nG.call(this,O,V);var y=this.index.getStartTime(O),l=Math.round(this.M8*this.info.jq),m=this.M8;V&&(m=l=0);return new zQ([new Ch(J?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",O,y,m,void 0,l,!V)],O>=0?"sq/"+O:"")};g.I(oo,yB);g.T=oo.prototype;g.T.e8=function(){return!1}; g.T.sP=function(){return!1}; g.T.dj=function(){return!1}; g.T.ST=function(){return new zQ([new Ch(1,this,void 0,"otfInit")],this.W)}; g.T.bT=function(){return null}; g.T.Lm=function(O){this.E1(O);return eDr(this,WK(O),!1)}; g.T.Ed=function(O,V){V=V===void 0?!1:V;O=this.index.tO(O);V&&(O=Math.min(this.index.bR(),O+1));return eDr(this,O,!0)}; g.T.oQ=function(O){O.info.type===1&&(this.K||(this.K=rX(O.j)),O.K&&O.K.uri==="http://youtube.com/streaming/otf/durations/112015"&&Irr(this,O.K))}; g.T.E1=function(O){return O.j===0?!0:this.index.bR()>O.wW&&this.index.mC()<=O.wW+1}; g.T.sQ=function(){return 0}; g.T.ut=function(){return!1};var brH=new Map,hDU=new Map,ps5=new function(){var O=this;this.K=new Map;this.Ty={lLj:function(){return O.K}}};g.T=g.qT.prototype;g.T.uQ=function(O){return O<=this.bR()}; g.T.TR=function(O){return this.offsets[O]}; g.T.getStartTime=function(O){return this.startTicks[O]/this.K}; g.T.MV=function(O){return this.getStartTime(O)+this.getDuration(O)}; g.T.aI=d5(2);g.T.dN=function(){return NaN}; g.T.getDuration=function(O){O=this.X2(O);return O>=0?O/this.K:-1}; g.T.X2=function(O){return O+1=0}; g.T.Dt=function(){return this.j?this.startTicks[this.count]/this.K:NaN}; g.T.TK=function(){return 0}; g.T.Hd=function(){return this.count}; g.T.MM=function(){return""}; g.T.tO=function(O){O=g.J0(this.startTicks.subarray(0,this.count),O*this.K);return O>=0?O:Math.max(0,-O-2)}; g.T.isLoaded=function(){return this.bR()>=0}; g.T.oM=function(O,V){if(O>=this.bR())return 0;var J=0;for(V=this.getStartTime(O)+V;Othis.getStartTime(O);O++)J=Math.max(J,Efo(this,O)/this.getDuration(O));return J}; g.T.resize=function(O){O+=2;var V=this.offsets;this.offsets=new Float64Array(O+1);var J=this.startTicks;this.startTicks=new Float64Array(O+1);for(O=0;O0&&O&&(J=J.range.end+1,O=Math.min(O,this.info.contentLength-J),O>0&&y.push(new Ch(4,this,HK(J,O),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,V)));return new zQ(y)}; g.T.oQ=function(O){if(O.info.type===1){if(this.K)return;this.K=rX(O.j)}else if(O.info.type===2){if(this.W||this.index.bR()>=0)return;if(g.Bg(this.info)){var V=this.index,J=g.Lh(O);O=O.info.range.start;var y=g.IW(J,0,1936286840);J=wgH(y);V.K=J.timescale;var l=J.IC;V.offsets[0]=J.Wo+O+y.size;V.startTicks[0]=l;V.j=!0;O=J.BU.length;for(y=0;y0&&O===m[0].Iv)for(O=0;O=V+J)break}y.length||(O=new g.pn("b189619593",""+O,""+V,""+J),g.sk(O));return new zQ(y)}; g.T.sy=function(O){for(var V=this.uJ(O.info),J=O.info.range.start+O.info.K,y=[],l=0;l=this.index.TR(J+1);)J++;return this.XP(J,V,O.j).BE}; g.T.E1=function(O){O.yZ();return this.lk()?!0:O.range.end+1this.info.contentLength&&(V=new mB(V.start,this.info.contentLength-1)),new zQ([new Ch(4,O.vE,V,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,O.clipId)]);O.type===4&&(O=this.uJ(O),O=O[O.length-1]);var J=0,y=O.range.start+O.K+O.j;O.type===3&&(O.yZ(),J=O.wW,y===O.range.end+1&&(J+=1));return this.XP(J,y,V)}; g.T.Lm=function(){return null}; g.T.Ed=function(O,V){V=V===void 0?!1:V;O=this.index.tO(O);V&&(O=Math.min(this.index.bR(),O+1));return this.XP(O,this.index.TR(O),0)}; g.T.e8=function(){return!0}; g.T.sP=function(){return!0}; g.T.dj=function(){return!1}; g.T.sQ=function(){return this.indexRange.length+this.initRange.length}; g.T.ut=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Pc={},S4p=(Pc.COLOR_PRIMARIES_BT709="bt709",Pc.COLOR_PRIMARIES_BT2020="bt2020",Pc.COLOR_PRIMARIES_UNKNOWN=null,Pc.COLOR_PRIMARIES_UNSPECIFIED=null,Pc),kM={},gfh=(kM.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",kM.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",kM.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",kM.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",kM.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,kM.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,kM);g.T=g.Kh.prototype;g.T.getName=function(){return this.name}; g.T.getId=function(){return this.id}; g.T.getIsDefault=function(){return this.isDefault}; g.T.getIsAutoDubbed=function(){return this.isAutoDubbed}; g.T.toString=function(){return this.name}; g.Kh.prototype.getName=g.Kh.prototype.getName;g.Kh.prototype.getId=g.Kh.prototype.getId;g.Kh.prototype.getIsDefault=g.Kh.prototype.getIsDefault;g.Kh.prototype.getIsAutoDubbed=g.Kh.prototype.getIsAutoDubbed;var KTl=/action_display_post/;var tC1,Ai,rw;g.I(iQ,g.BF);g.T=iQ.prototype;g.T.isLoading=function(){return this.state===1}; g.T.t_=function(){return this.state===3}; g.T.uDw=function(O){var V=O.getElementsByTagName("Representation");if(O.getElementsByTagName("SegmentList").length>0||O.getElementsByTagName("SegmentTemplate").length>0){this.Gy=this.j=!0;this.V||(this.V=new U8h);swl(this.V,O);this.publish("refresh");for(O=0;O=0?W=$3(Z):U=U+"?range="+Z}N.call(F,new $4(x.wW,x.startSecs,x.rN,x.K,U,W,x.j))}y=l}J.update(y,this.isLive,this.yz)}TQH(this.V);return!0}this.duration=NQr(Io(O,"mediaPresentationDuration"));a:{for(O= 0;O0))return this.aX()-O}}O=this.K;for(var V in O){var J=O[V].index;if(J.isLoaded()&&!O4(O[V].info.mimeType))return J.TK()}return 0}; g.T.getStreamTimeOffset=function(){return this.T}; g.T.dN=function(O){for(var V in this.K){var J=this.K[V].index;if(J.isLoaded()){var y=J.tO(O),l=J.dN(y);if(l)return l+O-J.getStartTime(y)}}return NaN}; var Hj=null,ZaV,jU=!((ZaV=navigator.mediaCapabilities)==null||!ZaV.decodingInfo),mN5={commentary:1,alternate:2,dub:3,main:4};var Cg=new Set,Cs=new Map;xA.prototype.clone=function(O){return new xA(this.flavor,O,this.j,this.experiments)}; xA.prototype.qI=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; xA.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 zQC={},YA=(zQC.playready=["com.youtube.playready","com.microsoft.playready"],zQC.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],zQC),Sc={},WDp=(Sc.widevine="DRM_SYSTEM_WIDEVINE",Sc.fairplay="DRM_SYSTEM_FAIRPLAY",Sc.playready="DRM_SYSTEM_PLAYREADY",Sc),Dn={},cad=(Dn.widevine=1,Dn.fairplay=2,Dn.playready=3,Dn);var ps;g.I(a2,g.K); a2.prototype.initialize=function(O,V){for(var J=this,y=g.n(Object.keys(O)),l=y.next();!l.done;l=y.next()){l=g.n(O[l.value]);for(var m=l.next();!m.done;m=l.next())if(m=m.value,m.AL)for(var H=g.n(Object.keys(m.AL)),F=H.next();!F.done;F=H.next()){var N=F.value;F=N;N=YA[N];!N&&this.L("html5_enable_vp9_fairplay")&&F==="fairplay"&&(N=["com.youtube.fairplay.sbdl"]);if(N){N=g.n(N);for(var x=N.next();!x.done;x=N.next())x=x.value,this.U[x]=this.U[x]||new xA(F,x,m.AL[F],this.WE.experiments),this.K[F]=this.K[F]|| {},this.K[F][m.mimeType]=!0}}}ty()&&(this.U["com.youtube.fairplay"]=new xA("fairplay","com.youtube.fairplay","",this.WE.experiments),this.L("html5_enable_vp9_fairplay")||(this.K.fairplay=this.K.fairplay||{},this.K.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.K.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.j=Tor(V,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay")&&!0,this.L("html5_enable_vp9_fairplay")).filter(function(W){return!!J.U[W]})}; a2.prototype.L=function(O){return this.WE.experiments.Jv(O)};var sGI={"":"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"};var U3n={RED:"red",HcD:"white"};hT.prototype.s5=function(O){if(O.Eg!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return oWY(this,O)}; hT.prototype.Jv=function(O){return this.flags.get(""+O)==="true"};o2.prototype.gC=function(){return this.U}; o2.prototype.Di=function(){return this.j}; o2.prototype.Jv=function(O){O=this.s5(O);JSON.stringify(O);return O==="true"}; o2.prototype.s5=function(O){return this.flags[O]};var MyX=Promise.resolve(),EWh=window.queueMicrotask?window.queueMicrotask.bind(window):Lod;w$.prototype.canPlayType=function(O,V){O=O.canPlayType?O.canPlayType(V):!1;EN?O=O||TOz[V]:SU===2.2?O=O||eQs[V]:G8()&&(O=O||I6n[V]);return!!O}; w$.prototype.isTypeSupported=function(O){return this.T?window.cast.receiver.platform.canDisplayType(O):mg(O)}; var eQs={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},I6n={"application/x-mpegURL":"maybe"},TOz={"application/x-mpegURL":"maybe"};g.I(ns,g.BF);ns.prototype.add=function(O,V){if(!this.items[O]&&(V.GW||V.lG5||V.zJ)){var J=this.items,y=V;Object.isFrozen&&!Object.isFrozen(V)&&(y=Object.create(V),Object.freeze(y));J[O]=y;this.publish("vast_info_card_add",O)}}; ns.prototype.remove=function(O){var V=this.get(O);delete this.items[O];return V}; ns.prototype.get=function(O){return this.items[O]||null}; ns.prototype.isEmpty=function(){return g.Id(this.items)};XZ.prototype.encrypt=function(O){this.K.exports.AES128CTRCipher_encrypt(this.cipher,O.byteOffset,O.byteLength);return O}; XZ.prototype.GL=function(){return this.cipher===0}; XZ.prototype.dispose=function(){this.K.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};d$.prototype.fB=function(O,V){V=V===void 0?1:V;this.f5+=V;this.j+=O;O/=V;for(var J=0;J0)y+="."+E_[l].toFixed(0)+"_"+J.K[l].toFixed(0);else break;J=y}J&&(O[V]=J)}this.K=new QId;return O}; g.T.toString=function(){return""};g.T=r2X.prototype;g.T.isActive=function(){return!1}; g.T.Io=function(){}; g.T.mj=function(){}; g.T.LY=function(){}; g.T.Er=function(O,V){V()}; g.T.qF=function(){return{}}; g.T.toString=function(){return""};var YDn=new r2X,a6z=!!+ui("html5_enable_profiler"),baC=!!+ui("html5_onesie_enable_profiler"),OV=a6z||baC?new KoV:YDn,NvU=a6z?OV:YDn,qS=baC?OV:YDn;DNU.prototype.emscripten_notify_memory_growth=function(){};g.T=g$.prototype;g.T.malloc=function(O){return this.exports.malloc(O)}; g.T.free=function(O){this.exports.free(O)}; g.T.realloc=function(O,V){return this.exports.realloc(O,V)}; g.T.u9=function(O){var V=this.malloc(O.byteLength);V=new Uint8Array(this.exports.memory.buffer,V,O.byteLength);V.set(O);return V}; g.T.W2=function(O){var V=O.slice();O.buffer===this.exports.memory.buffer&&this.free(O.byteOffset);return V}; var PeH=new function(){this.K="WebAssembly"in window},QY="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); qS.Io(g$,{u9:function(O){return{profile:"copyj2w",f5:O===void 0?0:Math.ceil(O.byteLength/16)}}, W2:function(O){return{profile:"copyw2j",f5:O===void 0?0:Math.ceil(O.byteLength/16)}}});GA.prototype.encrypt=function(O,V){return yEY(this,O,V,!1).uD}; GA.prototype.GL=function(){return this.D}; GA.prototype.dispose=function(){this.GL()||(g.C1(this.j),this.U&&this.K.free(this.U.byteOffset),this.D=!0)};Ks.prototype.encrypt=function(O,V){try{return this.K.encrypt(O,V)}catch(J){Yb(J,"wasm ocwce"),g.en(J)}}; Ks.prototype.GL=function(){return this.K.GL()}; Ks.prototype.dispose=function(){this.K.dispose()};g.I(lpY,g.K);g.I($3X,g.K);g.I(jM1,g.K);var W3h="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Thr={HwL:"caoe",YC5:"capsv",feL:"cbrand",Dji:"cbr",WEX:"cbrver",GtX:"cchip",c_E:"ccappver",Ie5:"ccrv",xKN:"cfrmver",XH5:"c",OPi:"cver",dcD:"ctheme",u$W:"cplayer",AIK:"cmodel",CL:"cnetwork",Hrz:"cos",OS_VERSION:"cosver",t2j:"cplatform",byE:"crqyear"};g.I(jN,g.K);g.T=jN.prototype;g.T.L=function(O){return this.experiments.Jv(O)}; g.T.gC=function(){return this.experiments.gC()}; g.T.Di=function(){return this.experiments.Di()}; g.T.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.T.getVideoUrl=function(O,V,J,y,l,m,H){V={list:V};J&&(l?V.time_continue=J:V.t=J);J=H?"music.youtube.com":g.Fi(this);l=J==="www.youtube.com";!m&&y&&l?m="https://youtu.be/"+O:g.Vw(this)?(m="https://"+J+"/fire",V.v=O):(m&&l?(m=this.protocol+"://"+J+"/shorts/"+O,y&&(V.feature="share")):(m=this.protocol+"://"+J+"/watch",V.v=O),EN&&(O=ehl())&&(V.ebc=O));return g.pp(m,V)}; g.T.getVideoEmbedCode=function(O,V,J,y){V="https://"+g.Fi(this)+"/embed/"+V;y&&(V=g.pp(V,{list:y}));y=J.width;J=J.height;V=qg(V);O=qg(O!=null?O:"YouTube video player");return'')}; g.T.supportsGaplessAudio=function(){return g.l$&&!EN&&gr()>=74||g.eU&&g.RG(68)?!0:!1}; g.T.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.yz||g.CH?!1:!0}; g.T.getPlayerType=function(){return this.K.cplayer}; g.T.Sq=function(){return this.dD}; g.T.wb=function(){return this.D&&this.L("embeds_enable_innertube_store")}; var apX=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],sMY=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Ipp=[19];var Vg={},oT7=(Vg["140"]={numChannels:2},Vg["141"]={numChannels:2},Vg["251"]={audioSampleRate:48E3,numChannels:2},Vg["774"]={audioSampleRate:48E3,numChannels:2},Vg["380"]={numChannels:6},Vg["328"]={numChannels:6},Vg["773"]={},Vg),JR={},fpr=(JR["1"]='video/mp4; codecs="av01.0.08M.08"',JR["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',JR["1e"]='video/mp4; codecs="av01.0.08M.08"',JR["9"]='video/webm; codecs="vp9"',JR["("]='video/webm; codecs="vp9"',JR["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', JR.h='video/mp4; codecs="avc1.64001e"',JR.H='video/mp4; codecs="avc1.64001e"',JR.o='audio/webm; codecs="opus"',JR.a='audio/mp4; codecs="mp4a.40.2"',JR.ah='audio/mp4; codecs="mp4a.40.2"',JR.mac3='audio/mp4; codecs="ac-3"; channels=6',JR.meac3='audio/mp4; codecs="ec-3"; channels=6',JR.i='audio/mp4; codecs="iamf.001.001.Opus"',JR),yg={},hso=(yg["337"]={width:3840,height:2160,bitrate:3E7,fps:30},yg["336"]={width:2560,height:1440,bitrate:15E6,fps:30},yg["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, yg["702"]={width:7680,height:4320,bitrate:4E7,fps:60},yg["701"]={width:3840,height:2160,bitrate:2E7,fps:60},yg["700"]={width:2560,height:1440,bitrate:1E7,fps:60},yg["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},yg["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},yg["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},yg["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, yg["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},yg["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},yg["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},yg["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},yg["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},yg["315"]={width:3840,height:2160,bitrate:2E7,fps:60},yg["308"]={width:2560, height:1440,bitrate:1E7,fps:60},yg["303"]={width:1920,height:1080,bitrate:5E6,fps:60},yg["302"]={width:1280,height:720,bitrate:25E5,fps:60},yg["299"]={width:1920,height:1080,bitrate:75E5,fps:60},yg["298"]={width:1280,height:720,bitrate:35E5,fps:60},yg["571"]={width:7680,height:4320,bitrate:3E7,fps:60},yg["401"]={width:3840,height:2160,bitrate:15E6,fps:60},yg["400"]={width:2560,height:1440,bitrate:75E5,fps:60},yg["399"]={width:1920,height:1080,bitrate:2E6,fps:60},yg["398"]={width:1280,height:720,bitrate:1E6, fps:60},yg["397"]={width:854,height:480,bitrate:4E5,fps:30},yg["396"]={width:640,height:360,bitrate:25E4,fps:30},yg["787"]={width:1080,height:608,bitrate:2E5,fps:30},yg["788"]={width:1080,height:608,bitrate:4E5,fps:30},yg["572"]={width:7680,height:4320,bitrate:3E7,fps:60},yg["555"]={width:3840,height:2160,bitrate:15E6,fps:60},yg["554"]={width:2560,height:1440,bitrate:75E5,fps:60},yg["553"]={width:1920,height:1080,bitrate:2E6,fps:60},yg["552"]={width:1280,height:720,bitrate:1E6,fps:60},yg["551"]={width:854, height:480,bitrate:4E5,fps:30},yg["550"]={width:640,height:360,bitrate:25E4,fps:30},yg["313"]={width:3840,height:2160,bitrate:8E6,fps:30},yg["271"]={width:2560,height:1440,bitrate:4E6,fps:30},yg["248"]={width:1920,height:1080,bitrate:2E6,fps:30},yg["247"]={width:1280,height:720,bitrate:15E5,fps:30},yg["244"]={width:854,height:480,bitrate:52E4,fps:30},yg["243"]={width:640,height:360,bitrate:28E4,fps:30},yg["137"]={width:1920,height:1080,bitrate:4E6,fps:30},yg["136"]={width:1280,height:720,bitrate:3E6, fps:30},yg["135"]={width:854,height:480,bitrate:1E6,fps:30},yg["385"]={width:1920,height:1080,bitrate:6503313,fps:60},yg["376"]={width:1280,height:720,bitrate:5706960,fps:60},yg["384"]={width:1280,height:720,bitrate:3660979,fps:60},yg["225"]={width:1280,height:720,bitrate:5805E3,fps:30},yg["224"]={width:1280,height:720,bitrate:453E4,fps:30},yg["145"]={width:1280,height:720,bitrate:2682052,fps:30},yg);g.T=hO.prototype;g.T.getInfo=function(){return this.K}; g.T.xw=function(){return null}; g.T.dJ=function(){var O=this.xw();return O?(O=g.SB(O.uh),Number(O.expire)):NaN}; g.T.uN=function(){}; g.T.getHeight=function(){return this.K.video.height};L3X.prototype.build=function(){ET7(this);var O=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],V={};a:if(this.K)var J=this.K;else{J="";for(var y=g.n(this.U),l=y.next();!l.done;l=y.next())if(l=l.value,l.wC){if(l.wC.getIsDefault()){J=l.wC.getId();break a}J||(J=l.wC.getId())}}y=g.n(this.U);for(l=y.next();!l.done;l=y.next())if(l=l.value,this.V||!l.wC||l.wC.getId()===J)V[l.itag]||(V[l.itag]=[]),V[l.itag].push(l);J=g.n(this.j);for(y=J.next();!y.done;y=J.next())if(y=y.value,l=V[y.K]){l=g.n(l);for(var m=l.next();!m.done;m= l.next()){var H=O,F=H.push;m=m.value;var N="#EXT-X-MEDIA:TYPE=AUDIO,",x="YES",W="audio";if(m.wC){W=m.wC;var U=W.getId().split(".")[0];U&&(N+='LANGUAGE="'+U+'",');(this.K?this.K===W.getId():W.getIsDefault())||(x="NO");W=W.getName()}U="";y!==null&&(U=y.itag.toString());U=vJ(this,m.url,U);N=N+('NAME="'+W+'",DEFAULT='+(x+',AUTOSELECT=YES,GROUP-ID="'))+(X3d(m,y)+'",URI="'+(U+'"'));F.call(H,N)}}J=g.n(this.W);for(y=J.next();!y.done;y=J.next())y=y.value,l=pZz,y=(H=y.wC)?'#EXT-X-MEDIA:URI="'+vJ(this,y.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+l+'",LANGUAGE="'+H.getId()+'",NAME="'+H.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,y&&O.push(y);J=this.W.length>0?pZz:void 0;y=g.n(this.j);for(l=y.next();!l.done;l=y.next())l=l.value,F=V[l.K],H=void 0,((H=F)==null?void 0:H.length)>0&&(H=l,F=F[0],F="#EXT-X-STREAM-INF:BANDWIDTH="+(H.bitrate+F.bitrate)+',CODECS="'+(H.codecs+","+F.codecs+'",RESOLUTION=')+(H.width+"x"+H.height+',AUDIO="')+(X3d(F,H)+'",')+(J?'SUBTITLES="'+J+'",':"")+"CLOSED-CAPTIONS=NONE",H.fps>1&&(F+= ",FRAME-RATE="+H.fps),H.eD&&(F+=",VIDEO-RANGE="+H.eD),O.push(F),O.push(vJ(this,l.url,"")));return O.join("\n")}; var pZz="text";g.I(wU,hO);wU.prototype.dJ=function(){return this.expiration}; wU.prototype.xw=function(){if(!this.uh||this.uh.GL()){var O=this.j.build();O="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(O);this.uh=new Zr(O)}return this.uh};g.I(MA,hO);MA.prototype.xw=function(){return new Zr(this.j.Cv())}; MA.prototype.uN=function(){this.j=Uo(5,this.j)};g.I(LT,hO);LT.prototype.xw=function(){return new Zr(this.j)};var lU={},rEd=(lU.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",lU.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",lU.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",lU.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",lU);g.T=g.nT.prototype;g.T.getId=function(){return this.id}; g.T.getName=function(){return this.name}; g.T.isServable=function(){return this.K}; g.T.Cv=function(){return this.url}; g.T.getXtags=function(){return this.xtags}; g.T.toString=function(){return this.languageCode+": "+g.Xi(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.T.equals=function(O){return O?this.toString()===O.toString():!1}; g.T.wN=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var SlH={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},D3U={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},OkV=/^(\d*)_((\d*)_?(\d*))$/;var JmX={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},yml={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Hx={},msh=(Hx.ALWAYS=1,Hx.BY_REQUEST=3,Hx.UNKNOWN=void 0,Hx),jv={},L8Y=(jv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",jv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",jv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",jv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",jv);var im5; im5=function(O){for(var V=Object.keys(O),J={},y=0;yy-V?-1:O}; g.T.HI=function(){return this.j.bR()}; g.T.xD=function(){return this.j.mC()}; g.T.BP=function(O){this.j=O};g.I(Nu,C7);Nu.prototype.j=function(O,V){return C7.prototype.j.call(this,"$N|"+O,V)}; Nu.prototype.W=function(O,V,J){return new Fd(O,V,J,this.isLive)};g.I(g.WL,g.BF);g.T=g.WL.prototype; g.T.setData=function(O){var V=this;O=O||{};var J=O.errordetail;J!=null&&(this.errorDetail=J);var y=O.errorcode;y!=null?this.errorCode=y:O.status==="fail"&&(this.errorCode="auth");var l=O.reason;l!=null&&(this.errorReason=l);var m=O.subreason;m!=null&&(this.h$=m);if(!this.clientPlaybackNonce){var H;this.clientPlaybackNonce=(H=O.cpn)!=null?H:this.WE.Sq()?"r"+g.mR(15):g.mR(16);var F;(F=this.Eb)==null||F.clear()}this.iQ=O$(this.WE.iQ,O.livemonitor);yJd(this,O);var N=O.raw_player_response;if(N)this.Pl= N;else{var x=O.player_response;x&&(N=JSON.parse(x))}N&&(this.playerResponse=N);if(this.playerResponse){var W=this.playerResponse.annotations;W&&$sp(this,W);var U=this.playerResponse.attestation;U&&Hkp(this,U);var Z=this.playerResponse.cotn;Z&&(this.cotn=Z);var z=this.playerResponse.heartbeatParams;z&&Njn(this,z);var c=this.playerResponse.messages;c&&Zkr(this,c);var Y=this.playerResponse.overlay;Y&&enr(this,Y);var b=this.playerResponse.playabilityStatus;if(b){IgU(this,b);var M=b.errorScreen;M&&MEo(this, M)}var w=this.playerResponse.playbackTracking;w&&agY(this,w,O);var L=this.playerResponse.playerCueRanges;L&&L.length>0&&(this.cueRanges=L);var X=this.playerResponse.playerCueRangeSet;X&&g.sy(this,X);var u=qMH(this.playerResponse.adPlacements);w&&w.promotedPlaybackTracking&&u&&g.en(new g.pn("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(u||Qcr(this.playerResponse.adSlots))this.RU=!0;var G=this.playerResponse.playerAds;G&&bkr(this,G,O);var k=this.playerResponse.playerConfig; k&&pYh(this,k);var D=this.playerResponse.streamingData;D&&fgh(this,D,k||null);var Oo=this.playerResponse.trackingParams;Oo&&(this.KD=Oo);var md=this.playerResponse.videoDetails;if(md){o8X(this,md,O);n8Y(this,md,k||null,O);var xY=md.isPrivate;xY!==void 0&&(this.isPrivate=O$(this.isPrivate,xY))}b&&F8V(this,b,md||null);var V7=this.playerResponse.interstitialPods;V7&&Usd(this,V7);this.s1&&this.eventId&&(this.s1=Ot(this.s1,{ei:this.eventId}));var Tr=this.playerResponse.captions;Tr&&Tr.playerCaptionsTracklistRenderer&& Czh(this,Tr.playerCaptionsTracklistRenderer);(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.q4=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&znn(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Rp;this.compositeLiveIngestionOffsetToken=(Rp=this.playerResponse.playbackTracking)== null?void 0:Rp.compositeLiveIngestionOffsetToken;var ys;this.compositeLiveStatusToken=(ys=this.playerResponse.playbackTracking)==null?void 0:ys.compositeLiveStatusToken;this.L("html5_fill_default_mosaic_audio_track_id")&&Cj(this)&&(this.WE.zL=Vko(this));var JI,uX,nn=(JI=this.playerResponse.playerConfig)==null?void 0:(uX=JI.granularVariableSpeedConfig)==null?void 0:uX.minimumPlaybackRate,im,fd,h=(im=this.playerResponse.playerConfig)==null?void 0:(fd=im.granularVariableSpeedConfig)==null?void 0:fd.maximumPlaybackRate; nn&&h&&(this.gI=nn/100,this.Ad=h/100);this.L("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(OT){var va;((va=g.e(OT,g.KT))==null?void 0:va.signal)==="INIT_ATT_SERVICE"&&(V.Ck=!0)})}Z2(this,O); lAn(this,O);O.queue_info&&(this.queueInfo=O.queue_info);var X1=O.hlsdvr;X1!=null&&(this.allowLiveDvr=Number(X1)===1?MS()?!0:RN&&ud<5?!1:!0:!1);this.adQueryId=O.ad_query_id||null;this.MO||(this.MO=O.encoded_ad_safety_reason||null);this.hT=O$(this.hT,O.infringe||O.muted);this.Z$=O.authkey;this.Ef=O.authuser;this.mutedAutoplay=O$(this.mutedAutoplay,O&&O.playmuted);this.mutedAutoplayDurationMode=JG(this.mutedAutoplayDurationMode,O&&O.muted_autoplay_duration_mode);this.I_=O$(this.I_,O&&O.mutedautoplay); var AI=O.length_seconds;AI&&(this.lengthSeconds=typeof AI==="string"?Ka(AI):AI);this.isAd()||this.zb||!g.HC(g.yw(this.WE))?this.endSeconds=JG(this.endSeconds,this.jR||O.end||O.endSeconds):F61(this,g.yw(this.WE),this.lengthSeconds);this.KD=yV(this.KD,O.itct);this.yq=O$(this.yq,O.is_live_destination);this.isLivePlayback=O$(this.isLivePlayback,O.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Gy();O.isUpcoming&&(this.isUpcoming=O$(this.isUpcoming,O.isUpcoming));this.FR= O$(this.FR,O.post_live_playback);this.cX&&(this.FR=!1);this.isMdxPlayback=O$(this.isMdxPlayback,O.mdx);var gV=O.mdx_control_mode;gV&&(this.mdxControlMode=typeof gV==="number"?gV:Ka(gV));this.isInlinePlaybackNoAd=O$(this.isInlinePlaybackNoAd,O.is_inline_playback_no_ad);this.E5=JG(this.E5,O.reload_count);this.reloadReason=yV(this.reloadReason,O.reload_reason);this.SD=O$(this.SD,O.show_content_thumbnail);this.cycToken=O.cyc||null;var lX=gU(O);Object.keys(lX).length>0&&(this.CE=lX);this.lw=yV(this.lw, O.vvt);this.mdxEnvironment=yV(this.mdxEnvironment,O.mdx_environment);O.source_container_playlist_id&&(this.sourceContainerPlaylistId=O.source_container_playlist_id);O.serialized_mdx_metadata&&(this.serializedMdxMetadata=O.serialized_mdx_metadata);this.Hu=O.osig;this.eventId||(this.eventId=O.eventid);this.osid||(this.osid=O.osid);this.playlistId=yV(this.playlistId,O.list);O.index&&(this.playlistIndex=this.playlistIndex===void 0?JG(0,O.index):JG(this.playlistIndex,O.index));this.fm=O.pyv_view_beacon_url; this.qO=O.pyv_quartile25_beacon_url;this.Kk=O.pyv_quartile50_beacon_url;this.jn=O.pyv_quartile75_beacon_url;this.pk=O.pyv_quartile100_beacon_url;var az=O.session_data;!this.wm&&az&&(this.wm=Bw(az,"&").feature);this.isFling=JG(this.isFling?1:0,O.is_fling)===1;this.vnd=JG(this.vnd,O.vnd);this.forceAdsUrl=yV(this.forceAdsUrl,O.force_ads_url);this.Rz=yV(this.Rz,O.ctrl);this.yI=yV(this.yI,O.ytr);this.rR=O.ytrcc;this.Lk=O.ytrexp;this.xJ=O.ytrext;this.Ks=yV(this.Ks,O.adformat);this.bX=yV(this.bX,O.attrib); this.slotPosition=JG(this.slotPosition,O.slot_pos);this.breakType=O.break_type;this.BS=O$(this.BS,O.ssrt);this.videoId=m2(O)||this.videoId;this.V=yV(this.V,O.vss_credentials_token);this.F$=yV(this.F$,O.vss_credentials_token_type);this.St=O$(this.St,O.audio_only);this.O5=O$(this.O5,O.aac_high);this.Ht=O$(this.Ht,O.prefer_low_quality_audio);this.yS=O$(this.yS,O.uncap_inline_quality);this.L("html5_enable_qoe_cat_list")?O.qoe_cat&&(this.f8=this.f8.concat(O.qoe_cat.split(","))):this.eM=yV(this.eM,O.qoe_cat); this.wk=O$(this.wk,O.download_media);this.S=$iX(this,O.prefer_gapless);xMV(this.playerResponse)&&this.nw.push("ad");var p=O.adaptive_fmts;p&&(this.adaptiveFormats=p,this.jB("adpfmts",{},!0));var Jr=O.allow_embed;Jr&&(this.allowEmbed=Number(Jr)===1);var Ht=O.backgroundable;Ht&&(this.backgroundable=Number(Ht)===1);var wT=O.autonav;wT&&(this.isAutonav=Number(wT)===1);var HZ=O.autoplay;HZ&&(this.ZI=this.Ou=Number(HZ)===1);var sz=O.iv_load_policy;sz&&(this.annotationsLoadPolicy=VV(this.annotationsLoadPolicy, sz,ld));var Ml=O.cc_lang_pref;Ml&&(this.captionsLanguagePreference=yV(Ml,this.captionsLanguagePreference));var ZZ=O.cc_load_policy;ZZ&&(this.Ky=VV(this.Ky,ZZ,ld));var Mk;this.deviceCaptionsOn=(Mk=O.device_captions_on)!=null?Mk:void 0;var f;this.HL=(f=O.device_captions_lang_pref)!=null?f:"";var a;this.YF=(a=O.viewer_selected_caption_langs)!=null?a:[];var v=O.cached_load;v&&(this.UP=O$(this.UP,v));if(O.dash==="0"||O.dash===0||O.dash===!1)this.YJ=!0;var E=O.dashmpd;E&&(this.ev=g.pp(E,{cpn:this.clientPlaybackNonce})); var d=O.delay;d&&(this.kV=Ka(d));var Hh=this.jR||O.end;if(this.nD?Hh!=null:Hh!=void 0)this.clipEnd=JG(this.clipEnd,Hh);var B=O.fmt_list;B&&(this.Vd=B);O.heartbeat_preroll&&this.nw.push("heartbeat");f6z&&(this.l2=-Math.floor(Math.random()*10),this.bW=-Math.floor(Math.random()*40));var A=O.is_listed;A&&(this.isListed=O$(this.isListed,A));var jV=O.is_private;jV&&(this.isPrivate=O$(this.isPrivate,jV));var op=O.is_dni;op&&(this.tC=O$(this.tC,op));var Bh=O.dni_color;Bh&&(this.gb=yV(this.gb,Bh));var xE= O.pipable;xE&&(this.pipable=O$(this.pipable,xE));this.I9=(this.Cm=this.pipable&&this.WE.xJ)&&!this.WE.showMiniplayerButton;var w5=O.paid_content_overlay_duration_ms;w5&&(this.paidContentOverlayDurationMs=Ka(w5));var lm=O.paid_content_overlay_text;lm&&(this.paidContentOverlayText=lm);var bX=O.url_encoded_fmt_stream_map;bX&&(this.xj=bX);var rT=O.hls_formats;rT&&(this.hlsFormats=rT);var hr=O.hlsvp;hr&&(this.hlsvp=hr);var Rz=O.live_start_walltime;Rz&&(this.bU=typeof Rz==="number"?Rz:Ka(Rz));var vh=O.live_manifest_duration; vh&&(this.yD=typeof vh==="number"?vh:Ka(vh));var fu=O.player_params;fu&&(this.playerParams=fu);var Uz=O.partnerid;Uz&&(this.partnerId=JG(this.partnerId,Uz));var Q7=O.probe_url;Q7&&(this.probeUrl=E5(g.pp(Q7,{cpn:this.clientPlaybackNonce})));var Ph=O.pyv_billable_url;Ph&&QmH(Ph)&&(this.AE=Ph);var Y_=O.pyv_conv_url;Y_&&QmH(Y_)&&(this.eL=Y_);H9p(this,O);this.startSeconds>0?this.L("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.q4||this.W_||O.start||O.startSeconds)&&this.jB("lss",{css:this.startSeconds, pcss:this.q4,iss:this.W_,ps:O.start||void 0,pss:O.startSeconds||void 0}):(this.startSeconds=JG(this.startSeconds,this.q4||this.W_||O.start||O.startSeconds),this.L("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.jB("lsss",{css:this.startSeconds,pcss:this.q4,iss:this.W_,ps:O.start||void 0,pss:O.startSeconds||void 0}),this.yz=this.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Pn=O.live_utc_start;Pn!=null?this.liveUtcStartSeconds=Number(Pn):eb5(this.startSeconds)&& (this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var yU=O.utc_start_millis;yU&&(this.liveUtcStartSeconds=Number(yU)*.001)}var qW=O.stream_time_start_millis;qW&&(this.Fl=Number(qW)*.001);var wV=this.W_||O.start;(this.nD?wV==null||Number(O.resume)===1:wV==void 0||O.resume=="1")||this.isLivePlayback||(this.clipStart=JG(this.clipStart,wV));var MW=O.url_encoded_third_party_media;MW&&(this.qq=kC(MW));var i2=O.ypc_offer_button_formatted_text;if(i2){var x2= JSON.parse(i2);this.SS=x2!=null?x2:null;this.Ex=i2}var AU=O.ypc_offer_button_text;AU&&(this.Jy=AU);var LK=O.ypc_offer_description;LK&&(this.td=LK);var VJ=O.ypc_offer_headline;VJ&&(this.zs=VJ);var J4=O.ypc_full_video_message;J4&&(this.zw=J4);var yI=O.ypc_offer_id;yI&&(this.Km=yI);var T5=O.ypc_buy_url;T5&&(this.Me=T5);var yJ=O.ypc_item_thumbnail;yJ&&(this.Ne=yJ);var ly=O.ypc_item_title;ly&&(this.aP=ly);var rN=O.ypc_item_url;rN&&(this.Ts=rN);var m7=O.ypc_vid;m7&&(this.Br=m7);O.ypc_overlay_timeout&&(this.sZ= Number(O.ypc_overlay_timeout));var nK=O.ypc_trailer_player_vars;nK&&(this.j0=y7(nK));var XW=O.ypc_original_itct;XW&&(this.IS=XW);this.iL=yV(this.iL,O.ucid);this.nP=O.storyboard_spec||null;this.cH=O.live_storyboard_spec||null;this.UF=O.iv_endscreen_url||null;this.dP=O$(this.dP,O.iv3_module);this.GD=O$(this.GD,O.ypc_module);this.Zm=O$(this.Zm,O.ypc_clickwrap_module);this.GD&&this.nw.push("ypc");this.Zm&&this.nw.push("ypcRentalActivation");this.M9={video_id:O.video_id,eventid:O.eventid,cbrand:O.cbrand, cbr:O.cbr,cbrver:O.cbrver,c:O.c,cver:O.cver,ctheme:O.ctheme,cplayer:O.cplayer,cmodel:O.cmodel,cnetwork:O.cnetwork,cos:O.cos,cosver:O.cosver,cplatform:O.cplatform,user_age:O.user_age,user_display_image:O.user_display_image,user_display_name:O.user_display_name,user_gender:O.user_gender,csi_page_type:O.csi_page_type,csi_service_name:O.csi_service_name,enablecsi:O.enablecsi,enabled_engage_types:O.enabled_engage_types};mPY(this,O);var $1=O.cotn;$1&&(this.cotn=$1);p_5(this)?Mu(this)&&(this.isLivePlayback&& this.ev&&(this.wX=!0),this.Zq&&(this.NE=!0)):fAn(this)?this.wX=!0:b9Y(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&Ey(this):this.ev&&(this.WE.KD==="yt"&&this.Gy()&&this.L("drm_manifestless_unplugged")&&this.L("html5_deprecate_manifestful_fallback")?this.jB("deprecateMflFallback",{}):this.wX=!0);var EG=O.adpings;EG&&(this.rk=EG?y7(EG):null);var H8=O.feature;H8&&(this.i4=H8);var ji=O.referrer;ji&&(this.referrer=ji);this.clientScreenNonce=yV(this.clientScreenNonce,O.csn);this.SC= JG(this.SC,O.root_ve_type);this.CI=JG(this.CI,O.kids_age_up_mode);this.nD||O.kids_app_info==void 0||(this.kidsAppInfo=O.kids_app_info);this.nD&&O.kids_app_info!=null&&(this.kidsAppInfo=O.kids_app_info);this.cI=O$(this.cI,O.upg_content_filter_mode);this.unpluggedFilterModeType=JG(this.unpluggedFilterModeType,O.unplugged_filter_mode_type);var C5=O.unplugged_location_info;C5&&(this.Xs=C5);var FX=O.unplugged_partner_opt_out;FX&&(this.YQ=yV("",FX));this.JB=O$(this.JB,O.disable_watch_next);this.MB=yV(this.MB, O.internal_ip_override);this.L6=!!O.is_yto_interstitial;this.interstitials.length&&this.nw.push("playableSequences");var N1=O.qc;N1&&(this.qc=N1);this.qX=yV(this.qX,O.csi_timer);O.watchUrl&&(this.watchUrl=O.watchUrl);var YK=O.watch_endpoint;this.L("html5_attach_watch_endpoint_ustreamer_config")&&YK&&PfY(this,YK);if(YK==null?0:YK.ustreamerConfig)this.hI=tT(YK.ustreamerConfig);var aa,x1,oV=YK==null?void 0:(aa=YK.loggingContext)==null?void 0:(x1=aa.qoeLoggingContext)==null?void 0:x1.serializedContextData; oV&&(this.Q7=oV);g.R2(this.WE)&&this.WE.CP&&(this.embedsRct=yV(this.embedsRct,O.rct),this.embedsRctn=yV(this.embedsRctn,O.rctn));O.embed_config&&(this.LP=O.embed_config);this.Pn=this.Pn||!!O.pause_at_start;O.default_active_source_video_id&&(this.defaultActiveSourceVideoId=O.default_active_source_video_id);this.MI=this.MI||!!O.live_preload}; g.T.Y=function(){return this.WE}; g.T.L=function(O){return this.WE.L(O)}; g.T.SE=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.T.hasSupportedAudio51Tracks=function(){var O;return!((O=this.zL)==null||!O.Ks)}; g.T.getUserAudio51Preference=function(){var O=1;z0(this.WE)&&this.L("html5_ytv_surround_toggle_default_off")?O=0:WJ(this.WE)&&this.isLivePlayback&&this.Ji()&&(O=0);var V;return(V=g.vC("yt-player-audio51"))!=null?V:O}; g.T.q$=function(){this.GL()||(this.K.j||this.K.unsubscribe("refresh",this.q$,this),this.hF(-1))}; g.T.hF=function(O){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var V=J2o(this.K,this.nI);if(V.length>0){for(var J=g.n(V),y=J.next();!y.done;y=J.next())y=y.value,y.startSecs=Math.max(y.startSecs,this.TK()),this.L("html5_cuepoint_identifier_logging")&&y.event==="start"&&this.jB("cuepoint",{pubCue:y.identifier,segNum:O});this.publish("cuepointupdated",V,O);this.nI+=V.length;if(Ey(this)&&this.WE.Sq())for(V=g.n(V),J=V.next();!J.done;J=V.next())J=J.value,this.jB("cuepoint",{segNum:O,event:J.event, startSecs:J.startSecs,id:J.identifier.slice(-16)}),J.event==="start"&&(J=J.startSecs,this.M5.start=this.oB,this.M5.end=J+3)}}}; g.T.Jf=function(){this.GL()||(this.loading=!1,this.publish("dataloaded"))}; g.T.Ji=function(){return this.gk!==void 0?this.gk:this.gk=!!this.AL||!!this.K&&D9(this.K)}; g.T.Uc=function(O){var V=this;if(this.GL())return fW();this.eB=this.dW=this.U=null;zc(this,"html5_high_res_logging_always")&&(this.WE.dD=!0);return vHr(this,O).then(void 0,function(){return Ml1(V,O)}).then(void 0,function(){return L6H(V)}).then(void 0,function(){return X_d(V)})}; g.T.tE=function(O){this.U=O;w_H(this,this.U.getAvailableAudioTracks());if(this.U){O=g.n(this.U.videoInfos);for(var V=O.next();!V.done;V=O.next()){V=V.value;var J=V.containerType;J!==0&&(this.Jp[J]=V.id)}}O=this.getAvailableAudioTracks();O=O.concat(this.dD);for(V=0;V0)return this.U.getAvailableAudioTracks();if(this.xr)return this.xr;if(this.jJ)return this.jJ}return[]}; g.T.getAudioTrack=function(){var O=this;if(this.D&&!Pg(this.D)){var V=g.Qs(this.getAvailableAudioTracks(),function(l){return l.id===O.D.id}),J; if(!V&&((J=this.D.wC)==null?0:J.id)){var y=this.D.wC.id;V=g.Qs(this.getAvailableAudioTracks(),function(l){return l.wC.id===y})}return V||this.dD}if(this.xr){if(!this.h0)for(V=g.n(this.xr),J=V.next();!J.done;J=V.next())if(J=J.value,J.wC.getIsDefault()){this.h0=J; break}return this.h0||this.dD}return this.dD}; g.T.getPlayerResponse=function(){return this.playerResponse}; g.T.getWatchNextResponse=function(){return this.fD}; g.T.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.T.getHeartbeatResponse=function(){return this.Kh}; g.T.xn=function(){return this.watchUrl?this.watchUrl:this.WE.getVideoUrl(this.videoId)}; g.T.pg=function(){return!!this.K&&(rNX(this.K)||irV(this.K)||RD7(this.K))}; g.T.getEmbeddedPlayerResponse=function(){return this.VO}; g.T.xb=function(){return(this.eventLabel||this.WE.fD)==="shortspage"}; g.T.isAd=function(){return this.TV||!!this.adFormat}; g.T.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.T.Yr=function(){var O,V,J;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((O=this.playerResponse)==null?0:(V=O.playerConfig)==null?0:(J=V.daiConfig)==null?0:J.ssaEnabledPlayback)}; g.T.ID=function(){return this.mO}; g.T.sF=function(){return this.GD||this.JL}; g.T.xl=function(){return this.fetchType==="onesie"}; g.T.z7=function(){return zc(this,"html5_samsung_vp9_live")}; g.T.jB=function(O,V,J){this.publish("ctmp",O,V,J)}; g.T.nW=function(O,V,J){this.publish("ctmpstr",O,V,J)}; g.T.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.T.getGetAdBreakContext=function(O,V){O=O===void 0?NaN:O;V=V===void 0?NaN:V;var J={isSabr:tO(this)},y,l=(y=this.getHeartbeatResponse())==null?void 0:y.adBreakHeartbeatParams;l&&(J.adBreakHeartbeatParams=l);if(this.L("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.K&&!isNaN(O)&&!isNaN(V)){V=O-V;for(var m in this.K.K)if(y=this.K.K[m],y.info.z3()||y.info.jE())if(y=y.index,y.isLoaded()){m=y.tO(V);y=y.dN(m)+V-y.getStartTime(m);this.jB("gabc",{t:O.toFixed(3),mt:V.toFixed(3),sg:m,igt:y.toFixed(3)}); J.livePlaybackPosition={utcTimeMillis:""+(y*1E3).toFixed(0)};break}}return J}; g.T.isEmbedsShortsMode=function(O,V){if(!g.R2(this.WE)||(this.WE.dW||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||V)return!1;if(this.L("embeds_enable_shorts")){var J,y;return!!((J=this.embeddedPlayerConfig)==null?0:(y=J.embeddedPlayerFlags)==null?0:y.isShortsExperienceEligible)}var l,m;return!!(((l=this.embeddedPlayerConfig)==null?0:(m=l.embeddedPlayerFlags)==null?0:m.isShortsExperienceEligible)&&O.width<=O.height)}; g.T.U5=function(){g.BF.prototype.U5.call(this);this.rk=null;delete this.Pu;delete this.accountLinkingConfig;delete this.K;this.U=this.Kh=this.playerResponse=this.fD=null;this.xj=this.adaptiveFormats="";delete this.botguardData;this.Vz=this.suggestions=this.VD=null;this.sabrContextUpdates.clear()}; var f6z=!0;var Uio={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Zeo={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},xiH={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},CVh={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"},Nl1={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},FHo={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"},WHd={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.I(YD,g.K);g.T=YD.prototype;g.T.handleExternalCall=function(O,V,J){var y=this.state.V[O],l=this.state.S[O],m=y;if(l)if(J&&nm(J,XtF))m=l;else if(!y)throw Error('API call from an untrusted origin: "'+J+'"');this.logApiCall(O,J);if(m){a:{J=g.n(V);for(y=J.next();!y.done;y=J.next())if(String(y.value).includes("javascript:")){J=!0;break a}J=!1}J&&g.en(Error('Dangerous call to "'+O+'" with ['+V+"]."));return m.apply(this,V)}throw Error('Unknown API method: "'+O+'".');}; g.T.logApiCall=function(O,V,J){var y=this.app.Y();y.H1&&!this.state.qX.has(O)&&(this.state.qX.add(O),g.l6("webPlayerApiCalled",{callerUrl:y.loaderUrl,methodName:O,origin:V||void 0,playerStyle:y.playerStyle||void 0,embeddedPlayerMode:y.dW,errorCode:J}))}; g.T.publish=function(O){var V=g.jF.apply(1,arguments);this.state.U.publish.apply(this.state.U,[O].concat(g.q(V)));if(O==="videodatachange"||O==="resize"||O==="cardstatechange")this.state.j.publish.apply(this.state.j,[O].concat(g.q(V))),this.state.D.publish.apply(this.state.D,[O].concat(g.q(V)))}; g.T.MX=function(O){var V=g.jF.apply(1,arguments);this.state.U.publish.apply(this.state.U,[O].concat(g.q(V)));this.state.j.publish.apply(this.state.j,[O].concat(g.q(V)))}; g.T.qG=function(O){var V=g.jF.apply(1,arguments);this.state.U.publish.apply(this.state.U,[O].concat(g.q(V)));this.state.j.publish.apply(this.state.j,[O].concat(g.q(V)));this.state.D.publish.apply(this.state.D,[O].concat(g.q(V)))}; g.T.il=function(O){var V=g.jF.apply(1,arguments);this.state.U.publish.apply(this.state.U,[O].concat(g.q(V)));this.state.j.publish.apply(this.state.j,[O].concat(g.q(V)));this.state.D.publish.apply(this.state.D,[O].concat(g.q(V)));this.state.W.publish.apply(this.state.W,[O].concat(g.q(V)))}; g.T.L=function(O){return this.app.Y().L(O)}; g.T.U5=function(){if(this.state.element){var O=this.state.element,V;for(V in this.state.K)this.state.K.hasOwnProperty(V)&&(O[V]=null);this.state.element=null}g.K.prototype.U5.call(this)};g.I(h1,g.Th);h1.prototype.publish=function(O){var V=g.jF.apply(1,arguments);if(this.W.has(O))return this.W.get(O).push(V),!0;var J=!1;try{for(V=[V],this.W.set(O,V);V.length;)J=g.Th.prototype.publish.call.apply(g.Th.prototype.publish,[this,O].concat(g.q(V.shift())))}finally{this.W.delete(O)}return J};g.I(o9,g.K);o9.prototype.U5=function(){this.W.dispose();this.D.dispose();this.j.dispose();this.U.dispose();this.qX=this.K=this.S=this.V=this.T=void 0};var YCo=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.I(wA,YD);g.T=wA.prototype;g.T.getApiInterface=function(){return Array.from(this.state.T)}; g.T.Ga=function(O,V){this.state.W.subscribe(O,V)}; g.T.ecz=function(O,V){this.state.W.unsubscribe(O,V)}; g.T.getPlayerState=function(O){return qUX(this.app,O)}; g.T.Ho=function(){return qUX(this.app)}; g.T.FJ5=function(O,V,J){Xb(this)&&(d1(this.app,!0,1),Q4(this.app,O,V,J,1))}; g.T.getCurrentTime=function(O,V,J){var y=this.getPlayerState(O);if(this.app.getAppState()===2&&y===5){var l;return((l=this.app.getVideoData())==null?void 0:l.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&y===0?w1(this.app,O):O?this.app.getCurrentTime(O,V,J):this.app.getCurrentTime(O)}; g.T.x$=function(){return this.app.getCurrentTime(1)}; g.T.ES=function(){var O=this.app.dN(1);return isNaN(O)?this.getCurrentTime(1):O}; g.T.Q5=function(){return this.app.getDuration(1)}; g.T.qe=function(O,V){O=g.BZ(Math.floor(O),0,100);isFinite(O)&&ou(this.app,{volume:O,muted:this.isMuted()},V)}; g.T.nIB=function(O){this.qe(O,!1)}; g.T.ub=function(O){ou(this.app,{muted:!0,volume:this.getVolume()},O)}; g.T.TCW=function(){this.ub(!1)}; g.T.wK=function(O){ou(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},O)}; g.T.kMK=function(){nj(this.app)||this.wK(!1)}; g.T.getPlayerMode=function(){var O={};this.app.getVideoData().tC&&(O.pfp={enableIma:this.app.hC().allowImaMonetization,autoplay:$D(this.app.hC()),mutedAutoplay:this.app.hC().mutedAutoplay});return O}; g.T.di=function(){var O=this.app.getPresentingPlayerType();if(O===2&&!this.app.T3()){var V=hj(this.app.Fs());if(!(QKX(V)||g.R2(this.app.Y())&&g.R(this.app.ZN().getPlayerState(),1024))||GZX(V))return}(V=this.app.Ic().lV)?V.playVideo():this.app.playVideo(O)}; g.T.VEi=function(){d1(this.app,!0,1);this.di()}; g.T.pauseVideo=function(O){var V=this.app.getPresentingPlayerType();if(V!==2||this.app.T3()||QKX(hj(this.app.Fs()))){var J=this.app.Ic().lV;J?J.pauseVideo():this.app.pauseVideo(V,O)}}; g.T.BHj=function(){var O=this.app,V=!1;O.B.NH&&(O.cE.publish("pageTransition"),V=!0);O.stopVideo(V)}; g.T.clearVideo=function(){}; g.T.getAvailablePlaybackRates=function(){var O=this.app.Y();if(O.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(O.D?O.ancestorOrigins[0]:window.location.origin)||O.YJ)return aZm;O=this.app.getVideoData();var V=O.gI,J=O.Ad;return bus.filter(function(y){return y>=V&&y<=J})}return[1]}; g.T.getPlaybackQuality=function(O){return(O=EJ(this.app,{playerType:O}))?O.getPlaybackQuality():"unknown"}; g.T.cO5=function(){}; g.T.getAvailableQualityLevels=function(O){return(O=EJ(this.app,{playerType:O}))?(O=g.Ia(O.Kr(),function(V){return V.quality}),O.length&&(O[0]==="auto"&&O.shift(),O=O.concat(["auto"])),O):[]}; g.T.V5=function(){return this.getAvailableQualityLevels(1)}; g.T.zS=function(){return this.nH()}; g.T.tM=function(){return 1}; g.T.getVideoLoadedFraction=function(O){return this.app.getVideoLoadedFraction(O)}; g.T.nH=function(){return this.getVideoLoadedFraction()}; g.T.hM=function(){return 0}; g.T.getSize=function(){var O=this.app.tv().getPlayerSize();return{width:O.width,height:O.height}}; g.T.setSize=function(){this.app.tv().resize()}; g.T.loadVideoById=function(O,V,J,y){if(!O)return!1;O=ve(O,V,J);return this.app.loadVideoByPlayerVars(O,y)}; g.T.Osv=function(O,V,J){O=this.loadVideoById(O,V,J,1);d1(this.app,O,1)}; g.T.cueVideoById=function(O,V,J,y){O=ve(O,V,J);this.app.cueVideoByPlayerVars(O,y)}; g.T.dZ=function(O,V,J){this.cueVideoById(O,V,J,1)}; g.T.loadVideoByUrl=function(O,V,J,y){O=I9Y(O,V,J);return this.app.loadVideoByPlayerVars(O,y)}; g.T.Fpj=function(O,V,J){O=this.loadVideoByUrl(O,V,J,1);d1(this.app,O,1)}; g.T.cueVideoByUrl=function(O,V,J,y){O=I9Y(O,V,J);this.app.cueVideoByPlayerVars(O,y)}; g.T.rZ=function(O,V,J){this.cueVideoByUrl(O,V,J,1)}; g.T.pEl=function(){var O=this.app.Y();if(O.lw)return"";var V=this.app.hC(),J=void 0;V.isLivePlayback||(J=Math.floor(this.app.getCurrentTime(1)));return O.getVideoUrl(V.videoId,this.getPlaylistId()||void 0,J)}; g.T.Ie=function(){return this.app.getDebugText()}; g.T.getVideoEmbedCode=function(){var O=this.app.Y();if(O.lw)return"";var V=this.app.hC();return O.getVideoEmbedCode(V.isPrivate?"":V.title,this.app.hC().videoId,this.app.tv().getPlayerSize(),this.getPlaylistId()||void 0)}; g.T.iy=function(O,V,J){return rLo(this.app,O,V,J)}; g.T.removeCueRange=function(O){return this.app.Fz(O)}; g.T.loadPlaylist=function(O,V,J,y){this.app.loadPlaylist(O,V,J,y)}; g.T.usn=function(O,V,J,y){this.loadPlaylist(O,V,J,y);d1(this.app,!0,1)}; g.T.cuePlaylist=function(O,V,J,y){this.app.cuePlaylist(O,V,J,y)}; g.T.nextVideo=function(O,V){this.app.nextVideo(O,V)}; g.T.JxL=function(){this.nextVideo();d1(this.app,!0,1)}; g.T.previousVideo=function(O){this.app.previousVideo(O)}; g.T.Pkl=function(){this.previousVideo();d1(this.app,!0,1)}; g.T.playVideoAt=function(O){this.app.playVideoAt(O)}; g.T.Gbv=function(O){this.playVideoAt(O);d1(this.app,!0,1)}; g.T.setShuffle=function(O){var V=this.app.getPlaylist();V&&V.setShuffle(O)}; g.T.setLoop=function(O){var V=this.app.getPlaylist();V&&(V.loop=O)}; g.T.MQ=function(){var O=this.app.getPlaylist();if(!O)return null;for(var V=[],J=0;J=400)if(O=this.hC(),this.G.Y().L("client_respect_autoplay_switch_button_renderer"))O=!!O.autoplaySwitchButtonRenderer;else{var V,J,y,l;O=!!((V=O.getWatchNextResponse())==null?0:(J=V.contents)==null?0:(y=J.twoColumnWatchNextResults)==null?0:(l=y.autoplay)==null?0:l.autoplay)!==!1}O?this.K||(this.K=!0,this.PY(this.K),V=this.hC(),this.eN(V.autonavState),this.G.logVisibility(this.element,this.K)): (this.K=!1,this.PY(this.K))}; g.T.eN=function(O){CEH(this)?this.isChecked=O!==1:((O=O!==1)||(O=g.E$(),O=g.Ut("web_autonav_allow_off_by_default")&&!O.s5(141)&&g.ts("AUTONAV_OFF_BY_DEFAULT")?!1:!O.s5(140)),this.isChecked=O);jWd(this)}; g.T.onClick=function(){this.isChecked=!this.isChecked;this.G.Qw(this.isChecked?2:1);jWd(this);if(CEH(this)){var O=this.hC().autoplaySwitchButtonRenderer;this.isChecked&&(O==null?0:O.onEnabledCommand)?this.G.MX("innertubeCommand",O.onEnabledCommand):!this.isChecked&&(O==null?0:O.onDisabledCommand)&&this.G.MX("innertubeCommand",O.onDisabledCommand)}this.G.logClick(this.element)}; g.T.getValue=function(){return this.isChecked}; g.T.hC=function(){return this.G.getVideoData({playerType:1})};g.I(FWh,Uc);g.I(Ge,I3);Ge.prototype.Qz=function(O){O?this.K||(this.mp.sR(this),this.K=!0):this.K&&(this.mp.vn(this),this.K=!1);this.K&&YG(this,pEp())}; Ge.prototype.D=function(){g.Vf(this.element,"ytp-menuitem-highlight-transition-enabled")}; Ge.prototype.U=function(O){var V=pEp();O!==V&&(V=g.E$(),gE(190,O),gE(192,!0),V.save(),this.G.MX("cinematicSettingsToggleChange",O))}; Ge.prototype.U5=function(){this.K&&this.mp.vn(this);I3.prototype.U5.call(this)};g.I(Kc,Uc);Kc.prototype.updateCinematicSettings=function(O){this.K=O;var V;(V=this.menuItem)==null||V.Qz(O);this.api.publish("onCinematicSettingsVisibilityChange",O)};g.I(xOr,Uc);g.I(t9,Uc);t9.prototype.setCreatorEndscreenVisibility=function(O){var V;(V=MX(this.api.Fs()))==null||V.PY(O)}; t9.prototype.K=function(O){function V(y){y==="creatorendscreen"&&(y=MX(J.api.Fs()))&&y.xUz(J.hideButton)} var J=this;this.hideButton=O;this.events.Z(this.api,"modulecreated",V);V("creatorendscreen")};g.I(UOr,Uc);g.I(ug,I3);ug.prototype.W=function(O){this.D(O?1:0)}; ug.prototype.La=function(){if(this.enableNewAudioSettingsMenu||this.U){var O=this.G.getPresentingPlayerType();O===2||O===3?this.K&&(this.K=!1,this.mp.vn(this)):(O=this.getDrcState(),O!==1?(O===0?(YG(this,this.j()===1),this.setEnabled(!0)):(YG(this,!1),this.setEnabled(!1)),this.K||(this.mp.sR(this),this.K=!0)):this.K&&(this.mp.vn(this),this.K=!1))}else{O=this.hasDrcAudioTrack();var V=this.j()===1&&O;YG(this,V);this.setEnabled(O)}}; ug.prototype.U5=function(){this.mp.vn(this);I3.prototype.U5.call(this)}; ug.prototype.V=function(){this.G.logClick(this.element)};g.I(A9,Uc);g.T=A9.prototype;g.T.getDrcUserPreference=function(){return this.K}; g.T.setDrcUserPreference=function(O){this.api.jB("drc_set",{pref:O});g.oH("yt-player-drc-pref",O,31536E3);O!==this.K&&(this.K=O,this.updateEnvironmentData(),this.IQ()&&this.api.zg(),this.api.eE())}; g.T.updateEnvironmentData=function(){this.api.Y().Z_=this.K===1}; g.T.IQ=function(){var O,V,J=(O=this.api.getVideoData())==null?void 0:(V=O.U)==null?void 0:V.K;if(!J)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.L("mta_drc_mutual_exclusion_removal")){var y,l,m=(y=this.api.yJ())==null?void 0:(l=y.wC)==null?void 0:l.id;return P$(J,function(H){var F;return H.audio.K&&((F=H.wC)==null?void 0:F.id)===m})}return P$(J,function(H){var F; return((F=H.audio)==null?void 0:F.K)===!0})}; g.T.getDrcState=function(){return this.api.qP(3)};g.I(rs,Uc);rs.prototype.onVideoDataChange=function(){var O=this,V=this.api.getVideoData();this.api.iO("embargo",1);var J=V==null?void 0:V.CP.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(J==null?0:J.length)?cCd(this,J.filter(function(y){return zfr(O,y)})):(V==null?0:V.cueRanges)&&cCd(this,V.cueRanges.filter(function(y){return zfr(O,y)}))}; rs.prototype.j=function(O){return O.embargo!==void 0}; rs.prototype.U5=function(){Uc.prototype.U5.call(this);this.K={}};g.I(ig,Uc); ig.prototype.addEmbedsConversionTrackingParams=function(O){var V=this.api.Y(),J=V.widgetReferrer,y=V.OE,l=this.K,m="",H=V.getWebPlayerContextConfig();H&&(m=H.embedsIframeOriginParam||"");J.length>0&&(O.embeds_widget_referrer=J);y.length>0&&(O.embeds_referring_euri=y);V.D&&m.length>0&&(O.embeds_referring_origin=m);H&&H.embedsFeature&&(O.feature=H.embedsFeature);l.length>0&&(V.L("embeds_web_enable_lite_experiment_control_arm_logging")?l.unshift(28572):g.HC(g.yw(V))&&l.unshift(159628),V=l.join(","),V= g.KW()?V:g.XO(V,4),O.source_ve_path=V);this.K.length=0};g.I(sWr,Uc);g.I(TI1,Uc);g.I(R3,g.K);R3.prototype.U5=function(){g.K.prototype.U5.call(this);this.K=null;this.j&&this.j.disconnect()};g.I(I7Y,Uc);g.I(BI,Uc);BI.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.I(PI,g.r);PI.prototype.show=function(){g.r.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; PI.prototype.stopTimer=function(){this.K&&(this.K.dispose(),this.K=null)}; PI.prototype.onVideoDataChange=function(O){var V,J,y=(V=this.api.getVideoData())==null?void 0:(J=V.getPlayerResponse())==null?void 0:J.playabilityStatus;y&&(V=Ywl(y),g.R(this.api.getPlayerStateObject(),128)||O==="dataloaderror"||!V?(this.j=0,this.stopTimer(),this.hide()):(O=(V.remainingTimeSecs||0)*1E3,O>0&&(this.show(),this.updateValue("label",Wq(V.label)),bfX(this,O))))}; PI.prototype.U5=function(){this.stopTimer();g.r.prototype.U5.call(this)};g.I(pX5,Uc);g.I(kG,g.r);kG.prototype.onClick=function(){this.cE.logClick(this.element);this.cE.MX("onFullerscreenEduClicked")}; kG.prototype.Qz=function(){this.cE.isFullscreen()?this.K?this.fade.hide():this.fade.show():this.hide();this.cE.logVisibility(this.element,this.cE.isFullscreen()&&!this.K)};g.I(S9,Uc);S9.prototype.updateFullerscreenEduButtonSubtleModeState=function(O){var V;(V=this.K)!=null&&(g.yf(V.element,"ytp-fullerscreen-edu-button-subtle",O),O&&!V.j&&(V.cE.L("player_tooltip_data_title_killswitch")?V.element.setAttribute("title","Scroll for details"):V.element.setAttribute("data-tooltip-title","Scroll for details"),Gc(V.cE,V.element,V),V.j=!0))}; S9.prototype.updateFullerscreenEduButtonVisibility=function(O){var V;(V=this.K)!=null&&(V.K=O,V.Qz())};g.I(f7X,g.r);g.I(v4X,Uc);g.I(Ds,Uc);Ds.prototype.getSphericalProperties=function(){var O=g.Be(this.api.Fs());return O?O.getSphericalProperties():{}}; Ds.prototype.setSphericalProperties=function(O){if(O){var V=g.Be(this.api.Fs());V&&V.setSphericalProperties(O,!0)}};g.I(O0,Uc);g.T=O0.prototype;g.T.createClientVe=function(O,V,J,y){this.api.createClientVe(O,V,J,y===void 0?!1:y)}; g.T.createServerVe=function(O,V,J){this.api.createServerVe(O,V,J===void 0?!1:J)}; g.T.setTrackingParams=function(O,V){this.api.setTrackingParams(O,V)}; g.T.logClick=function(O,V){this.api.logClick(O,V)}; g.T.logVisibility=function(O,V,J){this.api.logVisibility(O,V,J)}; g.T.hasVe=function(O){return this.api.hasVe(O)}; g.T.destroyVe=function(O){this.api.destroyVe(O)};J$.prototype.setPlaybackRate=function(O){this.playbackRate=Math.max(1,O)}; J$.prototype.getPlaybackRate=function(){return this.playbackRate};C8.prototype.U0=function(O){var V=g.k7(O.info.vE.info,this.xi.Gy),J=O.info.wW+this.D,y=O.info.startTime*1E3;if(this.policy.TL)try{y=this.policy.TL?g.Xr(O)*1E3:O.info.startTime*1E3}catch(H){Math.random()>.99&&this.logger&&(y=rX(O.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:O.info.rX(),encodedDataView:g.nD(y,4)})),y=O.info.startTime*1E3}var l=O.info.clipId,m=this.policy.TL?g.MCr(O)*1E3:O.info.duration*1E3;this.policy.TL&&(y<0||m<0)&&(this.logger&&(this.logger({missingSegInfo:O.info.rX(), startTimeMs:y,durationMs:m}),this.policy.N5||(y<0&&(y=O.info.startTime*1E3),m<0&&(m=O.info.duration*1E3))),this.policy.N5&&(y<0&&(y=O.info.startTime*1E3),m<0&&(m=O.info.duration*1E3)));return{formatId:V,wW:J,startTimeMs:y,clipId:l,cD:m}}; C8.prototype.Pv=function(O){this.timestampOffset=O};FH.prototype.seek=function(O,V){O!==this.targetTime&&(this.seekCount=0);this.targetTime=O;var J=this.videoTrack.K,y=this.audioTrack.K,l=this.audioTrack.Z4,m=ifp(this,this.videoTrack,O,this.videoTrack.Z4,V);V=ifp(this,this.audioTrack,this.policy.oB?O:m,l,V);O=Math.max(O,m,V);this.D=!0;this.xi.isManifestless&&(KWV(this,this.videoTrack,J),KWV(this,this.audioTrack,y));return O}; FH.prototype.isSeeking=function(){return this.D}; FH.prototype.LR=function(O){this.j=O}; var rCd=2/24;var PEn=0;var IO;YX.prototype.add=function(O){if(this.pos+20>this.data.length){var V=new Uint8Array(this.data.length*2);V.set(this.data);this.data=V}for(;O>31;)this.data[this.pos++]=IO[(O&31)+32],O>>=5;this.data[this.pos++]=IO[O|0]}; YX.prototype.dH=function(){return g.kH(this.data.subarray(0,this.pos))}; YX.prototype.reset=function(){this.pos=0};g.T=bv.prototype;g.T.ZC=function(){this.qX=this.now();DOl(this.Ax,this.qX);this.Il.ZC()}; g.T.zk=function(O,V){var J=this.policy.j?(0,g.cH)():0;p8(this,O,V);O-this.V<10&&this.j>0||this.Bl(O,V);this.Il.zk(O,V);this.policy.j&&(O=(0,g.cH)()-J,this.Xs+=O,this.eB=Math.max(O,this.eB))}; g.T.Bl=function(O,V){var J=(O-this.V)/1E3,y=V-this.U;this.VL||(dZU(this.Ax,J,y),this.s3(J,y));this.V=O;this.U=V}; g.T.xP=function(){this.O5&&Sw1(this);this.Il.xP()}; g.T.Tk=function(O){this.O5||(this.O5=this.W-this.NH+O,this.aB=this.W,this.eq=this.S)}; g.T.T$=function(O,V){O=O===void 0?this.S:O;V=V===void 0?this.W:V;this.j>0||(this.T=O,this.j=V,this.KD=this.isActive=!0)}; g.T.Cl=function(){return this.fu||2}; g.T.Ov=function(){}; g.T.Zr=function(){var O,V={rn:this.requestNumber,rt:(this.S-this.K).toFixed(),lb:this.W,stall:(1E3*this.D).toFixed(),ht:(this.qX-this.K).toFixed(),elt:(this.T-this.K).toFixed(),elb:this.j,d:(O=this.dW)==null?void 0:O.dH()};this.url&&wXH(V,this.url);this.policy.j&&(V.mph=this.eB.toFixed(),V.tph=this.Xs.toFixed());V.ulb=this.Vz;V.ult=this.lw;return V}; g.T.now=function(){return(0,g.cH)()}; g.T.deactivate=function(){this.isActive&&(this.isActive=!1)};g.I(f8,bv);g.T=f8.prototype;g.T.Zr=function(){var O=bv.prototype.Zr.call(this);O.pb=this.gs;O.pt=(1E3*this.yc).toFixed();O.se=this.WB;return O}; g.T.yL=function(){var O=this.Il;this.nD||(this.nD=O.yL?O.yL():1);return this.nD}; g.T.D8=function(){return this.ek?this.yL()!==1:!1}; g.T.Kq=function(O,V,J){if(!this.oB){this.oB=!0;if(!this.VL){p8(this,O,V);this.Bl(O,V);var y=this.yL();this.WB=J;if(!this.VL)if(y===2){y=O-this.T0)||oO(this,y,V),this.j>0&&Pz(this.Ax,V,this.D));O=(O-this.K)/ 1E3||.01;this.policy.T&&!(this.j>0)||Bz(this.Ax,O,this.U,Jih(this),this.J$)}this.deactivate()}}; g.T.KB=function(O,V,J){J&&(this.nD=2);O<0&&this.fu&&(O=this.fu);V?this.E5+=O:this.yz+=O}; g.T.Cl=function(){return this.yz||this.E5||bv.prototype.Cl.call(this)}; g.T.Bl=function(O,V){var J=(O-this.V)/1E3,y=V-this.U,l=this.yL();this.isActive?l===1&&((y>0||this.policy.W)&&(J>.2||y<1024)?(this.D+=J,y>0&&J>.2&&oO(this,this.pB?J:.05,y),this.Ks=!0):y>0&&(oO(this,J,y),this.Ks=!0)):V&&V>=this.policy.K&&this.T$(O,V);bv.prototype.Bl.call(this,O,V)}; g.T.ib=function(O){if(!this.VL){p8(this,O,this.W);var V=(O-this.K)/1E3;this.yL()!==2&&this.j>0&&(this.D+=(O-this.V)/1E3,Pz(this.Ax,this.U,this.D));Bz(this.Ax,V,this.U,Jih(this),this.J$,!0);O=(O-this.V)/1E3;dZU(this.Ax,O,0);this.s3(O,0)}}; g.T.T$=function(O,V){O=O===void 0?this.S:O;V=V===void 0?this.W:V;if(!(this.j>0)&&(bv.prototype.T$.call(this,O,V),this.yL()===1)){V=(this.qX-this.K)/1E3;var J=(O-this.qX)/1E3;this.ek&&vd(this,this.now());this.UR||this.VL||(this.fu&&(J=Math.max(0,J-this.fu)),O=this.Ax,O.T.Ph(1,V),O.dW.Ph(1,J))}}; g.T.yH=function(){this.ek&&vd(this,this.now());return this.LD}; g.T.BQ=function(){var O;if(O=this.U>this.mY)O=(O=this.U)?O>=this.policy.K:!1;return O}; g.T.qa=function(){return this.zL}; g.T.Mn=function(O){O=O===void 0?this.now():O;if(this.ek){vd(this,O);if(this.nD?this.D8():this.fD!==this.ol){var V=this.ol;if(O0?J+O:J+Math.max(O,V)}; g.T.Ll=function(){return this.now()-this.T}; g.T.K7=function(){return(this.U-this.j)*1E3/this.Ll()||0}; g.T.IM=function(){return this.T};wJ.prototype.feed=function(O){GI(this.K,O);this.e7()}; wJ.prototype.e7=function(){if(this.D){if(!this.K.totalLength)return;var O=this.K.split(this.U-this.j),V=O.mF;O=O.AR;if(!this.Il.Tk(this.D,V,this.j,this.U))return;this.j+=V.totalLength;this.K=O;this.j===this.U&&(this.D=this.U=this.j=void 0)}for(;;){var J=0;O=g.n($Tr(this.K,J));V=O.next().value;J=O.next().value;J=g.n($Tr(this.K,J));O=J.next().value;J=J.next().value;if(V<0||O<0)break;if(!(J+O<=this.K.totalLength)){if(!(this.Il.Tk&&J+1<=this.K.totalLength))break;J=this.K.split(J).AR;this.Il.Tk(V,J,0, O)&&(this.D=V,this.j=J.totalLength,this.U=O,this.K=new Q8([]));break}O=this.K.split(J).AR.split(O);J=O.AR;this.Il.tf(V,O.mF);this.K=J}}; wJ.prototype.dispose=function(){this.K=new Q8};g.T=MR.prototype;g.T.EQ=function(){return 0}; g.T.qv=function(){return null}; g.T.rJ=function(){return null}; g.T.qB=function(){return this.state>=1}; g.T.isComplete=function(){return this.state>=3}; g.T.t_=function(){return this.state===5}; g.T.onStateChange=function(){}; g.T.gX=function(O){var V=this.state;this.state=O;this.onStateChange(V);this.callback&&this.callback(this,V)}; g.T.YZ=function(O){O&&this.state=this.xhr.HEADERS_RECEIVED}; g.T.getResponseHeader=function(O){try{return this.xhr.getResponseHeader(O)}catch(V){return""}}; g.T.s6=function(){return+this.getResponseHeader("content-length")}; g.T.NK=function(){return this.j}; g.T.M1=function(){return this.status>=200&&this.status<300&&!!this.j}; g.T.ob=function(){return this.K.totalLength>0}; g.T.vI=function(){var O=this.K;this.K=new Q8;return O}; g.T.pF=function(){return this.K}; g.T.abort=function(){this.GL=!0;this.xhr.abort()}; g.T.Xe=function(){return!0}; g.T.oE=function(){return this.U}; g.T.Mf=function(){return""};g.T=CQp.prototype; g.T.run=function(){var O=this,V,J,y,l,m,H,F,N,x,W,U,Z,z,c,Y;return g.Q(function(b){if(b.j==1){O.status=200;V=O.K.get("docid");J=gO(O.K.get("fmtid")||"");y=O.K.get("lmt")||"0";l=+(O.K.get("csz")||0);if(!V||!J||!l)throw Error("Invalid local URL");O.K.get("ck")&&O.K.get("civ")&&(m=new jor(O.K.get("ck"),O.K.get("civ")));H=O.range;F=Math.floor(H.start/l);N=Math.floor(H.end/l);x=F}if(b.j!=5)return x<=N?b.K(ikh(V,J,y,x,m),5):b.uw(0);W=b.U;if(W===void 0)throw Error("invariant: data is undefined");U=x*l;Z= (x+1)*l;z=Math.max(0,H.start-U);c=Math.min(H.end+1,Z)-(z+U);Y=new Uint8Array(W.buffer,z,c);O.j.append(Y);O.loaded+=c;O.loaded=200&&this.status<300&&!!this.j}; g.T.ob=function(){return!!this.K.totalLength}; g.T.vI=function(){var O=this.K;this.K=new Q8;return O}; g.T.pF=function(){return this.K}; g.T.GL=function(){return this.aborted}; g.T.abort=function(){this.U&&this.U.cancel().catch(function(){}); this.D&&this.D.abort();this.aborted=!0}; g.T.Xe=function(){return!0}; g.T.oE=function(){return this.W}; g.T.Mf=function(){return this.errorMessage};g.T=xT5.prototype;g.T.onDone=function(){if(!this.GL){this.status=this.xhr.status;try{this.response=this.xhr.response,this.j=this.response.byteLength}catch(O){}this.K=!0;this.Il.xP()}}; g.T.zv=function(){this.xhr.readyState===2&&this.Il.ZC()}; g.T.onProgress=function(O){this.GL||(this.status=this.xhr.status,this.K||(this.j=O.loaded),this.Il.zk((0,g.cH)(),O.loaded))}; g.T.Nz=function(){return this.xhr.readyState>=2}; g.T.getResponseHeader=function(O){try{return this.xhr.getResponseHeader(O)}catch(V){return g.en(Error("Could not read XHR header "+O)),""}}; g.T.s6=function(){return+this.getResponseHeader("content-length")}; g.T.NK=function(){return this.j}; g.T.M1=function(){return this.status>=200&&this.status<300&&this.K&&!!this.j}; g.T.ob=function(){return this.K&&!!this.response&&!!this.response.byteLength}; g.T.vI=function(){var O=this.response;this.response=void 0;return new Q8([new Uint8Array(O)])}; g.T.pF=function(){return new Q8([new Uint8Array(this.response)])}; g.T.abort=function(){this.GL=!0;this.xhr.abort()}; g.T.Xe=function(){return!1}; g.T.oE=function(){return!1}; g.T.Mf=function(){return""};g.I(XH,g.K);XH.prototype.Xp=function(){if(!this.gD.length)return[];var O=this.gD;this.gD=[];this.U=g.Ez(O).info;return O}; XH.prototype.aZ=function(){return this.gD}; XH.prototype.U5=function(){g.K.prototype.U5.call(this);this.K=null;this.gD.length=0;this.BE.length=0;this.U=null};g.I(dJ,g.K);g.T=dJ.prototype; g.T.lsD=function(){if(!this.GL()){var O=(0,g.cH)(),V=!1;if(this.policy.Pn){var J=this.timing.j>0?this.timing.T:this.timing.K;this.policy.jA&&this.U&&(J=this.U);O=O-J-(this.policy.jr?this.policy.H1:this.timing.Cl()*1E3);J=BX(gJ(this),!1);O>=2E3*J?V=!0:O>=this.policy.xJ*J&&(this.K=this.policy.cH)}else if(this.timing.j>0){if(this.V){this.policy.dX&&(this.K=0);return}O=this.timing.qa();this.timing.Mn();this.timing.qa()-O>=this.policy.OE*.8?(this.K++,V=this.K>=5):this.K=0}else V=O-this.timing.yH(),this.policy.cH&& V>0&&(this.K+=1),O=BX(gJ(this),!1)*this.policy.pXW,V=V>O*1E3;this.K>0&&this.Il.gT();V?this.Fe():this.j.start()}}; g.T.Fe=function(){this.W=!0;this.Il.Nr();this.lastError="net.timeout";QR(this)}; g.T.canRetry=function(O){var V=gJ(this);O=O?this.policy.N9:this.policy.fP;return V.timedOut0&&(V=iO(V.K,0),O.ubyte=V,J===1&&V===0&&(O.b248180278=!0))}this.FD&&(O.rc=this.policy.Ht?this.FD:this.FD.toString());this.policy.MI&&this.P9&&(O.tr=this.P9);O.itag=this.info.BE[0].vE.info.itag;O.ml=""+ +this.info.BE[0].vE.lk();O.sq=""+this.info.BE[0].wW;this.oG&&(O.ifi=""+ +Ip(15,this.info.uh.j));this.FD!==410&&this.FD!==500&&this.FD!==503||(O.fmt_unav="true");var y;(J=this.errorMessage||((y=this.xhr)==null? void 0:y.Mf()))&&(O.msg=J);this.vr&&(O.smb="1");this.info.isDecorated()&&(O.sdai="1");return O}; g.T.WF=function(){return yin(this.timing)}; g.T.Mf=function(){return this.xhr.Mf()||""}; g.T.BQ=function(){return this.isComplete()||this.timing.BQ()}; g.T.zk=function(){!this.GL()&&this.xhr&&(this.FD=this.xhr.status,this.policy.cI&&this.Bn&&this.zR(!1),this.Rp()?this.YZ(2):!this.UT&&this.BQ()&&(this.YZ(),this.UT=!0))}; g.T.ZC=function(){if(!this.GL()&&this.xhr){if(!this.fY&&this.xhr.Nz()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var O=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.fY=((0,g.cH)()-O)/1E3}this.xhr.Nz()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.jlD&&!QEo()&&g.oH("yt-player-headers-readable",!0,2592E3);O=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var V=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),J;(J=this.Lh)==null||J.stop();this.b2=O||this.b2; this.tR=V||this.tR}}; g.T.xP=function(){var O=this.xhr;if(!this.GL()&&O){this.FD=O.status;O=this.yg(O);if(this.policy.MI){var V;(V=this.Lh)==null||V.stop()}O===5?QR(this.iR):this.gX(O);this.iR.j.stop()}}; g.T.yg=function(O){ur7(this);if(Gn(this.iR,this.xhr.status,this.dw?this.timing.KD||this.gK:this.xhr.M1(),!1,this.eT))return 5;var V="";K8(this.iR,this.xhr)&&(V=ciV(this.iR,this.xhr));if(V)return RW(gJ(this.iR)),this.info.aK(this.oG,V),3;V=O.NK();if(this.Fp){this.zR(!0);ur7(this);if(Gn(this.iR,this.xhr.status,this.timing.KD||this.gK,!1,this.eT))return 5;if(!this.l1){if(this.gK)return RW(gJ(this.iR)),3;this.iR.lastError="net.closed";return 5}}else{if(Gn(this.iR,this.xhr.status,this.xhr.M1(),!1,this.eT))return 5; var J=this.info.U;if(J&&J!==V||O.oE())return this.iR.lastError="net.closed",5;this.zR(!0)}J=Hho(this)?O.getResponseHeader("X-Bandwidth-Est"):0;if(O=Hho(this)?O.getResponseHeader("X-Bandwidth-Est3"):0)this.Y6=!0,this.policy.MA&&(J=O);z2H(this.iR,V,J?Number(J):0,this.info.BE[0].type===5);return 4}; g.T.canRetry=function(){this.GL();var O=this.info.isDecorated();return this.iR.canRetry(O)}; g.T.onStateChange=function(){this.isComplete()&&(this.policy.Pl?this.Nr():this.timing.deactivate())}; g.T.Fe=function(){this.iR.Fe()}; g.T.gT=function(){this.callback&&this.callback(this,this.state)}; g.T.We=function(){return this.iR.We()}; g.T.dispose=function(){MR.prototype.dispose.call(this);this.iR.dispose();var O;(O=this.Lh)==null||O.dispose();this.policy.Pl||this.Nr()}; g.T.Nr=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.T.Xp=function(){if(!this.aZ().length)return[];this.Qg=!0;return this.Bn.Xp()}; g.T.Rp=function(){if(this.state<1)return!1;if(this.Bn&&this.Bn.gD.length)return!0;var O;return((O=this.xhr)==null?0:O.ob())?!0:!1}; g.T.aZ=function(){this.zR(!1);return this.Bn?this.Bn.aZ():[]}; g.T.zR=function(O){try{if(O||this.xhr.Nz()&&this.xhr.ob()&&!K8(this.iR,this.xhr)&&!this.B_)this.Bn||(this.Bn=new XH(this.policy,this.info.BE)),this.xhr.ob()&&(this.Fp?this.Fp.feed(this.xhr.vI()):E0(this.Bn,this.xhr.vI(),O&&!this.xhr.ob()))}catch(V){this.Fp?KBH(this,V):g.en(V)}}; g.T.tf=function(O,V){switch(O){case 21:O=V.split(1).AR;t3p(this,O);break;case 22:this.l1=!0;E0(this.Bn,new Q8([]),!0);break;case 43:if(O=TR(new Vh(V),1))this.info.aK(this.oG,O),this.gK=!0;break;case 45:V=ES(new Vh(V));O=V.HJ;V=V.DT;O&&V&&(this.Wx=O/V);break;case 44:this.AK=Kwo(new Vh(V));var J,y,l;!this.timing.KD&&((J=this.AK)==null?void 0:J.action)===4&&((y=this.AK)==null?0:(l=y.Cn)==null?0:l.dw)&&(this.dw=this.AK.Cn.dw);break;case 53:this.policy.MI&&(O=qFl(new Vh(V)).tj)&&(this.Lh||(this.tj=O,this.Lh= new g.t_(this.kz,O,this)),this.Lh.start());break;case 60:this.wj=LN(new Vh(V));break;case 58:if(O=xod(new Vh(V)))this.kQ=O,O.kQ===3&&(this.eT=!0)}}; g.T.Tk=function(O,V,J,y){J||this.timing.Tk(y);if(O!==21)return!1;if(O=this.policy.cI)if(O*=this.info.BE[0].vE.info.jq,V.totalLength+J!==y&&V.totalLength0)return!1;if(!this.xhr.Nz())return!0;if(this.Fp)var O=!this.info.U;else this.xhr.s6()?O=!1:(O=this.xhr.getResponseHeader("content-type"),O=O==="audio/mp4"||O==="video/mp4"||O==="video/webm");if(!O)return!1;if(isNaN(this.info.jz)){O=this.xhr.getResponseHeader("x-head-seqnum");var V=this.timing.policy.S?1:0;if(O&&Number(O)>this.info.BE[0].wW+V)return!1}return!0}; g.T.f7=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.T.qv=function(){this.xhr&&(this.b2=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.b2}; g.T.rJ=function(){this.xhr&&(this.tR=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.tR}; g.T.qU=function(){return this.iR.qU()}; g.T.kz=function(){if(!this.GL()&&this.xhr){this.P9="heartbeat";var O=this.iR;O.K+=2;this.gT()}};g.I(Pd,bv);g.T=Pd.prototype;g.T.Bl=function(O,V){var J=(O-this.V)/1E3,y=V-this.U;this.j>0?y>0&&(this.fD&&(J>.2||y<1024?(this.D+=J,J>.2&&Ai5(this,.05,y)):Ai5(this,J,y)),this.ol&&(this.LD+=y,this.yz+=J)):V>this.policy.K&&this.T$(O,V);bv.prototype.Bl.call(this,O,V)}; g.T.Kq=function(O,V){p8(this,O,V);this.Bl(O,V);this.fD&&(V=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.j>0&&Pz(this.Ax,this.LD,this.D),O=(O-this.K)/1E3||.01,this.policy.T&&!(this.j>0)||Bz(this.Ax,O,this.U,V,!1))}; g.T.ib=function(O){p8(this,O,this.W);var V=(O-this.V)/1E3;dZU(this.Ax,V,0);this.s3(V,0);!this.fD&&this.j>0||(V=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.j>0&&(this.D+=(O-this.V)/1E3,Pz(this.Ax,this.LD,this.D)),Bz(this.Ax,(O-this.K)/1E3||.01,this.U,V,!1,!0))}; g.T.Mk=function(O){O=O.Ug||2147483647;(O&2)!==2&&(this.ol=!1);(O&1)===1&&(this.fD=!0)}; g.T.Qx=function(O){O=O.Ug||2147483647;(O&2)===2&&(this.ol=!1);(O&1)===1&&(this.fD=!1)}; g.T.IM=function(){return this.T}; g.T.Ll=function(){var O=this.ol?this.now()-this.V:0;return Math.max(this.yz*1E3+O,1)}; g.T.K7=function(){return this.LD*1E3/this.Ll()}; g.T.T$=function(O,V){O=O===void 0?this.S:O;V=V===void 0?this.W:V;this.j>0||(bv.prototype.T$.call(this,O,V),V=this.Ax,O=(O-this.qX)/1E3,V.T.Ph(1,(this.qX-this.K)/1E3),V.dW.Ph(1,O))}; g.T.Ov=function(O){this.E5=O}; g.T.Zr=function(){var O=bv.prototype.Zr.call(this);O.rbw=this.K7();O.rbe=+this.ol;O.gbe=+this.fD;O.ackt=(this.E5-this.K).toFixed();return O}; g.T.Mn=function(){}; g.T.qa=function(){return NaN}; g.T.yH=function(){return this.K+this.snapshot.delay*1E3};kX.prototype.tf=function(O,V){switch(O){case 20:O=new Vh(V);O={d6:sS(O,1),videoId:TR(O,2),itag:sS(O,3),lmt:sS(O,4),xtags:TR(O,5),FG:sS(O,6),Fk:nN(O,8),Wh:sS(O,9),ABL:sS(O,10),startMs:sS(O,11),durationMs:sS(O,12),R_:sS(O,14),timeRange:vg(O,15,Ik),Yn:sS(O,16),oY:sS(O,17),Qh:sS(O,20),RZ:vg(O,21,pBX),clipId:TR(O,1E3)};this.c8(O);break;case 21:this.xg(V,!1);break;case 22:this.er(V);break;case 31:O=lV(V,wBX);this.Il.Qv(O);break;case 52:O=lV(V,QCl);this.Il.kd(O);break;case 69:O={VC:XE(new Vh(V),1,YFV)}; this.Il.Ms(O);break;case 65:O=lV(V,NW1);this.Il.Cz(O);break;default:this.Al(O,V)}}; kX.prototype.c8=function(){}; kX.prototype.Al=function(){};var orV=new Set([53,49,50]);g.I(SK,kX);g.T=SK.prototype;g.T.Al=function(O,V){lbd(this.Il)&&!orV.has(O)?this.K.push({id:O,data:V}):rir(this,O,V)}; g.T.HO=function(O){O=new Vh(O);O={FcL:XE(O,1,eX),r3E:XE(O,2,eX)};this.Il.HO(O)}; g.T.nV=function(O){var V=new Vh(O);O=MI(V,1);var J=MI(V,2);V=MI(V,3);this.Il.nV(O,J,V)}; g.T.lW=function(O){O=ES(new Vh(O));this.Il.lW(O)}; g.T.ZZ=function(O){O=lV(O,nNY);this.Il.ZZ(O)}; g.T.oa=function(O){O=new Vh(O);O={videoId:TR(O,1),formatId:vg(O,2,eX),endTimeMs:sS(O,3),Q_N:sS(O,4),mimeType:TR(O,5),VW:vg(O,6,aJo),indexRange:vg(O,7,aJo),LC:vg(O,8,bIV)};this.Il.oa(O)}; g.T.I1=function(O){O=new Vh(O);O={type:sS(O,1),scope:sS(O,2),value:fN(O,3),sendByDefault:nN(O,4),writePolicy:sS(O,5)};this.Il.I1(O)}; g.T.EH=function(){this.Il.EH()}; g.T.q5=function(O){O=MeV(new Vh(O));this.Il.q5(O)}; g.T.H8=function(O){O=qFl(new Vh(O));this.Il.H8(O)}; g.T.PO=function(O){O=Kwo(new Vh(O));this.Il.PO(O)}; g.T.NZ=function(O){O={redirectUrl:TR(new Vh(O),1)};this.Il.NZ(O)}; g.T.xg=function(O){var V=iO(O,0);if(O.totalLength!==1){O=O.split(1).AR;var J=this.j[V]||null;J&&m0(this.Il.Ca,V,J,O)}}; g.T.er=function(O){O=iO(O,0);var V=this.j[O]||null;V&&this.Il.er(O,V)}; g.T.c8=function(O){var V=O.d6,J=O.Fk,y=O.FG,l=O.oY,m=O.Yn,H=O.Wh,F=O.startMs,N=O.durationMs,x=O.timeRange,W=O.R_,U=O.Qh,Z=O.clipId,z=O.RZ,c=Ji(O);O=P2d.has(KN[""+O.itag]);this.j[V]=c;var Y=-1;F&&U&&(x==null?0:x.timescale)&&(Y=F/1E3+U/x.timescale);this.Il.KB(c,O,Y,{d6:V,Fk:!!J,FG:y!=null?y:-1,Wh:H!=null?H:-1,startMs:F!=null?F:-1,durationMs:N!=null?N:-1,R_:W,oY:l,Yn:m,clipId:Z,timeRange:x,RZ:z})}; g.T.Mk=function(O){O={Ug:sS(new Vh(O),1)};this.Il.Mk(O)}; g.T.Qx=function(O){O={Ug:sS(new Vh(O),1)};this.Il.Qx(O)}; g.T.nh=function(O){O=xod(new Vh(O));this.Il.nh(O)}; g.T.JU=function(O){O={Zi:vg(new Vh(O),1,dor)};this.Il.JU(O)}; g.T.onSnackbarMessage=function(O){O=sS(new Vh(O),1);this.Il.onSnackbarMessage(O)}; g.T.Sc=function(O){O=new Vh(O);O={reloadPlaybackParams:vg(O,1,FwV),V_:nN(O,2)};this.Il.Sc(O)}; g.T.V4=function(){for(var O=g.n(this.K),V=O.next();!V.done;V=O.next())V=V.value,rir(this,V.id,V.data);this.K=[]};g.I(Dz,g.K);g.T=Dz.prototype;g.T.ww=function(){return Array.from(this.cB.keys())}; g.T.v1=function(O){O=this.cB.get(O);var V=O.gD;O.KY+=V.totalLength;O.gD=new Q8;return V}; g.T.Qu=function(O){return this.cB.get(O).Qu}; g.T.NN=function(O){return this.cB.get(O).NN}; g.T.KB=function(O,V,J){this.cB.get(O)||this.cB.set(O,{gD:new Q8,KY:0,bytesReceived:0,Gl:0,gi:!1,Qu:!1,NN:!1,jE:V,WU:[],BE:[],dn:[],sD:!1,Iz:new Map,KZ:new Map,Xg:[]});V=this.cB.get(O);this.xi?(O=SOY(this,O,J),kQo(this,J.d6,V,O)):(J.Fk?V.Gl=J.R_:V.dn.push(J),V.WU.push(J))}; g.T.vv=function(O){var V;return((V=this.cB.get(O))==null?void 0:V.BE)||[]}; g.T.YZ=function(){for(var O=g.n(this.cB.values()),V=O.next();!V.done;V=O.next())if(V=V.value,V.gi){if(V.onProgress)V.onProgress();V.gi=!1}}; g.T.er=function(O,V){V=this.cB.get(V);O1?V&&!V.Qu&&(V.Iz.get(O)?V.Iz.get(O).t7=!0:V.Iz.set(O,{data:new Q8,vx:0,t7:!0}),V.NN=!0):V&&!V.NN&&(V.NN=!0)}; g.T.Xp=function(O){if(O1){var V=this.cB.get(O);if(V)for(var J=g.n(V.Iz),y=J.next();!y.done;y=J.next()){var l=g.n(y.value);y=l.next().value;l=l.next().value;var m=V.KZ.get(y);if(Fr(m[0])){if(!l.t7)continue;var H=l.data,F=0,N=[];m=g.n(m);for(var x=m.next();!x.done;x=m.next()){x=x.value;var W=x.j,U=K9(H,F,W);F+=W;N.push(new MT(x,U))}V.Xg.push.apply(V.Xg,g.q(N))}else if(l.data.totalLength>0||!m[0].range&&l.t7)H=void 0,F=m[0],N=l.vx,m=l.data,F.range||(H=l.t7),H=new MT(lrY(F,F.K+N,m.totalLength,H),m),l.vx+= H.info.j,V.Xg.push(H);V.Iz.get(y).data=new Q8;l.t7&&V.Iz.delete(y)}O=this.cB.get(O);if(!O)return[];V=O.Xg;O.Xg=[];J=g.n(V);for(y=J.next();!y.done;y=J.next())O.KY+=y.value.info.j;return V||[]}J=(V=this.cB.get(O))==null?void 0:V.Bn;if(!J)return[];this.zR(O,J);return J.Xp()}; g.T.Rp=function(O){if(O1)return lC(this,O);var V,J,y;return!!((J=(V=this.cB.get(O))==null?void 0:V.Bn)==null?0:(y=J.aZ())==null?0:y.length)||lC(this,O)}; g.T.zR=function(O,V){for(;lC(this,O);){var J=this.v1(O);var y=O;y=this.cB.get(y).Qu&&!yG(this,y);E0(V,J,y&&PQ5(this,O))}}; g.T.U5=function(){g.K.prototype.U5.call(this);for(var O=g.n(this.cB.keys()),V=O.next();!V.done;V=O.next())VG(this,V.value);var J;if((J=this.Lv)==null?0:J.SK)for(O=g.n(this.cB.values()),V=O.next();!V.done;V=O.next())V=V.value,V.Iz.clear(),V.KZ.clear(),V.Xg.length=0,V.BE.length=0,V.WU.length=0,V.dn.length=0;this.cB.clear()}; var O1=!1;var vrC=new Set([2]);g.I($l,g.K);g.T=$l.prototype;g.T.zk=function(){!this.GL()&&this.xhr&&(this.zR(!1),fC(this.Il,this))}; g.T.ZC=function(){}; g.T.xP=function(){if(!this.GL()&&this.xhr){var O=this.yg();O===5?(this.qU()==="net.badstatus"&&this.Il.Ep(),QR(this.iR)):(this.Il.BA(),this.gX(O));this.iR.j.stop();var V;(V=this.xa)==null||V.stop()}}; g.T.yg=function(){var O="";K8(this.iR,this.xhr)&&(O=ciV(this.iR,this.xhr));if(O)return this.info.uh.aK(this.oG,O),3;this.zR(!0);if(Gn(this.iR,this.xhr.status,this.xhr.M1(),this.info.g5(),this.eT))return 5;if(this.eJ)return 3;z2H(this.iR,this.xhr.NK(),0,this.g5());this.policy.wX&&$7l(this.Il);return 4}; g.T.zR=function(O){var V=this.xhr;!O&&K8(this.iR,this.xhr)||!V.ob()||(O=V.vI(),this.Fp.feed(O))}; g.T.tf=function(O,V){this.xhr.Xe()&&O===21&&JTX(this);this.fR.tf(O,V)}; g.T.Tk=function(O,V,J,y){J||(this.sA.Tk(y),this.policy.uF&&O===21&&JTX(this));if(O!==21)return!1;this.sA.KD=!0;O=V.totalLength;J||(this.e1=iO(V,0),V=V.split(1).AR);var l=this.policy.jH,m=this.fR.j[this.e1],H=this.xi.U.get(m);if(l&&H&&(l*=H.info.jq,O+J!==y&&O0){this.policy.Pn&&this.iR.j.stop();O=this.sA.Ll();V=this.sA.K7();var J=yTY(this,O);if(!(V>J.fz||J.sM>0&&this.info.HT()>J.sM)){this.Tr=(0,g.cH)();var y;(y=this.xa)==null||y.stop();this.policy.wX&&(y=this.Il,O={Rd:Math.round(V*O/1E3),Oq:O},y.policy.wX&&(y.LD=O,y.Wt++));this.Fe()}}}}; g.T.Fe=function(){this.iR.Fe()}; g.T.PO=function(O){this.Il.PO(O,this.Lw())}; g.T.NZ=function(O){this.eJ=!0;this.info.uh.aK(this.oG,O.redirectUrl)}; g.T.Mk=function(O){this.sA instanceof Pd&&this.sA.Mk(O)}; g.T.Qx=function(O){this.sA instanceof Pd&&this.sA.Qx(O)}; g.T.oa=function(O){var V=O.formatId,J=Ji({itag:V.itag,lmt:V.lmt,xtags:V.xtags}),y,l,m=new mB(((y=O.VW)==null?void 0:y.first)||0,((l=O.VW)==null?void 0:l.Hp)||0),H,F;y=new mB(((H=O.indexRange)==null?void 0:H.first)||0,((F=O.indexRange)==null?void 0:F.Hp)||0);this.xi.U.get(J)||(J=O.LC||{},J.mimeType=O.mimeType,J.itag=V.itag,J.lastModified=""+(V.lmt||0),J.xtags=V.xtags,O=this.xi,V=S3(""),J=PK(J,null),uQ(O,new GQ(V,J,m,y)))}; g.T.lW=function(O){this.Il.lW(O,this.Lw())}; g.T.onSnackbarMessage=function(O){if(this.policy.Ef)this.Il.onSnackbarMessage(O)}; g.T.Ms=function(O){this.policy.W&&this.Il.Ms(O,this.Lw())}; g.T.Qv=function(O){this.Zy=O;this.iR.U=(0,g.cH)();this.Il.Qv(O)}; g.T.Qe=function(O){this.Il.Qe(O)}; g.T.nV=function(O,V,J){this.Il.nV(O,V,J)}; g.T.I1=function(O){O.scope===2&&(this.Ul=O);this.Il.I1(O)}; g.T.EH=function(){this.Gn=!0;this.Il.EH()}; g.T.HO=function(O){this.policy.t0&&this.Il.HO(O)}; g.T.ZZ=function(O){this.Il.ZZ(O,this.Lw())}; g.T.nh=function(O){O.kQ===3&&(this.eT=!0);this.Il.nh(O)}; g.T.JU=function(O){this.Il.JU(O)}; g.T.Sc=function(O){this.Il.Sc(O)}; g.T.Cz=function(O){this.Il.Cz(O)}; g.T.canRetry=function(){this.GL();return this.iR.canRetry(!1)}; g.T.dispose=function(){if(!this.GL()){g.K.prototype.dispose.call(this);this.iR.dispose();var O;(O=this.xa)==null||O.dispose();this.gX(-1);this.Nr()}}; g.T.gX=function(O){this.state=O;fC(this.Il,this)}; g.T.g5=function(){return this.info.g5()}; g.T.uC=function(){return this.Gn}; g.T.RQ=function(){return this.Ul}; g.T.KB=function(O,V,J,y){J>=0&&this.Il.qS(J);y.clipId&&(this.clipId=y.clipId);this.policy.j&&!V&&(this.Dq=y.Wh);if(this.info.isDecorated()){var l=this.info,m,H;J=((m=l.data)==null?0:(H=m.QI)==null?0:H.En)?l.data.QI.En:-1;J>=0&&J>y.Wh&&this.Il.loader.jB("sdai",{skpsqmismatch:"1",stsq:J,rcvsq:y.Wh,a:V})}this.Ca.KB(O,V,y);this.policy.CP&&this.Zy&&this.sA instanceof f8&&(m=this.Zy.yR,this.sA.KB(y.durationMs/1E3,V,m>0&&y.Wh+1>=m));this.Ca.cB.get(O).sD=!0;this.Il.KB(y)}; g.T.er=function(O,V){this.Ca.er(O,V)}; g.T.kd=function(O){this.requestIdentifier=O}; g.T.Xp=function(O){return this.Ca.Xp(O)}; g.T.vv=function(O){return this.Ca.vv(O)}; g.T.Rp=function(O){return this.Ca.Rp(O)}; g.T.ww=function(){return this.Ca.ww()}; g.T.yL=function(){return 1}; g.T.Lw=function(){return this.sA.requestNumber}; g.T.je=function(){return this.requestIdentifier}; g.T.Cv=function(){return this.oG.Cv()}; g.T.NW=function(){this.Nr()}; g.T.Nr=function(){this.sA.deactivate();var O;(O=this.xhr)==null||O.abort()}; g.T.isComplete=function(){return this.state>=3}; g.T.UM=function(){return this.state===3}; g.T.t_=function(){return this.state===5}; g.T.bd=function(){return this.state===4}; g.T.vp=function(){return this.isComplete()}; g.T.qB=function(){return this.state>=1}; g.T.We=function(){return this.policy.dX?this.iR.We():0}; g.T.gT=function(){this.policy.dX&&fC(this.Il,this)}; g.T.QH=function(){return te(this.info)}; g.T.V4=function(){this.jw()&&!this.Kg&&(this.Kg=!0,this.fR.V4())}; g.T.jw=function(){var O,V;var J=(O=this.info.K)==null?void 0:(V=O.Aj)==null?void 0:V.wB;return!!J&&vrC.has(J)}; g.T.lP=function(){return"SABR"}; g.T.qU=function(){return this.iR.qU()}; g.T.QL=function(){var O=sor(this.iR);Object.assign(O,jTd(this.info));O.req="sabr";O.rn=this.Lw();var V;if((V=this.xhr)==null?0:V.status)O.rc=this.policy.Ht?this.xhr.status:this.xhr.status.toString();var J;(V=(J=this.xhr)==null?void 0:J.Mf())&&(O.msg=V);this.Tr&&(J=yTY(this,this.Tr-this.sA.IM()),O.letm=J.Ran,O.mrbps=J.fz,O.mram=J.sM);return O};mSl.prototype.tick=function(O,V){this.ticks[O]=V?window.performance.timing.navigationStart+V:(0,g.cH)()};g.I(jz,g.BF);g.T=jz.prototype; g.T.SF=function(O,V,J,y){var l=!1;this.policy.j&&(l=J?this.fD===O.wW:this.lw===O.wW);if(this.Qc&&y&&!l){y=[];l=[];var m=[],H=void 0,F=0;V&&(y=V.K,l=V.j,m=V.D,H=V.U,F=V.BL,this.jB("sdai",{sq:O.wW,ssvicpns:y.join("."),ssvid:l.join(".")}));this.policy.j&&(J?this.fD=O.wW:this.lw=O.wW);this.Qc.Jl(O.wW,O.startTime,y,l,m,J,F,H)}if(this.policy.j){if(J){this.j===1&&FF(this,5,"noad");var N;O.wW!==((N=this.K)==null?void 0:N.wW)&&(Fcr(this,O,V,J),isNaN(O.startTime)||N$o(this,O.wW,U1(this,O.startTime,O.wW),!!V, this.Qc))}}else J&&Fcr(this,O,V)}; g.T.Ia=function(O,V,J){var y=this.videoTrack.vE.index.bR()<=V;this.K={lO:O,wW:V,n5:J};y&&C4(this,O,V)}; g.T.VR=function(){this.Qc&&this.Qc.VR()}; g.T.jB=function(O,V,J){(O!=="sdai"||this.policy.CI||(J===void 0?0:J))&&this.loader.jB(O,V)}; g.T.WH=function(O,V){var J=this.videoTrack.vE.index.tO(O);if(J>=0){var y;var l=((y=V.Tm(J,2))==null?void 0:y.G9)||"";if(this.policy.j||l)return V.UJ(O,J),N5(this.loader,O,O,J),this.jB("sdai",{cmskpad:1,t:O.toFixed(3),sq:J}),!0}this.jB("sdai",{cmskpad:0,t:O.toFixed(3),sq:J});return!1};g.T=cTY.prototype;g.T.iW=function(O,V,J){var y=this.policy.Eb&&O.tileContext?O.nB+";"+O.tileContext:O.nB;y||(y=z6(this,this.D));this.jB("clsdai",{setadcfg:O.nB||"misscid",cid:y,acpn:J,acfglen:(V==null?void 0:V.length)||0});this.K.has(y)||(this.jB("clsdai",{setadcfg:"noentry",cid:y}),this.K.set(y,{event:"unknown",startTimeSecs:0,rN:0,T7:[],Qy:Date.now(),qk:-1,EB:6,V9:O}));(O=this.K.get(y))?V?(O.EB=6,O.T7.push(J),O.Hg=V):O.EB=2:this.jB("clsdai",{setadcfg:"notfound",cid:y})}; g.T.B0=function(O){var V=O||z6(this,this.D);this.jB("clsdai",{rmvadcfg:O||"misscid",lastcid:z6(this,this.D)});(O=this.K.get(V))?(O.Hg="",O.EB=4):this.jB("clsdai",{rmadcfg:"notfound",cid:V})}; g.T.Ms=function(O,V,J,y,l){this.V=V;var m;if(!((((m=O.VC)==null?void 0:m.length)||0)<=0))if(y){if(this.U=y,this.jB("clsdai",{oncldisabled:y,rn:V}),this.U===3&&l)for(V=g.n(O.VC),J=V.next();!J.done;J=V.next())J=J.value,J.lO&&J.trackType===2&&UN1(l,T$r(this,J),J.Wh||0,!0)}else for(l=g.n(O.VC),O=l.next();!O.done;O=l.next()){m=O.value;if(O=m.lO){O=T$r(this,m);y=V;var H=m.Wh||0,F=J,N=z6(this,O);this.K.has(N)?(m=this.K.get(N),H>m.qk&&(m.startTimeSecs=O.startSecs,m.rN=O.rN,m.event==="predictStart"&&m.EB=== 5&&O.event!=="predictStart"&&(m.Qy=Date.now()),m.event=O.event)):(m={event:O.event,startTimeSecs:O.startSecs,rN:O.rN,T7:[],qk:H,EB:0,V9:{nB:O.identifier,tileContext:O.tileContext}},this.K.set(N,m),this.policy.W&&this.jB("clsdai",{newcid:1,cid:O.identifier,tc:O.tileContext,evt:O.event,sn:H,rn:y,st:Ibn(m.EB)}));var x=!1;m.EB===0&&((F==null?0:F.SJ(O))?m.EB=5:(m.EB=F?11:3,m.Hg="",x=!0),m.Qy=Date.now(),m.qk=H,this.policy.W&&this.jB("clsdai",{onqpnt:1,cid:O.identifier,tc:O.tileContext,evt:O.event,sn:H, rn:y,st:Ibn(m.EB)}));H>m.qk&&(F==null||F.SJ(O),m.qk=H);this.D=O;this.policy.W&&this.j.add(N);O=x}O&&(this.W=!0)}}; g.T.UJ=function(O,V,J){var y=O;this.policy.W&&(y+=J);var l,m="";y=e8o(this,y);y.length>0&&(m=y[0])&&(l=this.K.get(m));if(!l||l.q9){var H;this.jB("clsdai",{skipadfail:1,cid:m,sn:V,mt:O.toFixed(3),of:J.toFixed(3),skipsq:((H=l)==null?void 0:H.q9)||-1});return!1}this.jB("clsdai",{skipadsuc:1,cid:m,sn:V,mt:O.toFixed(3),of:J.toFixed(3)});l.q9=V;this.j.clear();this.j.add(m);return!0}; g.T.eR=function(){this.jB("clsdai",{rstskipad:1});for(var O=g.n(this.K.values()),V=O.next();!V.done;V=O.next())V.value.q9=NaN};g.I(T6,g.K);T6.prototype.Xl=function(){return this.V&&IB(this).size>0}; T6.prototype.JI=function(O,V,J){J=J===void 0?{}:J;this.policy.FF=NS(O,J,this.D,V===void 0?!1:V)};aB.prototype.Ph=function(O,V){var J=Math.pow(this.alpha,O);this.K=V*(1-J)+J*this.K;this.j+=O}; aB.prototype.cC=function(){return this.K/(1-Math.pow(this.alpha,this.j))};p4.prototype.yv=function(O){var V=this;if(this.policy.Ck){var J=new Set(O);J.size===this.dW.size&&[].concat(g.q(J)).every(function(y){return V.dW.has(y)})||(this.loader.jB("lwnmow",{itagDenylist:[].concat(g.q(O)).join(",")}),this.loader.K1(!!J.size),this.qX=-1,this.dW=J,f4(this,this.K),this.yz=!0)}}; p4.prototype.JI=function(O,V,J){J=J===void 0?{}:J;var y=this.policy.FF;this.W.JI(O,V===void 0?!1:V,J);if(y!==this.policy.FF){f4(this,this.K);hK(this);var l,m;y>this.policy.FF&&((l=this.U)==null?0:i$(l.info))&&((m=this.nextVideo)==null||!i$(m.info))&&(this.KD=!0)}};var L4={N4:-1,V3:!1,wB:0};g.I(n4,g.K);n4.prototype.U5=function(){this.j=L4;XF(this);g.K.prototype.U5.call(this)};E1.prototype.Pv=function(O){this.timestampOffset=O;this.flush()}; E1.prototype.flush=function(){if(this.K.pos>0){var O={a:this.track.jE(),u:this.K.dH(),pd:Math.round(this.D),ad:Math.round(this.U)},V=this.j;if(V){var J=V.vE.info;O.itag=J.itag;J.K&&(O.xtags=J.K);O.sq=V.wW;O.st=V.startTime;O.sd=V.duration;this.track.policy.hki&&(O.si=V.rX());V.U&&(O.esl=V.K+V.j);V.yZ()&&(O.eos=1)}isNaN(this.timestampOffset)||(O.to=this.timestampOffset);var y;if(V=(y=this.track.Z4)==null?void 0:y.qI({})){for(var l in V)this.V[l]!==V[l]&&(O["sb_"+l]=V[l]);this.V=V}this.track.jB("sbu", O);this.K.reset();this.buffered=[];this.W=this.U=this.D=0;this.timestampOffset=this.j=void 0}};gn.prototype.dispose=function(){this.lw=!0}; gn.prototype.GL=function(){return this.lw}; g.I(uC,Error);iC.prototype.skip=function(O){this.offset+=O}; iC.prototype.TR=function(){return this.offset};g.T=lGo.prototype;g.T.xE=function(){return this.j}; g.T.RN=function(){return this.j.length?this.j[this.j.length-1]:null}; g.T.Yb=function(){this.j=[];kl(this);B6(this)}; g.T.v1=function(O){this.LD=this.j.shift().info;O.info.equals(this.LD)}; g.T.vv=function(){return g.Ia(this.j,function(O){return O.info})}; g.T.jE=function(){return!!this.vE.info.audio}; g.T.isDrm=function(){return!!this.vE.info.AL}; g.T.getDuration=function(){return this.vE.index.Dt()};g.I(NR,MR);g.T=NR.prototype;g.T.onStateChange=function(){this.GL()&&(JK(this.Ca,this.formatId),this.K.dispose())}; g.T.QL=function(){var O=Bwp(this.Ca,this.formatId),V;var J=((V=this.Ca.cB.get(this.formatId))==null?void 0:V.bytesReceived)||0;var y;V=((y=this.Ca.cB.get(this.formatId))==null?void 0:y.KY)||0;return{expected:O,received:J,bytesShifted:V,sliceLength:yG(this.Ca,this.formatId),isAnyMediaEndReceived:this.Ca.NN(this.formatId)}}; g.T.WF=function(){return 0}; g.T.BQ=function(){return!0}; g.T.Xp=function(){return this.Ca.Xp(this.formatId)}; g.T.aZ=function(){return[]}; g.T.Rp=function(){return this.Ca.Rp(this.formatId)}; g.T.qU=function(){return this.lastError}; g.T.We=function(){return 0};g.I(VO,g.K);g.T=VO.prototype;g.T.jE=function(){return!!this.vE.info.audio}; g.T.RN=function(){return this.U.RN()}; g.T.v1=function(O){this.U.v1(O);var V;(V=this.S)!=null&&(V.W.add(O.info.wW),V.K=E4r(V,V.Dg,V.l3,O,V.K),V.U=O,V.V=(0,g.cH)());this.jq=Math.max(this.jq,O.info.vE.info.jq||0)}; g.T.getDuration=function(){return this.vE.index.Dt()}; g.T.Yb=function(){Wd(this);this.U.Yb()}; g.T.aV=function(){return this.U}; g.T.Gk=function(O){return this.Z4?mT(this.Z4.hL(),O):!0}; g.T.isRequestPending=function(O){return this.j.length?O===this.j[this.j.length-1].info.BE[0].wW:!1}; g.T.Pv=function(O){var V;(V=this.S)==null||V.Pv(O);var J;(J=this.T)==null||J.Pv(O)}; g.T.jB=function(O,V){this.loader.jB(O,V)}; g.T.Mj=function(){return this.loader.Mj()}; g.T.dispose=function(){var O;(O=this.T)==null||O.flush();g.K.prototype.dispose.call(this)};g.I(bW,g.K);bW.prototype.U=function(){this.j++>15||(this.K=!this.K,new tN7(this.loader,this.policy,this.Ax,this.uh,this.K),this.delay.start())}; g.T=tN7.prototype;g.T.ZC=function(){}; g.T.zk=function(){}; g.T.xP=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.NK()===this.size)this.loader.jB("rqs",this.getInfo());else{var O="net.connect";this.xhr.status>200?O="net.badstatus":this.xhr.Nz()&&(O="net.closed");this.onError(O)}}; g.T.onError=function(O){var V=this;this.loader.handleError(O,this.getInfo());VR("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(J){V.loader.jB("pathprobe",J)},function(J){V.loader.handleError(J.errorCode,J.details)})}; g.T.getInfo=function(){var O=this.timing.Zr();O.shost=ap(77,this.location.ZK);O.pb=this.size;return O};g.I(fL,g.K); fL.prototype.V=function(O,V){if(O.V){this.xi.isLive?(O=this.xi.rD&&this.xi.S?O.vE.nG(this.xi.rD,!1):O.vE.Ed(Infinity),O.jz=this.jz):O=O.vE.nG(0,!1);if(this.qX){var J=this.qX;O.jz===0&&(O.W=J.T)}else O.W=this.T;return O}J=O.K;if(!J.vE.lk())return J.vE.e8()?(O=$X(this.D,O.vE.info.jq,V.vE.info.jq,0),O=J.vE.bT(J,O)):O=J.vE.Lm(J),O;var y=J.W-this.loader.getCurrentTime(),l=!J.range||J.j===0&&J.K===0?0:J.range.length-(J.K+J.j),m=J.vE;this.R6(O,y)&&l===0&&(this.xi.isManifestless?m=O.vE:(m=J.startTime+qcV, J.j&&(m+=J.duration),zn(O,m),J=O.K,m=J.vE));m.e8()?(l=this.j,V=$X(this.D,m.info.jq,V.vE.info.jq,y,l.D.length>0&&l.T===0&&this.loader.w5),y=cN(O),O=J.vE.bT(J,V),(V=O.U)&&O.BE.length>1&&(y||O.uh.U||O.BE[0].vE!==J.vE?O=J.vE.bT(J,O.BE[0].j):(y=O.BE[O.BE.length-1],m=y.j/V,!y.U&&m<.4&&(O=J.vE.bT(J,V-y.j))))):(J.wW<0&&(V=UO(J),V.pr=""+O.j.length,this.loader.isSeeking()&&(V.sk="1"),V.snss=J.V,this.loader.jB("nosq",V)),O=m.Lm(J));if(this.policy.LD)for(J=g.n(O.BE),V=J.next();!V.done;V=J.next())V.value.type= 6;return O}; fL.prototype.R6=function(O,V){if(!cN(O)||!O.vE.lk())return!1;var J;(J=this.j.yz)||(J=cN(O)&&O.vE.lk()&&O.K.vE.info.jq=V)return y.return();(J=O.K.get(0))&&zFr(O,J);y.V()})}; var Uu1={lRl:0,sFK:1,QF5:2,Bbj:3,J_i:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};kx.prototype.decrypt=function(O){var V=this,J,y,l,m,H,F;return g.Q(function(N){switch(N.j){case 1:if(V.K.length&&!V.K[0].isEncrypted)return N.return();V.j=!0;V.jK.RX("omd_s");J=new Uint8Array(16);MP()?y=new g.XL(O):l=new g.n9(O);case 2:if(!V.K.length||!V.K[0].isEncrypted){N.uw(4);break}m=V.K.shift();if(!y){H=l.decrypt(AJ(m.buffer),J);N.uw(5);break}return N.K(y.decrypt(AJ(m.buffer),J),6);case 6:H=N.U;case 5:F=H;for(var x=0;x=4)){var V=zY(this),J=this.xhr;V.rc=J.status;O&&(V.ab=!0);if(J.Mf()){var y="onesie.net";V.msg=J.Mf()}else J.status>=400?y="onesie.net.badstatus":J.M1()?this.Ro||(y="onesie.response.noplayerresponse"):y=J.status===204?"onesie.net.nocontent":"onesie.net.connect";y?this.fail(new g.DO(y,V)):(this.RX("or_fs"),this.sA.Kq((0,g.cH)(),J.NK(),0),this.gX(4),this.zt&&this.jB("rqs",V));this.zt&&this.jB("ombre","ok."+ +!y);this.IH=!1;Uq(this); WW(this.jK);if(!this.yT){this.TN.stop();var l;(l=this.Y0)==null||l.stop()}var m;if(O=(m=this.hZ)==null?void 0:czX(m))for(m=0;m1E3){var O;(O=this.sA)==null||O.ib((0,g.cH)());O=zY(this);if(this.B.Sq()&&this.xhr instanceof L8){var V=this.xhr;O.xrs=V.xhr.readyState;O.xpb=V.K.totalLength;O.xdc=V.D}this.fail(new g.DO("net.timeout",O))}}else(this.sA||!this.B.gC().K.s5(ArD))&&(0,g.cH)()-this.sA.K>1E4&&((V=this.sA)==null||V.ib((0,g.cH)()),this.L7());this.isComplete()||this.G4.start()}}; g.T.L7=function(){this.IH=!1;if(!Uq(this)){var O=zY(this);O.timeout="1";this.fail(new g.DO("onesie.request",O))}}; g.T.fail=function(O){var V=this;O=Vj(O);this.XO?this.pD.Kv(O):(this.VX.reject(O),this.XO=!0);WW(this.jK);this.yT||this.TN.stop();this.RX("or_fe");var J,y;(J=this.hZ)==null||(y=czX(J))==null||y.forEach(function(l){V.jB("pathprobe",l)}); this.gX(5);this.dispose()}; g.T.isComplete=function(){return this.state>=3}; g.T.bd=function(){return this.state===4}; g.T.vp=function(O){var V,J;return this.isComplete()||!!((V=this.au)==null?0:(J=V.get(O))==null?0:J.K)}; g.T.UM=function(){return!1}; g.T.t_=function(){return this.state===5}; g.T.notifySubscribers=function(O){for(var V=0;V102400&&!this.QW&&(this.RX("or100k"),this.QW=!0);if(O.ob()){var V=O.vI(),J=V.totalLength;this.zt&&this.jB("ombrss","len."+J);this.Fp.feed(V)}if(this.au)for(var y=g.n(this.au.keys()),l=y.next();!l.done;l=y.next()){var m=l.value;O=void 0;(O=this.au.get(m))==null||O.YZ();this.notifySubscribers(m)}}catch(H){this.fail(H)}}; g.T.Lw=function(){return this.sA.requestNumber}; g.T.je=function(O){return this.V6.get(O)}; g.T.jw=function(){return!1}; g.T.lP=function(){return"ONESIE"};g.I(sq,g.K);g.T=sq.prototype; g.T.Dv=function(O){var V=PW(this.loader)&&O&&O.N4!==void 0&&!O.V3?O.N4*1E3+(this.loader.HY()||0):TY(this);if(this.policy.Z_){var J=this.dW;var y=this.Vz}else J=ar(this,this.audioTrack),y=ar(this,this.videoTrack);var l=[].concat(g.q(J.Dg),g.q(y.Dg));e5(this)&&l.push.apply(l,g.q(this.W));var m=[].concat(g.q(J.j8),g.q(y.j8)),H=this.loader.Y7();if(this.policy.GT&&!this.videoData.isLivePlayback){var F=this.videoData.lengthSeconds*1E3;V>=F&&this.loader.jB("invalidSabrCmt",{cmt:V,vd:F})}var N,x;F=this.Ax; var W=this.pD,U=this.xi,Z=this.U,z=this.videoData.ol,c=this.policy,Y=this.loader.xm,b=BU5(this.loader)*1E3,M=(N=this.LD)==null?void 0:N.Rd;N=(x=this.LD)==null?void 0:x.Oq;var w;x=Number((w=this.j.D)==null?void 0:w.info.itag)||0;var L;w=Number((L=this.j.W)==null?void 0:L.info.itag)||0;L=this.Wt;var X=this.pD.PT();var u=(O==null?0:O.wB)?O.wB:this.loader.isSuspended?4:void 0;V={Ax:F,pD:W,xi:U,Dg:l,j8:m,Hx:V,nextRequestPolicy:Z,Hy:z,Lv:c,Ee:Y,rd:b,Rd:M,Oq:N,Wt:L,nT:x,S6:w,eY:H,vD:X,wB:u,GI:this.GI,eJ:this.eJ}; l=this.loader.DQ();m=tT(l);l&&(V.l4=m);if(O=PW(this.loader)&&(O==null?0:O.V3)?O.N4:this.pD.ym())V.dM=O*1E3;var G;O=this.j;l=O.lw;if(((G=O.Lv)==null?0:iv(G))&&!l)for(G=g.n(O.U),m=G.next();!m.done;m=G.next())if(m.value.wC){l=!0;break}G=iv(O.Lv)&&!l?[]:DAU(O,O.U);V.PS=G;G=this.j;iv(G.Lv)&&!G.fD?G=[]:(O=l27(G),O.length===0&&(O=G.V),G=DAU(G,O));V.b4=G;V.Z3=e5(this)?[this.V]:void 0;V.aD=Array.from(IB(this.j.K).keys(),Number);V.Xl=this.j.Xl();this.policy.eX&&(V.WO=XIh(this.loader,this.audioTrack),V.X8=XIh(this.loader, this.videoTrack));G=this.loader.getCurrentTime();J=Ye(this,J.Dg,G);y=Ye(this,y.Dg,G);this.ol=y=Math.min(J,y);if(this.policy.j&&(e5(this)&&(J=Ye(this,this.W,G),this.pD.Sq()&&J=m.Y4?m.bQ:void 0,l={mu:O?c5h(J,O):[], adsConfig:l,En:m},G={gvprpro:"v",mt:G.toFixed(3),acpns:((k=l.mu)==null?void 0:k.join("_"))||"none",abid:O},J.k8(G),k=l):(J.k8({gvprp:"ncp",mt:G}),k=null)}k&&(V.QI=k)}if(this.policy.W){var D;k=((D=this.videoData.j)==null?void 0:D.containerType)||0;D=this.videoData.Jp[k];J=this.loader.isSeeking()&&!this.loader.xM?y+this.loader.HY():NaN;if((k=this.T)==null)D=void 0;else if(k.U!==0){k.jB("clsdai",{gssinfodisabled:k.U});D=7;switch(k.U){case 1:D=7;break;case 2:D=9;break;case 3:D=10;break;default:k.jB("clsdai", {unknowndisr:k.U})}D=[{EB:D}]}else{y=[];if(!isNaN(J))if(G=e8o(k,J),O=k.V+1,G.length>0)for(k.jB("clsdai",{updcids:1,mt:J.toFixed(3),cid:G.join(","),rn:O}),k.j.clear(),J=g.n(G),G=J.next();!G.done;G=J.next())k.j.add(G.value);else k.S&&(k.jB("clsdai",{updcids:0,mt:J.toFixed(3),rn:O}),k.j.clear());J=g.n(k.j);for(O=J.next();!O.done;O=J.next()){G=void 0;l=k;if(O=O.value){l=l.K.get(O);m={cuepointId:(l==null?void 0:(G=l.V9)==null?void 0:G.nB)||O.split(";")[0]};if(l==null?0:l.Hg)m.adsConfig=tT(l.Hg)||void 0; if(l==null?0:l.T7)m.mu=l.T7;if(l==null?0:l.q9)m.En=l.q9;D&&(m.L2=Ka(D.split(";")[0]),m.xf=D.split(";")[1]||"");m.EB=(l==null?void 0:l.EB)||0;G=m}else G=void 0;G&&y.push(G)}D=y}V.qd=D;(D=this.T)!=null&&(D.j.clear(),D.U=0,D.W=!1)}this.policy.KD&&this.K.length>0&&this.K[0].uC()&&(V.J5=this.K[0].RQ());return V}; g.T.uW=function(O,V){this.S=void 0;$7l(this);m7p(this,O,V)}; g.T.l0=function(O){if(this.K.length===0)return!1;var V=this.K[0];return V instanceof cW?O===this.loader.getCurrentTime()*1E3:!(V instanceof $l&&uW(V.info))&&Math.abs(V.QH()-O)<50}; g.T.q5=function(O,V){this.U=O;this.policy.j&&!O.playbackCookie&&this.loader.jB("sbrnocookie",{rn:V!=null?V:-1});var J;if(this.policy.Vh&&((J=this.T)==null?0:J.W)){var y;this.loader.jB("clsdai",{ignbckoff:V!=null?V:-1,backoff:(y=O.backoffTimeMs)!=null?y:-1})}else this.S=(0,g.cH)()+(O.backoffTimeMs||0)}; g.T.PO=function(O,V){if(O.action===void 0){var J=this.pD.ym();J!==void 0&&this.loader.O3(J)}else if(O.action!==0||!this.E5)if(O.action===0&&this.policy.cg&&(O.action=2),O.Fh==="sabr.malformed_config"&&this.zL++<3)this.loader.handleError("sabr.malformed_config",{action:O.action,rn:V,retry:this.zL},0);else switch(J={},J.reason=O.Fh,J.action=O.action,J.rn=V,O.action){case 1:this.policy.j&&this.Qc&&ER(this.Qc,void 0,void 0,J);break;case 0:this.E5=!0;this.videoData.Yr()&&this.policy.j&&this.Qc&&ER(this.Qc, void 0,void 0,J,!1);this.loader.ma(J);break;case 2:RsX(O.Fh)!=="sabr.config"&&delete J.reason;this.loader.handleError(RsX(O.Fh),J,1);break;case 3:this.policy.NH&&((O=this.xi.qX)!=null&&(O.T=!0),this.loader.handleError("sabr.hostfallback",J))}}; g.T.Cz=function(O){if(O.url){O=g.n(O.url);for(var V=O.next();!V.done;V=O.next())VR(V.value,"ump_prewarm")}}; g.T.I1=function(O){O&&(this.loader.jB("sabrctxt",{onsbrctxt:O.type,scp:O.scope,dflt:O.sendByDefault}),O.type&&O.sendByDefault&&this.videoData.ol.add(O.type),O.scope!==2&&(O.type&&this.videoData.sabrContextUpdates.set(O.type,O),this.pD.I1(O)))}; g.T.EH=function(){}; g.T.lW=function(O,V){if(this.loader.xM)this.loader.jB("sdai",{ignSabrSeek:1,smt:O==null?void 0:O.HJ,rn:V});else if(O.HJ!==void 0&&O.DT){V=O.HJ/O.DT;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.dW||this.policy.z2||this.policy.JB)this.loader.vC.K=!1;if(this.pD.getCurrentTime()!==V){var J={yK:"sabr_seek",lA:!0,ZT:!0};O.seekSource&&(J.seekSource=O.seekSource);Tn(this.loader,V+.1,J)}}}; g.T.onSnackbarMessage=function(O){this.pD.publish("onSnackbarMessage",O)}; g.T.Ms=function(O,V){this.policy.W&&this.loader.Ms(O,V)}; g.T.Qv=function(O){O.yR&&O.sU&&mc(this.xi,O.yR,O.sU);this.policy.QB&&(O.c6&&O.Ir&&(this.xi.EF=O.c6/O.Ir),O.Om&&O.AP&&(this.xi.rV=O.Om/O.AP));PL(this.videoData)&&!this.videoData.cX&&O.sU&&this.loader.DR(O.sU,1E3);O.ZS!=null&&this.pD.Te(O.ZS);O.IR&&(O=((0,g.cH)()-O.IR)/1E3,this.loader.A9.Ph(1,O))}; g.T.Qe=function(O){this.loader.Qe(O)}; g.T.KB=function(O){this.loader.KB(O)}; g.T.nh=function(O){this.loader.nh(O)}; g.T.iK=function(O){return this.videoData.ol.has(O)}; g.T.nV=function(O,V,J){this.policy.U&&this.loader.jB("sabrctxtplc",{start:O?O.join("_"):"",stop:V?V.join("_"):"",discard:J?J.join("_"):""});if(O){O=g.n(O);for(var y=O.next();!y.done;y=O.next())this.videoData.ol.add(y.value)}if(V)for(V=g.n(V),O=V.next();!O.done;O=V.next())O=O.value,this.videoData.ol.has(O)&&this.videoData.ol.delete(O);if(J)for(J=g.n(J),V=J.next();!V.done;V=J.next())if(V=V.value,this.videoData.sabrContextUpdates.has(V)&&this.videoData.sabrContextUpdates.delete(V),this.policy.KD&&this.K.length)for(O= g.n(this.K),y=O.next();!y.done;y=O.next())if(y=y.value,!(y instanceof cW)){var l=void 0;((l=y.Ul)==null?void 0:l.type)===V&&(y.Ul=void 0)}}; g.T.HO=function(){}; g.T.tQ=function(O){this.V=O}; g.T.Ak=function(O){this.W=O}; g.T.ZZ=function(O,V){aq(this.policy,O,4,V)}; g.T.JU=function(O){if(O==null?0:O.Zi)if(O=O.Zi.m6){O=g.n(O);for(var V=O.next();!V.done;V=O.next())if(V=V.value,V.formatId){var J=this.xi.U.get(Ji(V.formatId));J&&J.info&&(J.info.debugInfo=V.debugInfo)}}}; g.T.Sc=function(O){this.nD=!0;this.pD.publish("reloadplayer",O)}; g.T.Ai=function(){return this.pD.Ai()||""}; g.T.HT=function(){var O=j9p(this);return Math.min(O.mG,O.ZU)}; g.T.k8=function(O,V){this.loader.jB(O,V)}; g.T.bG=function(O){bcd(this.loader,wjH(this.Ks,O))}; g.T.qS=function(O){this.pD.qS(O)}; g.T.BA=function(){this.loader.BA()}; g.T.Ep=function(){this.loader.Ep()}; g.T.U5=function(){g.K.prototype.U5.call(this);this.U=void 0;m7p(this,!0,"i");this.K=[]};CJr.prototype.getCurrentTime=function(){return this.pD.getCurrentTime()-this.pD.HY()}; or.prototype.S=function(O){GM(O.state)&&hQ(this.W)}; or.prototype.clear=function(){Wfd(this.W);this.U.clear();this.K.clear();this.V=NaN}; or.prototype.bF=function(){this.isSeeking=!0;Wfd(this.W);this.V=NaN;this.j=this.hg};vW.prototype.e7=function(O,V){if(this.D)return bj5(this,V);if(V=eK(O)){var J=V.K;J&&J.U&&J.K&&(O=O.j.length?O.j[0]:null)&&O.state>=2&&!O.t_()&&O.info.jz===0&&(this.D=O,this.S=J,this.j=V.info,this.V=this.startTimeSecs=Date.now()/1E3,this.W=this.j.startTime)}return NaN}; vW.prototype.clear=function(){this.j=this.S=this.D=null;this.K=this.W=this.V=this.startTimeSecs=NaN;this.U=!1};g.I(Mm,g.K);Mm.prototype.U5=function(){oDr(this);g.K.prototype.U5.call(this)};var vDU=/[?&]cpn=/;g.I(Xl,g.K);Xl.prototype.flush=function(){var O={};this.j&&(O.pe=this.j);this.K.length>0&&(O.pt=this.K.join("."));this.K=[];return O}; Xl.prototype.stop=function(){var O=this,V,J,y;return g.Q(function(l){if(l.j==1)return l.W(2),l.K((V=O.D)==null?void 0:V.stop(),4);if(l.j!=2)return(J=l.U)&&O.logTrace(J),l.S(0);y=l.D();O.j=nD7(y.message);l.V()})}; Xl.prototype.logTrace=function(O){var V=[];for(var J=[],y=[],l=[],m=0,H=g.n(O.resources),F=H.next();!F.done;F=H.next())V.push({id:m,url:F.value}),m++;m=0;H=g.n(O.frames);for(F=H.next();!F.done;F=H.next())F=F.value,J.push({id:m,name:F.name,resourceId:F.resourceId,line:F.line,column:F.column}),m++;m=0;H=g.n(O.stacks);for(F=H.next();!F.done;F=H.next())F=F.value,l.push({id:m,frameId:F.frameId,parentId:F.parentId}),m++;m=0;O=g.n(O.samples);for(H=O.next();!H.done;H=O.next())H=H.value,y.push({id:m,timestampMs:H.timestamp, stackId:H.stackId}),m++;V=g.nD(g.mH({resources:V,frames:J,samples:y,stacks:l},Po1),4);this.U+=V.length;this.U<1E7&&this.K.push(V)}; Xl.prototype.U5=function(){this.stop();g.K.prototype.U5.call(this)};(0,g.Bd)([112,12,216,9,235,17,82,221]);var A1U=[2,5,30];g.rM=Qx(function(){var O="";try{var V=g.I1("CANVAS").getContext("webgl");V&&(V.getExtension("WEBGL_debug_renderer_info"),O=V.getParameter(37446),O=O.replace(/[ :]/g,"_"))}catch(J){}return O});g.I(g.qm,g.K);g.T=g.qm.prototype;g.T.rvj=function(){var O=g.KC(this.provider);GY(this,O)}; g.T.jp=function(){return this.Gv}; g.T.SQ=function(){return{mw:this.mw,Rj:this.Rj}}; g.T.le=function(O,V){this.mw=O;this.Rj=V}; g.T.Te=function(O){if(!this.Xs){this.Xs=!0;var V="";switch(O){case 1:V="proximaui";break;case 2:V=oHh(this.provider.videoData)?"proximawpcc":this.provider.videoData.L("html5_enable_proxima")||this.provider.videoData.L("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:V="proximaauto"}V!==""&&AQ(this,V)}}; g.T.tq=function(O,V,J,y){if(!this.xr.has(O)){this.xr.add(O);var l=g.KC(this.provider);g.gM(this,l,"lse",[O,V,J,y.toFixed(3)])}}; g.T.At=function(O){QS(this,"lwc",[O.rD?O.rD.toFixed():"",O.j4?O.j4.toFixed():"",O.u_?(O.u_*1E3).toFixed():"",O.zX?(O.zX*1E3).toFixed():"",O.oN?(O.oN*1E3).toFixed():""].join(":"))}; g.T.reportStats=function(O){O=O===void 0?NaN:O;if(!this.GL()&&(O=O>=0?O:g.KC(this.provider),this.fD?wZz.has(this.Pf)&&(this.K.size||(this.Pf==="PL"?O>=this.j+30:O<=this.KD+30||O>=this.j+1200&&O<=this.KD+86400))&&(g.gM(this,O,"vps",[this.Pf]),this.j=O):["PL","B","S"].indexOf(this.Pf)>-1&&(this.K.size||O>=this.j+30)&&(g.gM(this,O,"vps",[this.Pf]),this.j=O),this.K.size)){this.sequenceNumber===7E3&&g.en(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){ul(this,O);var V=this.provider.pD.Qd(); V=g.n(V);for(var J=V.next();!J.done;J=V.next())J=J.value,this.jB(J.key,J.value);V=O;J=this.provider.pD.rh();var y=J.droppedVideoFrames||0,l=J.totalVideoFrames||0,m=y-this.mw,H=l&&!this.Rj;y>J.totalVideoFrames||m>5E3?J9r(this,"html5.badframedropcount","df."+y+";tf."+J.totalVideoFrames):(m>0||H)&&g.gM(this,V,"df",[m]);this.mw=y;this.Rj=l;this.T>0&&(g.gM(this,O,"glf",[this.T]),this.T=0);OV.isActive()&&(O=OV.qF(),Object.keys(O).length>0&&this.jB("profile",O));this.UR&&AQ(this,"lwnmow");O={};this.provider.videoData.j&& (O.fmt=this.provider.videoData.j.itag,(V=this.provider.videoData.D)&&V.itag!==O.fmt&&(O.afmt=V.itag));O.cpn=this.provider.videoData.clientPlaybackNonce;var F;((F=this.TD)==null?0:F.length)?O.adcpn=this.TD.join(","):this.adCpn&&(O.adcpn=this.adCpn);var N;((N=this.zD)==null?0:N.length)?O.addocid=this.zD.join(","):this.JT.length&&(O.addocid=this.JT);N=this.provider.videoData;F=N.Yr();N=N.latencyClass;(this.provider.B.gC().K.s5(gYn)&&F&&N==="NORMAL"||this.provider.B.gC().K.s5(dln)&&F&&N==="LOW"||this.provider.B.gC().K.s5(EY1)&& this.provider.videoData.isDaiEnabled()&&oT(this.provider.videoData))&&(O.adc=1);this.provider.videoData.cotn&&(O.cotn=this.provider.videoData.cotn);O.el=y_(this.provider.videoData);O.content_v=mf(this.provider.videoData);O.ns=this.provider.B.KD;O.fexp=wTX(this.provider.B.experiments).toString();O.cl=(861965570).toString();F=this.provider.videoData.adFormat||this.adFormat;var x;((x=this.hw)==null?0:x.length)?O.adformat=this.hw.join(","):F&&(O.adformat=F);(x=ub(this.provider.videoData))&&(O.live=x); this.provider.videoData.Ji()&&(O.drm=1,this.provider.videoData.W&&(O.drm_system=cad[this.provider.videoData.W.flavor]||0),this.provider.videoData.drmProduct&&(O.drm_product=this.provider.videoData.drmProduct));Jy()&&this.provider.videoData.V&&(O.ctt=this.provider.videoData.V,O.cttype=this.provider.videoData.F$,this.provider.videoData.mdxEnvironment&&(O.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(O.dai=this.provider.videoData.enableServerStitchedDai? "ss":"cs",this.provider.videoData.GT&&(O.dai_fallback="1"),oT(this.provider.videoData)&&(O.dai="mv")):this.provider.videoData.ke?O.dai="cs":this.provider.videoData.Aa&&(O.dai="disabled");O.seq=this.sequenceNumber++;if(this.provider.videoData.ZP){if(x=this.provider.videoData.ZP,O&&x)for(x.ns==="3pp"&&(O.ns="3pp"),this.zK.has(x.ns)&&AQ(this,"hbps"),x.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=x.shbpslc),F=g.n(Object.keys(x)),N=F.next();!N.done;N=F.next())N=N.value,this.MI.has(N)|| (O[N]=x[N])}else O.event="streamingstats",O.docid=this.provider.videoData.videoId,O.ei=this.provider.videoData.eventId;this.isEmbargoed&&(O.embargoed="1");Object.assign(O,this.provider.B.K);(x=O.seq)&&!this.provider.B.experiments.gC().K.s5(Gr1)&&(F=kc1(this,+x),F=g.mH(F,erU),F=g.nD(F,4),this.K.set("qclc",[F]));O=g.pp("//"+this.provider.B.Jp+"/api/stats/qoe",O);N=F="";V=g.n(this.K.entries());for(J=V.next();!J.done;J=V.next())y=g.n(J.value),J=y.next().value,y=y.next().value,l=void 0,(l=y)!=null&&l.join&& (J="&"+J+"="+y.join(","),J.length>100?N+=J:F+=J);this.provider.B.experiments.gC().K.s5(Gr1)&&(x=kc1(this,+(x||0)),x.qoePingUrl=O+F+N,g.l6("qoeClientLoggingContext",x),F+="&dl=1");SJh(this,O+F,N.replace(/ /g,"%20"))}this.K.clear()}}; g.T.K1=function(O){this.UR=O}; g.T.JQ=function(){if(this.provider.videoData.W){var O=this.provider.videoData.W;AQ(this,"eme-"+(O.keySystemAccess?"final":U_(O)?"ms":cj(O)?"ytfp":zA(O)?"safarifp":"nonfinal"))}}; g.T.qK=d5(49);g.T.Zc=function(O){this.isEmbargoed=O}; g.T.XJ=d5(26);g.T.Sz=d5(32);g.T.onPlaybackRateChange=function(O){var V=g.KC(this.provider);O&&O!==this.aB&&(g.gM(this,V,"rate",[O]),this.aB=O);this.fD||this.reportStats(V)}; g.T.e4=d5(20);g.T.getPlayerState=function(O){if(g.R(O,128))return"ER";if(g.R(O,2048))return"B";if(g.R(O,512))return"SU";if(g.R(O,16)||g.R(O,32))return"S";if(O.isOrWillBePlaying()&&g.R(O,64))return"B";var V=M1D[Kr(O)];g.F0(this.provider.B)&&V==="B"&&this.provider.pD.getVisibilityState()===3&&(V="SU");V==="B"&&g.R(O,4)&&(V="PB");return V}; g.T.Ju=function(O,V){var J=g.KC(this.provider);g.gM(this,J,"vfi",[O==="A"?"":""+(V!=null?V:0),O])}; g.T.U5=function(){g.K.prototype.U5.call(this);g.xg(this.lw);g.xg(this.oB)}; g.T.OF=function(O){this.isOffline=O;g.gM(this,g.KC(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.T.jB=function(O,V,J){var y=this.wX.indexOf(O)!==-1;y||this.wX.push(O);if(!J||!y){V=typeof V!=="string"?SP(V):V;V=lsn(V);if(!J&&!/^t[.]/.test(V)){var l=g.KC(this.provider)*1E3;V="t."+l.toFixed()+";"+V}QS(this,"ctmp",O+":"+V);D7l(this);return l}}; g.T.z$=function(O,V,J){this.W={uJW:Number(this.jB("glrem",{nst:O.toFixed(),rem:V.toFixed(),ca:+J})),H6:O,Ben:V,isAd:J}}; g.T.KG=function(O,V,J){g.gM(this,g.KC(this.provider),"ad_playback",[O,V,J])}; g.T.Jq=function(O,V){var J=g.KC(this.provider)*1E3;QS(this,"daism","t."+J.toFixed(0)+";smw."+(O*1E3).toFixed(0)+";smo."+(V*1E3).toFixed(0))}; g.T.resume=function(){var O=this;isNaN(this.lw)?Ocr(this):this.lw=g.FR(function(){O.reportStats()},1E4)}; var TG={},M1D=(TG[5]="N",TG[-1]="N",TG[3]="B",TG[0]="EN",TG[2]="PA",TG[1]="PL",TG[-1E3]="ER",TG[1E3]="N",TG),wZz=new Set(["PL","B","S"]),dM=[];g.I(xyp,g.K);g.T=xyp.prototype;g.T.initialize=function(O,V,J){O=O||0;this.policy.K||(V=Lcn(this.K),ash(this.pD,new s1(V.video,V.reason)),this.pD.ye(new s1(V.audio,V.reason)));this.policy.K&&wi(this);this.xi.isManifestless&&k07(this.V);this.T&&IkY(this.T,this.videoTrack.vE);V=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var y=!this.xi.isManifestless;this.policy.PL&&(y=y||this.xi.FR);if(!this.policy.lw||this.policy.Ks)this.currentTime=y?O:V;this.policy.dW&&this.seek(this.getCurrentTime(),{}).TP(function(){}); if(this.policy.K){var l;((l=this.D)==null?0:i7p(l,this.Ai()||""))&&Zc5(this)&&Uyr(this,this.videoTrack)&&Uyr(this,this.audioTrack)&&(Hjr(this.j,this.D),this.policy.V&&Nsr(this))}else this.KD&&(zSY(this,this.videoTrack),zSY(this,this.audioTrack),R2o(this.KD),delete this.KD);J?(s3n(this,!1),g.uL(this.yr)):(O=this.getCurrentTime()===0,Me(this.V,this.videoTrack,this.videoTrack.vE,O),Me(this.V,this.audioTrack,this.audioTrack.vE,O),this.policy.K&&PbV(this.j,{wB:1}),this.policy.dW||this.seek(this.getCurrentTime(), {}).TP(function(){}),this.timing.tick("gv")); (this.xi.rD||this.xi.j4||this.xi.u_||this.xi.zX||this.xi.oN)&&this.pD.At(this.xi)}; g.T.resume=function(){if(this.isSuspended||this.w5){this.TW=this.w5=this.isSuspended=!1;try{this.e7()}catch(O){g.sk(O)}}}; g.T.J7=function(){return!this.policy.DD}; g.T.i9=function(O,V){O=O===void 0?!1:O;V=V===void 0?!1:V;Is5(this);this.pD.OY()&&(this.S=NaN);O?(this.policy.yz&&this.jB("loader",{setsmb:1}),this.policy.LD=!0,this.Yb()):(s3n(this,!1),V||this.Yb())}; g.T.setAudioTrack=function(O,V,J){J=J===void 0?!1:J;if(!this.GL()){var y=!isNaN(V);J&&y&&(this.audioTrack.KD=Date.now(),this.policy.HK&&(this.TL=!0));J=this.pD.OY()&&!this.pD.getVideoData().T;if(this.policy.K){var l=this.W.Pq(O.id,y);this.pD.ye(l)}else l=this.K,l.j=l.xi.K[O.id],l.S=l.j,l=new c6(l.S,l.U,y?"t":"m"),this.pD.ye(new s1(l.audio,l.reason));y?(this.UR=Date.now(),y=this.audioTrack.vE.index.tO(V),this.jB("setAudio",{id:O.id,cmt:V,sq:y}),y>=0&&(O=this.policy.n$?y+1:y,this.policy.K&&this.uW(!0, "mosaic"),WN(this.audioTrack,O,NaN,NaN),!this.policy.Wf&&this.xi.isLive&&l8(this.xi,O,!1))):J||this.pD.Cr()}}; g.T.setPlaybackRate=function(O){O!==this.qX.getPlaybackRate()&&this.qX.setPlaybackRate(O)}; g.T.xW=function(O){var V=this.j.V;this.j.tQ(O);this.jB("scfidc",{curr:Ji(V),"new":Ji(O)});O&&Ji(O)!==Ji(V)&&(this.uW(!0,"caption change"),this.e7())}; g.T.L0=function(O){this.j.Ak(O)}; g.T.x0=function(O){O.K.info.jE()?this.pD.ye(O):ash(this.pD,O)}; g.T.bG=function(O){NT(O.BE[O.BE.length-1])&&bcd(this,wjH(this.K,O.BE[0].vE))}; g.T.DQ=function(){return this.pD.DQ()}; g.T.Y7=function(){return this.pD.Y7()}; g.T.nh=function(O){this.pD.Y().Sq()&&this.jB("sps",{status:O.kQ||""});if(O.kQ===1)this.Dm=0;else if(O.kQ===2||O.kQ===3){var V=!1;if(O.kQ===3){var J;this.dX=(J=O.scz)!=null?J:Infinity;this.Dm+=1;(V=Xg(this))&&this.vR(!0)}this.pD.z1(!0,V)}}; g.T.YN=function(){return this.pD.YN()}; g.T.G2=function(){return this.pD.G2()}; g.T.pW=function(O){this.pD.pW(O)}; g.T.yg5=function(){var O,V=(O=this.pD.HB())==null?void 0:O.getCurrentTime();V?this.pD.jB("rms",{cta:V}):g.uL(this.eq)}; g.T.e7=function(){YcU(this);if(this.SB&&cs(this.SB)&&!this.SB.s9()&&(!this.policy.lw||isFinite(this.getCurrentTime()))){var O=yO(this.videoTrack);O=this.policy.OM&&O&&O.yZ();this.xi.isManifestless&&this.xi.S&&O_(this.xi)?(this.S=O_(this.xi),this.SB.vH(this.S)):$A(this.xi)&&!O?(O=this.getCurrentTime(),this.policy.lw&&this.policy.Ks&&this.jB("ssrDuration",{ld:BW(this),lct:this.currentTime,vpd:this.getCurrentTime()},!0),isNaN(this.S)?(this.S=O+3600,this.SB.vH(this.S)):this.S<=O+1800&&(this.S=Math.max(this.S+ 1800,O+3600),this.SB.vH(this.S))):this.SB.isView||(O=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==O)&&O>0&&(this.SB.vH(O),this.S=O))}if(!this.GL())if(Dd(this.xi)&&this.xi.t_()){var V=this.xi;this.handleError("manifest.net.retryexhausted",V.TL?{rc:V.FD}:{rc:V.FD.toString()},1)}else if(this.policy.K)a:{try{if(PW(this)&&this.Oo){var J=this.j,y=this.Oo,l=y.K;if(l){var m=J.pD.ym(),H=!0;m||(m=J.loader.getCurrentTime(),H=!1);V=m;var F=H?J.pD.Uo(V):V; if(J.loader.Gk(F))var N=!1;else{var x={t:V.toFixed(3),isUtc:H};c:{var W=J.pD.Ai();if(W){for(var U=g.n([J.audioTrack,J.videoTrack]),Z=U.next();!Z.done;Z=U.next()){var z=lQ(Z.value.vE,J.xi.Gy);m=void 0;var c=((m=l)==null?void 0:m.vv(z,W))||[];if(c.length===0||!C7H(new zQ(c),F)){var Y=!1;break c}}Y=!0}else Y=!1}if(Y)J.loader.jB("prebuffer",Object.assign(x,{inrange:1})),N=!0;else{if(uW(l.info)){var b;if(b=H){var M,w;b=(((M=l.info.K)==null?void 0:(w=M.Aj)==null?void 0:w.dM)||0)===V*1E3}var L=b}else L= !H&&te(l.info)===V*1E3;L?(J.loader.jB("prebuffer",Object.assign(x,{match:1})),N=!0):N=!1}}if(N){J.pD.RX("ismp_c");J.K.push(l);var X;(X=J.O5)==null||pL(X,l.info.uh);l.V4();XF(y,!1)}}}pC(this.j);this.xi.isManifestless&&this.policy.V&&cd(this.vC);var u;((u=this.SB)==null?0:eC(u))&&this.jD();PbV(this.j);if(PW(this)&&this.Oo){var G=this.j,k=this.Oo,D=k.j.N4;if(D!==void 0&&D>=0){G.pD.RX("ismp_a");var Oo=k.j;var md=Oo.N4;if(md===void 0)var xY=!1;else{var V7=Oo.V3?G.pD.Uo(md):md,Tr;if(Tr=!G.loader.Gk(V7)&& Du1(G,G.TL)){var Rp=G.pD.getCurrentTime()*1E3,ys=Ojr(G,Rp),JI=ys.xt;Tr=ys.gO>=7E3&&JI>=7E3}xY=Tr}if(xY){var uX=B07(G,Oo);G.policy.YQ>0&&G.TL.S2++;uX&&(k.K!==uX&&(GAd(k),k.K=uX,k.j=L4),G.pD.RX("ismp_rc"))}}}}catch(nn){g.en(nn);V=nn;if(V.message.includes("changeType")){this.jB("ctype",{exp:V.name,msg:V.message,s:V.stack});break a}this.handleError("fmt.unplayable",{exp:V.name,msg:V.message,s:V.stack,trg:"sabrslicerqt"},1)}dyl(this);g.uL(this.nD)}else if(!this.xi.j||!v$1(this.videoTrack)&&!v$1(this.audioTrack)|| (this.videoTrack.D||this.audioTrack.D)&&this.policy.Xs?J=!1:(this.Yb(),this.pD.seekTo(Infinity,{yK:"checkLoaderTracksSync",DR:!0}),J=!0),!J){YcU(this);this.xi.isManifestless&&(wJX(this.videoTrack),wJX(this.audioTrack),cd(this.vC),(J=eK(this.videoTrack))&&J.K&&(J=J.K.U&&!this.policy.jk,this.jB(J===this.policy.T.XF?"strm":"strmbug",{strm:J,sfmp4:this.policy.T.XF,dfs:this.policy.jk},!0)));if(this.SB)this.jD();else if(this.policy.D){J=!1;if(this.policy.wm)for(y=g.n([this.videoTrack,this.audioTrack]), l=y.next();!l.done;l=y.next()){N=l.value;for(l=eK(N);l&&N.RN()!==yO(N);l=eK(N))N.v1(l);J=J||!!l}else(V=eK(this.videoTrack))&&this.videoTrack.v1(V),(H=eK(this.audioTrack))&&this.audioTrack.v1(H);CL(this.videoTrack)&&CL(this.audioTrack)||(V||H||J)&&bl(this)}c9H(this);Me(this.V,this.videoTrack,this.videoTrack.vE,!1);Me(this.V,this.audioTrack,this.audioTrack.vE,!1);if(!this.policy.I9&&(V=this.videoTrack,y=this.audioTrack,(!this.SB||cs(this.SB)&&!this.policy.Mx)&&!this.vC.isSeeking()&&(this.policy.K|| cN(V)&&V.vE.lk()&&this.K.KD)))a:{if(H=this.getCurrentTime(),J=this.qX,y=$X(J,V.vE.info.jq,y.vE.info.jq,0),l=yR(J.Ax)+y/mD(J.Ax),H+=Math.max(l,l+J.policy.dY-y/V.vE.info.jq),V.j.length){if(V.j[0].info.BE[0].startTime<=H)break a;Wd(V)}J=V.U;for(y=J.j.length-1;y>=0;y--)J.j[y].info.startTime>H&&J.j.pop();pJr(V);V.K&&H5&&x.qX.shift();V=V.wW;var W;if((W=this.pD.getVideoData())==null?0:W.enableServerStitchedDai)W=XJr(this.audioTrack,V),J=XJr(this.videoTrack,V),W!==0&&J!==0&&W!==J&& this.handleError("ssdai.avsync",{sq:V,a:W,v:J},0)}}}; g.T.Ia=function(O,V,J,y){O.info.video&&this.U.Ia(V,J,y)}; g.T.yv=function(O){this.K.yv(O)}; g.T.Tq=function(){return this.Qc}; g.T.Mv=function(){return this.videoTrack.V||this.audioTrack.V}; g.T.seek=function(O,V){if(this.GL())return hF();if(this.Mv())return hF("seeking to head");if(this.policy.dW&&!isFinite(O))return u2h(this.vC),g.f3(Infinity);YcU(this);A9d(this,O,!1,V.seekSource);wi(this);this.policy.K||c9H(this,O);this.SB&&this.SB.K&&this.SB.j&&!this.pD.getVideoData().ED&&(this.SB.K.isLocked()||this.SB.j.isLocked())&&this.pD.Cr({reattachOnLockedBuffer:1,vsb:""+this.SB.j.isLocked(),asb:""+this.SB.K.isLocked()});var J=this.getCurrentTime(),y=this.vC.seek(O,V);if(!this.policy.lw||this.policy.Ks)this.currentTime= y;ZT(this.U,O,J,this.policy.X9&&!V.lA);bl(this);return g.f3(y)}; g.T.l0=function(O){return this.policy.K&&this.j.l0(O)}; g.T.iK=function(O){return this.j.iK(O)}; g.T.uW=function(O,V){this.j.uW(O,V)}; g.T.getCurrentTime=function(){if(this.policy.lw){var O=this.HY()||0;return this.pD.getCurrentTime(!0)-O}return this.currentTime}; g.T.Z1=function(){return this.audioTrack.vE.info}; g.T.IF=function(){return this.videoTrack.vE.info}; g.T.CY=function(){return this.audioTrack.vE.info.al}; g.T.EU=function(){return this.videoTrack.vE.info.al}; g.T.U5=function(){try{this.i9(),Wd(this.audioTrack),Wd(this.videoTrack),sR(this.audioTrack),sR(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.K.prototype.U5.call(this)}catch(O){g.sk(O)}}; g.T.handleError=function(O,V,J){J=J===void 0?0:J;var y=OS(J);O==="fmt.unplayable"&&this.xi.isLive&&(this.policy.aT=!1,yY(this.xi));V=new g.DO(O,V,J);g.pd(this);SP(V.details);this.pD.handleError(V);O!=="html5.invalidstate"&&V.errorCode!=="fmt.unplayable"&&O!=="fmt.unparseable"&&y&&this.dispose()}; g.T.qI=function(){var O=yO(this.audioTrack),V=yO(this.videoTrack);O={lct:this.getCurrentTime().toFixed(3),lsk:this.vC.isSeeking(),lmf:this.K.K.isLocked(),lbw:gjU(this.schedule).toFixed(3),lhd:yR(this.schedule).toFixed(3),lst:((this.schedule.S.cC()||0)*1E9).toFixed(3),laa:O?O.rX():"",lva:V?V.rX():"",lar:this.audioTrack.K?this.audioTrack.K.rX():"",lvr:this.videoTrack.K?this.videoTrack.K.rX():"",laq:""+Fg(this.audioTrack),lvq:""+Fg(this.videoTrack)};this.SB&&!this.SB.Qu()&&this.SB.K&&this.SB.j&&(O.lab= yr(this.SB.K.hL()),O.lvb=yr(this.SB.j.hL()));this.lw&&(O.lapt=((0,g.cH)()-this.lw).toFixed(0),O.lapr=pIY(this));this.Vz&&(O.lapmabht=((0,g.cH)()-this.Vz).toFixed(0),O.lapmabh=Zz(this,this.audioTrack).toFixed(0));this.LD&&(O.lapmvbht=((0,g.cH)()-this.LD).toFixed(0),O.lapmvbh=Zz(this,this.videoTrack).toFixed(0));this.ol&&(O.lapsdai=((0,g.cH)()-this.ol).toFixed(0));return O}; g.T.Yb=function(){try{this.policy.K&&this.j.uW(!1,"pending"),this.audioTrack.Yb(),this.videoTrack.Yb()}catch(O){g.sk(O)}this.policy.D=""}; g.T.Gk=function(O){return this.videoTrack&&this.audioTrack?this.videoTrack.Gk(O)&&this.audioTrack.Gk(O):!0}; g.T.S$=function(){return lv(this.qX)}; g.T.jB=function(O,V,J){this.pD.jB(O,V,J===void 0?!1:J)}; g.T.Ai=function(){return this.pD.Ai()}; g.T.DR=function(O,V){O/=V;isNaN(this.timestampOffset)&&t91(this,O-Math.min(O,this.policy.h8));return(O-this.timestampOffset)*V}; g.T.HY=function(){return this.timestampOffset}; g.T.isSeeking=function(){return this.vC.isSeeking()}; g.T.VR=function(){this.U.VR()}; g.T.JI=function(O,V,J){V=V===void 0?!1:V;J=J===void 0?{}:J;this.policy.K?this.W.JI(O,V,J):this.K.JI(O,V,J)}; g.T.WH=function(O,V){if(this.policy.j&&(this.xM||this.isSeeking()))return this.jB("sdai",{ignoreSkip:"1",isSkip:this.xM,isSeek:this.isSeeking(),t:O.toFixed(3)}),!1;var J=this.policy.j&&(this.policy.W||this.policy.l2),y=this.videoTrack.vE.index.tO(O),l=!1;if(J){var m;if(l=!((m=this.fD)==null||!m.UJ(O,y,this.timestampOffset)))if(N5(this,O,O,y),this.Qc){var H;(H=this.Qc)==null||H.UJ(O,y)}}else this.Qc&&(l=!!this.U.WH(O,this.Qc));if(!l)return this.handleError("ad.skipfailed",{dec:!!this.Qc,t:O.toFixed(3), sq:y}),!1;this.policy.j&&(this.jB("sdai",{skipAdStd:"1"}),this.xM=!0);if(this.policy.JL){var F;(F=this.xr)==null||F.clear()}t91(this,this.timestampOffset-V);bl(this);this.policy.j&&(yY(this.xi),sR(this.audioTrack),sR(this.videoTrack),this.Yb());return!0}; g.T.getManifest=function(){return this.xi}; g.T.isOffline=function(){return!!this.pD.getVideoData().cotn}; g.T.rr=function(O,V){this.pD.rr(O,V)}; g.T.lr=function(O,V){if(this.policy.K)A9d(this,O,!0,V),this.j.uW(!0,"utc"),this.e7();else if(V=this.pD.getVideoData().Fb){var J=this.V;J.AO=O;J.Fb=V;di(this)}}; g.T.O3=function(O){this.videoTrack.V=!1;this.audioTrack.V=!1;this.vC.K=!1;this.pD.O3(O)}; g.T.LR=function(O){this.vC.LR(O-this.HY())}; g.T.O6=function(){this.pD.O6()}; g.T.vR=function(O){O!==this.policy.zb&&((this.policy.zb=O)||this.e7())}; g.T.Cr=function(O){this.pD.Cr(O)}; g.T.K1=function(O){this.pD.K1(O)}; g.T.iW=function(O,V,J){var y;(y=this.fD)==null||y.iW(O,V,J);this.policy.W&&(this.j.S=void 0,this.e7())}; g.T.B0=function(O){var V;(V=this.fD)==null||V.B0(O)}; g.T.KB=function(O){this.policy.Vz&&this.pD.getVideoData().Gy()&&!O.RZ&&(this.jB("liveUmpMissing",{segmentNum:O.Wh,headerId:O.d6,startMs:O.startMs,durationMs:O.durationMs}),this.policy.Vz=!1)}; g.T.Ms=function(O,V){if(this.policy.W){var J,y=(J=O.VC)==null?void 0:J[0];J=jYU(this.pD.getVideoData());var l;(l=this.fD)==null||l.Ms(O,V,this.Qc||void 0,J,this.policy.TM?this.xi:void 0);var m,H,F;this.jB("clidai",{onqlst:1,len:((m=O.VC)==null?void 0:m.length)||0,rn:V,evt:s2o(y==null?void 0:(H=y.lO)==null?void 0:H.event),cid:(y==null?void 0:(F=y.lO)==null?void 0:F.identifier)||"null",sq:(y==null?void 0:y.Wh)||-1,trk:(y==null?void 0:y.trackType)||"null",disr:J})}}; g.T.Qe=function(O){if(this.policy.Vz){var V;(V=this.Qc)==null||V.Qe(O)}}; g.T.prefetchKeyPlay=function(O,V){var J=this;PW(this)&&(this.Oo||(this.Oo=new n4(function(y){J.pD.RX(y)}),g.t(this,this.Oo)),Q2r(this.Oo,{N4:O, V3:V,wB:2}),this.e7())}; g.T.Ep=function(){this.Xs++}; g.T.BA=function(){this.Xs=0};g.I(ke,g.BF);g.I(S5,ke);S5.prototype.V=function(O,V){if(O&&V){var J=Number(v$(O,"cpi"))*1+1;isNaN(J)||J<=0||Jthis.U&&(this.U=J,g.Id(this.K)||(this.K={},this.D.stop(),this.j.stop())),this.K[V]=O,g.uL(this.j))}}; S5.prototype.W=function(){for(var O=g.n(Object.keys(this.K)),V=O.next();!V.done;V=O.next()){var J=V.value;V=this.publish;for(var y=this.U,l=g.c$(this.K[J]),m=[],H=g.n(l[6].split("&")),F=H.next();!F.done;F=H.next())F=F.value,F.indexOf("cpi=")===0?m.push("cpi="+y.toString()):F.indexOf("ek=")===0?m.push("ek="+g.dO(J)):m.push(F);l[6]="?"+m.join("&");J="skd://"+l.slice(2).join("");l=J.length*2;y=new Uint8Array(l+4);y[0]=l%256;y[1]=(l-y[0])/256;for(l=0;l0)for(var J=g.n(this.K),y=J.next();!y.done;y=J.next())if(V===y.value.info.cryptoPeriodIndex){V=!0;break a}V=!1}if(!V){V=(0,g.cH)();a:{J=O.cryptoPeriodIndex;if(!isNaN(J)){y=g.n(this.U.values());for(var l=y.next();!l.done;l=y.next())if(Math.abs(l.value.cryptoPeriodIndex-J)<=1){J=!0;break a}}J=!1}J?(J=O.K,J=Math.max(0,Math.random()*((isNaN(J)?120:J)-30))*1E3):J=0;this.publish("log_qoe",{wvagt:"delay."+J,cpi:O.cryptoPeriodIndex,reqlen:this.K.length}); J<=0?ic5(this,O):(this.K.push({time:V+J,info:O}),g.uL(this.j,J))}}; Dt.prototype.U5=function(){this.K=[];ke.prototype.U5.call(this)};var ev={},Dyr=(ev.DRM_TRACK_TYPE_AUDIO="AUDIO",ev.DRM_TRACK_TYPE_SD="SD",ev.DRM_TRACK_TYPE_HD="HD",ev.DRM_TRACK_TYPE_UHD1="UHD1",ev);g.I(keX,g.K);g.I(VK5,g.BF);g.T=VK5.prototype;g.T.hj=function(O){var V=this;if(!(this.GL()||O.size<=0)){var J={};O.forEach(function(y,l){var m=Zb(V.j)?l:y;l=new Uint8Array(Zb(V.j)?y:l);Zb(V.j)&&Izr(l);y=g.nD(l,4);Izr(l);l=g.nD(l,4);V.K[y]?V.K[y].status=m:V.K[l]?V.K[l].status=m:V.K[y]={type:"",status:m};TJr(V,V.K[y].type,J)}); c$n(this,",");OH(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.T.error=function(O,V,J,y){this.GL()||(this.publish("licenseerror",O,V,J,y),O==="drm.provision"&&(O=(Date.now()-this.V)/1E3,this.V=NaN,this.publish("ctmp","provf",{et:O.toFixed(3)})));OS(V)&&this.dispose();this.MG&&(this.MG.dispose(),this.MG=void 0)}; g.T.shouldRetry=function(O,V){return!O&&this.requestNumber===V.requestNumber}; g.T.U5=function(){this.K={};g.BF.prototype.U5.call(this)}; g.T.qI=function(){var O={ctype:this.T.contentType||"",length:this.T.initData.length,requestedKeyIds:this.O5,cryptoPeriodIndex:this.cryptoPeriodIndex};this.U&&(O.keyStatuses=this.K);return O}; g.T.getInfo=function(){var O=this.D.join();if(Vm(this)){var V=new Set,J;for(J in this.K)this.K[J].status!=="usable"&&V.add(this.K[J].type);O+="/UKS."+Array.from(V)}return O+="/"+this.cryptoPeriodIndex}; g.T.Cv=function(){return this.url};g.I(ym,g.K);g.T=ym.prototype;g.T.mK=function(O){if(this.W){var V=O.messageType||"license-request";this.W(new Uint8Array(O.message),V)}}; g.T.hj=function(){this.S&&this.S(this.K.keyStatuses)}; g.T.onClosed=function(){this.GL()||g.Qd("xboxone")&&this.U&&this.U("closedShouldNotRetry")}; g.T.Xa=function(O){this.W&&this.W(O.message,"license-request")}; g.T.WV=function(O){if(this.U){if(this.j){var V=this.j.error.code;O=this.j.error.systemCode}else V=O.errorCode,O=O.systemCode;this.U("t.prefixedKeyError;c."+V+";sc."+O,V,O)}}; g.T.vV=function(){this.V&&this.V()}; g.T.update=function(O){var V=this;if(this.K)return this.K.update(O).then(null,UC(function(J){azp(V,"t.update",J)})); this.j?this.j.update(O):this.element.addKey?this.element.addKey(this.T.keySystem,O,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.T.keySystem,O,this.initData,this.sessionId);return hy()}; g.T.U5=function(){this.K&&(this.qX?this.K.close().catch(g.en):this.K.close());this.element=null;g.K.prototype.U5.call(this)};g.I(lh,g.K);g.T=lh.prototype;g.T.setServerCertificate=function(){return this.mediaKeys.setServerCertificate?this.K.flavor==="widevine"&&this.K.qT?this.mediaKeys.setServerCertificate(this.K.qT):s_(this.K)&&this.K.Zq?this.mediaKeys.setServerCertificate(this.K.Zq):null:null}; g.T.createSession=function(O,V){var J=O.initData;if(this.K.keySystemAccess){V&&V("createsession");var y=this.mediaKeys.createSession();cj(this.K)?J=fzp(J,this.K.Zq):s_(this.K)&&(J=r9d(J)||new Uint8Array(0));V&&V("genreq");O=y.generateRequest(O.contentType,J);var l=new ym(null,null,null,y,null,this.V);O.then(function(){V&&V("genreqsuccess")},UC(function(H){azp(l,"t.generateRequest",H)})); return l}if(U_(this.K))return oX1(this,J);if(zA(this.K))return hcr(this,J);if((y=this.element)==null?0:y.generateKeyRequest)this.element.generateKeyRequest(this.K.keySystem,J);else{var m;(m=this.element)==null||m.webkitGenerateKeyRequest(this.K.keySystem,J)}return this.U=new ym(this.element,this.K,J,null,null,this.V)}; g.T.fL=function(O){var V=vX7(this,O);V&&V.Xa(O)}; g.T.Uw=function(O){var V=vX7(this,O);V&&V.WV(O)}; g.T.Rm=function(O){var V=vX7(this,O);V&&V.vV(O)}; g.T.getMetrics=function(){var O=null;if(this.mediaKeys&&this.mediaKeys.getMetrics)try{O=this.mediaKeys.getMetrics()}catch(V){}return O}; g.T.U5=function(){this.j=this.mediaKeys=null;var O;(O=this.U)==null||O.dispose();O=g.n(Object.values(this.W));for(var V=O.next();!V.done;V=O.next())V.value.dispose();this.W={};g.K.prototype.U5.call(this);delete this.element};g.T=mL.prototype;g.T.get=function(O){O=this.findIndex(O);return O!==-1?this.values[O]:null}; g.T.remove=function(O){O=this.findIndex(O);O!==-1&&(this.keys.splice(O,1),this.values.splice(O,1))}; g.T.removeAll=function(){this.keys=[];this.values=[]}; g.T.set=function(O,V){var J=this.findIndex(O);J!==-1?this.values[J]=V:(this.keys.push(O),this.values.push(V))}; g.T.findIndex=function(O){return g.GD(this.keys,function(V){return g.$m(O,V)})};g.I(nXp,g.BF);g.T=nXp.prototype;g.T.Erv=function(O){this.A4({onecpt:1});O.initData&&dR7(this,new Uint8Array(O.initData),O.initDataType)}; g.T.fD5=function(O){this.A4({onndky:1});dR7(this,O.initData,O.contentType)}; g.T.Ch=function(O){this.A4({onneedkeyinfo:1});this.B.L("html5_eme_loader_sync")&&(this.V.get(O.initData)||this.V.set(O.initData,O));EX1(this,O)}; g.T.ox=function(O){this.U.push(O);$B(this)}; g.T.createSession=function(O){var V=q0r(this)?DSl(O):g.nD(O.initData);this.j.get(V);this.fD=!0;O=new VK5(this.videoData,this.B,O,this.drmSessionId,this.MG);this.j.set(V,O);O.subscribe("ctmp",this.zj,this);O.subscribe("keystatuseschange",this.hj,this);O.subscribe("licenseerror",this.IY,this);O.subscribe("newlicense",this.Rs,this);O.subscribe("newsession",this.U2,this);O.subscribe("sessionready",this.g3,this);O.subscribe("fairplay_next_need_key_info",this.Ko,this);this.B.L("html5_enable_vp9_fairplay")&& O.subscribe("qualitychange",this.wf,this);O.subscribe("sabrlicenseconstraint",this.xfn,this);V=this.mediaKeys;OH(O,{createkeysession:1});O.status="gr";sB("drm_gk_s",void 0,O.videoData.qX);O.url=H85(O);var J,y;if(O.B.gC().K.s5(Z8U)&&((J=O.MG)==null?0:J.K)&&((y=O.MG)==null?0:y.licenseRequest))O.U=O.MG.K,J$V(O,O.MG.K,O.MG,O.MG.certificate),$Rr(O,O.MG.licenseRequest,"license-request");else{var l;O.U=y$7(O,V,(l=O.MG)==null?void 0:l.certificate);g.t(O,O.U)}}; g.T.Rs=function(O){this.GL()||(this.A4({onnelcswhb:1}),O&&!this.heartbeatParams&&(this.heartbeatParams=O,this.publish("heartbeatparams",O)))}; g.T.U2=function(){this.GL()||(this.A4({newlcssn:1}),this.U.shift(),this.fD=!1,$B(this))}; g.T.g3=function(){if(U_(this.K)&&(this.A4({onsnrdy:1}),this.Vz--,this.Vz===0)){var O=this.KD,V,J;(V=O.element)==null||(J=V.msSetMediaKeys)==null||J.call(V,O.j)}}; g.T.hj=function(O){if(!this.GL()){this.dW||(this.dW=!0,this.B.Sq()&&QOX(this));this.A4({onksch:1});var V=this.wf;if(!Vm(O)&&g.d9&&O.j.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var J="large";else{J=[];var y=!0;if(Vm(O))for(var l=g.n(Object.keys(O.K)),m=l.next();!m.done;m=l.next())m=m.value,O.K[m].status==="usable"&&J.push(O.K[m].type),O.K[m].status!=="unknown"&&(y=!1);if(!Vm(O)||y)J=O.D;J=zcH(J)}V.call(this,J);if(O.B.L("html5_enable_vp9_fairplay")&&s_(O.j))V=O.qX; else{if(!Vm(O))for(V={},J=g.n(O.D),y=J.next();!y.done;y=J.next())TJr(O,y.value,V);V=O.authorizedFormats}this.videoData.authorizedFormats=V;this.publish("keystatuseschange",O)}}; g.T.zj=function(O,V){this.GL()||this.publish("ctmp",O,V)}; g.T.Ko=function(O,V){this.GL()||this.publish("fairplay_next_need_key_info",O,V)}; g.T.IY=function(O,V,J,y){this.GL()||(this.videoData.L("html5_log_drm_metrics_on_error")&&QOX(this),this.publish("licenseerror",O,V,J,y))}; g.T.cQ=function(){return this.T}; g.T.wf=function(O){var V=g.th("auto",O,!1,"l");if(this.videoData.VG){if(this.T.equals(V))return}else if(P3U(this.T,O))return;this.T=V;this.publish("qualitychange");this.A4({updtlq:O})}; g.T.xfn=function(O){this.videoData.sabrLicenseConstraint=O}; g.T.U5=function(){var O,V;this.K.keySystemAccess&&this.element&&!((O=this.mediaElement)==null?0:(V=O.Il)==null?0:V.OY())&&(this.S?this.element.setMediaKeys(null).catch(g.en):this.element.setMediaKeys(null));this.element=null;this.U=[];O=g.n(this.j.values());for(V=O.next();!V.done;V=O.next())V=V.value,V.unsubscribe("ctmp",this.zj,this),V.unsubscribe("keystatuseschange",this.hj,this),V.unsubscribe("licenseerror",this.IY,this),V.unsubscribe("newlicense",this.Rs,this),V.unsubscribe("newsession",this.U2, this),V.unsubscribe("sessionready",this.g3,this),V.unsubscribe("fairplay_next_need_key_info",this.Ko,this),this.B.L("html5_enable_vp9_fairplay")&&V.unsubscribe("qualitychange",this.wf,this),V.dispose();this.j.clear();this.W.removeAll();this.V.removeAll();this.heartbeatParams=null;g.BF.prototype.U5.call(this)}; g.T.qI=function(){for(var O={systemInfo:this.K.qI(),sessions:[]},V=g.n(this.j.values()),J=V.next();!J.done;J=V.next())O.sessions.push(J.value.qI());return O}; g.T.getInfo=function(){return this.j.size<=0?"no session":""+this.j.values().next().value.getInfo()+(this.D?"/KR":"")}; g.T.A4=function(O,V){V=V===void 0?!1:V;this.GL()||(SP(O),(this.B.Sq()||V)&&this.publish("ctmp","drmlog",O))};var uHH=!1,r$X=!1;g.I(Rcr,g.K);g.T=Rcr.prototype;g.T.eU=function(){return!!this.hn}; g.T.q1=function(){return this.j}; g.T.handleError=function(O){var V=this;O4p(this,O);if((O.errorCode!=="html5.invalidstate"&&O.errorCode!=="fmt.unplayable"&&O.errorCode!=="fmt.unparseable"||!DRh(this,O.errorCode,O.details))&&!lT7(this,O)&&!$55(this)){if(this.WE.KD!=="yt"&&JK7(this,O)&&this.videoData.Wf&&(0,g.cH)()/1E3>this.videoData.Wf&&cL(this.videoData)){var J=Object.assign({e:O.errorCode},O.details);J.stalesigexp="1";J.expire=Math.round(this.videoData.Wf*1E3);J.init=Math.round(this.videoData.YD);J.now=Math.round((0,g.cH)());O= new g.DO(O.errorCode,J,2);this.pD.Hf(O.errorCode,2,"SIGNATURE_EXPIRED",SP(O.details))}if(OS(O.severity)){var y;J=(y=this.pD.loader)==null?void 0:y.K.K;if(this.WE.L("html5_use_network_error_code_enums"))if(Vzd(O)&&J&&J.isLocked())var l="FORMAT_UNAVAILABLE";else if(this.WE.V||O.errorCode!=="auth"||O.details.rc!==429)O.errorCode==="ump.spsrejectfailure"&&(l="HTML5_SPS_UMP_STATUS_REJECTED");else{l="TOO_MANY_REQUESTS";var m="6"}else Vzd(O)&&J&&J.isLocked()?l="FORMAT_UNAVAILABLE":this.WE.V||O.errorCode!== "auth"||O.details.rc!=="429"?O.errorCode==="ump.spsrejectfailure"&&(l="HTML5_SPS_UMP_STATUS_REJECTED"):(l="TOO_MANY_REQUESTS",m="6");this.pD.Hf(O.errorCode,O.severity,l,SP(O.details),m)}else this.pD.publish("nonfatalerror",O),y=/^pp/.test(this.videoData.clientPlaybackNonce),this.Kv(O.errorCode,O.details),y&&O.errorCode==="manifest.net.connect"&&(O="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.cH)(),VR(O,"manifest",function(H){V.V=!0;V.jB("pathprobe",H)}, function(H){V.Kv(H.errorCode,H.details)}))}}; g.T.jB=function(O,V){this.pD.ER.jB(O,V)}; g.T.Kv=function(O,V){V=SP(V);this.pD.ER.Kv(O,V)};jp.prototype.IV=function(O){var V=F0H(this);if(!O)return{HV:xZ,If:xZ,D2:xZ,I4:xZ,N7:xZ,XL:xZ,kG:V};var J=xZ;if(Ah(V)||this.L("html5_perf_cap_override_sticky"))J=ITn(this,O);return{HV:J,If:zar(this,O),D2:U5h(this,O),I4:Y1V(this,O.videoData),N7:aTY(this,O.videoData,O),XL:x55(this,O),kG:V}}; jp.prototype.FP=function(O){if(g.F0(this.B)&&lE(this.B.W,mW.HEIGHT))var V=O.K.videoInfos[0].video.qualityOrdinal;else{var J=this.Vs(!!O.K.K);f7(O.videoData)||Fb(O.videoData);O=O.K.videoInfos;if(O.length){var y=.85,l=O[0].video;l.projectionType!=="MESH"&&l.projectionType!=="EQUIRECTANGULAR"&&l.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||kA||(y=.45);l=g.Ry(this.B.experiments,"html5_viewport_undersend_maximum");for(var m=0;m=0,stateAtSend:V,joinLatencySecs:m,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:y,playerCanaryStage:l,isAd:this.provider.videoData.isAd(),liveMode:J,hasDrm:!!g.K7(this.provider.videoData),isGapless:this.provider.videoData.S,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:tO(this.provider.videoData)};O||g.l6("html5PlayerHealthEvent",V);this.U=!0;this.dispose()}}; FI.prototype.U5=function(){this.U||this.send();window.removeEventListener("error",this.Tv);window.removeEventListener("unhandledrejection",this.Tv);g.K.prototype.U5.call(this)}; var LjF=/\bnet\b/;olo.prototype.update=function(){if(this.T){var O=this.Yp()||0,V=g.KC(this.provider);O>=this.provider.pD.getDuration()-.1&&(this.previouslyEnded=!0);if(O!==this.j||L0r(this,O,V)){var J;if(!(J=OV-this.Nu+2||L0r(this,O,V))){J=this.provider.pD.getVolume();var y=J!==this.KD,l=this.provider.pD.isMuted()?1:0;l!==this.qX?(this.qX=l,J=!0):(!y||this.D>=0||(this.KD=J,this.D=V),J=V-this.D,this.D>=0&&J>2?(this.D=-1,J=!0):J=!1)}J&&(xB(this),this.U=O);this.Nu=V;this.j=O}}}; olo.prototype.Yp=function(){var O=this.provider.pD.Yp();return oT(this.provider.videoData)?O+this.provider.pD.HY():O};nlU.prototype.send=function(O){var V=this;if(!this.zL){var J=Elr(this),y=g.pp(this.uri,J);this.B.L("vss_through_gel_double")&&d5o(y);this.O5&&!this.B.L("html5_simplify_pings")?K05(this,y):X6H(this,O).then(function(l){if(V.MI){l=l||{};l.method="POST";var m=tzn(V);m&&(l.postBody=m)}V.O5&&(l=l||{},l.method="POST",l.postParams={atr:V.attestationResponse});nC(y,l,{token:V.lw,RR:V.UR,mdxEnvironment:V.mdxEnvironment},V.B,O,V.dW,V.isFinal&&V.Z_||V.Vz||V.U&&V.bl)}); this.zL=!0}}; nlU.prototype.j=function(O){O===void 0&&(O=NaN);return Number(O.toFixed(3)).toString()}; var IP={},QB5=(IP.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,IP.LIVING_ROOM_APP_MODE_MAIN=1,IP.LIVING_ROOM_APP_MODE_KIDS=2,IP.LIVING_ROOM_APP_MODE_MUSIC=3,IP.LIVING_ROOM_APP_MODE_UNPLUGGED=4,IP.LIVING_ROOM_APP_MODE_GAMING=5,IP),Yj={},q1V=(Yj.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Yj.EMBEDDED_PLAYER_MODE_DEFAULT=1,Yj.EMBEDDED_PLAYER_MODE_PFP=2,Yj.EMBEDDED_PLAYER_MODE_PFL=3,Yj);g.I(UH,g.K);g.T=UH.prototype; g.T.K4=function(){if(!this.D){this.provider.videoData.SC===16623&&g.en(Error("Playback for EmbedPage"));var O=cm(this,"playback");this.T=uFY(this);Mzr(this.K);O.S=ZR(this);this.U>0&&(O.K-=this.U);O.send();if(this.provider.videoData.tS){O=this.provider.B;var V=this.provider.videoData,J={html5:"1",video_id:V.videoId,cpn:V.clientPlaybackNonce,ei:V.eventId,ptk:V.tS,oid:V.ZE,ptchn:V.PV,pltype:V.b8,content_v:mf(V)};V.qM&&Object.assign(J,{m:V.qM});O=g.pp(O.bV+"ptracking",J);BnY(this,O)}this.provider.videoData.kV|| (PCY(this),k6o(this));this.D=!0;O=this.K;O.j=O.Yp();O.Nu=g.KC(O.provider);!(O.U===0&&O.j<5)&&O.j-O.U>2&&(O.U=O.j);O.T=!0}}; g.T.onProgress=function(){this.K.update();Rad(this)&&(PCY(this),k6o(this))}; g.T.U5=function(){g.K.prototype.U5.call(this);zB(this);w6n(this.K)}; g.T.qI=function(){return Elr(cm(this,"playback"))}; g.T.KE=function(O){var V=cm(this,"engage");V.fD=O;return gl1(V,JeU(this.provider))};V7d.prototype.isEmpty=function(){return this.endTime===this.startTime};ep.prototype.L=function(O){return this.B.L(O)}; ep.prototype.getCurrentTime=function(){return this.pD.getCurrentTime()}; ep.prototype.Yp=function(){return this.pD.Yp()}; var yer={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.I(g.IR,g.K);g.T=g.IR.prototype;g.T.K4=function(){this.K&&this.K.K4();this.j&&this.j.K4()}; g.T.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.hg){var O;(O=this.U.get(this.hg))==null||O.onProgress()}else if(this.K)this.K.onProgress()}; g.T.Zc=function(O){this.qoe&&this.qoe.Zc(O)}; g.T.XJ=d5(25);g.T.Sz=d5(31);g.T.Jq=function(O,V){this.qoe&&this.qoe.Jq(O,V)}; g.T.i5=function(){if(this.provider.videoData.enableServerStitchedDai&&this.hg){var O;(O=this.U.get(this.hg))!=null&&xB(O.K)}else this.K&&xB(this.K.K)}; g.T.Kv=function(O,V){this.qoe&&J9r(this.qoe,O,V);if(this.j)this.j.onError(O)}; g.T.Ju=function(O,V){switch(O){case "M":var J;(J=this.qoe)==null||J.Ju(O,V);break;case "A":var y;(y=this.qoe)==null||y.Ju(O)}}; g.T.onPlaybackRateChange=function(O){if(this.qoe)this.qoe.onPlaybackRateChange(O);this.K&&xB(this.K.K)}; g.T.qK=d5(48);g.T.jB=function(O,V,J){this.qoe&&this.qoe.jB(O,V,J)}; g.T.z$=function(O,V,J){this.qoe&&this.qoe.z$(O,V,J)}; g.T.Te=function(O){var V;(V=this.qoe)==null||V.Te(O)}; g.T.At=function(O){var V;(V=this.qoe)==null||V.At(O)}; g.T.tq=function(O,V,J,y){var l;(l=this.qoe)==null||l.tq(O,V,J,y)}; g.T.K1=function(O){this.qoe&&this.qoe.K1(O)}; g.T.KG=function(O,V,J){this.qoe&&this.qoe.KG(O,V,J)}; g.T.e4=d5(19);g.T.jp=function(){if(this.qoe)return this.qoe.jp()}; g.T.qI=function(){if(this.provider.videoData.enableServerStitchedDai&&this.hg){var O,V;return(V=(O=this.U.get(this.hg))==null?void 0:O.qI())!=null?V:{}}return this.K?this.K.qI():{}}; g.T.SQ=function(){var O;return(O=this.qoe)==null?void 0:O.SQ()}; g.T.le=function(O,V){var J;(J=this.qoe)==null||J.le(O,V)}; g.T.KE=function(O){return this.K?this.K.KE(O):function(){}}; g.T.getVideoData=function(){return this.provider.videoData}; g.T.resume=function(){this.qoe&&this.qoe.resume()};g.I(g.aR,g.K);g.T=g.aR.prototype;g.T.aG=function(O,V){this.sync();V&&this.K.array.length>=2E3&&this.Ly("captions",1E4);V=this.K;if(O.length>1&&O.length>V.array.length)V.array=V.array.concat(O),V.array.sort(V.K);else{O=g.n(O);for(var J=O.next();!J.done;J=O.next())J=J.value,!V.array.length||V.K(J,V.array[V.array.length-1])>0?V.array.push(J):g.jw(V.array,J,V.K)}this.U=NaN;this.sync()}; g.T.HX=function(O){O.length>1E4&&g.en(new g.pn("Over 10k cueRanges removal occurs with a sample: ",O[0]));if(!this.GL()){var V=new Set(O);this.j=this.j.filter(function(J){return!V.has(J)}); ZL5(this.K,V);this.sync()}}; g.T.Fz=function(O){if(!this.GL()){var V=this.G2().find(function(J){return J.id===void 0&&J.namespace===O}); V&&this.HX([V])}}; g.T.Ly=function(O,V){var J=(isNaN(this.U)?sqV(this):this.U)-V;V=this.G2().filter(function(y){return y.namespace===O&&y.endthis.K,m=g.R(J,8)&&g.R(J,16),H=this.pD.hO().isBackground()||J.isSuspended();XI(this,this.nD,m&&!H,l,"qoe.slowseek",function(){},"timeout"); var F=isFinite(this.K);F=m&&F&&ZJl(V,this.K);var N=!y||Math.abs(y-this.K)>10,x=this.B.L("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),W=y===0&&this.j&&[11,10].includes(this.j);XI(this,this.zL,F&&N&&!H&&(!x||!W),l,"qoe.slowseek",function(){V.seekTo(O.K)},"set_cmt"); N=F&&mT(V.pE(),this.K);var U=this.pD.loader;F=!U||U.J7();var Z=function(){V.seekTo(O.K+.001)}; XI(this,this.Vz,N&&F&&!H,l,"qoe.slowseek",Z,"jiggle_cmt");F=function(){return O.pD.V1()}; XI(this,this.LD,N&&!H,l,"qoe.slowseek",F,"new_elem");var z=GM(J);W=J.isBuffering();var c=V.pE(),Y=l7(c,y),b=Y>=0&&c.end(Y)>y+5;N=z&&W&&b;x=this.pD.getVideoData();XI(this,this.ol,y<.002&&this.K<.002&&m&&g.F0(this.B)&&g.lJ(x)&&!H,l,"qoe.slowseek",F,"slow_seek_shorts");XI(this,this.qX,x.xb()&&m&&!H&&!x.T,l,"qoe.slowseek",F,"slow_seek_gapless_shorts");XI(this,this.KD,N&&!H,z&&!W,"qoe.longrebuffer",Z,"jiggle_cmt");XI(this,this.lw,N&&!H,z&&!W,"qoe.longrebuffer",F,"new_elem_nnr");if(U){var M=U.getCurrentTime(); m=V.Iq();m=mw5(m,M);m=!U.isSeeking()&&y===m;XI(this,this.oB,z&&W&&m&&!H,z&&!W&&!m,"qoe.longrebuffer",function(){V.seekTo(M)},"seek_to_loader")}m={}; Z=l7(c,Math.max(y-3.5,0));var w=Z>=0&&y>c.end(Z)-1.1,L=Z>=0&&Z+1=0&&w&&L<11;m.close2edge=w;m.gapsize=L;m.buflen=c.length;this.j&&(m.seekSour=this.j);XI(this,this.fD,z&&W&&!H,z&&!W,"qoe.longrebuffer",function(){},"timeout",m); m=J.isSuspended();m=this.pD.r6()&&!m;XI(this,this.S,m,!m,"qoe.start15s",function(){O.pD.uV("ad")},"ads_preroll_timeout"); m=this.B.experiments.Jv("html5_use_playback_rate_in_skip_slow_ad")?this.pD.getPlaybackRate()*1E3:1E3;Y=y-this.D5;XI(this,this.E5,U,z&&!W,"qoe.longrebuffer",function(){O.pD.Cr()},"reset_media_source"); XI(this,this.yz,U,z&&!W,"qoe.longrebuffer",F,"reset_media_element");this.D===0&&(this.V=y);U=W&&this.K===0&&y>1&&y===this.V;XI(this,this.dW,g.lJ(x)&&U,z&&!W,"qoe.slowseek",function(){V.seekTo(0)},"reseek_after_time_jump"); H=J.isOrWillBePlaying()&&!H;b=this.pD.U9()-y<6&&!b&&this.pD.Vi();XI(this,this.T,x.xb()&&H&&W&&b,z&&!W,"qoe.longrebuffer",function(){O.pD.V1(!1,!0)},"handoff_end_long_buffer_reload"); H=this.j===104||this.pD.FL;J=p7(x)&&x.isAd()&&!x.T&&H&&(W||g.R(J,8)&&g.R(J,16));XI(this,this.TL,J,l,"qoe.start15s",F,"gapless_ad_slow_start");J=p7(x)&&!x.T&&H&&N;XI(this,this.eB,J,l,"qoe.longrebuffer",F,"gapless_slow_start");this.D=y;this.W.start()}}; ng.prototype.Kv=function(O,V,J){V=this.qI(V);V.wn=J;V.wdup=this.U[O]?"1":"0";this.pD.Kv(new g.DO(O,V));this.U[O]=!0}; ng.prototype.qI=function(O){O=Object.assign(this.pD.qI(!0),O.qI());this.K&&(O.stt=this.K.toFixed(3));this.pD.getVideoData().isLivePlayback&&(O.ct=this.pD.getCurrentTime().toFixed(3),O.to=this.pD.HY().toFixed(3));delete O.uga;delete O.euri;delete O.referrer;delete O.fexp;delete O.vm;return O}; Lg.prototype.reset=function(){this.K=this.j=this.U=this.startTimestamp=0;this.D=!1}; Lg.prototype.test=function(O){if(!this.W||this.j)return!1;if(!O)return this.reset(),!1;O=(0,g.cH)();if(!this.startTimestamp)this.startTimestamp=O,this.U=0;else if(this.U>=this.W)return this.j=O,!0;this.U+=1;return!1}; Lg.prototype.qI=function(){var O={},V=(0,g.cH)();this.startTimestamp&&(O.wsd=(V-this.startTimestamp).toFixed());this.j&&(O.wtd=(V-this.j).toFixed());this.K&&(O.wssd=(V-this.K).toFixed());return O};g.I(deX,g.K);g.T=deX.prototype;g.T.setMediaElement=function(O){(this.mediaElement=O)?(this.mediaElement&&(this.W||this.U||!this.mediaElement.aS()||this.seekTo(.01,{yK:"seektimeline_setupMediaElement"})),EH(this)):gt(this)}; g.T.getCurrentTime=function(O){O=O===void 0?!1:O;if(dt(this.pD)){if(this.L("html5_use_centralized_player_time")&&!O&&!isNaN(this.V))return this.V;if(!isNaN(this.j))return this.j}else{if(this.L("html5_use_centralized_player_time")&&!O&&!isNaN(this.V)&&isFinite(this.V))return this.V;if(!isNaN(this.j)&&isFinite(this.j))return this.j}return this.mediaElement&&kx1(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.U||0}; g.T.ym=function(){return this.TL}; g.T.Yp=function(){return this.getCurrentTime()-this.HY()}; g.T.g0=function(){return this.K?this.K.g0():Infinity}; g.T.isAtLiveHead=function(O){if(!this.K)return!1;O===void 0&&(O=this.getCurrentTime());return vm(this.K,O)}; g.T.Mu=function(){return!!this.K&&this.K.Mu()}; g.T.seekTo=function(O,V){var J=V===void 0?{}:V;V=J.JK===void 0?!1:J.JK;var y=J.O_===void 0?0:J.O_;var l=J.HQ===void 0?!1:J.HQ;var m=J.U_===void 0?0:J.U_;var H=J.yK===void 0?"":J.yK;var F=J.seekSource===void 0?void 0:J.seekSource;var N=J.DR===void 0?!1:J.DR;var x=J.lA===void 0?!1:J.lA;J=J.ZT===void 0?!1:J.ZT;N&&(O+=this.HY());tO(this.videoData)&&F===29&&(this.TL=void 0);N=O=this.aX())||!g.BL(this.videoData),Y||(b={st:b,mst:this.aX()},this.K&&this.L("html5_high_res_seek_logging")&&(b.ht=this.K.g0(),b.adft=oR(this.K)),this.pD.jB("seeknotallowed",b)),b=Y));if(!b)return this.D&&(this.D=null,RR5(this)),g.f3(this.getCurrentTime());b=.005;x&&this.L("html5_sabr_seek_no_shift_tolerance")&&(b=0);if(Math.abs(O-this.j)<=b&&this.dW)return this.W;this.L("html5_reset_rate_limiter_on_user_seek")&& (b=this.loader)!=null&&(b.j.lw.S2=0);this.L("html5_reset_backoff_on_user_seek")&&(b=this.loader)!=null&&(b.j.S=void 0);H&&(b=O,this.B.Sq()&&(H={reason:H,tgt:b},this.L("html5_sabr_csdai_seek_log")&&(H.source=F),this.pD.jB("seekreason",H)));F&&(this.KD.j=F);this.dW&>(this);this.W||(this.W=new hN);O&&!isFinite(O)&&Gxn(this,!1);(H=J||N)||(H=O,H=!(this.videoData.isLivePlayback&&this.videoData.U&&!this.videoData.U.K&&!(this.mediaElement&&this.mediaElement.g8()>0&&vs(this.mediaElement)>0)||Ey(this.videoData)&& this.TK()===this.aX(!1)?0:isFinite(H)||!Ey(this.videoData)));H||(O=qJ(this,O,l));O&&!isFinite(O)&&Gxn(this,!1);this.L("html5_use_centralized_player_time")?this.V=O:this.j=this.U=O;this.E5=m;this.S=0;this.K&&(l=this.K,m=O,wNY(l,m,!1),M7n(l,m));l=this.pD;m=O;H={JK:V,seekSource:F};l.F5.U=m;J=l.D5;J.mediaTime=m;J.K=!0;H.JK&&l.ZJ(H);H=m>l.videoData.endSeconds&&m>l.videoData.limitedPlaybackDurationInSeconds;l.Kc&&H&&isFinite(m)&&M5l(l);m0&&OV.start&&M5l(this.pD);return this.W}; g.T.aX=function(O){if(!this.videoData.isLivePlayback)return this.pD.videoData.aX();var V;return ce(this.videoData)&&((V=this.mediaElement)==null?0:V.isPaused())&&this.videoData.K?(O=this.getCurrentTime(),yhr(this.dN(O)*1E3)+O):this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&tO(this.videoData)&&this.videoData.K?O?this.videoData.K.fD||0:this.videoData.K.rV||0:Ey(this.videoData)&&this.videoData.cX&&this.videoData.K?this.videoData.K.aX()+this.timestampOffset:this.videoData.U&&this.videoData.U.K? !O&&this.K?this.K.g0():this.pD.videoData.aX()+this.timestampOffset:this.mediaElement?ty()?yhr(this.mediaElement.k_().getTime()):vs(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.T.TK=function(){if(this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&tO(this.videoData)){var O;return((O=this.videoData.K)==null?void 0:O.EF)||0}O=this.videoData?this.videoData.TK()+this.timestampOffset:this.timestampOffset;if(ce(this.videoData)&&this.videoData.K){var V,J=Number((V=this.videoData.progressBarStartPosition)==null?void 0:V.utcTimeMillis)/1E3;if(!isNaN(J)&&(V=this.Uo(J),!isNaN(V)))return Math.max(O,V)}return O}; g.T.g7=function(){this.W||this.seekTo(this.U,{yK:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.T.Mv=function(){return this.dW&&!isFinite(this.j)}; g.T.U5=function(){Kkr(this,null);this.KD.dispose();g.K.prototype.U5.call(this)}; g.T.qI=function(){var O={};this.loader&&Object.assign(O,this.loader.qI());this.mediaElement&&Object.assign(O,this.mediaElement.qI());return O}; g.T.eA=function(O){this.timestampOffset=O}; g.T.getStreamTimeOffset=function(){return Ey(this.videoData)?0:this.videoData.K?this.videoData.K.getStreamTimeOffset():0}; g.T.HY=function(){return this.timestampOffset}; g.T.dN=function(O){return this.videoData&&this.videoData.K?this.videoData.K.dN(O-this.timestampOffset):NaN}; g.T.Id=function(){if(!this.mediaElement)return 0;if(PL(this.videoData)){var O=this.mediaElement,V=O.pE();O=(jC(V)&&O.getDuration()?V.end(V.length-1):0)+this.timestampOffset-this.TK();V=this.aX()-this.TK();return Math.max(0,Math.min(1,O/V))}return this.mediaElement.Id()}; g.T.ye=function(O){this.T&&(this.T.K=O)}; g.T.lr=function(O,V,J){this.pD.jB("requestUtcSeek",{time:O});tO(this.videoData)&&(this.TL=O);var y;(y=this.loader)==null||y.lr(O,J);V&&(this.O5=V)}; g.T.O3=function(O){tO(this.videoData)&&(this.TL=void 0);this.O5?(this.pD.jB("utcSeekingFallback",{source:"streamTime",timeSeconds:this.O5}),this.pD.seekTo(this.O5,{yK:"utcSeekingFallback_streamTime"}),this.O5=0):(O=this.Uo(O),isNaN(O)||(this.pD.jB("utcSeekingFallback",{source:"estimate",timeSeconds:O}),this.pD.seekTo(O,{yK:"utcSeekingFallback_estimate"})))}; g.T.O6=function(){this.O5=0}; g.T.qS=function(O){this.LD=O}; g.T.Uo=function(O){var V=this.getCurrentTime();if(isNaN(V))return NaN;var J=this.dN(V);return isNaN(J)?NaN:O-(J-V)}; g.T.L=function(O){return this.B&&this.B.L(O)};g.I(Qm,g.K);Qm.prototype.start=function(){this.j.start()}; Qm.prototype.stop=function(){this.j.stop()}; Qm.prototype.clear=function(){for(var O=g.n(this.K.values()),V=O.next();!V.done;V=O.next())V.value.clear()}; Qm.prototype.sample=function(){for(var O=g.n(this.U),V=O.next();!V.done;V=O.next()){var J=g.n(V.value);V=J.next().value;J=J.next().value;this.K.has(V)||this.K.set(V,new yQU(nrz.has(V)));this.K.get(V).update(J())}this.j.start()}; var nrz=new Set(["networkactivity"]);yQU.prototype.update=function(O){this.j?(this.buffer.add(O-this.K||0),this.K=O):this.buffer.add(O)}; yQU.prototype.clear=function(){this.buffer.clear();this.K=0};tH.prototype.qB=function(){return this.started}; tH.prototype.start=function(){this.started=!0}; tH.prototype.reset=function(){this.finished=this.started=!1};var ClU=!1;g.I(g.ih,g.BF);g.T=g.ih.prototype;g.T.U5=function(){g.xg(this.KF);tKH(this.D_);this.visibility.unsubscribe("visibilitystatechange",this.D_);meV(this.ER);g.C1(this.ER);Sp(this);g.E7.pK(this.YR);this.DK();this.Ka=null;g.C1(this.videoData);g.C1(this.b_);g.C1(this.j1);g.C1(this.lC);g.FM(this.sBw);this.Kc=null;g.BF.prototype.U5.call(this)}; g.T.KG=function(O,V,J,y,l){if(this.B.L("html5_log_ad_playback_docid")){var m=this.ER;if(m.qoe){m=m.qoe;var H=this.B.KD||"yt";g.gM(m,g.KC(m.provider),"ad_playback",[O,V,J,l,H])}}else this.ER.KG(O,V,J);this.L("html5_log_media_perf_info")&&this.jB("adloudness",{ld:y.toFixed(3),cpn:O})}; g.T.CY=function(){var O;return(O=this.loader)==null?void 0:O.CY()}; g.T.EU=function(){var O;return(O=this.loader)==null?void 0:O.EU()}; g.T.IF=function(){var O;return(O=this.loader)==null?void 0:O.IF()}; g.T.Z1=function(){var O;return(O=this.loader)==null?void 0:O.Z1()}; g.T.Ji=function(){return this.videoData.Ji()}; g.T.OY=function(){return this.L("html5_not_reset_media_source")&&this.videoData.isLivePlayback||this.L("html5_not_reset_media_source_non_drm_vod")&&!this.videoData.isLivePlayback&&!this.videoData.Ji()}; g.T.Ij=function(){this.videoData.S&&(this.videoData.fP=this.videoData.fP||this.QK.ZN().CY(),this.videoData.dk=this.videoData.dk||this.QK.ZN().EU());if(AJr(this.videoData)||!Zk(this.videoData)){var O=this.videoData.errorDetail;this.Hf(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),O,O,this.videoData.h$||void 0)}this.L("html5_generate_content_po_token")&&this.iT();this.LZ()}; g.T.getVideoData=function(){return this.videoData}; g.T.Y=function(){return this.B}; g.T.IV=function(){return this.Kw.IV(this.Ka)}; g.T.hO=function(){return this.visibility}; g.T.P4=function(){return this.mediaElement&&this.mediaElement.sJ()?this.mediaElement.dC():null}; g.T.HB=function(){return this.mediaElement}; g.T.XQ=function(){if(this.videoData.errorCode)return!1;this.Y().V&&this.Y().houseBrandUserStatus&&this.jB("hbut",{status:this.Y().houseBrandUserStatus},!0);if(this.videoData.wN())return!0;this.Hf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.T.AB=function(O){(O=O===void 0?!1:O)||l_h(this.ER);this.eQ=O;!this.XQ()||this.Be.qB()?atn(this)&&this.Be.qB()&&!this.Be.finished&&!this.eQ&&this.VP():(this.Be.start(),O=this.ER,g.KC(O.provider),O.qoe&&Ocr(O.qoe),this.VP())}; g.T.VP=function(){if(this.videoData.isLoaded()){var O=this.b_;g.Ry(O.WE.experiments,"html5_player_min_build_cl")>0&&g.Ry(O.WE.experiments,"html5_player_min_build_cl")>861965570&&yKp(O,"oldplayer",!0);hWr(this)}else this.videoData.wX||this.videoData.NE?this.eQ&&atn(this)||(this.videoData.wX?hb7(this.videoData):(O=this.ER,O.qoe&&(O=O.qoe,AQ(O,"protected"),O.provider.videoData.W?O.JQ():O.provider.videoData.subscribe("dataloaded",O.JQ,O)),YMX(this.videoData))):!this.videoData.loading&&this.ZA&&bCl(this)}; g.T.pU=function(O){this.Qc=O;this.loader&&(gG5(this.loader,O),this.jB("sdai",{sdsstm:1}))}; g.T.iW=function(O,V,J){var y;(y=this.loader)==null||y.iW(O,V,J)}; g.T.B0=function(O){var V;(V=this.loader)==null||V.B0(O)}; g.T.QG=function(){var O;return((O=this.loader)==null?void 0:O.Tq())||null}; g.T.isFullscreen=function(){return this.visibility.isFullscreen()}; g.T.isBackground=function(){return this.visibility.isBackground()}; g.T.zg=function(){var O=this;Bm(this).then(function(){return Pm(O)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.T.PM=function(){this.mediaElement&&this.mediaElement.activate();this.AB();this.XQ()&&!g.R(this.playerState,128)&&(this.hU.qB()||(this.hU.start(),this.videoData.Pn?this.mA(dQ(this.playerState,4)):this.mA(dQ(dQ(this.playerState,8),1))),pWH(this))}; g.T.Af=function(){return this.Be.finished}; g.T.sendAbandonmentPing=function(){g.R(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.N3(!0),meV(this.ER),g.C1(this.ER),g.E7.pK(this.YR))}; g.T.KI=function(O,V,J){O=O===void 0?!0:O;(V===void 0||V)&&this.mediaElement&&this.mediaElement.pause();O&&J&&this.loader&&Ey(this.videoData)&&this.loader.tq(J);this.mA(O?new g.nr(14):new g.nr)}; g.T.gt=function(){this.ER.i5()}; g.T.Hf=function(O,V,J,y,l,m){var H,F;g.Tv(Emm,J)?H=J:J?F=J:H="GENERIC_WITHOUT_LINK";y=(y||"")+(";a6s."+Ox());if(O==="auth"||O==="drm.auth"||O==="heartbeat.stop")J&&(y+=";r."+J.replaceAll(" ","_")),m&&(y+="sr."+m.replaceAll(" ","_"));V={errorCode:O,errorDetail:l,errorMessage:F||g.Ql[H]||"",d7:H,h$:m||"",i6:y,vj:V,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=O;kB(this,"dataloaderror");this.mA(E4(this.playerState,128,V));g.E7.pK(this.YR);Sp(this);this.xT()}; g.T.uV=function(O){this.sI=this.sI.filter(function(V){return O!==V}); this.hU.qB()&&pWH(this)}; g.T.aW=function(){var O;(O=!!this.sI.length)||(O=this.BC.K.array[0],O=!!O&&O.start<=-0x8000000000000);return O}; g.T.Mu=function(){return this.F5.Mu()}; g.T.isPlaying=function(){return this.playerState.isPlaying()}; g.T.hW=function(){return this.playerState.hW()&&this.videoData.Pn}; g.T.getPlayerState=function(){return this.playerState}; g.T.xW=function(O){var V;(V=this.loader)==null||V.xW(O)}; g.T.L0=function(O){var V;(V=this.loader)==null||V.L0(O)}; g.T.getPlayerType=function(){return this.playerType}; g.T.getPreferredQuality=function(){if(this.Ka){var O=this.Ka;O=O.videoData.PH.compose(O.videoData.ZM);O=iV(O)}else O="auto";return O}; g.T.Sr=d5(12);g.T.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.T.setMediaElement=function(O){if(this.mediaElement&&O.dC()===this.mediaElement.dC()&&(O.isView()||this.mediaElement.isView())){if(O.isView()||!this.mediaElement.isView())this.vM(),this.mediaElement=O,this.mediaElement.Il=this,RW5(this),this.F5.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.DK();if(!this.playerState.isError()){var V=gQ(this.playerState,512);g.R(V,8)&&!g.R(V,2)&&(V=dQ(V,1));O.isView()&&(V=gQ(V,64));this.mA(V)}this.mediaElement=O;this.mediaElement.Il=this;!g.F0(this.B)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);RW5(this);this.F5.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.b_.eU()&&N_1(this.mediaElement)}}; g.T.DK=function(O,V,J){O=O===void 0?!1:O;V=V===void 0?!1:V;J=J===void 0?!1:J;if(this.mediaElement){var y=this.getCurrentTime();y>0&&(this.F5.U=y);this.F5.setMediaElement(null);!O&&this.OY()?ulp(this):this.Dr(J);this.loader&&(bl(this.loader),Jw(this,V));this.UO.stop();if(this.mediaElement&&(!this.hU.qB()&&!this.r6()||this.playerState.isError()||g.R(this.playerState,2)||this.mA(dQ(this.playerState,512)),this.mediaElement)){this.vM();if(O||!this.mediaElement.isView())this.rC.du("mesv_s"),this.mediaElement.stopVideo(), yo(this);this.mediaElement=this.mediaElement.Il=null}}}; g.T.playVideo=function(O,V){O=O===void 0?!1:O;V=V===void 0?!1:V;var J=this,y,l,m,H,F,N;return g.Q(function(x){if(x.j==1){var W=window.google_image_requests;W&&W.length>10&&(window.google_image_requests=W.slice(-10));if(g.R(J.playerState,128))return x.return();if(J.b_.q1())return J.publish("signatureexpired"),x.return();J.mediaElement&&l_h(J.ER);J.PM();(g.R(J.playerState,64)||O)&&J.mA(dQ(J.playerState,8));return J.hU.finished&&J.mediaElement?J.Ka||!J.zN?x.uw(2):x.K(J.zN,3):x.return()}if(x.j!=2&&g.R(J.playerState, 128))return x.return();if(!J.videoData.U)return J.videoData.isLivePlayback&&!g.Ls(J.B.W,!0)?(y="html5.unsupportedlive",l=2):(y=J.videoData.Ji()?"fmt.unplayable":"fmt.noneavailable",l=1),g.en(Error("selectableFormats")),J.Hf(y,l,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),x.return();if(J.R5()&&J.videoData.U.K)return x.return(Bm(J));if(dt(J))W=J.F5,L7(W.videoData)&&!W.isAtLiveHead(W.getCurrentTime())&&W.Mu()&&W.pD.seekTo(Infinity,{yK:"seektimeline_peggedToLive",seekSource:34});else if(L7(J.videoData)&& (m=J.getCurrentTime()H;if(!F||!H){l&&F&&(m=Math.max(m,l));var N;l=Nnr(V,(N=y.K)==null?void 0:N.videoInfos);N=V.pD.getPlaybackRate();N>1&&l&&(N=XTY(V.B.W,y.K.videoInfos,N),O.K!==0&&N=480;if(V.L("html5_perf_cap_override_sticky")){x=V.U;V=V.L("html5_perserve_av1_perf_cap");V=V===void 0?!1:V;if(V===void 0?0:V){W=ne();O=g.n(Object.keys(W));for(m=O.next();!m.done;m=O.next())m=m.value,m.indexOf("1")!==0&&delete W[m];g.oH("yt-player-performance-cap",W,2592E3)}else g.wE("yt-player-performance-cap");gpo(V);if(V){V=g.n(Cs.keys());for(W=V.next();!W.done;W=V.next())W=W.value,W.startsWith("1")|| Cs.delete(W);V=g.n(Cg.values());for(W=V.next();!W.done;W=V.next())W=W.value,W.startsWith("1")||Cg.delete(W);V=g.n(x.keys());for(W=V.next();!W.done;W=V.next())W=W.value,W.startsWith("1")||x.delete(W)}else Cs.clear(),Cg.clear(),x.clear()}}}}this.loader&&(V=this.loader,J=J||"",V.policy.K?Yl(V.W.K,J):Yl(V.K.W,J));this.xQ()}; g.T.getUserPlaybackQualityPreference=function(){return this.videoData.U&&!this.videoData.U.K?iV(this.videoData.PH):rl[Mi()]}; g.T.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.T.setUserAudio51Preference=function(O,V){this.getUserAudio51Preference()!==O&&(this.jB("toggle51",{pref:O}),g.oH("yt-player-audio51",O,V?31536E3:2592E3),this.zg())}; g.T.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.T.setProximaLatencyPreference=function(O){var V=this.getProximaLatencyPreference();this.jB("proxima",{pref:O});g.oH("yt-player-proxima-pref",O,31536E3);V!==O&&(O=this.F5,O.eB=!0,O.pD.seekTo(Infinity,{yK:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.T.getProximaLatencyPreference=function(){var O;return(O=Le())!=null?O:0}; g.T.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.T.iT=function(){this.videoData.videoId?this.QK.iT(this.videoData):this.jB("povid",{})}; g.T.LZ=function(){this.videoData.videoId?this.QK.LZ(this.videoData):this.jB("piavid",{})}; g.T.xQ=function(){if(!this.GL()&&!g.R(this.playerState,128)&&this.videoData.U){if(this.videoData.U.K)AH(this);else{var O=Vo(this),V=this.videoData;a:{var J=this.videoData.eB;if(O.K){for(var y=g.n(J),l=y.next();!l.done;l=y.next()){l=l.value;var m=l.getInfo(),H=g.g3[m.video.quality];if((!O.U||m.video.quality!=="auto")&&H<=O.K){J=l;break a}}J=J[J.length-1]}else J=J[0]}V.dW=J;LPh(this,O.reason,kY7(this,this.videoData.dW))}if(this.L("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.F5.qX= !1,this.playVideo()}}; g.T.FW=function(O,V){if(this.GL()||g.R(this.playerState,128))return!1;var J,y=!((J=this.videoData.U)==null||!J.K);J=y&&V?this.getCurrentTime()-this.HY():NaN;if(O.wC&&O.wC.id){var l=this.ER;if(l.qoe){l=l.qoe;var m=[O.wC.id,isNaN(J)?"m":"t"];g.gM(l,g.KC(l.provider),"afi",m)}}if(y)return V&&(y=t7d(this.F5),this.jB("aswh",{id:O.id,xtags:O.xtags,bh:y.toFixed(3)})),this.loader.setAudioTrack(O,J,V),!0;if(XW7(this)){a:{V=this.mediaElement.audioTracks();y=!1;for(J=0;Jm.SB.getDuration()&&iC5(m,H)):iC5(m,x);var W=m.loader,U=m.SB;F=F===void 0?!1:F;N=N===void 0?!1:N;W.policy.LD&&(W.policy.yz&&W.jB("loader",{setsmb:0}),W.Yb(),W.policy.LD=!1);Is5(W,N);if(!eC(U)){var Z=eK(W.videoTrack),z=eK(W.audioTrack),c=(Z?Z.info.vE:W.videoTrack.vE).info, Y=(z?z.info.vE:W.audioTrack.vE).info,b=W.policy.PX,M=c.mimeType+(b===void 0?"":b),w=Y.mimeType,L=c.al,X=Y.al,u;U.KD=(u=U.SB)==null?void 0:u.addSourceBuffer(w);var G;U.lw=M.split(";")[0]==="fakesb"?void 0:(G=U.SB)==null?void 0:G.addSourceBuffer(M);U.WK&&(U.WK.webkitSourceAddId("0",w),U.WK.webkitSourceAddId("1",M));var k=new Ws(U.KD,U.WK,"0",GR(w),X,!1),D=new Ws(U.lw,U.WK,"1",GR(M),L,!0);j0X(U,k,D)}Z=F;z=N;Z=Z===void 0?!1:Z;z=z===void 0?!1:z;Je(W.videoTrack,U.j||null,z);Je(W.audioTrack,U.K||null,z); W.SB=U;W.SB.D=!0;Z||W.resume();U.K.u3(W.E5,W);U.j.u3(W.E5,W);try{W.e7()}catch(Oo){g.sk(Oo)}m.publish("mediasourceattached")}}catch(Oo){g.en(Oo),m.handleError(new g.DO("fmt.unplayable",{msi:"1",ename:Oo&&typeof Oo==="object"&&"name"in Oo?String(Oo.name):void 0,trg:"setmediasrc"},1))}} var m=this;V=V===void 0?!1:V;J=J===void 0?!1:J;rQV(this,y===void 0?!1:y);this.SB=O;this.OY()&&Iw(this.SB)==="open"?l(this.SB):HJh(this.SB,l)}; g.T.Ch=function(O){this.hf.set(O.initData,O);this.NG&&(this.NG.Ch(O),this.L("html5_eme_loader_sync")||this.hf.remove(O.initData))}; g.T.pW=function(O){this.videoData.Zo=g.th("auto",O,!1,"u");AH(this)}; g.T.ye=function(O){var V=O.reason,J=O.K.info,y=O.source,l=O.token,m=this.ER,H=this.videoData;if(J!==H.D){var F=!H.D;H.D=J;var N=V==="m"||V==="t";N||(V=F?"i":"a");this.B.experiments.Jv("html5_refactor_sabr_audio_format_selection_logging")?this.K3=new jBr(J,V,"",y,l):(V=new jBr(J,V,"",y,l),m.qoe&&(m=m.qoe,J=g.KC(m.provider),Cgn(m,J,V)));this.publish("internalaudioformatchange",H,!F&&N)}this.eE();this.F5.ye(O.K.index)}; g.T.cR=function(O){this.publish("localmediachange",O)}; g.T.JI=function(O){O=O===void 0?{}:O;var V;(V=this.loader)==null||V.JI(this.B,hz(this.videoData),O)}; g.T.q1=function(){return this.b_.q1()}; g.T.wx=function(O){this.Kv(new g.DO("staleconfig",{reason:O}))}; g.T.handleError=function(O){this.b_.handleError(O)}; g.T.eU=function(){return this.b_.eU()}; g.T.O3=function(O){this.F5.O3(O)}; g.T.V1=function(O,V){O=O===void 0?!1:O;V=V===void 0?!1:V;var J=this,y,l,m;return g.Q(function(H){if(H.j==1){J.loader&&J.loader.VR();J.loader&&J.loader.GL()&&Sp(J);if(J.L("html5_enable_vp9_fairplay")&&J.Ji()&&(y=J.videoData.K)!=null)for(var F in y.K)y.K.hasOwnProperty(F)&&(y.K[F].K=null,y.K[F].U=!1);J.mA(dQ(J.playerState,2048));J.publish("newelementrequired");return O?H.K(Bm(J),2):H.uw(2)}J.videoData.Gy()&&((l=J.loader)==null?0:l.O5)&&!dt(J)&&((m=J.isAtLiveHead())&&L7(J.videoData)?J.seekTo(Infinity, {yK:"videoPlayer_getNewElement"}):J.videoData.FR&&J.loader&&(F=J.loader,F.xi.Gy&&(F.xi.FR||F.xi.S||F.xi.isPremiere?(F.seek(0,{yK:"loader_resetSqless"}),F.videoTrack.V=!0,F.audioTrack.V=!0,F.videoTrack.D=!0,F.audioTrack.D=!0):$A(F.xi)&&di(F))));V&&J.seekTo(0,{seekSource:105});g.R(J.playerState,8)&&J.playVideo();H.V()})}; g.T.C5=function(O){this.jB("hgte",{ne:+O});this.videoData.S=!1;O&&this.V1();this.loader&&eS7(this.loader)}; g.T.pT=function(O){this.jB("newelem",{r:O});this.V1()}; g.T.pauseVideo=function(O){O=O===void 0?!1:O;if((g.R(this.playerState,64)||g.R(this.playerState,2))&&!O)if(g.R(this.playerState,8))this.mA(q8(this.playerState,4,8));else if(this.hW())Pm(this);else return;g.R(this.playerState,128)||(O?this.mA(dQ(this.playerState,256)):this.mA(q8(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.BL(this.videoData)&&this.loader&&Jw(this,!1)}; g.T.stopVideo=function(){this.pauseVideo();this.loader&&(Jw(this,!1),this.loader.Yb())}; g.T.xT=function(O,V){O=O===void 0?!1:O;V=V===void 0?!1:V;if(this.OY()&&V){var J;(J=this.mediaElement)==null||J.xT()}else{var y;(y=this.mediaElement)==null||y.stopVideo()}yo(this);Sp(this);g.R(this.playerState,128)||(O?this.mA(gQ(gQ(dQ(this.playerState,4),8),16)):this.mA(E4(this.playerState)));this.videoData.videoId&&this.B.ol.remove(this.videoData.videoId)}; g.T.seekTo=function(O,V){V=V===void 0?{}:V;g.R(this.playerState,2)&&Pm(this);V.ZhD&&this.mA(dQ(this.playerState,2048));if((V.seekSource===58||V.seekSource===60)&&this.L("html5_update_vss_during_gapless_seeking")){var J=this.ER;J.K&&(J=J.K,V.seekSource===58?J.K.update():J.D&&(zB(J),TB(J).send(),J.j=NaN))}this.F5.seekTo(O,V);this.BC.sync()}; g.T.ZJ=function(O){this.rC.D.j=(0,g.cH)();g.R(this.playerState,32)||(this.mA(dQ(this.playerState,32,O==null?void 0:O.seekSource)),g.R(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.VK()}; g.T.xN=function(O){O=O==null?void 0:O.seekSource;g.R(this.playerState,32)?(this.mA(q8(this.playerState,16,32,O)),this.publish("endseeking")):g.R(this.playerState,2)||this.mA(dQ(this.playerState,16,O));O=this.rC.D;var V=this.videoData,J=this.playerState.isPaused();if(V.clientPlaybackNonce&&!isNaN(O.K)){if(Math.random()<.01){J=J?"pbp":"pbs";var y={startTime:O.K};V.V&&(y.cttAuthInfo={token:V.V,videoId:V.videoId});e4("seek",y);g.TJ({clientPlaybackNonce:V.clientPlaybackNonce},"seek");isNaN(O.j)||sB("pl_ss", O.j,"seek");sB(J,(0,g.cH)(),"seek")}O.reset()}}; g.T.bF=function(O){this.xN(O)}; g.T.T1=function(){this.publish("SEEK_COMPLETE")}; g.T.I1=function(O){var V=this.QK,J=this.videoData.clientPlaybackNonce,y=this.playerType;if(O.scope===4){var l=O.type;if(l){var m=V.RB(),H=m.getVideoData().clientPlaybackNonce;y===1&&(H=J);if(y=yvd(V,H)){if(J=y.getVideoData())O.writePolicy===2&&J.sabrContextUpdates.has(l)||(O.sendByDefault&&J.ol.add(l),J.sabrContextUpdates.set(l,O)),V.L("html5_enable_t1_enf_on_sabr")&&(O=l===5,l=xMV(J.playerResponse),O?(O=l?1:0,Se(O,"m.p_",{}),KV("MBSTAT",O)):O=1,O===0&&V.cE.MX("onAbnormalityDetected"))}else m.jB("scuset", {ncpf:"1",ccpn:H,crcpn:J})}else g.en(Error("b/380308491: contextUpdateType is undefined"))}}; g.T.PT=function(){if(this.playerType===2)return this.QK.PT("")}; g.T.getCurrentTime=function(O){return this.F5.getCurrentTime(O===void 0?!1:O)}; g.T.ym=function(){return this.F5.ym()}; g.T.Yp=function(){return this.F5.Yp()}; g.T.bx=function(){return this.Yp()}; g.T.g0=function(){return this.F5.g0()}; g.T.getPlaylistSequenceForTime=function(O){return this.videoData.getPlaylistSequenceForTime(O-this.HY())}; g.T.Hc=function(){var O=NaN;this.mediaElement&&(O=this.mediaElement.Hc());return O>=0?O:this.getCurrentTime()}; g.T.dN=function(){var O;return((O=this.videoData.K)==null?0:O.dN)?this.videoData.K.dN(this.getCurrentTime()-this.HY()):this.mediaElement&&(O=this.mediaElement.k_())&&(O=O.getTime(),!isNaN(O))?O/1E3+this.getCurrentTime():NaN}; g.T.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.HY():this.aX()?this.aX():0}; g.T.u7=function(){var O=new CWr;if(this.loader){var V=this.Ax,J=this.B.Sq();J=J===void 0?!1:J;O.Vo=V.fD;O.OJ=V.E5;O.bandwidthEstimate=mD(V);if(J){J=(V.T.cC()*1E3).toFixed();var y=(V.dW.cC()*1E3).toFixed(),l=yR(V).toFixed(2),m=((V.S.cC()||0)*1E9).toFixed(2),H=V.U.cC().toFixed(0),F=V.Vz.cC().toFixed(0),N=V.qX.percentile(.5).toFixed(2),x=V.qX.percentile(.92).toFixed(2),W=V.qX.percentile(.96).toFixed(2),U=V.qX.percentile(.98).toFixed(2);V.K?V.K.reset():V.K=new YX;V.K.add(V.O5);V.K.add(V.interruptions.length); for(var Z=0,z=V.interruptions.length-1;z>=0;z--){var c=V.interruptions[z];V.K.add(c-Z);Z=c}Z=0;for(z=V.D.length-1;z>=0;z--){c=V.D[z];var Y=c.stamp/36E5;V.K.add(Y-Z);Z=Y;V.K.add(c.net/1E3);V.K.add(c.max)}V=V.K.dH();O.K={ttr:J,ttm:y,d:l,st:m,bw:H,abw:F,v50:N,v92:x,v96:W,v98:U,"int":V}}V=this.loader;V.SB&&V.SB.D&&!V.SB.Qu()&&(O.l5=xx(V.videoTrack),O.j=xx(V.audioTrack),V.policy.U&&(J=Fg(V.videoTrack),y=Fg(V.audioTrack),l=yr(V.SB.j.hL(),"_",5),m=yr(V.SB.K.hL(),"_",5),Object.assign(O.K,{lvq:J,laq:y,lvb:l, lab:m})));O.bandwidthEstimate=lv(V.qX);var b;(b=V.audioTrack.T)==null||b.flush();var M;(M=V.videoTrack.T)==null||M.flush()}else this.mediaElement&&(O.l5=wQ(this.mediaElement));O.Vo=this.Vo;O.OJ=this.OJ;O.U=this.isAtLiveHead()&&this.isPlaying()?Itl(this):NaN;b=this.F5;b=b.K?oR(b.K):0;O.D=b;return O}; g.T.rr=function(O,V){this.OJ+=O;this.Vo+=V}; g.T.Id=function(){return this.mediaElement?g.BL(this.videoData)?1:PL(this.videoData)?this.isAtLiveHead()||this.Mu()?1:this.F5.Id():this.mediaElement.Id():0}; g.T.JZ=function(){var O=this.TH,V=Kg(O,"bandwidth"),J=Kg(O,"bufferhealth"),y=Kg(O,"livelatency"),l=Kg(O,"networkactivity"),m=GB(O,"bandwidth"),H=GB(O,"bufferhealth"),F=GB(O,"livelatency");O=GB(O,"networkactivity");var N=this.rh(),x=N.droppedVideoFrames;N=N.totalVideoFrames;var W=this.getCurrentTime();if(this.NG){var U="IT/"+(this.NG.K.getInfo()+"/"+iV(this.cQ()));U+="/"+this.NG.getInfo()}else U="";var Z=this.isGapless(),z=this.qE(),c=this.jp(),Y=g.OX(this),b=this.getPlayerState().state.toString(16), M=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var w=0;var L="";if(this.Qc){if(this.Qc.sb){L="D,";break a}w=this.Qc.rL;L=this.Qc.JO.substring(0,4)}w>0?(w="AD"+w+", ",L&&(w+=L+", "),L=w):L=""}return{Pw:m,qJ:H,currentTime:W,Sd:U,droppedVideoFrames:x,isGapless:Z,qE:z,Gv:c,ao:V,tY:J,Bp:y,hY:l,j_:F,nO:O,SO:Y,J2:b,s2:M,nx:L,totalVideoFrames:N}}; g.T.qI=function(O){var V={};if(O===void 0?0:O){Object.assign(V,this.ER.qI());this.mediaElement&&(Object.assign(V,this.mediaElement.qI()),O=this.rh(),V.dvf=O.droppedVideoFrames,V.tvf=O.totalVideoFrames);this.loader&&Object.assign(V,this.loader.qI());this.NG&&(V.drm=JSON.stringify(this.NG.qI()));V.state=this.playerState.state.toString(16);g.R(this.playerState,128)&&(V.debug_error=JSON.stringify(this.playerState.o5));this.aW()&&(V.prerolls=this.sI.join(","));this.videoData.r5&&(V.ismb=this.videoData.r5); 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.QK.isOrchestrationLeader()&&(V.leader=1);this.videoData.isLivePlayback&& (this.videoData.K&&JT(this.videoData.K)&&(V.segduration=JT(this.videoData.K)),O=this.F5,V.lat=O.T?bLd(O.T.D):0,V.liveutcstart=this.videoData.liveUtcStartSeconds);V.relative_loudness=this.videoData.ze.toFixed(3);if(O=g.OX(this))V.optimal_format=O.video.qualityLabel;V.user_qual=Mi();V.release_version=C[72]}V.debug_videoId=this.videoData.videoId;return V}; g.T.addCueRange=function(O){this.tB([O])}; g.T.removeCueRange=function(O){this.BC.HX([O])}; g.T.cO=function(){var O=this.BC;if(O.pD.Y().L("html5_sort_cueranges_on_update")&&!(O.G2().length<=0||O.GL())){var V=O.K;V.array.sort(V.K)}O.sync()}; g.T.Ly=function(O,V){return this.BC.Ly(O,V)}; g.T.tB=function(O,V){this.BC.aG(O,V)}; g.T.qr=function(O){this.BC.HX(O)}; g.T.G2=function(){return this.BC.G2()||[]}; g.T.cj=function(){return this.Oe}; g.T.R5=function(){return this.visibility.R5()}; g.T.ZQ=function(){this.mediaElement&&this.mediaElement.ZQ()}; g.T.mqi=function(){kB(this)}; g.T.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.T.vM=function(){g.fz(this.nZ)}; g.T.jun=function(){this.VK();this.publish("onLoadProgress",this.Id())}; g.T.yE=function(O){var V=O.target.sY();if(this.mediaElement&&this.mediaElement.sY()&&this.mediaElement.sY()===V){lRp(this,O.type);switch(O.type){case "error":var J=Lr(this.mediaElement)||"",y=this.mediaElement.Mf();if(J==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.jB("capchg",{msg:y}),this.V1(!0)):Bm(this);return}if(this.mediaElement.hasError()&&DRh(this.b_,J,{msg:y,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.qU()===4){this.xT();DR(this,"unplayable"); return}break;case "durationchange":J=this.mediaElement.getDuration();isFinite(J)&&(!this.SB||J>0)&&J!==1&&this.vH(J);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());J=this.BC;J.started=!0;J.sync();this.ER.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.gC().K.s5(inz)||this.L("html5_prevent_mobile_background_play_on_event_shared"))&&rt(this,!1);$Jr(this);this.publish("onLoadedMetadata");Plr(this);J=this.dN();this.videoData.HZ&& (this.videoData.HZ=J);break;case "loadstart":Plr(this);break;case "progress":case "suspend":this.A2.F1();break;case "seeked":(J=this.loader)!=null&&J.policy.j&&J.xM&&(J.jB("sdai",{skipAdSked:"1"}),J.xM=!1);break;case "playing":(this.gC().K.s5(inz)||this.L("html5_prevent_mobile_background_play_on_event_shared"))&&rt(this,!1);this.rC.du("plev");this.vU&&!dt(this)&&(this.vU=!1,this.isAtLiveHead()||this.seekTo(Infinity,{yK:"videoplayer_onPlaying"}));break;case "timeupdate":(this.gC().K.s5(inz)||this.L("html5_prevent_mobile_background_play_on_event_shared"))&& rt(this,!1);J=this.mediaElement&&!this.mediaElement.getCurrentTime();y=this.mediaElement&&this.mediaElement.g8()===0;if(J&&(!this.AS||y))return;this.AS=this.AS||!!this.mediaElement.getCurrentTime();BMh(this);this.VK();if(!this.mediaElement||this.mediaElement.sY()!==V)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.Iq().length>0&&this.mediaElement.pE().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return; break;case "resize":$Jr(this);this.videoData.j&&this.videoData.j.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Sf&&g.R(this.playerState,8)&&!g.R(this.playerState,1024)&&this.getCurrentTime()===0&&g.CH){DR(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.sY()===V){OCH(this.F5,O);this.publish("videoelementevent",O);V=this.playerState;y=this.D5;var l=this.mediaElement;J=this.videoData.clientPlaybackNonce; if(!g.R(V,128)){var m=V.state;l=l?l:O.target;var H=l.getCurrentTime();if(!g.R(V,64)||O.type!=="ended"&&O.type!=="pause"){var F=l.getDuration();F=l.isEnded()||H>1&&Math.abs(H-F)<1.1;var N=O.type==="pause"&&l.isEnded();H=O.type==="ended"||O.type==="waiting"||O.type==="timeupdate"&&!g.R(V,4)&&!bh(y,H);if(N||F&&H)l.Pj()>0&&l.sY()&&(m=14);else switch(O.type){case "error":Lr(l)&&(m|=128);break;case "pause":g.R(V,256)?(m^=256)||(m=64):g.R(V,32)||g.R(V,2)||g.R(V,4)||(m=4,g.R(V,1)&&g.R(V,8)&&(m|=1));break; case "playing":H=m;m=(m|8)&-1093;H&4?(m|=1,XU(y,l,!0)):bh(y,l.getCurrentTime())&&(m&=-2);g.R(V,1)&&XU(y,l)&&(m|=1);break;case "seeking":m|=16;g.R(V,8)&&(m|=1);m&=-3;break;case "seeked":m&=-17;XU(y,l,!0);break;case "waiting":g.R(V,2)||(m|=1);XU(y,l);break;case "timeupdate":H=g.R(V,16),F=g.R(V,4),(g.R(V,8)||H)&&!F&&bh(y,l.getCurrentTime())&&(m=8),XU(y,l)&&(m|=1)}}y=m;m=null;y&128&&(m=O.target,l=Lr(m),H=1,l?(l==="capability.changed"&&(H=2),F="GENERIC_WITHOUT_LINK",N=m.qI(),N.mediaElem="1",N.trg="melem", /AUDIO_RENDERER/.test(m.Mf())&&(F="HTML5_AUDIO_RENDERER_ERROR"),m={errorCode:l,errorMessage:g.Ql[F]||"",d7:F,i6:SP(N),vj:H,cpn:V.o5?V.o5.cpn:""}):m=null,m&&(m.cpn=J));V=E4(V,y,m)}!g.R(this.playerState,1)&&g.R(V,1)&&yH5(this,"evt"+O.type);this.mA(V)}}}; g.T.qAD=function(O){O=O.K.availability==="available";O!==this.Oe&&(this.Oe=O,this.publish("airplayavailabilitychange"))}; g.T.KAX=function(){var O=(0,g.cH)(),V=this.mediaElement.R5();this.jB("airplay",{ia:V});!V&&!isNaN(this.Q3)&&O-this.Q3<2E3||(this.Q3=O,V!==this.R5()&&(O=this.visibility,O.K!==V&&(O.K=V,O.D_()),this.jB("airplay",{rbld:V}),this.zg()),this.publish("airplayactivechange"))}; g.T.ZL=function(O){if(this.loader){var V=this.loader,J=V.U,y=V.getCurrentTime(),l=Date.now()-J.T;J.T=NaN;J.jB("sdai",{adfetchdone:O,d:l});O&&!isNaN(J.V)&&J.j!==3&&N5(J.loader,y,J.V,J.W);J.policy.j?J.U=NaN:J.D=NaN;FF(J,4,J.j===3?"adfps":"adf");bl(V)}}; g.T.GN=function(){g.xg(this.KF);this.UO.stop();this.videoData.T=!0;this.B.ZG=!0;this.B.Xs=0;var O=this.b_;if(O.videoData.j){var V=O.WE.W,J=O.videoData.j.al;V.U.has(J)&&(V.U.delete(J),V.K=!0)}O.K.stop();O.WE.h0=0;this.Xr();g.R(this.playerState,8)&&this.mA(gQ(this.playerState,65));this.eQ=!1;this.ER.K4();g.uL(this.j1);this.publish("playbackstarted");(O=g.cn("yt.scheduler.instance.clearPriorityThreshold"))?O():BC(0)}; g.T.Xr=function(){var O=this.QK.hC(),V={},J={};!Ic("pbs",this.rC.timerName)&&H7.measure&&H7.getEntriesByName&&(H7.getEntriesByName("mark_nr")[0]?tAp("mark_nr"):tAp());O.videoId&&(V.videoId=O.videoId);O.clientPlaybackNonce&&!this.L("web_player_early_cpn")&&(V.clientPlaybackNonce=O.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(J.isPausedOnLoad=!0);J.itag=O.j?Number(O.j.itag):-1;O.zK&&(J.preloadType=String(this.D9?2:1));V.liveStreamMode=sGI[ub(O)];V.playerInfo=J;this.rC.infoGel(V); if(this.loader){O=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(O.U&&(V=window.performance.getEntriesByName(O.U),V.length&&(V=V[0],O.tick("vri",V.fetchStart),O.tick("vdns",V.domainLookupEnd),O.tick("vreq",V.requestStart),O.tick("vrc",V.responseEnd))),O.j&&(V=window.performance.getEntriesByName(O.j),V.length&&(V=V[0],O.tick("ari",V.fetchStart),O.tick("adns",V.domainLookupEnd),O.tick("areq",V.requestStart),O.tick("arc",V.responseEnd))));O=O.ticks;for(var y in O)O.hasOwnProperty(y)&& this.rC.tick(y,O[y])}}; g.T.VK=function(O){var V=this;O=O===void 0?!1:O;if(this.mediaElement&&this.videoData){ugH(this.F5,this.isPlaying());var J=this.getCurrentTime();if(this.loader&&(g.R(this.playerState,4)&&g.BL(this.videoData)||g.R(this.playerState,32)&&tO(this.videoData)||Q3U(this.loader,J),this.L("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-BW(this.loader))>10)){var y;this.jB("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(y=this.loader)==null?void 0:BW(y)},!0)}J>5&&(this.F5.U=J); (y=g.RH())?g.E7.pK(this.YR):g.Nz(this.YR);var l=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!l||ce(this.videoData))&&!g.R(this.playerState,128)){var m=function(){if(V.mediaElement&&!g.R(V.playerState,128)){V.B.Sq()&&lRp(V,"pfx");var H=V.getCurrentTime();V.L("html5_buffer_underrun_transition_fix")&&(H-=V.HY());var F=wQ(V.mediaElement),N=g.R(V.playerState,8),x=bh(V.D5,H),W=cg1(V.D5,H,(0,g.cH)(),F);N&&x?V.mA(gQ(V.playerState,1)):N&&W?(N=V.getDuration(),x=L7(V.videoData),N&&Math.abs(N- H)<1.1?(V.jB("setended",{ct:H,bh:F,dur:N,live:x}),V.mediaElement.RT()?V.seekTo(0,{yK:"videoplayer_loop",seekSource:37}):V.KI()):(V.playerState.isBuffering()||yH5(V,"progress_fix"),V.mA(dQ(V.playerState,1)))):(N&&!x&&!W&&H>0&&(N=(Date.now()-V.hn)/1E3,x=V.getDuration(),H>x-1&&V.jB("misspg",{t:H.toFixed(2),d:x.toFixed(2),r:N.toFixed(2),bh:F.toFixed(2)})),V.playerState.isPaused()&&V.playerState.isBuffering()&&wQ(V.mediaElement)>5&&V.mA(gQ(V.playerState,1)));V.VK()}}; this.mediaElement.Iq().length===0?this.YR=y?g.E7.nf(m,100):g.CW(m,100):this.YR=y?g.E7.nf(m,500):g.CW(m,500)}this.videoData.oB=J;!O&&this.isPlaying()&&SqH(this);eaV(this.Kw,this.Ka,this.HB(),this.isBackground())&&AH(this);this.publish("progresssync",O);l&&ce(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.T.RK5=function(){this.Hf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.T.jp=function(){return this.ER.jp()}; g.T.S$=function(){return this.loader?this.loader.S$():mD(this.Ax,!0)}; g.T.mA=function(O){if(!g.Qr(this.playerState,O)){var V=new g.OK(O,this.playerState);this.playerState=O;mJr(this);var J=!this.l6.length;this.l6.push(V);var y=this.mediaElement&&this.mediaElement.isSeeking();g.Jg(V,1)&&this.loader&&Tsn(this.loader);y=V.oldState.state===8&&!y;if(g.Jg(V,1)&&y&&g.R(this.playerState,8)&&!g.R(this.playerState,64)&&this.loader){y=this.loader;y.w5=!0;if(y.policy.WB&&y.SB){var l,m,H,F;y.jB("lr_rb",{c:y.getCurrentTime(),s:y.isSeeking(),ab:yr(y.SB.K.hL()),ala:(l=yO(y.audioTrack))== null?void 0:l.rX(),alr:(m=y.audioTrack.K)==null?void 0:m.rX(),vb:yr(y.SB.j.hL()),vla:(H=yO(y.videoTrack))==null?void 0:H.rX(),vlr:(F=y.videoTrack.K)==null?void 0:F.rX()})}y.Dm!==0&&y.jB("sps_rebuffer",{c:y.getCurrentTime()});this.mediaElement&&wQ(this.mediaElement)>=5&&(l=this.Kw,m=this.Ka,!m.videoData.j||l.L("html5_disable_performance_downgrade")?l=!1:(Date.now()-l.S>6E4&&(l.j=0),l.j++,l.S=Date.now(),l.j!==4?l=!1:(sBX(l,m.videoData.j),l=!0)),l&&AH(this))}(l=g.Ry(this.B.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.R(O,1)&&(g.R(O,8)||g.R(O,16))?this.JN.start(l):this.JN.stop();(Vk(V,8)<0||g.Jg(V,1024))&&this.UO.stop();!g.Jg(V,8)||this.videoData.T||g.R(V.state,1024)||this.UO.start();g.R(V.state,8)&&Vk(V,16)<0&&!g.R(V.state,32)&&!g.R(V.state,2)&&this.playVideo();g.R(V.state,2)&&PL(this.videoData)&&(this.vH(this.getCurrentTime()),this.VK(!0));g.Jg(V,2)&&(this.N3(!0),this.B.Sq()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&tO(this.videoData)&&this.videoData.K&&(O={minst:""+ this.videoData.K.EF,cminst:""+(this.videoData.K.TK()+this.HY()),maxst:""+this.videoData.K.rV,hts:""+this.videoData.K.fD,cmaxst:""+(this.videoData.K.aX()+this.HY())},this.jB("sabrSeekableBoundaries",O)));g.Jg(V,128)&&this.xT();this.videoData.K&&this.videoData.isLivePlayback&&!this.A8&&(Vk(V,8)<0?(O=this.videoData.K,O.D&&O.D.stop()):g.Jg(V,8)&&this.videoData.K.resume());O=this.F5;g.uL(O.KD.W);if(O.mediaElement)if(V.oldState.state===8&&GM(V.state)&&V.state.isBuffering()){var N=O.mediaElement.getCurrentTime(); l=O.mediaElement.pE();m=O.L("manifestless_post_live_ufph")||O.L("manifestless_post_live")?l7(l,Math.max(N-3.5,0)):l7(l,N-3.5);m>=0&&N>l.end(m)-1.1&&m+10?(RR(O.pD,O.getCurrentTime()+O.videoData.limitedPlaybackDurationInSeconds), O.zL=!0):O.videoData.isLivePlayback&&O.videoData.endSeconds>0&&(RR(O.pD,O.getCurrentTime()+O.videoData.endSeconds),O.zL=!0));N=this.ER;if(g.Jg(V,1024)||g.Jg(V,512)||g.Jg(V,4))N.j&&(O=N.j,O.j>=0||(O.K=-1,O.delay.stop())),N.qoe&&(O=N.qoe,O.S||(O.U=-1));if(N.provider.videoData.enableServerStitchedDai&&N.hg){var x;(x=N.U.get(N.hg))==null||D5V(x,V)}else N.K&&D5V(N.K,V);N.qoe&&(x=N.qoe,O=V.state,l=g.KC(x.provider),m=x.getPlayerState(O),H=O.seekSource||void 0,m!==x.Pf&&(x.fD||l=10&&x.playTimeSecs<=180&&(x.K.set("qoealert",["1"]),x.eB=!0)),m!=="B"||x.Pf!=="PL"&&x.Pf!=="PB"||(x.isBuffering=!0),x.j=l),x.Pf==="PL"&&(m==="B"||m==="S")||x.provider.B.Sq()?ul(x,l):(x.Ks||m!=="PL"||(x.Ks=!0,tQ(x,l,x.provider.pD.u7())),GY(x,l)),m==="PL"&&g.uL(x.dX),F=[m],m==="S"&&H&&F.push("ss."+H),g.gM(x,l,"vps",F),x.Pf=m,x.KD=l,x.j=l,x.D=!0),m=O.o5,g.R(O,128)&&m&&(m.i6=m.i6||"",V9r(x,l,m.errorCode, m.vj,m.i6)),(g.R(O,2)||g.R(O,128))&&x.reportStats(l),O.isPlaying()&&!x.S&&(x.U>=0&&x.K.set("user_intent",[x.U.toString()]),x.S=!0),D7l(x));N.j&&(x=N.j,fTn(x),x.playerState=V.state,x.j>=0&&g.Jg(V,16)&&x.seekCount++,V.state.isError()&&x.send());if(J&&!this.GL())try{for(var W=g.n(this.l6),U=W.next();!U.done;U=W.next()){var Z=U.value,z=this.BC;if(z.started&&(z.sync(),g.R(Z.oldState,16))){V=z;var c=Ue7(V.K,Math.max(V.U-2E3,0));!isNaN(c)&&c<0x7ffffffffffff&&V.D.start()}this.publish("statechange",Z)}}finally{this.l6.length= 0}}}; g.T.MZ=function(){this.rC.tick("qoes")}; g.T.g7=function(){this.F5.g7()}; g.T.IY=function(O,V,J,y){a:{var l=this.b_;y=y===void 0?"LICENSE":y;J=J.substring(0,256);var m=OS(V);O==="drm.keyerror"&&this.NG&&this.NG.j.keys.length>1&&l.D<96&&(O="drm.sessionlimitexhausted",m=!1);var H=l.WE.experiments.Jv("html5_retry_on_drm_unavailable"),F=l.WE.experiments.Jv("html5_retry_on_drm_key_error"),N=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(H&&O==="drm.unavailable"||F&&O==="drm.keyerror"&&!J.match(N))l.Kv("qoe.restart",{retryOnDrmError:1,e:O,detail:J}),l.pD.V1(!0);else{if(m)if(l.videoData.j&& l.videoData.j.video.isHdr())H4n(l,O);else{if(l.pD.Hf(O,V,y,J),PvH(l,{detail:J}))break a}else l.Kv(O,{detail:J});O==="drm.sessionlimitexhausted"&&(l.jB("retrydrm",{sessionLimitExhausted:1}),l.D++,JH5(l.pD))}}}; g.T.t7n=function(){var O=this,V=g.Ry(this.B.experiments,"html5_license_constraint_delay"),J=S8();V&&J?(V=new g.t_(function(){O.xQ();kB(O)},V),g.t(this,V),V.start()):(this.xQ(),kB(this))}; g.T.VF=function(O){this.publish("heartbeatparams",O)}; g.T.hj=function(O){this.jB("keystatuses",sOH(O));var V="auto",J=!1;this.videoData.j&&(V=this.videoData.j.video.quality,J=this.videoData.j.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}J&&(V+="HDR")}V=Vm(O)?JH(O,V):O.D.includes(V);if(this.L("html5_enable_vp9_fairplay")){if(J)if(O.S){var y;if((y= this.NG)==null?0:s_(y.K))if((J=this.NG)==null)J=0;else{for(var l=y=void 0,m=g.n(J.j.values()),H=m.next();!H.done;H=m.next())H=H.value,y||(y=ec7(H,"SD")),l||(l=ec7(H,"AUDIO"));J.A4({sd:y,audio:l});J=y==="output-restricted"||l==="output-restricted"}else J=!V;if(J){this.jB("drm",{dshdr:1});H4n(this.b_);return}}else{this.videoData.Mx||(this.videoData.Mx=!0,this.jB("drm",{dphdr:1}),this.V1(!0));return}var F;if((F=this.NG)==null?0:s_(F.K))return}else if(F=O.S&&V,J&&!F){H4n(this.b_);return}V||JH(O,"AUDIO")&& JH(O,"SD")||(O=sOH(O),this.KR?(this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Hf("drm.keyerror",2,void 0,"info."+O)):(this.KR=!0,this.Kv(new g.DO("qoe.restart",Object.assign({},{retrydrm:1},O))),AH(this),JH5(this)))}; g.T.sX5=function(){if(!this.videoData.T&&this.mediaElement&&!this.isBackground()){var O="0";this.mediaElement.g8()>0&&wQ(this.mediaElement)>=5&&this.videoData.U&&this.videoData.U.K&&(this.mA(dQ(this.playerState,1)),yH5(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),O="1");mJr(this);var V=this.videoData.U;O={restartmsg:O,mfmt:!bb(this.videoData),mdrm:!(!(V&&V.videoInfos&&V.videoInfos.length&&V.videoInfos[0].AL)||this.NG),mfmtinfo:!this.videoData.j,prerolls:this.aW()?this.sI.join(","): "0"};if(this.NG){V=this.NG;if(V.j.size<=0){var J="ns;";V.qX||(J+="nr;");V=J+="ql."+V.U.length}else V=sOH(V.j.values().next().value),V=SP(V);O.drmp=V}var y;Object.assign(O,((y=this.loader)==null?void 0:y.qI())||{});var l;Object.assign(O,((l=this.mediaElement)==null?void 0:l.qI())||{});this.ER.Kv("qoe.start15s",SP(O));this.publish("loadsofttimeout")}}; g.T.vH=function(O){this.videoData.lengthSeconds!==O&&(this.videoData.lengthSeconds=O,kB(this))}; g.T.N3=function(O,V){var J=this;O=O===void 0?!1:O;if(!this.qL)if(Ic("att_s","player_att")||ac("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var l,m,H,F,N;return g.Q(function(x){switch(x.j){case 1:if(!(l=O)){x.uw(2);break}return x.K(g.oRn(),3);case 3:l=!x.U;case 2:if(l)return x.return();x.W(4);m=HLo(J.ER);if(!m)throw Error();H={};return x.K(g.hBd((H.cpn=J.videoData.clientPlaybackNonce,H.encryptedVideoId=J.videoData.videoId||"",H),g.Ry(J.B.experiments,"html5_att_playback_timeout_ms")|| 3E4),6);case 6:F=x.U;if(J.qL)throw Error();if(!F.challenge)throw N=F.error?"; error: "+F.error:"",g.en(Error("Not sending atr ping; missing challenge string"+N)),Error();J.qL=!0;var W=[F.challenge];if(F.error){var U=$W1();U=Abd(U).get(F.error)||0;W.push("r1c="+U)}else F.webResponse&&W.push("r1a="+F.webResponse);var Z;((Z=F.adblockReporting)==null?void 0:Z.reportingStatus)!==void 0&&W.push("r6a="+F.adblockReporting.reportingStatus);var z;((z=F.adblockReporting)==null?void 0:z.broadSpectrumDetectionResult)!== void 0&&W.push("r6b="+F.adblockReporting.broadSpectrumDetectionResult);m(W.join("&"));ac("att_f",void 0,"player_att");x.S(0);break;case 4:x.D(),ac("att_e",void 0,"player_att"),x.V()}})})().then(function(){V==null||V()}); else{var y=new g.vp7(this.videoData);if("c1a"in y.Td&&!g.hh.isInitialized()){ac("att_wb",void 0,"player_att");this.K_===2&&Math.random()<.01&&g.en(Error("Botguard not available after 2 attempts"));if(O)return;if(this.K_<5){g.uL(this.lC);this.K_++;return}}(y=g.wEH(y))?(ac("att_f",void 0,"player_att"),$eV(this.ER,y),this.qL=!0):ac("att_e",void 0,"player_att")}}; g.T.U9=function(O){O=O===void 0?!1:O;return L7(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Mu()||g.BL(this.videoData))?this.getCurrentTime():this.aX(O)}; g.T.xo=function(){return this.TK()}; g.T.aX=function(O){return this.F5.aX(O===void 0?!1:O)}; g.T.TK=function(){return this.F5.TK()}; g.T.HY=function(){return this.F5?this.F5.HY():0}; g.T.getStreamTimeOffset=function(){return this.F5?this.F5.getStreamTimeOffset():0}; g.T.Cy=function(){return this.getStreamTimeOffset()===0?this.HY():this.getStreamTimeOffset()}; g.T.setPlaybackRate=function(O){var V;this.playbackRate!==O&&Nnr(this.Kw,(V=this.videoData.U)==null?void 0:V.videoInfos)&&(this.playbackRate=O,AH(this));this.playbackRate=O;this.mediaElement&&this.mediaElement.setPlaybackRate(O)}; g.T.getPlaybackRate=function(){return this.playbackRate}; g.T.getPlaybackQuality=function(){var O="unknown";if(this.videoData.j&&(O=this.videoData.j.video.quality,O==="auto"&&this.mediaElement)){var V=this.P4();V&&V.videoHeight>0&&(O=d3(V.videoWidth,V.videoHeight))}return O}; g.T.isHdr=function(){return!!(this.videoData.j&&this.videoData.j.video&&this.videoData.j.video.isHdr())}; g.T.sendVideoStatsEngageEvent=function(O,V){var J=this.ER;J.K?(J=cm(J.K,"engage"),J.fD=O,J.send(V)):V&&V()}; g.T.KE=function(O){return this.ER.KE(O)}; g.T.isAtLiveHead=function(O,V){V=V===void 0?!1:V;return L7(this.videoData)&&(this.aM||V)?this.F5.isAtLiveHead(O):!1}; g.T.Y1=function(){var O=this.aX(),V=this.getCurrentTime(),J;(J=!L7(this.videoData))||(J=this.F5,J=!(J.K&&J.K.U));return J||this.Mu()||isNaN(O)||isNaN(V)?0:Math.max(0,O-V)}; g.T.cZ=function(O){(this.aM=O)||this.UO.stop();if(this.videoData.K)if(O)this.videoData.K.resume();else{var V=this.videoData.K;V.D&&V.D.stop()}this.loader&&(V=this.videoData.L("html5_disable_preload_for_ssdai_with_preroll")&&this.r6()&&this.videoData.isLivePlayback,O&&!V?this.loader.resume():Jw(this,!0));g.R(this.playerState,2)||O?g.R(this.playerState,512)&&O&&this.mA(gQ(this.playerState,512)):this.mA(dQ(this.playerState,512));V=this.ER;V.qoe&&(V=V.qoe,g.gM(V,g.KC(V.provider),"stream",[O?"A":"I"]))}; g.T.wG=function(O){this.ER.Kv("player.exception",SP({n:O.name,m:O.message}))}; g.T.e4=d5(18);g.T.qK=d5(47);g.T.Zc=function(O){this.ER.Zc(O)}; g.T.Te=function(O){this.ER.Te(O)}; g.T.K1=function(O){this.ER.K1(O)}; g.T.XJ=d5(24);g.T.Sz=d5(30);g.T.At=function(O){this.ER.At(O)}; g.T.tq=function(O,V,J,y){this.ER.tq(O,V,J,y)}; g.T.TI=function(){this.jB("hidden",{},!0)}; g.T.rh=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.T.J7=function(){return this.loader?this.loader.J7():!0}; g.T.setLoop=function(O){this.loop=O;this.mediaElement&&!g.F0(this.B)&&this.mediaElement.setLoop(O)}; g.T.RT=function(){return this.mediaElement&&!g.F0(this.B)?this.mediaElement.RT():this.loop}; g.T.eA=function(O){this.jB("timestamp",{o:O.toString()});this.F5.eA(O)}; g.T.RX=function(O){this.rC.tick(O)}; g.T.Y3=function(O){return this.rC.Y3(O)}; g.T.du=function(O){this.rC.du(O)}; g.T.jB=function(O,V,J){this.ER.jB(O,V,J===void 0?!1:J)}; g.T.nW=function(O,V,J){this.ER.jB(O,V,J===void 0?!1:J)}; g.T.Kv=function(O){this.ER.Kv(O.errorCode,SP(O.details));O=O.errorCode;if(this.videoData.isLivePlayback&&(O==="qoe.longrebuffer"||O==="qoe.slowseek")||O==="qoe.restart"){O=this.loader?Yjh(this.loader.videoTrack):{};var V,J;this.jB("lasoe",Object.assign(this.loader?Yjh(this.loader.audioTrack):{},(V=this.SB)==null?void 0:(J=V.K)==null?void 0:J.Qs()));var y,l;this.jB("lvsoe",Object.assign(O,(y=this.SB)==null?void 0:(l=y.j)==null?void 0:l.Qs()))}if(this.L("html5_log_centralized_player_time")){var m;this.jB("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(m=this.loader)==null?void 0:BW(m)})}}; g.T.z$=function(O,V,J){this.ER.z$(O,V,J)}; g.T.F9=function(O,V,J,y,l,m,H,F){var N;if((N=this.videoData.K)!=null&&N.isLive){var x=V.playerType===2?V:O,W=O.videoData.videoId,U=V.videoData.videoId;if(W&&U){N=this.ER;if(F==null?0:F.Wq){if(N.qoe){W=N.qoe;U=F.Wq;W.reportStats();var Z=W.provider.videoData.clientPlaybackNonce,z=W.provider.videoData.videoId||"",c,Y=((c=W.TD)==null?void 0:c.join("."))||Z,b;c=((b=W.zD)==null?void 0:b.join("."))||z;il(W,m?4:l?2:0,U.mu.join(".")||Z,U.AF.join(".")||z,y);W.reportStats();W.TD=U.mu;W.zD=U.AF;W.hw=U.adFormats; W.D3=U.serializedQoeContextData;il(W,m?5:l?3:1,Y,c,J);W.reportStats()}}else if(N.qoe){b=N.qoe;c=O.cpn;Z=V.cpn;z=x.videoData.Ks;var M=b.provider.videoData.clientPlaybackNonce,w=b.provider.videoData.videoId;Y=Z!==M&&U!==w;M=c!==M&&W!==w;b.reportStats();b.adCpn&&b.adCpn!==c||(b.adCpn=M?c:"",b.JT=M?W:"",b.adFormat=M?z:void 0,il(b,m?4:l?2:0,Z,U,y),b.reportStats(),b.adCpn=Y?Z:"",b.JT=Y?U:"",b.adFormat=Y?z:void 0,il(b,m?5:l?3:1,c,W,J),b.reportStats())}if(F==null?0:F.SI){var L=F.SI;if((y=N.K)!=null){x=y.K.W; var X=y.provider.B.gC().K.s5(tVy)||4E3;x>X&&sH(y,!isNaN(y.j)).send()}var u;(u=N.K)!=null&&xB(u.K);(y=N.K)!=null&&(y=y.K,u=L.serializedStitchedClipLoggingMetadata,y.serializedPlaybackPingContextLoggingData=L.serializedPlaybackPingContextLoggingData,y.serializedStitchedClipLoggingMetadata=u);var G;(G=N.K)!=null&&xB(G.K);var k;(k=N.K)==null||sH(k,!0,!0).send();(N=N.K)!=null&&(N.S=0)}else G=O.cpn,N.U.has(G)?(k=N.U.get(G),TB(k,!0).send(),zB(k),G!==N.provider.videoData.clientPlaybackNonce&&(S1H(k),(X=N.K)== null||AK5(X),N.U.delete(G))):(N.hg=N.provider.videoData.clientPlaybackNonce,N.hg&&N.K&&(N.U.set(N.hg,N.K),TB(N.K).send(),zB(N.K))),G=V.cpn,k=x.videoData,y-=this.Cy(),N.U.has(G)?(L=N.U.get(G),k=L.D&&isNaN(L.W)?ZR(L):NaN,L=sH(L,!1),isNaN(k)||(L.S=k),L.send()):(k=jqh(N,N.provider,k,y),N.U.set(G,k),D5V(k,new g.OK(dQ(new g.nr,8),new g.nr)),k.K4(),(L=N.K)==null||zB(L)),N.hg=G;if(this.L("html5_unify_csi_server_stitched_transition_logging")){if(N=this.rC,k=O.cpn,O=V.cpn,L=this.videoData.clientPlaybackNonce, G=V.videoData,V=(0,g.cH)(),k=(k===L?"video":"ad")+"_to_"+(O===L?"video":"ad"),k!=="video_to_ad"){L=k==="ad_to_video"?void 0:G;y=L==null?void 0:L.jI;u={};if(G==null?0:G.V)u.cttAuthInfo={token:G.V,videoId:G.videoId};H&&(u.startTime=H);e4(k,u);var D,Oo,md;H={targetVideoId:(D=G==null?void 0:G.videoId)!=null?D:"empty_video",targetCpn:O,adVideoId:(Oo=L==null?void 0:L.videoId)!=null?Oo:"empty_video",adClientPlaybackNonce:(md=y==null?void 0:y.cpn)!=null?md:L==null?void 0:L.clientPlaybackNonce};y&&(H.adBreakType= y.adBreakType,H.adType=y.adType);g.TJ(H,k);NX(N,V,k)}}else D=this.rC,N=this.videoData.clientPlaybackNonce,Oo=(0,g.cH)(),md=V.videoData,O=(O.cpn===N?"video":"ad")+"_to_"+(V.cpn===N?"video":"ad"),N={},md.V&&(N.cttAuthInfo={token:md.V,videoId:md.videoId}),H&&(N.startTime=H),e4(O,N),g.TJ({targetVideoId:md.videoId,targetCpn:V.cpn,isSsdai:!0},O),H||NX(D,Oo,O)}}else g.ww(this.logger,360717806,"SSTEvent for nonSS")}; g.T.Qd=function(){var O=this.QK,V=O.d1;O.d1=[];return V}; g.T.ma=function(O){this.videoData.Jw=!0;this.Kv(new g.DO("sabr.fallback",O));this.V1(!0)}; g.T.JA=function(O,V){this.videoData.GT=!0;if(V===void 0||V)this.Kv(new g.DO("qoe.restart",O)),this.V1(!0)}; g.T.Vw=function(O){this.jB("sdai",{aftimeout:O});this.Kv(new g.DO("ad.fetchtimeout",{timeout:O}))}; g.T.gx=function(O,V){this.jB("timelineerror",O);O=new g.DO("dai.timelineerror",O);V?this.Hf("dai.timelineerror",1,"RETRYABLE_ERROR",SP(O.details)):this.Kv(O)}; g.T.Mj=function(){return g.KC(this.ER.provider)}; g.T.getPlayerSize=function(){return this.C0.getPlayerSize()}; g.T.BK=function(){return this.C0.BK()}; g.T.kI=function(){return this.rC}; g.T.Xd=function(){return this.QK.Xd()}; g.T.getVolume=function(){return this.QK.getVolume()}; g.T.YV=function(){return this.QK.YV()}; g.T.isMuted=function(){return this.QK.isMuted()}; g.T.Sa=function(){return this.QK.Sa()}; g.T.aE=function(){this.A8=!0}; g.T.L=function(O){return this.B.L(O)}; g.T.gC=function(){return this.B.gC()}; g.T.u4=function(O,V,J,y,l){this.jB("xvt",{m:O,g:V?1:0,tt:J?1:0,np:y?1:0,c:l})}; g.T.nF=function(){var O;(O=this.loader)==null||O.resume()}; g.T.r6=function(){return g.Kd(this.sI,"ad")}; g.T.WH=function(){var O=this.getCurrentTime(),V=O-this.HY();var J=this.mediaElement?Hs(this.mediaElement.pE()):0;J=Math.floor(Math.max(J-V,0))+100;var y;return((y=this.loader)==null?0:y.WH(V,J))?(this.jB("sdai",{skipad:1,ct:V.toFixed(3),adj:J.toFixed(3)}),tO(this.videoData)&&this.loader.seek(V+J,{seekSource:89,yK:"videoplayer_skipServerStitchedAd"}),JQU(this.F5,O),!0):!1}; g.T.Sq=function(){return this.B.Sq()}; g.T.DQ=function(){if(this.L("html5_generate_content_po_token"))return this.videoData.bH||"";this.QK.VV();return this.B.bl||""}; g.T.Y7=function(){if(this.videoData.videoId)return this.videoData.zQ}; g.T.Ai=function(){return this.videoData.videoId}; g.T.YN=function(){return this.QK.CQ}; g.T.rj=function(){return this.eQ}; g.T.Vi=function(){return this.QK.Vi()}; g.T.lr=function(O,V,J){this.mA(dQ(this.playerState,16,J));this.F5.lr(O,V,J)}; g.T.prefetchKeyPlay=function(O,V){var J;(J=this.loader)==null||J.prefetchKeyPlay(O,V)}; g.T.Uo=function(O){return this.F5.Uo(O)}; g.T.O6=function(){this.F5.O6()}; g.T.z1=function(O,V){var J=this.L("html5_generate_content_po_token")?this.videoData:void 0;this.QK.z1(O,V,J)}; g.T.le=function(O,V){this.ER.le(O,V)}; g.T.SQ=function(){return this.ER.SQ()}; g.T.qE=function(){return this.QK.qE()}; g.T.m5=function(){return this.QK.m5(this)}; g.T.ZW=function(){this.FL=!0}; g.T.vR=function(O){var V;(V=this.loader)==null||V.vR(O)}; g.T.qS=function(O){this.F5.qS(O)}; var dm1={primary:"Primary",secondary:"Secondary"};g.I(Hgh,Uc);g.I(my,I3);my.prototype.K=function(O){O&&YG(this,this.G.getLoopVideo());this.G.logVisibility(this.element,O)}; my.prototype.logClick=function(){this.G.logClick(this.element)}; my.prototype.onLoopChange=function(O){YG(this,O)}; my.prototype.j=function(O){this.G.setLoopVideo(O)};g.I(jRh,Uc);g.I(ChU,Uc);g.T=ChU.prototype;g.T.seekToChapterWithAnimation=function(O){var V=this;if(g.Lj(this.api)&&!(O<0)){var J=this.api.getVideoData(),y=J.dX;if(y&&O=0)return;V=~V;g.O2(this.items,V,0,O);po(this.menuItems.element,O.element,V)}O.subscribe("size-change",this.QF,this);this.menuItems.publish("size-change")}; g.T.KH=function(){qHU(this)||this.items[0].focus();return!0}; g.T.j3=function(){this.items[this.items.length-1].focus();return!0}; g.T.vn=function(O){O.unsubscribe("size-change",this.QF,this);this.GL()||(g.um(this.items,O),this.menuItems.element.removeChild(O.element),this.menuItems.publish("size-change"))}; g.T.QF=function(){this.menuItems.publish("size-change")}; g.T.focus=function(){for(var O=0,V=0;V1&&g.ag(this)}; g.T.tK=function(){tpr(this);this.vY&&(GBr(this),g.HA(this.element,this.size))}; g.T.jG=function(){var O=this.K.pop();KLh(this,O,this.K[this.K.length-1],!0)}; g.T.I2=function(O){if(!O.defaultPrevented)switch(O.keyCode){case 27:this.x8();O.preventDefault();break;case 37:this.K.length>1&&this.jG();O.preventDefault();break;case 39:O.preventDefault()}}; g.T.focus=function(){this.K.length&&this.K[this.K.length-1].focus()}; g.T.U5=function(){me.prototype.U5.call(this);this.U&&this.U.dispose();this.D&&this.D.dispose()};g.I(ba,g.Ig);ba.prototype.open=function(O,V){this.initialize(O.items)&&this.Zg(V,!!V)}; ba.prototype.initialize=function(O){g.e0(this.tL);if(O===void 0||O.length===0)return!1;var V=O.length;O=g.n(O);for(var J=O.next();!J.done;J=O.next())this.sR(J.value,V--);return!0}; ba.prototype.sR=function(O,V){O.menuNavigationItemRenderer?rHr(this,O.menuNavigationItemRenderer,V):O.menuServiceItemRenderer&&ign(this,O.menuServiceItemRenderer,V)};g.I(py,c9);g.T=py.prototype;g.T.LV=function(O){O.target!==this.dismissButton.element&&O.target!==this.overflowButton.element&&(this.Aq(),this.onClickCommand&&this.G.MX("innertubeCommand",this.onClickCommand))}; g.T.Q8=function(){this.enabled=!1;this.T.hide()}; g.T.RL=function(){return!!this.K&&this.enabled}; g.T.onVideoDataChange=function(O,V){this.Mi(V);if(this.K){this.Tx();a:if(!this.isCounterfactual){var J,y,l;this.banner.update({title:(J=this.K)==null?void 0:J.title,subtitle:(y=this.K)==null?void 0:y.subtitle,metadata:(l=this.K)==null?void 0:l.metadataText});var m;this.onClickCommand=g.e((m=this.K)==null?void 0:m.onTap,ae);var H;if(O=g.e((H=this.K)==null?void 0:H.onOverflow,ae))this.V=g.e(O,KC1);var F;if((F=this.K)==null?0:F.thumbnailImage){var N,x;H=((N=this.K)==null?void 0:(x=N.thumbnailImage)== null?void 0:x.sources)||[];if(H.length===0)break a;this.thumbnailImage.update({url:H[0].url})}else{var W;if((W=this.K)==null?0:W.thumbnailIconName){var U;this.thumbnailIcon.update({icon:(U=this.K)==null?void 0:U.thumbnailIconName})}}var Z;this.shouldShowOverflowButton=!((Z=this.K)==null||!Z.shouldShowOverflowButton);var z;this.shouldHideDismissButton=!((z=this.K)==null||!z.shouldHideDismissButton)}var c;this.banner.element.setAttribute("aria-label",((c=this.K)==null?void 0:c.a11yLabel)||"");var Y; this.E5=(Y=this.K)==null?void 0:Y.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;Btl(this)}}; g.T.nrl=function(){this.isVisible=!0;Btl(this)}; g.T.ZdW=function(){this.isVisible=!1;Btl(this)}; g.T.pz=function(){c9.prototype.pz.call(this);this.U&&this.G.logVisibility(this.banner.element,this.isVisible)}; g.T.Aq=function(){c9.prototype.Aq.call(this,!1);this.U&&this.G.logClick(this.banner.element)}; g.T.Du=function(O){this.W||(this.W=new ba(this.G),g.t(this,this.W));var V,J;if((V=this.V)==null?0:(J=V.menu)==null?0:J.menuRenderer)this.W.open(this.V.menu.menuRenderer,O.target),O.preventDefault()}; g.T.Mi=function(){}; g.T.Tx=function(){}; g.T.U5=function(){this.G.iO("suggested_action_view_model");c9.prototype.U5.call(this)};g.I(fy,py); fy.prototype.Mi=function(O){var V,J,y;this.productUpsellSuggestedActionViewModel=g.e((V=O.getWatchNextResponse())==null?void 0:(J=V.playerOverlays)==null?void 0:(y=J.playerOverlayRenderer)==null?void 0:y.suggestedActionViewModel,OuV);var l;if((l=this.productUpsellSuggestedActionViewModel)==null?0:l.content){var m;this.K=g.e((m=this.productUpsellSuggestedActionViewModel)==null?void 0:m.content,qzz)}var H,F;if(this.U=!!((H=this.productUpsellSuggestedActionViewModel)==null?0:(F=H.loggingDirectives)==null? 0:F.trackingParams)){var N,x;this.G.setTrackingParams(this.banner.element,((N=this.productUpsellSuggestedActionViewModel)==null?void 0:(x=N.loggingDirectives)==null?void 0:x.trackingParams)||null)}var W;this.isCounterfactual=!((W=this.productUpsellSuggestedActionViewModel)==null||!W.isCounterfactualServing)}; fy.prototype.Tx=function(){var O=[],V,J=g.n(((V=this.productUpsellSuggestedActionViewModel)==null?void 0:V.ranges)||[]);for(V=J.next();!V.done;V=J.next()){var y=V.value;y&&(V=Number(y.startTimeMilliseconds),y=Number(y.endTimeMilliseconds),isNaN(V)||isNaN(y)||O.push(new g.gz(V,y,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.G.aG(O)};g.I(Ph7,Uc);g.I(hw,Uc);hw.prototype.onVideoDataChange=function(O,V){var J=this;if(!Cj(V)&&(O==="newdata"&&DJo(this),this.K&&O==="dataloaded")){this.K=!1;var y;sM(c_(pT(this.api.Y(),(y=this.api.getVideoData())==null?void 0:g.He(y)),function(l){m0H(J,l)}),function(){J.K=!0})}}; hw.prototype.a5=function(){var O=this;if(g.F0(this.api.Y())){var V,J=g.bd(this.api.Y(),(V=this.api.getVideoData())==null?void 0:g.He(V));return c_(W_(J),function(y){var l=Vc();J9(l,y);return O.api.a5(l)})}return W_(this.api.a5())};g.I(g.og,g.Ft);g.T=g.og.prototype;g.T.open=function(){g.Yi(this.mp,this.Ld)}; g.T.bB=function(O){HyV(this);var V=this.options[O];V&&(V.element.setAttribute("aria-checked","true"),this.setContent(this.r0(O)),this.U=O)}; g.T.w8=function(O){g.e0(this.Ld);for(var V={},J=!1,y=0;y=0?this.K.playbackRate:1}catch(O){return 1}}; g.T.setPlaybackRate=function(O){this.getPlaybackRate()!==O&&(this.K.playbackRate=O);return O}; g.T.RT=function(){return this.K.loop}; g.T.setLoop=function(O){this.K.loop=O}; g.T.canPlayType=function(O,V){return this.K.canPlayType(O,V)}; g.T.isPaused=function(){return this.K.paused}; g.T.isSeeking=function(){return this.K.seeking}; g.T.isEnded=function(){return this.K.ended}; g.T.EX=function(){return this.K.muted}; g.T.VM=function(O){Hg();this.K.muted=O}; g.T.Iq=function(){return this.K.played||JN([],[])}; g.T.pE=function(){try{var O=this.K.buffered}catch(V){}return O||JN([],[])}; g.T.NJ=function(){return this.K.seekable||JN([],[])}; g.T.k_=function(){var O=this.K;return O.getStartDate?O.getStartDate():null}; g.T.getCurrentTime=function(){return this.K.currentTime}; g.T.setCurrentTime=function(O){this.K.currentTime=O}; g.T.getDuration=function(){return this.K.duration}; g.T.load=function(){var O=this.K.playbackRate;try{this.K.load()}catch(V){}this.K.playbackRate=O}; g.T.pause=function(){this.K.pause()}; g.T.play=function(){var O=this.K.play();if(!O||!O.then)return null;O.then(void 0,function(){}); return O}; g.T.g8=function(){return this.K.readyState}; g.T.Pj=function(){return this.K.networkState}; g.T.qU=function(){return this.K.error?this.K.error.code:null}; g.T.Mf=function(){return this.K.error?this.K.error.message:""}; g.T.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.K instanceof window.HTMLVideoElement&&this.K.getVideoPlaybackQuality)return this.K.getVideoPlaybackQuality();if(this.K){var O=this.K,V=O.webkitDroppedFrameCount;if(O=O.webkitDecodedFrameCount)return{droppedVideoFrames:V||0,totalVideoFrames:O}}return{}}; g.T.R5=function(){return!!this.K.webkitCurrentPlaybackTargetIsWireless}; g.T.ZQ=function(){return!!this.K.webkitShowPlaybackTargetPicker()}; g.T.togglePictureInPicture=function(){var O=this.K,V=window.document;window.document.pictureInPictureEnabled?this.K!==V.pictureInPictureElement?O.requestPictureInPicture():V.exitPictureInPicture():$7()&&O.webkitSetPresentationMode(O.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.T.Qm=function(){var O=this.K;return new g.S1(O.offsetLeft,O.offsetTop)}; g.T.getSize=function(){return g.jR(this.K)}; g.T.setSize=function(O){g.HA(this.K,O)}; g.T.getVolume=function(){return this.K.volume}; g.T.setVolume=function(O){Hg();this.K.volume=O}; g.T.Xy=function(O){this.W[O]||(this.K.addEventListener(O,this.listener),this.W[O]=this.listener)}; g.T.setAttribute=function(O,V){this.K.setAttribute(O,V)}; g.T.removeAttribute=function(O){this.K.removeAttribute(O)}; g.T.hasAttribute=function(O){return this.K.hasAttribute(O)}; g.T.pj=d5(52);g.T.dI=d5(54);g.T.OZ=d5(56);g.T.RO=d5(58);g.T.bD=function(){return zb(this.K)}; g.T.a_=function(O){g.D0(this.K,O)}; g.T.dh=function(O){return g.Sg(this.K,O)}; g.T.hs=function(){return g.h8(document.body,this.K)}; g.T.audioTracks=function(){var O=this.K;if("audioTracks"in O)return O.audioTracks}; g.T.U5=function(){for(var O=g.n(Object.keys(this.W)),V=O.next();!V.done;V=O.next())V=V.value,this.K.removeEventListener(V,this.W[V]);ow.prototype.U5.call(this)}; g.T.iN=function(O){this.K.disableRemotePlayback=O};g.I(GW,g.r);g.I(tw,g.r);tw.prototype.show=function(){g.r.prototype.show.call(this);this.Qz()}; tw.prototype.hide=function(){g.r.prototype.hide.call(this);this.delay.stop();this.D.stop()}; tw.prototype.Qz=function(){var O=(0,g.cH)(),V=IwX(this.cE);Ky(this.K,V.bandwidth_samples);Ky(this.V,V.network_activity_samples);Ky(this.U,V.live_latency_samples);Ky(this.j,V.buffer_health_samples);var J={};V=g.n(Object.entries(V));for(var y=V.next();!y.done;y=V.next()){var l=g.n(y.value);y=l.next().value;l=l.next().value;this.S[y]!==l&&(J[y]=" "+String(l));this.S[y]=l}this.update(J);O=(0,g.cH)()-O>25?5E3:500;this.delay.start(O)}; tw.prototype.T=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.I(byh,Uc);g.I(ua,g.K);ua.prototype.K=function(){var O=(0,g.cH)()-this.startTime;O=Othis.D[O])&&(this.K=O,this.WR())}; g.T.onCueRangeExit=function(O){var V=gin(this,O);V&&this.K===O&&this.api.MX("innertubeCommand",V);ia(this);this.K=void 0}; g.T.bF=function(O){this.U=O}; g.T.T1=function(){this.WR();this.U=void 0}; g.T.WR=function(){if(this.K!==void 0){var O=(O=re(this,this.K))&&O.onCueRangeEnter?pY(O.onCueRangeEnter):void 0;var V=re(this,this.K);a:if(V&&V.additionalTrigger){var J=g.n(V.additionalTrigger);for(var y=J.next();!y.done;y=J.next())if(y=y.value,y.type){var l=void 0,m=void 0;if((l=this.O5[y.type])==null?0:l((m=y.args)!=null?m:{})){J=!0;break a}}J=!1}else J=!0;O&&J&&(this.api.MX("innertubeCommand",O),qXd(this,V),this.D[this.K]!==void 0&&this.D[this.K]++,this.qX=!0)}}; g.T.U5=function(){this.timelyActions=this.U=this.K=this.videoId=void 0;this.D={};this.HX();ia(this);Uc.prototype.U5.call(this)};g.I(AwV,Uc);g.I(rwp,Uc);g.I(Rg,I3);Rg.prototype.D=function(O){this.U(O?2:1)}; Rg.prototype.La=function(){var O=this.G.getPresentingPlayerType();O===2||O===3?this.K&&(this.K=!1,this.mp.vn(this)):(O=this.getVoiceBoostState(),O!==1?(O===0?(YG(this,this.j()===2),this.setEnabled(!0)):(YG(this,!1),this.setEnabled(!1)),this.K||(this.mp.sR(this),this.K=!0)):this.K&&(this.mp.vn(this),this.K=!1))}; Rg.prototype.U5=function(){this.mp.vn(this);I3.prototype.U5.call(this)};g.I(B9,Uc);B9.prototype.getVoiceBoostUserPreference=function(){return this.K}; B9.prototype.setVoiceBoostUserPreference=function(O){this.api.jB("vb_set",{pref:O});g.oH("yt-player-voice-boost",O,31536E4);O!==this.K&&(this.K=O,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.zg(),this.api.eE())}; B9.prototype.getVoiceBoostState=function(){return this.api.qP(1)}; B9.prototype.updateEnvironmentData=function(){this.api.Y().zQ=this.K};g.I(ki,Uc);ki.prototype.U5=function(){this.T&&(g.xg(this.T),this.T=void 0);Uc.prototype.U5.call(this)}; ki.prototype.VV=function(){(this.j?!this.K:this.U)&&Oe(this)}; ki.prototype.R2=function(O,V,J){var y=this;if(Bed(O)){var l=J||"";if(this.K)V=Vl(this,l),PaX(O,V);else{var m=new g.HP;V.push(m.promise);this.W.promise.then(function(){var H=Vl(y,l);PaX(O,H);m.resolve()})}}}; ki.prototype.iT=function(O){var V=this;if(this.j||this.U)O.bH=Vl(this,O.videoId),this.K||(this.D=new hN,this.W.promise.then(function(){V.rC.Y3("pot_if");O.bH=Vl(V,O.videoId)}))};g.I(Jj,g.r);g.T=Jj.prototype;g.T.QA=function(){var O=this.G.getVideoData({playerType:1}),V,J,y=(J=((O==null?0:(V=O.suggestions)==null?0:V.length)?O.suggestions:(O==null?0:g.IT(O))?[g.IT(O)]:[])[0])==null?void 0:J.O7("mqdefault.jpg");this.j&&y&&g.Pp(this.j,"background-image",y?'url("'+y+'")':"")}; g.T.onClick=function(){this.G.logClick(this.element)}; g.T.gX=function(O){this.PY([1,2].includes(O));HGn(this,O)}; g.T.PY=function(O){g.r.prototype.PY.call(this,O);this.element.setAttribute("aria-hidden",String(!O));O&&this.QA()}; g.T.U5=function(){g.r.prototype.U5.call(this)};g.I(g.lZ,g.r);g.lZ.prototype.select=function(){this.api.Gd(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Gm||void 0)&&this.api.logClick(this.element)}; g.lZ.prototype.onClick=function(O){if(g.R2(this.api.Y())&&this.api.L("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var V=this.suggestion.xn(),J={};g.R9(this.api,J);V=g.pp(V,J);g.bg(V,this.api,O)}else g.a3(O,this.api,this.j,this.suggestion.sessionData||void 0)&&this.select()}; g.lZ.prototype.onKeyPress=function(O){switch(O.keyCode){case 13:case 32:O.defaultPrevented||(this.select(),O.preventDefault())}}; g.lZ.prototype.onVideoDataChange=function(){var O=this.api.getVideoData(),V=this.api.Y();this.j=O.tC?!1:V.D};g.I(CZ1,g.r);g.T=CZ1.prototype;g.T.U5=function(){this.hide();g.fz(this.S);g.FM(this.stills);this.stills.length=0;this.U&&(this.U.remove(),this.U=void 0);this.K&&(this.K.remove(),this.K=void 0);this.j&&(this.j.remove(),this.j=void 0);g.r.prototype.U5.call(this)}; g.T.setCommentsButton=function(O){O!==this.K&&(this.K&&this.K.remove(),this.K=O)&&(g.D0(this.K,"ytp-fullscreen-grid-action-button"),this.T.appendChild(this.K))}; g.T.setDescriptionButton=function(O){O!==this.j&&(this.j&&this.j.remove(),this.j=O)&&(g.D0(this.j,"ytp-fullscreen-grid-action-button"),po(this.T,this.j,0))}; g.T.Gh=function(O){this.fD&&this.fD(O)}; g.T.onVideoDataChange=function(){if(!this.lw){this.videoData=this.player.getVideoData({playerType:1});var O,V,J,y,l;var m=(((O=this.videoData)==null?0:(V=O.suggestions)==null?0:V.length)?(J=this.videoData)==null?void 0:J.suggestions:((y=this.videoData)==null?0:g.IT(y))?[(l=this.videoData)==null?void 0:g.IT(l)]:[]).slice(0,18);if((O=this.KD)&&this.D)if(g.bB(O),m.length)for(this.stills.length>m.length&&g.FM(this.stills.splice(m.length)),this.stills.length=m.length,V=0;V=0;O--)this.features[O].dispose();this.features.length=0;g.K.prototype.U5.call(this)};slY.prototype.reset=function(){this.K=this.j=NaN};g.T=T81.prototype;g.T.reset=function(){Za(this.timerName)}; g.T.tick=function(O,V){sB(O,V,this.timerName)}; g.T.Y3=function(O){return Yz(O,void 0,this.timerName)}; g.T.du=function(O){g.i7(O,void 0,this.timerName)}; g.T.infoGel=function(O){g.TJ(O,this.timerName)};g.I(Yer,g.BF);g.T=Yer.prototype;g.T.hasNext=function(O){return this.loop||!!O||this.index+1=0}; g.T.setShuffle=function(O){this.shuffle=O;O=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var V=0;V=V.top&&O.right<=V.right&&O.bottom<=V.bottom&&O.left>=V.left))return}LG(this,2,!1)}; g.T.OO=function(O){var V=new g.S1(O.pageX,O.pageY);D6(V,this.D)||(this.D=V,(O=O.target)&&this.FK(O)&&(LG(this,4,!0),this.K.oX(this.U),this.U=this.K.Z(this.target,"mouseover",this.Zk),this.S=this.K.Z(this.target,"mouseout",this.Zk)))}; g.T.Zk=function(O){O=O.relatedTarget;O&&this.FK(O)||(this.D=new g.S1(NaN,NaN),HtV(this))}; g.T.l4z=function(){LG(this,1,!0)}; g.T.X_=function(O){O=O.target;O instanceof Element&&!(O.tabIndex>0)||LG(this,1,!0)}; g.T.lq=function(){this.V=!0;this.K.oX(this.W);this.W=this.K.Z(document,"mouseup",this.uI)}; g.T.uI=function(){this.V=!1;LG(this,8,!1);this.K.oX(this.W);this.W=this.K.Z(this.target,"mousedown",this.lq)}; g.T.m3=function(O){if(O=(O=O.changedTouches)&&O[0])this.O5=O.identifier,this.K.oX(this.T),this.T=this.K.Z(this.target,"touchend",this.Ow,void 0,!0),LG(this,1024,!0)}; g.T.Ow=function(O){if(O=O.changedTouches)for(var V=0;V1280||l>720)if(V=y.O7("maxresdefault.jpg"))break;if(m>640||l>480)if(V=y.O7("maxresdefault.jpg"))break;if(m>320||l>180)if(V=y.O7("sddefault.jpg")||y.O7("hqdefault.jpg")||y.O7("mqdefault.jpg"))break;if(V=y.O7("default.jpg"))break}g.sj(O)&&(O=new Image,O.addEventListener("load", function(){R57()}),O.src=V?V:"",this.api.kI().tick("ftr")); this.D.style.backgroundImage=V?"url("+V+")":""};g.I(g.g8,g.r);g.g8.prototype.resize=function(){}; g.g8.prototype.j=function(O){var V=this;this.U=!1;Fi7(this);var J=O.d7,y=this.api.Y();J!=="GENERIC_WITHOUT_LINK"||y.V?J==="TOO_MANY_REQUESTS"?(y=this.api.getVideoData(),this.setContent(Gm(this,"TOO_MANY_REQUESTS_WITH_LINK",y.xn(),void 0,void 0,void 0,!1))):J!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||y.V?this.api.Y().L("html5_enable_bandaid_error_screen")&&J==="HTML5_SPS_UMP_STATUS_REJECTED"&&!y.V?(y=y.hostLanguage,O="//support.google.com/youtube?p=videoError",y&&(O=g.pp(O,{hl:y})),this.setContent(Gm(this, "HTML5_SPS_UMP_STATUS_REJECTED",O))):this.api.Y().L("enable_adb_handling_in_sabr")&&J==="BROWSER_OR_EXTENSION_ERROR"&&!y.V?(y=y.hostLanguage,O="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",y&&(O=g.pp(O,{hl:y})),this.setContent(Gm(this,"BROWSER_OR_EXTENSION_ERROR",O))):this.setContent(g.qX(O.errorMessage)):this.setContent(Gm(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(O=y.hostLanguage,J= "//support.google.com/youtube/?p=player_error1",O&&(J=g.pp(J,{hl:O})),this.setContent(Gm(this,"GENERIC_WITH_LINK_AND_CPN",J,!0)),y.NH&&!y.D&&Cuo(this,function(m){if(g.a3(m,V.api,!x$(V.api.Y()))){m={as3:!1,html5:!0,player:!0,cpn:V.api.getVideoData().clientPlaybackNonce};var H=V.api;H.qG("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:m});H.isFullscreen()&&H.toggleFullscreen()}})); if(this.U){var l=this.DN("ytp-error-link");l&&(this.api.createClientVe(l,this,216104),this.api.logVisibility(l,!0),Cuo(this,function(){V.api.logClick(l)}))}}; var jQr=/([^<>]+)<\/a>/;g.I(Np7,g.r);Np7.prototype.iV=function(O,V,J){J=J===void 0?!1:J;switch(V){case 1:KG(this,O,this.U,J);break;case 2:KG(this,O,this.D,J);break;case 3:KG(this,O,this.K,J);break;case 4:KG(this,O,this.j,J)}};g.I(xpo,g.r);g.T=xpo.prototype;g.T.onClick=function(O){this.innertubeCommand?(this.G.MX("innertubeCommand",this.innertubeCommand),O.preventDefault()):g.a3(O,this.G,!0);this.G.logClick(this.element)}; g.T.onVideoDataChange=function(O,V){Uph(this,V);this.Pf&&Zth(this,this.Pf)}; g.T.AX=function(O){var V=this.G.getVideoData();this.videoId!==V.videoId&&Uph(this,V);this.K&&Zth(this,O.state);this.Pf=O.state}; g.T.Zg=function(){this.fade.show();this.G.publish("paidcontentoverlayvisibilitychange",!0);this.G.logVisibility(this.element,!0)}; g.T.x8=function(){this.fade.hide();this.G.publish("paidcontentoverlayvisibilitychange",!1);this.G.logVisibility(this.element,!1)};g.I(tj,g.r);tj.prototype.hide=function(){this.K.stop();this.message.style.display="none";g.r.prototype.hide.call(this)}; tj.prototype.onStateChange=function(O){this.gX(O.state)}; tj.prototype.gX=function(O){if(g.R(O,128)||this.api.rj())var V=!1;else{var J;V=this.api.L("web_watch_enable_multiview_manager")&&((J=this.api.getVideoData())==null?0:Cj(J))?!1:g.R(O,16)||g.R(O,1)?!0:!1}V?this.K.start():this.hide()}; tj.prototype.j=function(){this.message.style.display="block"};g.I(uZ,me);uZ.prototype.onMutedAutoplayChange=function(O){this.j&&(O?(zEr(this),this.Zg()):(this.K&&this.logClick(),this.x8()))}; uZ.prototype.q8=function(O){this.api.isMutedByMutedAutoplay()&&g.Jg(O,2)&&this.x8()}; uZ.prototype.onClick=function(){this.api.unMute();this.logClick()}; uZ.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.I(g.Aj,g.jX);g.T=g.Aj.prototype;g.T.init=function(){var O=this.api,V=O.getPlayerStateObject();this.WG=O.getPlayerSize();this.mA(V);this.yX();this.zy();this.api.publish("basechromeinitialized",this);this.vy()&&this.api.publish("standardControlsInitialized")}; g.T.onVideoDataChange=function(O,V){var J=this.Bk!==V.videoId;if(J||O==="newdata")O=this.api,O.isFullscreen()||(this.WG=O.getPlayerSize());J&&(this.Bk=V.videoId,J=this.xp,J.dW=3E3,LG(J,512,!0),this.yX());this.api.L("web_render_jump_buttons")&&V.showSeekingControls&&(this.U$=572)}; g.T.rL5=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.T.QM=function(){var O=this.api.eG()&&this.api.Wi(),V=this.api.LT();return this.H7||O||this.C7||V}; g.T.wu=function(){var O=!this.QM();g.yf(this.api.getRootNode(),"ytp-menu-shown",!O)}; g.T.FK=function(O){try{if(!g.h8(this.api.getRootNode(),O))return!1}catch(V){return!1}for(;O&&!vp(O);)O=O===this.api.getRootNode()?null:O.parentElement||null;return!!O}; g.T.Nl=function(O){var V=this.api.getRootNode();g.yf(V,"ytp-autohide",O);g.yf(V,"ytp-autohide-active",!0);this.Ix.start(O?250:100);O&&(this.ot=!1,g.Vf(V,"ytp-touch-mode"));this.YX=!O;this.api.zo(!O);this.api.L("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",O)}; g.T.fq=function(){var O=this.api.getRootNode();g.yf(O,"ytp-autohide-active",!1)}; g.T.gp5=function(){this.WW=!0}; g.T.VjD=function(O){if(this.api.Y().L("player_doubletap_to_seek")||this.api.Y().S)this.WW=!1,this.X3&&this.oX(this.X3),this.Vx===0&&r8(this,O)?(this.E8(),this.zW.start(),this.X3=this.Z(this.api.tv(),"touchmove",this.gp5,void 0,!0)):this.zW.stop();eEl(this)&&r8(this,O)&&!this.api.Y().S&&sQH(this,O);var V=this.AD.fK();if(!g.R2(this.api.Y())&&u8&&auV(this,O))V&&O.preventDefault();else if(this.ot=!0,g.D0(this.api.getRootNode(),"ytp-touch-mode"),this.xp.gM(),this.api.Y().L("player_doubletap_to_seek")|| this.api.Y().S)if(V=this.api.getPlayerStateObject(),!(!this.api.SE()||g.R(V,2)&&g.uJ(this.api)||g.R(V,64))){V=Date.now()-this.Tl;this.Vx+=1;if(V<=350){if(Iup(this,O))return;this.QC=!0;V=this.api.getPlayerSize().width/3;var J=this.api.getRootNode().getBoundingClientRect(),y=O.targetTouches[0].clientX-J.left;J=O.targetTouches[0].clientY-J.top;var l=(this.Vx-1)*10;y>0&&yV*2&&y=650,y=O.width<528;this.xp.resize();if(this.api.L("web_player_use_screen_width_for_big_mode")){var l,m=O.width>=((l=g.Ry(this.api.Y().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?l:2E3);g.yf(V,"ytp-big-mode",m)}g.yf(V,"ytp-fullscreen",this.api.isFullscreen());g.yf(V,"ytp-large-width-mode",J);this.api.L("delhi_modern_web_player")?g.yf(V,"ytp-xsmall-width-mode",y):g.yf(V,"ytp-small-mode",this.Cu()); g.yf(V,"ytp-tiny-mode",this.y3());g.yf(V,"ytp-big-mode",this.UY());this.XD&&this.XD.resize(O)}; g.T.q8=function(O){this.mA(O.state);this.yX()}; g.T.gV=d5(5);g.T.Jo=function(){var O=!!this.Bk&&!this.api.Ru()&&!this.RS,V=this.api.getPresentingPlayerType()===2,J=this.api.Y();if(V)return J=hj(this.api.Fs()),O&&(J&&J.player?O=(O=J.player.getVideoData({playerType:2}))?O.isListed&&!g.jS(J.player.Y()):!1:(DJ("showInfoBarDuringAd: this is null"),O=!1)),O;V=J.L("web_player_imax_theater_mode")&&this.api.yO()&&!this.api.isInline();return O&&(J.YQ||V||this.api.isFullscreen()||J.fP)}; g.T.yX=function(){var O=this.Jo();this.AI!==O&&(this.AI=O,g.yf(this.api.getRootNode(),"ytp-hide-info-bar",!O))}; g.T.mA=function(O){var V=O.isCued()||this.api.aW()&&this.api.getPresentingPlayerType()!==3;V!==this.isCued&&(this.isCued=V,this.un&&this.oX(this.un),this.un=this.Z(this.api.tv(),"touchstart",this.VjD,void 0,V));var J=this.xp,y=O.isPlaying()&&!g.R(O,32)||this.api.Y2();LG(J,128,!y);J=this.xp;y=this.api.getPresentingPlayerType()===3;LG(J,256,y);J=this.api.getRootNode();g.R(O,2)?y=[tM.ENDED]:(y=[],g.R(O,8)?y.push(tM.PLAYING):g.R(O,4)&&y.push(tM.PAUSED),g.R(O,1)&&!g.R(O,32)&&y.push(tM.BUFFERING),g.R(O, 32)&&y.push(tM.SEEKING),g.R(O,64)&&y.push(tM.UNSTARTED));g.$m(this.TF,y)||(g.Jn(J,this.TF),this.TF=y,g.Og(J,y));y=this.api.Y();var l=g.R(O,2);a:{var m=this.api.Y();var H=m.controlsType;switch(H){case "2":case "0":m=!1;break a}m=H==="3"&&!g.R(O,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:GZX(hj(this.api.Fs())))||this.api.LT()||g.R2(m)&&this.api.getPresentingPlayerType()===2?!1:!0}g.yf(J,"ytp-hide-controls",!m);g.yf(J,"ytp-native-controls",y.controlsType==="3"&&!V&&!l&&!this.C7);g.R(O, 128)&&!g.R2(y)?(this.XD||(this.XD=new g.g8(this.api),g.t(this,this.XD),g.kD(this.api,this.XD.element,4)),this.XD.j(O.o5),this.XD.show()):this.XD&&(this.XD.dispose(),this.XD=null)}; g.T.jM=function(){return this.api.eG()&&this.api.Wi()?(this.api.kW(!1,!1),!0):this.api.Ru()?(g.A1(this.api,!0),!0):!1}; g.T.onMutedAutoplayChange=function(O){this.C7=O;this.wu()}; g.T.UY=function(){return!1}; g.T.Cu=function(){return!this.UY()&&(this.api.getPlayerSize().width=0&&V.left>=0&&V.bottom>V.top&&V.right>V.left?V:null;V=this.size;O=O.clone();V=V.clone();y&&(H=V,l=5,(l&65)==65&&(O.x=y.right)&&(l&=-2),(l&132)==132&&(O.y=y.bottom)&&(l&=-5),O.xy.right&&(H.width=Math.min(y.right-O.x,m+H.width-y.left),H.width=Math.max(H.width,0))),O.x+H.width>y.right&&l&1&&(O.x=Math.max(y.right-H.width,y.left)),O.yy.bottom&&(H.height=Math.min(y.bottom-O.y,m+H.height-y.top),H.height=Math.max(H.height,0))),O.y+H.height>y.bottom&&l&4&&(O.y=Math.max(y.bottom-H.height,y.top)));y=new g.iB(0,0,0,0);y.left=O.x;y.top=O.y;y.width= V.width;y.height=V.height;g.JU(this.element,new g.S1(y.left,y.top));g.fz(this.j);this.j.Z($G(this),"contextmenu",this.IgN);this.j.Z(this.G,"fullscreentoggled",this.onFullscreenToggled);this.j.Z(this.G,"pageTransition",this.iZ)}; g.T.IgN=function(O){if(!O.defaultPrevented){var V=YO(O);g.h8(this.element,V)||this.x8();this.G.Y().disableNativeContextMenu&&O.preventDefault()}}; g.T.onFullscreenToggled=function(){this.x8();Pup(this)}; g.T.iZ=function(){this.x8()};g.I(Vq,g.r);Vq.prototype.onClick=function(){var O=this,V,J,y,l;return g.Q(function(m){if(m.j==1)return V=O.api.Y(),J=O.api.getVideoData(),y=O.api.getPlaylistId(),l=V.getVideoUrl(J.videoId,y,void 0,!0),m.K(Dpr(O,l),2);m.U&&SQH(O);O.api.logClick(O.element);m.V()})}; Vq.prototype.Qz=function(){this.updateValue("icon",{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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.updateValue("tooltip-title","Copy link");this.visible=k35(this);g.yf(this.element, "ytp-copylink-button-visible",this.visible);this.PY(this.visible);this.tooltip.s7();this.api.logVisibility(this.element,this.visible&&this.qX)}; Vq.prototype.lR=function(O){g.r.prototype.lR.call(this,O);this.api.logVisibility(this.element,this.visible&&O)}; Vq.prototype.U5=function(){g.r.prototype.U5.call(this);g.Vf(this.element,"ytp-copylink-button-visible")};g.I(OBH,g.r);g.T=OBH.prototype;g.T.show=function(){g.r.prototype.show.call(this);g.uL(this.j)}; g.T.hide=function(){this.D.stop();this.U=0;this.DN("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Vf(this.element,"ytp-chapter-seek");g.Vf(this.element,"ytp-time-seeking");g.r.prototype.hide.call(this)}; g.T.WM=function(O,V,J,y){this.U=O===this.V?this.U+y:y;this.V=O;var l=O===-1?this.T:this.S;l&&this.G.logClick(l);this.W?this.j.stop():g.r7(this.j);this.D.start();this.element.setAttribute("data-side",O===-1?"back":"forward");var m=3*this.G.tv().getPlayerSize().height;l=this.G.tv().getPlayerSize();l=l.width/3-3*l.height;this.K.style.width=m+"px";this.K.style.height=m+"px";O===1?(this.K.style.left="",this.K.style.right=l+"px"):O===-1&&(this.K.style.right="",this.K.style.left=l+"px");var H=m*2.5;m=H/ 2;var F=this.DN("ytp-doubletap-ripple");F.style.width=H+"px";F.style.height=H+"px";O===1?(O=this.G.tv().getPlayerSize().width-V+Math.abs(l),F.style.left="",F.style.right=O-m+"px"):O===-1&&(O=Math.abs(l)+V,F.style.right="",F.style.left=O-m+"px");F.style.top="calc((33% + "+Math.round(J)+"px) - "+m+"px)";if(J=this.DN("ytp-doubletap-ripple"))J.classList.remove("ytp-doubletap-ripple"),J.classList.add("ytp-doubletap-ripple");V_Y(this,this.W?this.U:y)}; g.T.vt=function(O,V,J){if(J=J===void 0?null:J){var y=O===-1?this.T.visualElement:this.S.visualElement;J={seekData:J};var l=g.Fe();l&&rd(l,y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",J)}this.U=O===this.V?this.U+V:V;this.V=O;y=this.G.tv().getPlayerSize();this.W?this.j.stop():g.r7(this.j);this.D.start();this.element.setAttribute("data-side",O===-1?"back":"forward");g.D0(this.element,"ytp-time-seeking");this.K.style.width="110px";this.K.style.height="110px";J=y.width*.1-15;O===1?this.KD?(this.K.style.right= J+"px",this.K.style.left=""):(this.K.style.right="",this.K.style.left=y.width*.8-30+"px"):O===-1&&(this.KD?(this.K.style.right="",this.K.style.left=J+"px"):(this.K.style.right="",this.K.style.left=y.width*.1-15+"px"));this.K.style.top=y.height*.5+15+"px";V_Y(this,this.W?this.U:V)}; g.T.wr=function(O,V,J){J=J===void 0?null:J;g.r7(this.j);this.D.start();switch(O){case -1:O="back";break;case 1:O="forward";break;default:O=""}this.element.setAttribute("data-side",O);this.K.style.width="0";this.K.style.height="0";g.D0(this.element,"ytp-chapter-seek");this.updateValue("seekText",V);this.updateValue("seekTime","");V=this.DN("ytp-seek-icon");if(J){a:if(J){switch(J){case "PREMIUM_STANDALONE":J=NE5();break a;case "PREMIUM_STANDALONE_CAIRO":J=xvV();break a}J=void 0}else J=null;this.updateValue("seekIcon", J);V.style.display="inline-block"}else V.style.display="none"};g.I(yx1,c9);g.T=yx1.prototype;g.T.oA=function(O){this.ol||(this.ol=new ba(this.G),g.t(this,this.ol));var V,J;if((V=this.Xs)==null?0:(J=V.menu)==null?0:J.menuRenderer)this.ol.open(this.Xs.menu.menuRenderer,O.target),O.preventDefault()}; g.T.RL=function(){return!!this.K}; g.T.lX=function(){return!!this.K}; g.T.LV=function(O){O.target===this.overflowButton.element?O.preventDefault():(this.eq&&this.G.MX("innertubeCommand",this.eq),this.Aq(!1))}; g.T.Q8=function(){this.Aq(!0);var O,V;if((O=this.K)==null?0:(V=O.bannerData)==null?0:V.dismissedStatusKey){if(this.zL.includes(this.K.bannerData.dismissedStatusKey))return;this.zL.push(this.K.bannerData.dismissedStatusKey)}this.GY();this.G.L("web_enable_shopping_timely_shelf_client")&&(O={},g.fY(O,dWy,{overlayId:"player_overlay_timely_shelf"}),this.G.MX("innertubeCommand",O))}; g.T.pX=function(){this.GY();lu(this)}; g.T.LJK=function(O){var V=this,J;if(O.id!==((J=this.K)==null?void 0:J.identifier)){this.GY();J=g.n(this.O5);for(var y=J.next();!y.done;y=J.next()){var l=y.value,m=void 0,H=void 0;if((y=(m=l)==null?void 0:(H=m.bannerData)==null?void 0:H.itemData)&&l.identifier===O.id){H=m=void 0;var F=((m=l)==null?void 0:(H=m.bannerData)==null?void 0:H.dismissedStatusKey)||"";if(this.zL.includes(F))return;this.K=l;this.banner.element.setAttribute("aria-label",y.accessibilityLabel||"");y.trackingParams&&(this.j=!0, this.G.setTrackingParams(this.badge.element,y.trackingParams));this.show();this.T.show();zW(this);this.dW.PY(!y.stayInApp);ZB7(this);mQd(this);yq(this);this.eq=g.e(y.onTapCommand,ae);if(l=g.e(y.menuOnTap,ae))this.Xs=g.e(l,KC1);l=void 0;this.banner.update({thumbnail:(l=(y.thumbnailSources||[])[0])==null?void 0:l.url,title:y.productTitle,price:y.priceReplacementText?y.priceReplacementText:y.price,salesOriginalPrice:jsh(this),priceDropReferencePrice:CKV(this),promotionText:HBo(this),priceA11yText:FGX(this), affiliateDisclaimer:y.affiliateDisclaimer,vendor:NyU(this)});F=H=m=l=void 0;((l=y)==null?0:(m=l.hiddenProductOptions)==null?0:m.showDropCountdown)&&((H=y)==null?0:(F=H.hiddenProductOptions)==null?0:F.dropTimestampMs)&&(this.yc=new g.t_(function(){UQl(V)},1E3),this.dW.hide(),this.countdownTimer.show(),UQl(this)); this.G.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&lY1(this)&&(this.WB=new g.t_(function(){$QX(V)},1E3),$QX(this))}}this.G.getRootNode()&&g.D0(this.G.getRootNode(),"ytp-featured-product-shown")}}; g.T.GY=function(){this.K&&(this.K=void 0,this.J4(),this.G.getRootNode()&&g.Vf(this.G.getRootNode(),"ytp-featured-product-shown"))}; g.T.onVideoDataChange=function(O,V){var J=this;Jxr(this,V);O==="dataloaded"&&lu(this);var y,l,m;O=g.e((y=V.getWatchNextResponse())==null?void 0:(l=y.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,Qz1);this.overflowButton.show();this.dismissButton.hide();var H=O==null?void 0:O.featuredProductsEntityKey;this.trendingOfferEntityKey=O==null?void 0:O.trendingOfferEntityKey;this.O5.length||(WGr(this,H),yq(this));var F;(F=this.dX)==null||F.call(this); this.dX=g.aT.subscribe(function(){WGr(J,H);yq(J)})}; g.T.U5=function(){lu(this);ZB7(this);mQd(this);c9.prototype.U5.call(this)};g.I(YaV,g.r);YaV.prototype.onClick=function(){this.G.logClick(this.element,this.U);if(this.K&&this.feedbackToken){var O=this.G.a5();if(O==null?0:N9p(this.K,O.jo))pU(O,this.K,{feedbackTokens:[this.feedbackToken]}),this.G.publish("infopaneldetaildismissed")}};g.I(aYX,me);g.T=aYX.prototype;g.T.show=function(){me.prototype.show.call(this);this.G.publish("infopaneldetailvisibilitychange",!0);this.G.logVisibility(this.element,!0);bBX(this,!0)}; g.T.hide=function(){me.prototype.hide.call(this);this.G.publish("infopaneldetailvisibilitychange",!1);this.G.logVisibility(this.element,!1);bBX(this,!1)}; g.T.getId=function(){return this.U}; g.T.bL=function(){return this.itemData.length}; g.T.onVideoDataChange=function(O,V){if(V){var J,y,l,m;this.update({title:((J=V.OE)==null?void 0:(y=J.title)==null?void 0:y.content)||"",body:((l=V.OE)==null?void 0:(m=l.bodyText)==null?void 0:m.content)||""});var H;O=((H=V.OE)==null?void 0:H.trackingParams)||null;this.G.setTrackingParams(this.element,O);H=g.n(this.itemData);for(O=H.next();!O.done;O=H.next())O.value.dispose();this.itemData=[];var F;if((F=V.OE)==null?0:F.ctaButtons)for(V=g.n(V.OE.ctaButtons),F=V.next();!F.done;F=V.next())if(F=g.e(F.value, LCz))F=new YaV(this.G,F,this.K),F.wN&&(this.itemData.push(F),F.rW(this.items))}}; g.T.U5=function(){this.hide();me.prototype.U5.call(this)};g.I(hVp,g.r);g.T=hVp.prototype;g.T.onVideoDataChange=function(O,V){fY1(this,V);this.Pf&&vJp(this,this.Pf)}; g.T.Vn=function(O){var V=this.G.getVideoData();this.videoId!==V.videoId&&fY1(this,V);vJp(this,O.state);this.Pf=O.state}; g.T.po=function(O){(this.U=O)?this.hide():this.K&&!this.isDismissed&&this.show()}; g.T.Gp=function(){this.j||this.Zg();this.showControls=!0}; g.T.kx=function(){this.j||this.x8();this.showControls=!1}; g.T.Zg=function(){if(!this.isDismissed){var O,V=(O=this.G)==null?void 0:O.getPlayerSize();O=V.width<380;var J;V=V.height<(((J=this.G)==null?0:J.isEmbedsShortsMode())?400:280);var y,l;(((y=this.G)==null?0:y.getPlayerStateObject().isCued())||((l=this.G)==null?0:g.R(l.getPlayerStateObject(),1024)))&&O&&V||!this.K||this.U||(this.fade.show(),this.G.publish("infopanelpreviewvisibilitychange",!0),this.G.logVisibility(this.element,!0))}}; g.T.x8=function(){this.K&&!this.U&&(this.fade.hide(),this.G.publish("infopanelpreviewvisibilitychange",!1),this.G.logVisibility(this.element,!1))}; g.T.SY5=function(){this.j=!1;this.showControls||this.x8()};var grz={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(grz).reduce(function(O,V){O[grz[V]]=V;return O},{}); var qDC={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(qDC).reduce(function(O,V){O[qDC[V]]=V;return O},{}); var QGn={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(QGn).reduce(function(O,V){O[QGn[V]]=V;return O},{});var GkW,KjW;GkW=[{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"}];KjW=[{option:0,text:mi(0)},{option:.25,text:mi(.25)},{option:.5,text:mi(.5)},{option:.75,text:mi(.75)},{option:1,text:mi(1)}]; g.Ct=[{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:GkW},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:mi(.5)},{option:-1,text:mi(.75)},{option:0,text:mi(1)},{option:1,text:mi(1.5)},{option:2, text:mi(2)},{option:3,text:mi(3)},{option:4,text:mi(4)}]},{option:"background",text:"Background color",options:GkW},{option:"backgroundOpacity",text:"Background opacity",options:KjW},{option:"windowColor",text:"Window color",options:GkW},{option:"windowOpacity",text:"Window opacity",options:KjW},{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:mi(.25)},{option:.5,text:mi(.5)},{option:.75,text:mi(.75)},{option:1,text:mi(1)}]}];var t1F=[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.I(EJH,g.jX);g.T=EJH.prototype; g.T.NF=function(O){O.repeat||(this.U.QR=!1);var V=!1,J=O.keyCode,y=YO(O),l=!O.altKey&&!O.ctrlKey&&!O.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||t1F.includes(J)),m=!1,H=!1,F=this.api.Y();O.defaultPrevented?(l=!1,H=!0):F.Wf&&!this.api.isMutedByEmbedsMutedAutoplay()&&(l=!1);if(J===9)V=!0;else{if(y)switch(J){case 32:case 13:if(y.tagName==="BUTTON"||y.tagName==="A"||y.tagName==="INPUT")V=!0,l=!1;else if(l){var N=y.getAttribute("role");!N||N!=="option"&&N!=="button"&&N.indexOf("menuitem")!==0|| (V=!0,y.click(),m=!0)}break;case 37:case 39:case 36:case 35:V=y.getAttribute("role")==="slider";break;case 38:case 40:N=y.getAttribute("role"),y=J===38?y.previousSibling:y.nextSibling,N==="slider"?V=!0:l&&(N==="option"?(y&&y.getAttribute("role")==="option"&&y.focus(),m=V=!0):N&&N.indexOf("menuitem")===0&&(y&&y.hasAttribute("role")&&y.getAttribute("role").indexOf("menuitem")===0&&y.focus(),m=V=!0))}if(l&&!m)switch(J){case 38:m=Math.min(this.api.getVolume()+5,100);Bi(this.GG,m,!1);this.api.setVolume(m); H=m=!0;break;case 40:m=Math.max(this.api.getVolume()-5,0);Bi(this.GG,m,!0);this.api.setVolume(m);H=m=!0;break;case 36:this.api.SE()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),H=m=!0);break;case 35:this.api.SE()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),H=m=!0)}}V&&HV(this,!0);(V||H)&&this.xp.gM();(m||l&&this.handleGlobalKeyDown(J,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,O.key,O.code,O.repeat))&&O.preventDefault();F.T&&(O={keyCode:O.keyCode, altKey:O.altKey,ctrlKey:O.ctrlKey,metaKey:O.metaKey,shiftKey:O.shiftKey,handled:O.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.il("onKeyPress",O))}; g.T.TA=function(O){var V=O.keyCode;!this.U.F7&&this.handleGlobalKeyUp(V,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,O.key,O.code)&&O.preventDefault()}; g.T.handleGlobalKeyUp=function(O,V,J,y,l,m,H){this.api.publish("keyboardserviceglobalkeyup",{keyCode:O,shiftKey:V,ctrlKey:J,altKey:y,metaKey:l,key:m,code:H});V=!1;if(this.U.QR)return V;(m=g.Be(this.api.Fs()))&&(m=m.O1)&&m.vY&&(m.YE(O),V=!0);switch(O){case 9:HV(this,!0);V=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&!this.api.Y().Wf){var F,N;O=(F=this.progressBar)==null?void 0:(N=F.j)==null?void 0:N.isEnabled;V=this.Gf(O)}break;case 39:(this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(l||J&&y))&&(wn?y:J)&&this.api.SE()&&this.api.L("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),F=(F=this.api.getVideoData())?F.dX:[],N=M_o(F,this.api.getCurrentTime()*1E3),N!==-1&&this.K!=null&&(this.K.wr(1,F[N].title),this.api.seekTo(F[N].startTime/1E3,void 0,void 0,void 0,52),V=!0))}return V}; g.T.handleGlobalKeyDown=function(O,V,J,y,l,m,H,F){F||(this.U.QR=!1);var N=!1,x=this.api.Y();if(x.Wf&&!this.api.isMutedByEmbedsMutedAutoplay())return N;var W=g.Be(this.api.Fs());if(W&&(W=W.O1)&&W.vY)switch(O){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:N=W.HF(O)}x.V||N||(N=m||String.fromCharCode(O).toLowerCase(),this.j+=N,"awesome".indexOf(this.j)===0||this.api.L("web_player_rtr_ctrls")&&"bday".indexOf(this.j)===0?(N=!0,4===this.j.length&&this.j==="bday"&&this.api.L("web_player_rtr_ctrls")&& (yLU(this.W),this.xp.gM()),7===this.j.length&&this.j==="awesome"&&CTo(this.api.getRootNode(),"ytp-color-party")):(this.j=N,N="awesome".indexOf(this.j)===0||"bday".indexOf(this.j)===0));if(!N&&(!this.api.isMutedByEmbedsMutedAutoplay()||t1F.includes(O))){var U=this.api.getVideoData(),Z,z;W=(Z=this.progressBar)==null?void 0:(z=Z.j)==null?void 0:z.isEnabled;Z=U?U.dX:[];z=wn?y:J;switch(O){case 80:V&&!x.LD&&(Rl(this.GG,W2o(),"Previous"),this.api.previousVideo(),N=!0);break;case 78:V&&!x.LD&&(Rl(this.GG, xN(),"Next"),this.api.nextVideo(),N=!0);break;case 74:this.api.SE()&&(this.api.startSeekCsiAction(),this.K?this.api.L("enable_key_press_seek_logging")?(N=jj(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.K.vt(-1,10,N)):this.K.vt(-1,10):Rl(this.GG,{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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),N=!0);break;case 76:this.api.SE()&&(this.api.startSeekCsiAction(),this.K?this.api.L("enable_key_press_seek_logging")?(N=jj(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.K.vt(1,10,N)):this.K.vt(1,10):Rl(this.GG,{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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),N=!0);break;case 37:if(this.api.SE())if(this.api.startSeekCsiAction(),z){if(this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(l||J&&y))z=LGU(Z,this.api.getCurrentTime()*1E3),z!==-1&&this.K!=null&&(this.K.wr(-1,Z[z].title),this.api.seekTo(Z[z].startTime/1E3,void 0,void 0,void 0,53),N=!0)}else this.K?this.api.L("enable_key_press_seek_logging")?(N=jj(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.K.vt(-1,5,N)):this.K.vt(-1,5):Rl(this.GG,{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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),N=!0;break;case 39:this.api.SE()&&(this.api.startSeekCsiAction(),z?this.api.L("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(l||J&&y)||(z=M_o(Z,this.api.getCurrentTime()*1E3),z!==-1&&this.K!=null&&(this.K.wr(1,Z[z].title),this.api.seekTo(Z[z].startTime/1E3,void 0,void 0,void 0,52),N=!0)):(this.K!=null?this.api.L("enable_key_press_seek_logging")?(N=jj(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.K.vt(1,5,N)):this.K.vt(1,5):Rl(this.GG,{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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),N=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Bi(this.GG,this.api.getVolume(),!1)):(this.api.mute(),Bi(this.GG,0,!0));N=!0;break;case 32:N=this.api.L("web_speedmaster_spacebar_control")?!this.api.Y().LD:this.Gf(W);break;case 75:N=this.Gf(W);break;case 190:V?x.enableSpeedOptions&&gJU(this)&&(N=this.api.getPlaybackRate(),this.api.setPlaybackRate(N+.25,!0),pVH(this.GG,!1),N=!0):this.api.SE()&&(this.step(1),N=!0);break;case 188:V? x.enableSpeedOptions&&gJU(this)&&(N=this.api.getPlaybackRate(),this.api.setPlaybackRate(N-.25,!0),pVH(this.GG,!0),N=!0):this.api.SE()&&(this.step(-1),N=!0);break;case 70:RJp(this.api)&&(this.api.toggleFullscreen().catch(function(){}),N=!0); break;case 27:W?(this.progressBar.L5(),N=!0):this.S()&&(N=!0)}if(x.controlsType!=="3")switch(O){case 67:g.Yn(this.api.Fs())&&(x=this.api.getOption("captions","track"),this.api.toggleSubtitles(),fuY(this.GG,!x||x&&!x.displayName),N=!0);break;case 79:Fn(this,"textOpacity");break;case 87:Fn(this,"windowOpacity");break;case 187:case 61:Fn(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Fn(this,"fontSizeIncrement",!0,!0)}var c;V||J||y||(O>=48&&O<=57?c=O-48:O>=96&&O<=105&&(c=O-96));c!=null&&this.api.SE()&& !this.api.L("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),x=this.api.getProgressState(),this.api.seekTo(c/10*(x.seekableEnd-x.seekableStart)+x.seekableStart,void 0,void 0,void 0,81),N=!0);N&&this.xp.gM()}this.U.fb=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:O,shiftKey:V,ctrlKey:J,altKey:y,metaKey:l,key:m,code:H,repeat:F},this.U);this.U.fb&&(N=!0,this.xp.gM());return N}; g.T.step=function(O){this.api.SE();if(this.api.getPlayerStateObject().isPaused()){var V=this.api.getVideoData().j;V&&(V=V.video)&&this.api.seekBy(O/(V.fps||30),void 0,void 0,O>0?77:78)}}; g.T.Gf=function(O){if(!this.api.Y().LD){var V;var J,y=(V=this.api.getVideoData())==null?void 0:(J=V.getPlayerResponse())==null?void 0:J.playabilityStatus;if(y){var l;V=((l=g.e(y.miniplayer,RyI))==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else V=!1;V&&this.api.MX("onExpandMiniplayer");O?this.progressBar.oV():(O=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.GG.eC(O),O?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.T.U5=function(){g.r7(this.D);g.jX.prototype.U5.call(this)};g.I(Np,g.r);Np.prototype.Qz=function(){var O=this.G.Y(),V=O.U||this.G.L("web_player_hide_overflow_button_if_empty_menu")&&this.UB.isEmpty();O=g.R2(O)&&g.iJ(this.G)&&g.R(this.G.getPlayerStateObject(),128);var J=this.G.getPlayerSize();this.visible=this.G.Cu()&&!O&&J.width>=240&&!this.G.getVideoData().tC&&!V&&!this.G.isEmbedsShortsMode();g.yf(this.element,"ytp-overflow-button-visible",this.visible);this.PY(this.visible);this.visible&&this.G.s7();this.G.logVisibility(this.element,this.visible&&this.qX)}; Np.prototype.lR=function(O){g.r.prototype.lR.call(this,O);this.G.logVisibility(this.element,this.visible&&O)}; Np.prototype.U5=function(){g.r.prototype.U5.call(this);g.Vf(this.element,"ytp-overflow-button-visible")};g.I(qaV,me);g.T=qaV.prototype;g.T.gY=function(O){O=YO(O);g.h8(this.element,O)&&(g.h8(this.K,O)||g.h8(this.closeButton,O)||HI(this))}; g.T.x8=function(){me.prototype.x8.call(this);this.G.CB(this.element)}; g.T.show=function(){this.vY&&this.G.publish("OVERFLOW_PANEL_OPENED");me.prototype.show.call(this);this.element.setAttribute("aria-modal","true");GiH(this,!0)}; g.T.hide=function(){me.prototype.hide.call(this);this.element.removeAttribute("aria-modal");GiH(this,!1)}; g.T.onFullscreenToggled=function(O){!O&&this.fK()&&HI(this)}; g.T.isEmpty=function(){return this.actionButtons.length===0}; g.T.focus=function(){for(var O=g.n(this.actionButtons),V=O.next();!V.done;V=O.next())if(V=V.value,V.vY){V.focus();break}};g.I(KGn,g.r);KGn.prototype.onClick=function(O){g.a3(O,this.api)&&this.api.playVideoAt(this.index)};g.I(t_1,me);g.T=t_1.prototype;g.T.show=function(){me.prototype.show.call(this);this.K.Z(this.api,"videodatachange",this.p$);this.K.Z(this.api,"onPlaylistUpdate",this.p$);this.p$()}; g.T.hide=function(){me.prototype.hide.call(this);g.fz(this.K);this.updatePlaylist(null)}; g.T.p$=function(){this.updatePlaylist(this.api.getPlaylist());this.api.Y().U&&(this.DN("ytp-playlist-menu-title-name").removeAttribute("href"),this.j&&(this.oX(this.j),this.j=null))}; g.T.CF=function(){var O=this.playlist,V=O.author,J=V?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",y={CURRENT_POSITION:String(O.index+1),PLAYLIST_LENGTH:String(O.length)};V&&(y.AUTHOR=V);this.update({title:O.title,subtitle:g.kv(J,y),playlisturl:this.api.getVideoUrl(!0)});V=O.j;if(V===this.U)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[O.index];else{J=g.n(this.playlistData);for(y=J.next();!y.done;y=J.next())y.value.dispose(); J=O.length;this.playlistData=[];for(y=0;y=this.j&&!O.U&&!V.isAd()&&!this.api.isEmbedsShortsMode()}else O=!1;this.visible=O;this.PY(this.visible);g.yf(this.element,"ytp-search-button-visible",this.visible);g.yf(this.element,"ytp-show-search-title",!this.api.Cu());this.api.logVisibility(this.element,this.visible&&this.qX)}; Zu.prototype.lR=function(O){g.r.prototype.lR.call(this,O);this.api.logVisibility(this.element,this.visible&&O)};g.I(z3,g.r); z3.prototype.trigger=function(O,V,J,y){this.show();if(this.j&&O!==this.j){var l=1;this.U&&(l=VZr(this));PKY(this,l,!1);ObU(this)}this.j=O;this.D=this.j===-1?this.S:this.T;O="";V?(this.j===-1&&this.G.getCurrentTime()<=V?this.W=V:this.W+=V,O=(this.j===-1?"\u2212":"+")+" "+this.W):this.W=0;this.updateValue(this.j===-1?"durationBack":"durationForward",O);if(this.K==="hidden"||this.K==="fading-out")V=0,this.K==="fading-out"&&(V=VZr(this),DQH(this)),kio(this,V),this.K!=="fading-out"&&SaH(this,this.D.querySelector(".ytp-seek-overlay-arrow-persistent")), this.K="fading-in";else if(this.K==="fading-in"||this.K==="lingering")V=this.D.querySelector(".ytp-seek-overlay-duration"),O=g.Ry(this.G.Y().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,V.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+O+")"},{offset:1,transform:"scale(1)"}],{duration:184}),DQH(this),this.K==="lingering"&&(this.V.stop(),this.V.start());J&&J3r(this, J,y)}; z3.prototype.WM=function(O,V,J,y){this.trigger(O,y)}; z3.prototype.vt=function(O,V,J){this.trigger(O,V);J&&(O=O===-1?this.T.visualElement:this.S.visualElement,J={seekData:J},(V=g.Fe())&&rd(V,O,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",J))}; z3.prototype.wr=function(O,V,J){this.trigger(O,void 0,V,J)};g.I(cV,g.r);cV.prototype.onClick=function(){var O=this,V=this.api.Y(),J=this.api.getVideoData({playerType:this.api.getPresentingPlayerType()}),y=this.api.getPlaylistId();V=this.api.L("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):V.getVideoUrl(J.videoId,y,void 0,!0);if(navigator.share)try{var l=navigator.share({title:J.title,url:V});l instanceof Promise&&l.catch(function(m){lvo(O,m)})}catch(m){m instanceof Error&&lvo(this,m)}else this.K.jM(),HI(this.j,this.element,!1); this.api.logClick(this.element)}; cV.prototype.Qz=function(){var O=this.api.Y(),V=this.api.isEmbedsShortsMode();g.yf(this.element,"ytp-show-share-title",g.R2(O)&&!V);this.K.UY()&&V?(O=(this.api.tv().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Pp(this.element,"right",O+"px")):V&&g.Pp(this.element,"right","0px");this.updateValue("icon",{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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=y35(this);g.yf(this.element,"ytp-share-button-visible",this.visible);this.PY(this.visible);this.tooltip.s7();this.api.logVisibility(this.element,y35(this)&&this.qX)}; cV.prototype.lR=function(O){g.r.prototype.lR.call(this,O);this.api.logVisibility(this.element,this.visible&&O)}; cV.prototype.U5=function(){g.r.prototype.U5.call(this);g.Vf(this.element,"ytp-share-button-visible")};g.I($jh,me);g.T=$jh.prototype;g.T.yn=function(O){O=YO(O);g.h8(this.D,O)||g.h8(this.closeButton,O)||HI(this)}; g.T.x8=function(){me.prototype.x8.call(this);this.tooltip.CB(this.element);this.api.logVisibility(this.K,!1);for(var O=g.n(this.j),V=O.next();!V.done;V=O.next())V=V.value,this.api.hasVe(V.element)&&this.api.logVisibility(V.element,!1)}; g.T.show=function(){var O=this.vY;me.prototype.show.call(this);this.Qz();O||this.api.MX("onSharePanelOpened")}; g.T.GyD=function(){this.vY&&this.Qz()}; g.T.Qz=function(){var O=this;g.D0(this.element,"ytp-share-panel-loading");g.Vf(this.element,"ytp-share-panel-fail");var V=this.api.getVideoData(),J=this.api.getPlaylistId()&&this.U.checked;V.getSharePanelCommand&&pU(this.api.a5(),V.getSharePanelCommand,{includeListId:J}).then(function(y){O.GL()||(g.Vf(O.element,"ytp-share-panel-loading"),CRr(O,y))}); V=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",V);this.updateValue("linkText",V);this.updateValue("shareLinkWithUrl",g.kv("Share link $URL",{URL:V}));h9(this.K);this.api.logVisibility(this.K,!0)}; g.T.onFullscreenToggled=function(O){!O&&this.fK()&&HI(this)}; g.T.focus=function(){this.K.focus()}; g.T.U5=function(){me.prototype.U5.call(this);Hbd(this)};g.I(xj7,c9);g.T=xj7.prototype;g.T.U5=function(){c31(this);c9.prototype.U5.call(this)}; g.T.LV=function(O){O.target!==this.dismissButton.element&&(this.Aq(!1),this.G.MX("innertubeCommand",this.onClickCommand))}; g.T.Q8=function(){this.nD=!0;this.Aq(!0);this.J4()}; g.T.tyi=function(O){this.V=O;this.J4()}; g.T.onVideoDataChange=function(O,V){if(O=!!V.videoId&&this.videoId!==V.videoId)this.videoId=V.videoId,this.nD=!1,this.fD=!0,this.S=this.lw=!1,c31(this),zpr(this,!1),this.U=this.K=!1,T3(this),W5U(this);if(O||!V.videoId)this.KD=this.j=!1;var J,y;if(V==null?0:(J=V.getPlayerResponse())==null?0:(y=J.videoDetails)==null?0:y.isLiveContent)this.D_(!1);else{var l,m,H;V=g.e((l=V.getWatchNextResponse())==null?void 0:(m=l.playerOverlays)==null?void 0:(H=m.playerOverlayRenderer)==null?void 0:H.productsInVideoOverlayRenderer, Qz1);this.V=this.enabled=!1;if(V){if(l=V==null?void 0:V.featuredProductsEntityKey){m=g.aT.getState().entities;var F;if((F=Ce(m,"featuredProductsEntity",l))==null?0:F.productsData){this.D_(!1);return}}if(!V.text||!V.onClickCommand||!V.timing){this.D_(!1);return}this.enabled=!0;if(!this.j){var N;F=(N=V.badgeInteractionLogging)==null?void 0:N.trackingParams;(this.j=!!F)&&this.G.setTrackingParams(this.badge.element,F||null)}if(!this.KD){var x;if(this.KD=!((x=V.dismissButton)==null||!x.trackingParams)){var W; this.G.setTrackingParams(this.dismissButton.element,((W=V.dismissButton)==null?void 0:W.trackingParams)||null)}}V.isContentForward&&(N=V.productsData,zpr(this,!0),W5U(this),N=Zb1(this,N),x=[],N.length>0&&x.push(N[0]),N.length>1&&(W=new g.r({X:"div",C:"ytp-suggested-action-more-products-icon"}),g.t(this,W),x.push(W),x.push.apply(x,g.q(N.slice(1)))),this.W=new g.r({X:"div",J:x,C:"ytp-suggested-action-content-forward-container"}),g.t(this,this.W),this.Vz.element.append(this.W.element));this.text=g.yb(V.text); var U;if(N=(U=V.dismissButton)==null?void 0:U.a11yLabel)this.E5=g.yb(N);this.onClickCommand=V.onClickCommand;this.timing=V.timing;this.aG()}gB5(this);zW(this);this.J4()}}; g.T.RL=function(){return!this.V&&this.enabled&&!this.nD&&!this.G.Cu()&&!this.oB&&(this.S||this.fD)}; g.T.gG=function(O){c9.prototype.gG.call(this,O);if(this.K||this.U)this.timing&&sQ(this.timing.preview)&&(this.K=!1,T3(this),this.U=!1,T3(this),this.G.iO("shopping_overlay_preview_collapsed"),this.G.iO("shopping_overlay_preview_expanded"),O=ej(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),sQ(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.G.iO("shopping_overlay_expanded"),O.end=this.timing.expanded.endSec*1E3),this.G.aG([O])), this.lw=!0,zW(this);T3(this)}; g.T.D_=function(O){(this.S=O)?(Zw(this),zW(this,!1)):(c31(this),this.LD.start());this.J4()}; g.T.aG=function(O){var V=this.timing;O=(O===void 0?0:O)+this.G.getCurrentTime();var J=[],y=V.visible,l=V.preview;V=V.expanded;sQ(y)&&(F5r(y,O),J.push(ej(y.startSec,y.endSec,"shopping_overlay_visible")));sQ(l)&&(F5r(l,O),y=l.startSec+1,J.push(ej(l.startSec,y,"shopping_overlay_preview_collapsed")),J.push(ej(y,l.endSec,"shopping_overlay_preview_expanded")));sQ(V)&&(F5r(V,O),J.push(ej(V.startSec,V.endSec,"shopping_overlay_expanded")));this.G.aG(J)}; g.T.J4=function(){c9.prototype.J4.call(this);this.G.getRootNode()&&g.yf(this.G.getRootNode(),"ytp-shopping-pill-shown",this.RL())};g.I(eph,g.r); eph.prototype.Qz=function(){var O=this.api.Y();this.PY(g.R2(O)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.vY);var V=this.api.getVideoData(),J=!1;this.api.getPresentingPlayerType()===2?J=!!V.videoId&&!!V.isListed&&!!V.author&&!!V.LD&&!!V.profilePicture:g.R2(O)&&(J=!!V.videoId&&!!V.LD&&!!V.profilePicture&&!V.tC&&!O.U&&!(O.S&&this.api.getPlayerSize().width<200));var y=V.profilePicture;O=g.R2(O)?V.expandedTitle:V.author;y=y===void 0? "":y;O=O===void 0?"":O;J?(this.j!==y&&(this.K.style.backgroundImage="url("+y+")",this.j=y),this.updateValue("channelLogoLabel",g.kv("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:O})),g.D0(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Vf(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.K,J&&this.qX);this.api.logVisibility(this.channelName,J&&this.qX);this.subscribeButton&&(this.subscribeButton.channelId=V.iL);this.updateValue("expandedTitle",V.expandedTitle)};g.I(IQ,me);IQ.prototype.show=function(){me.prototype.show.call(this);this.K.start()}; IQ.prototype.hide=function(){me.prototype.hide.call(this);this.K.stop()}; IQ.prototype.J_=function(O,V){O==="dataloaded"&&((this.MN=V.MN,this.tW=V.tW,isNaN(this.MN)||isNaN(this.tW))?this.j&&(this.G.iO("intro"),this.G.removeEventListener(g.Q9("intro"),this.S),this.G.removeEventListener(g.Gd("intro"),this.D),this.G.removeEventListener("onShowControls",this.U),this.hide(),this.j=!1):(this.G.addEventListener(g.Q9("intro"),this.S),this.G.addEventListener(g.Gd("intro"),this.D),this.G.addEventListener("onShowControls",this.U),O=new g.gz(this.MN,this.tW,{priority:9,namespace:"intro"}), this.G.aG([O]),this.j=!0))};g.I(Y5,g.r);Y5.prototype.onClick=function(){this.G.ZQ()}; Y5.prototype.Qz=function(){var O=!0;g.R2(this.G.Y())&&(O=O&&this.G.tv().getPlayerSize().width>=480);this.PY(O);O=this.updateValue;var V=this.G.L("delhi_modern_web_player_icons"),J=V?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,N:{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"}}]};V=V?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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"}}]};O.call(this,"icon",this.G.R5()?J:V)};g.I(Y3p,g.r);Y3p.prototype.U5=function(){this.K=null;g.r.prototype.U5.call(this)};g.I(aQ,g.r);aQ.prototype.onClick=function(){this.G.MX("innertubeCommand",this.j)}; aQ.prototype.T=function(){if(this.G.L("delhi_modern_web_player")){var O=this.G.getPlayerSize();O.width&&(this.element.style.maxWidth=O.width*.25+"px")}}; aQ.prototype.lw=function(O){O!==this.V&&(this.update({chapterTitle:O,ariaLabel:O}),this.V=O);O?this.show():this.hide()}; aQ.prototype.KD=function(){this.K.disabled=this.j==null;g.yf(this.K,"ytp-chapter-container-disabled",this.K.disabled);this.VK()};g.I(bu,aQ);bu.prototype.onClickCommand=function(O){g.e(O,YZ)&&this.VK()}; bu.prototype.updateVideoData=function(O,V){var J,y,l;O=g.e((J=V.getWatchNextResponse())==null?void 0:(y=J.playerOverlays)==null?void 0:(l=y.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,BJ);J=g.e(O==null?void 0:O.playerBarActionButton,tE);if(this.G.L("web_player_updated_entrypoint")){this.S=Wq(J==null?void 0:J.text);var m;y=(m=J==null?void 0:J.tooltip)!=null?m:"View chapter";this.W.setAttribute("title",y)}this.j=J==null?void 0:J.command;aQ.prototype.KD.call(this)}; bu.prototype.VK=function(){var O=this.S,V=this.D.K,J,y=((J=this.G.getLoopRange())==null?void 0:J.type)==="clips";if(V.length>1&&!y){O=this.G.getProgressState().current*1E3;J=$5(V,O);O=V[J].title||"Chapters";if(J!==this.currentIndex||this.U)this.G.MX("innertubeCommand",V[J].onActiveCommand),this.currentIndex=J;this.U=!1}else this.U=!0;aQ.prototype.lw.call(this,O)};g.I(pt,g.OF);pt.prototype.j=function(){var O;(O=this.element.parentElement)==null||O.classList.contains("ytp-right-controls-left");(this.K=!this.K)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; pt.prototype.isExpanded=function(){return this.K};g.I(ft,g.r);ft.prototype.U=function(O){g.R(O.state,32)?bbh(this,this.api.wq()):this.vY&&(g.R(O.state,16)||g.R(O.state,1))||this.fade.hide()}; ft.prototype.onProgress=function(){var O=this.api.getPlayerStateObject();(g.R(O,32)||g.R(O,16))&&pOl(this)}; ft.prototype.D=function(){this.frameIndex=NaN;pOl(this)}; ft.prototype.hide=function(){this.K&&bbh(this,null);g.r.prototype.hide.call(this)};g.I(fvr,g.r);g.T=fvr.prototype;g.T.onClick=function(){var O=this;if(this.G.Y().Ks||this.G.Y().S){this.G.logClick(this.element);try{this.G.toggleFullscreen().catch(function(V){O.GV(V)})}catch(V){this.GV(V)}}else HI(this.message,this.element,!0)}; g.T.GV=function(O){String(O).includes("fullscreen error")?g.en(O):g.sk(O);this.G1()}; g.T.G1=function(){this.disable();this.message.Zg(this.element,!0)}; g.T.xR=function(){Zi()===this.G.getRootNode()?this.U.start():(this.U.stop(),this.message&&this.message.hide())}; g.T.MD=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var O=window.screen.width*.9,V=window.screen.height*.9,J=Math.max(window.outerWidth,window.innerWidth),y=Math.max(window.outerHeight,window.innerHeight);if(J>y!==O>V){var l=J;J=y;y=l}O>J&&V>y&&this.G1()}}; g.T.disable=function(){var O=this;if(!this.message){var V=(xO(["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 me(this.G,{X:"div",Fj:["ytp-popup","ytp-generic-popup"],N:{role:"alert",tabindex:"0"},J:[V[0],{X:"a",N:{href:"https://support.google.com/youtube/answer/6276924", target:this.G.Y().qX},Rl:V[2]},V[4]]},100,!0);this.message.hide();g.t(this,this.message);this.message.subscribe("show",function(J){O.j.nj(O.message,J)}); g.kD(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.K)();this.K=null}}; g.T.Qz=function(){var O=RJp(this.G),V=this.G.Y().S&&this.G.getPlayerSize().width<250;this.PY(O&&!V);this.G.logVisibility(this.element,this.vY)}; g.T.Ws=function(O){if(O){var V=g.Kj(this.G,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.G.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(J){g.en(J)})}else V=g.Kj(this.G,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); O=hpd(this,O);V=this.message?null:V;this.G.Y().L("player_tooltip_data_title_killswitch")?this.update({title:V,icon:O}):this.update({"tooltip-title":V,"aria-label":V,icon:O});this.j.Sy().s7()}; g.T.U5=function(){this.message||((0,this.K)(),this.K=null);g.r.prototype.U5.call(this)}; g.T.lR=function(O){g.r.prototype.lR.call(this,O)};g.I(hp,g.r);hp.prototype.onClick=function(){this.G.logClick(this.element);this.G.seekBy(this.K,!0);var O=this.K>0?1:-1,V=Math.abs(this.K),J=this.G.VZ().v4;J&&J.vt(O,V);this.j.isActive()?this.U=!0:(O=["ytp-jump-spin"],this.K<0&&O.push("backwards"),this.element.classList.add.apply(this.element.classList,g.q(O)),g.uL(this.j))};g.I(oQ,aQ);oQ.prototype.onClickCommand=function(O){g.e(O,gEz)&&this.VK()}; oQ.prototype.updateVideoData=function(){var O,V;this.j=(O=vcd(this))==null?void 0:(V=O.onTap)==null?void 0:V.innertubeCommand;aQ.prototype.KD.call(this)}; oQ.prototype.VK=function(){var O="",V=this.D.S,J,y=(J=vcd(this))==null?void 0:J.headerTitle;J=y?g.yb(y):"";var l;y=((l=this.G.getLoopRange())==null?void 0:l.type)==="clips";V.length>1&&!y&&(O=this.G.getProgressState().current*1E3,l=wz5(V,O),O=l!=null?V[l].title:J,l!=null&&l!==this.currentIndex&&(this.G.MX("innertubeCommand",V[l].onActiveCommand),this.currentIndex=l));aQ.prototype.lw.call(this,O)};g.I(vV,g.r);vV.prototype.onClick=function(){this.G.MX("onCollapseMiniplayer");this.G.logClick(this.element)}; vV.prototype.Qz=function(){this.visible=!this.G.isFullscreen();this.PY(this.visible);this.G.logVisibility(this.element,this.visible&&this.qX)}; vV.prototype.lR=function(O){g.r.prototype.lR.call(this,O);this.G.logVisibility(this.element,this.visible&&O)};var XOr=new Ug(0,0,.05,0,0,1,1,1);g.I(wp,g.r);wp.prototype.init=function(){this.update({minvalue:this.U,maxvalue:this.W,stepvalue:this.V,slidervalue:this.K,ariaValueNow:this.K,ariaMinValue:this.U,ariaMaxValue:this.W});nc7(this,this.K)}; wp.prototype.IZ=function(){Mp(this,Number(this.j.value));this.j.focus()}; wp.prototype.q0=function(O){if(!O.defaultPrevented){switch(O.code){case "ArrowDown":O=-this.V;break;case "ArrowUp":O=this.V;break;default:return}Mp(this,Math.min(this.W,Math.max(Number((this.K+O).toFixed(2)),this.U)))}};g.I(Lt,wp);Lt.prototype.onVolumeChange=function(O){if(this.S)this.S=!1;else{var V=O.volume;V===0||O.muted?Mp(this,0):Mp(this,V)}}; Lt.prototype.IZ=function(){wp.prototype.IZ.call(this);this.T(this.K)}; Lt.prototype.KD=function(O){var V=-O.deltaY;V=O.deltaMode===WheelEvent.DOM_DELTA_LINE||O.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.BZ(this.K+V,0,100):g.BZ(this.K+g.BZ(V/10,-10,10),0,100);V===0?Mp(this,0):Mp(this,V);this.T(V);O.preventDefault();O.stopPropagation()}; Lt.prototype.lw=function(O,V){this.S=!0;O===0||V?this.G.mute():(this.G.isMuted()&&this.G.unMute(),this.G.setVolume(O))};g.I(EcH,g.r);g.I(Xn,g.r);g.T=Xn.prototype;g.T.Cb=function(){if(!this.G.vc()){this.updateValue("dataTooltipOffsetY",-120);var O;(O=this.K)!=null&&nt(O,!0);var V;(V=this.K)!=null&&V.K.stop()}}; g.T.OT=function(){var O;(O=this.K)!=null&&O.K.start()}; g.T.E_=function(O){this.visible=O.width>=300||this.ol;this.PY(this.visible);this.G.logVisibility(this.element,this.visible&&this.qX)}; g.T.Cq=function(){this.G.Y().Vz?this.G.isMuted()?this.G.unMute():this.G.mute():HI(this.message,this.element,!0);this.G.logClick(this.element)}; g.T.Rcv=function(O){if(this.G.Y().Vz&&this.K)if(O.target===this.U){var V;if(!this.G.vc()||((V=this.K)==null?0:V.isVisible))this.Cq();else{var J;(J=this.K)!=null&&nt(J,!0)}}else{var y;(y=this.K)!=null&&nt(y,!0)}else this.Cq()}; g.T.onVolumeChange=function(O){this.setVolume(O.volume,O.muted)}; g.T.setVolume=function(O,V){var J=this,y=V?0:O/100;O=y===0?1:O>50?1:0;if(this.T!==O){var l=this.S;isNaN(l)?GLn(this,O):h_X(this.Vz,function(H){GLn(J,l+(J.T-l)*H)},250); this.T=O}y=y===0?1:0;if(this.V!==y){var m=this.fD;isNaN(m)?K5V(this,y):h_X(this.O5,function(H){K5V(J,m+(J.V-m)*H)},250); this.V=y}gcn(this,V)}; g.T.lR=function(O){g.r.prototype.lR.call(this,O);this.G.logVisibility(this.element,this.visible&&O)}; var q3h=["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"],Qu7=["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.I(g.EQ,g.r);g.T=g.EQ.prototype;g.T.onStateChange=function(O){this.gX(O.state)}; g.T.gX=function(O){var V=g.BL(this.G.getVideoData()),J=!1;O.isOrWillBePlaying()?O=V?4:2:g.R(O,2)?(O=3,J=V):O=1;this.element.disabled=J;if(this.K!==O){V=null;switch(O){case 2:V=g.Kj(this.G,"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.Kj(this.G,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:V="Stop playback",this.update({"data-title-no-tooltip":"Stop playback"})}O===3?this.G.Y().L("player_tooltip_data_title_killswitch")? this.update({title:V,icon:tZH(this,O)}):this.update({"tooltip-title":V,icon:tZH(this,O)}):(this.G.L("player_tooltip_data_title_killswitch")?this.update({title:V}):this.update({"tooltip-title":V}),(V=tZH(this,O))&&this.K&&this.K!==3?vi5(this.transition,this.element,V):this.updateValue("icon",V));this.tooltip.s7();this.K=O}}; g.T.onVideoDataChange=function(){g.yf(this.element,"ytp-play-button-playlist",g.iJ(this.G))}; g.T.Gf=function(O){this.G.logClick(this.element);if(this.G.getPlayerStateObject().isOrWillBePlaying())this.G.pauseVideo();else{if(this.G.isMinimized()&&this.G.getPlayerStateObject().isCued()){var V={},J;if((J=this.G.getVideoData())==null?0:J.V)V.cttAuthInfo={token:this.G.getVideoData().V,videoId:this.G.getVideoData().videoId};e4("direct_playback",V);this.G.kI().timerName="direct_playback"}this.G.playVideo()}this.G.isMinimized()&&(O==null?void 0:O.type)==="click"&&this.element.blur()}; g.T.lR=function(O){g.r.prototype.lR.call(this,O)};g.I(g.dp,g.r);g.T=g.dp.prototype;g.T.onVideoDataChange=function(){r3h(this);this.D&&(this.oX(this.D),this.D=null);this.videoData=this.G.getVideoData({playerType:1});if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.Z(this.G,"progresssync",this.IA);this.U=ibV(this);A37(this);this.K$(this.G.tv().getPlayerSize())}; g.T.K$=function(O){O=O===void 0?this.G.tv().getPlayerSize():O;var V,J=((V=this.G.getLoopRange())==null?void 0:V.type)==="clips";V=g.iJ(this.G)||this.K&&g.Su(this.G)&&!this.G.L("web_hide_next_button")||RpV(this);var y=!this.K&&O.width<400;O=this.G.L("delhi_modern_web_player_horizontal_volume_controls")&&O.width<640;J=V&&!J&&!y&&!O;this.PY(J);this.G.logVisibility(this.element,J)}; g.T.onClick=function(O){this.G.logClick(this.element);var V=!0;this.V?V=g.a3(O,this.G):O.preventDefault();V&&(this.K&&this.G.getPresentingPlayerType()===5?this.G.publish("ytoprerollinternstitialnext"):this.K?(xn(this.G.kI()),this.G.publish("playlistnextbuttonclicked",this.element),this.G.nextVideo(!0)):this.U?this.G.seekTo(0):(xn(this.G.kI()),this.G.publish("playlistprevbuttonclicked",this.element),this.G.previousVideo(!0)))}; g.T.IA=function(){var O=ibV(this);O!==this.U&&(this.U=O,A37(this))}; g.T.U5=function(){this.j&&(this.j(),this.j=null);r3h(this);g.r.prototype.U5.call(this)};g.I(PRr,g.r);g.T=PRr.prototype;g.T.SH=function(O){this.lU(O.pageX);this.jb(O.pageX+O.deltaX);kLp(this)}; g.T.lU=function(O){this.KD=O-this.ol}; g.T.jb=function(O){O-=this.ol;!isNaN(this.KD)&&this.thumbnails.length>0&&(this.T=O-this.KD,this.thumbnails.length>0&&this.T!==0&&(this.U=this.S+this.T,O=JWl(this,this.U),this.U<=this.K/2&&this.U>=VQh(this)?(this.api.seekTo(O,!1,void 0,void 0,25),g.Pp(this.fD,"transform","translateX("+(this.U-this.K/2)+"px)"),B1Y(this,O)):this.U=this.S))}; g.T.Qn=function(){this.lw&&(this.lw.mS=!0);var O=(0,g.cH)()-this.yz<300;if(Math.abs(this.T)<5&&!O){this.yz=(0,g.cH)();O=this.KD+this.T;var V=this.K/2-O;this.lU(O);this.jb(O+V);kLp(this);this.api.logClick(this.W)}kLp(this)}; g.T.CN=function(){gp(this,this.api.getCurrentTime())}; g.T.play=function(O){this.api.seekTo(JWl(this,this.U),void 0,void 0,void 0,26);this.api.playVideo();O&&this.api.logClick(this.playButton)}; g.T.onExit=function(O){this.api.seekTo(this.LD,void 0,void 0,void 0,63);this.api.playVideo();O&&this.api.logClick(this.dismissButton)}; g.T.zy=function(O,V){this.ol=O;this.K=V;gp(this,this.api.getCurrentTime())}; g.T.enable=function(){this.isEnabled||(this.isEnabled=!0,this.LD=this.api.getCurrentTime(),B1Y(this,this.LD),g.yf(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Vz=this.Z(this.element,"wheel",this.SH),this.logVisibility(this.isEnabled))}; g.T.disable=function(){this.isEnabled=!1;this.hide();g.yf(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Vz&&this.oX(this.Vz);this.logVisibility(this.isEnabled)}; g.T.reset=function(){this.disable();this.D=[];this.dW=!1}; g.T.logVisibility=function(O){this.api.logVisibility(this.element,O);this.api.logVisibility(this.W,O);this.api.logVisibility(this.dismissButton,O);this.api.logVisibility(this.playButton,O)}; g.T.U5=function(){for(;this.j.length;){var O=void 0;(O=this.j.pop())==null||O.dispose()}g.r.prototype.U5.call(this)}; g.I(S3U,g.r);g.I(DjY,g.r);g.I(yWH,g.r);g.I(qp,g.r);qp.prototype.dC=function(O){return O==="PLAY_PROGRESS"?this.S:O==="LOAD_PROGRESS"?this.V:O==="LIVE_BUFFER"?this.W:this.U};$a5.prototype.update=function(O,V,J,y){J=J===void 0?0:J;this.width=V;this.D=J;this.K=V-J-(y===void 0?0:y);this.position=g.BZ(O,J,J+this.K);this.U=this.position-J;this.j=this.U/this.K};g.I(HPr,g.r);g.I(g.Kt,g.OF);g.T=g.Kt.prototype; g.T.dQ=function(){var O=!1,V=this.api.getVideoData();if(!V)return O;this.api.iO("timedMarkerCueRange");FvX(this);for(var J=g.n(V.Vz),y=J.next();!y.done;y=J.next()){y=y.value;var l=void 0,m=(l=this.nD[y])==null?void 0:l.markerType,H=void 0;l=(H=this.nD[y])==null?void 0:H.markers;if(!l)break;if(m==="MARKER_TYPE_TIMESTAMPS"){O=g.n(l);for(m=O.next();!m.done;m=O.next()){H=m.value;m=new HPr;var F=void 0;m.title=((F=H.title)==null?void 0:F.simpleText)||"";m.timeRangeStartMillis=Number(H.startMillis);m.K= Number(H.durationMillis);var N=F=void 0;m.onActiveCommand=(N=(F=H.onActive)==null?void 0:F.innertubeCommand)!=null?N:void 0;zOo(this,m)}cW7(this,this.S);O=this.S;m=this.YI;H=[];F=null;for(N=0;Nx&&(F.end=x);x=nJr(x,x+U);H.push(x);F=x;m[x.id]=O[N].onActiveCommand}}this.api.aG(H);a:{O=g.n(l);for(l=O.next();!l.done;l=O.next())if(l.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){O= !1;break a}O=!0}O&&(this.NE=this.nD[y]);O=!0}else if(m==="MARKER_TYPE_HEATMAP"){y=this.nD[y];W=x=m=N=F=H=void 0;if(y&&y.markers){l=(m=(W=y.markersMetadata)==null?void 0:(x=W.heatmapMetadata)==null?void 0:x.minHeightDp)!=null?m:0;m=(H=(N=y.markersMetadata)==null?void 0:(F=N.heatmapMetadata)==null?void 0:F.maxHeightDp)!=null?H:60;H=this.K.length;F=null;for(N=0;N=W&&c<=U&&x.push(z)}m>0&&(this.lw.style.height=m+"px");W=this.D[N];U=x;z=l;var Y=m,b=N===0;b=b===void 0?!1:b;lEr(W,Y);Z=U;c=W.j;b=b===void 0?!1:b;var M=1E3/Z.length,w=[];w.push({x:0,y:100});for(var L=0;L0&&(F=x[x.length-1])}g.tp(this)}m=void 0;l=[];if(y=(m=y.markersDecoration)==null?void 0:m.timedMarkerDecorations)for(y=g.n(y),m=y.next();!m.done;m=y.next())m=m.value,N=F=H=void 0,l.push({visibleTimeRangeStartMillis:(H=m.visibleTimeRangeStartMillis)!= null?H:-1,visibleTimeRangeEndMillis:(F=m.visibleTimeRangeEndMillis)!=null?F:-1,decorationTimeMillis:(N=m.decorationTimeMillis)!=null?N:NaN,label:m.label?g.yb(m.label):""});y=l;this.heatMarkersDecorations=y}}V.S0=this.S;g.yf(this.element,"ytp-timed-markers-enabled",O);return O}; g.T.zy=function(){g.tp(this);rp(this);cW7(this,this.S);if(this.j){var O=g.mM(this.element).x||0;this.j.zy(O,this.V)}}; g.T.riL=function(){var O=this.api.getVideoData();O&&oqU(this,O)}; g.T.onClickCommand=function(O){if(O=g.e(O,YZ)){var V=O.key;O.isVisible&&V&&IEH(this,V)}}; g.T.BDz=function(O){this.api.MX("innertubeCommand",this.YI[O.id])}; g.T.VK=function(){rp(this);var O=this.api.getCurrentTime();(Othis.clipEnd)&&this.yw()}; g.T.I2=function(O){if(!O.defaultPrevented){var V=!1;switch(O.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.L("enable_key_press_seek_logging")&&Sj(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.L("enable_key_press_seek_logging")&&Sj(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&&O.preventDefault()}}; g.T.J_=function(O,V){this.updateVideoData(V,O==="newdata")}; g.T.Avz=function(){this.J_("newdata",this.api.getVideoData())}; g.T.updateVideoData=function(O,V){V=V===void 0?!1:V;var J=!!O&&O.wN();J&&(ce(O)||fEd(this)?this.MU=!1:this.MU=O.allowLiveDvr,g.yf(this.api.getRootNode(),"ytp-enable-live-buffer",!(O==null||!ce(O))),oqU(this,O));tQr(this,this.api.SE());if(V){if(J){V=O.clipEnd;this.clipStart=O.clipStart;this.clipEnd=V;Du(this);for(BV(this,this.KD,this.Xs);this.D.length>0;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.yc={};var y;(y=this.j)==null||y.reset();Jx(this);g.yf(this.api.getRootNode(),"ytp-fine-scrubbing-exp", G3(this))}else this.yw();this.ez()}if(O){var l;y=((l=this.ih)==null?void 0:l.type)==="clips";if(l=!O.isLivePlayback){l=this.api.getVideoData();V=g.PJ(l);J=xar(l);var m;l=V!=null||J!=null&&J.length>0||((m=l.Ip)==null?void 0:m.length)>0}if(l&&!y){m=this.api.getVideoData();y=g.PJ(m);l=!1;if(y==null?0:y.markersMap){l=this.api.getVideoData();var H;l.H1=((H=y.visibleOnLoad)==null?void 0:H.key)||l.H1;H=g.n(y.markersMap);for(y=H.next();!y.done;y=H.next())y=y.value,y.key&&y.value&&(this.yc[y.key]=y.value, y.value.onChapterRepeat&&(l.OM=y.value.onChapterRepeat));l.H1!=null&&IEH(this,l.H1);l=!0}var F;if(((F=m.Ip)==null?void 0:F.length)>0){F=g.aT.getState().entities;H=g.n(m.Ip);for(y=H.next();!y.done;y=H.next()){y=y.value;J=void 0;V=(J=Ce(F,"macroMarkersListEntity",y))==null?void 0:J.markersList;var N=J=void 0;if(((J=V)==null?void 0:J.markerType)==="MARKER_TYPE_TIMESTAMPS"||((N=V)==null?void 0:N.markerType)==="MARKER_TYPE_HEATMAP")this.nD[y]=V}l=this.dQ()||l}!l&&(F=xar(m))&&(Ua1(this,F),m.dX=this.K,Wv5(this)); vqn(this,null);O.X9&&this.D.length===0&&(O=O.X9,F=O.key,O.isVisible&&F&&IEH(this,F))}else jJh(this),FvX(this)}rp(this)}; g.T.Vg=function(O){this.T&&!g.R(O.state,32)&&this.api.getPresentingPlayerType()!==3&&this.T.cancel();var V;((V=this.j)==null?0:V.isEnabled)&&g.R(O.state,8)&&this.api.pauseVideo();O=this.api.getPresentingPlayerType()===2||!this.api.SE()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.yf(this.qq,"ytp-hide-scrubber-button",O)}; g.T.PW=function(O){var V=!!this.ih!==!!O,J=this.ih;this.ih=O;vqn(this,J);(O==null?void 0:O.type)!=="clips"&&O||(O?(this.updateValue("clipstarticon",yGp()),this.updateValue("clipendicon",yGp()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",PM7()),this.updateValue("clipendicon",Br1()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),V&&(this.updateVideoData(this.api.getVideoData(), !0),g.tp(this)),Du(this));BV(this,this.KD,this.Xs)}; g.T.BNL=function(){this.api.publish("progressBarHoverStart")}; g.T.egN=function(O,V,J){var y=g.mM(this.element),l=Ap(this).K,m=J?J.getAttribute("data-tooltip"):void 0,H=J?J.getAttribute("data-position"):void 0,F=J?J.getAttribute("data-offset-y"):void 0;F=F?Number(F):0;H&&(O=I0(this.U,Number(J.getAttribute("data-position")),0)*l+g.mM(this.progressBar).x);this.UR.x=O-y.x;this.UR.y=V-y.y;O=Ap(this);J=k5(this,O);V=0;var N;if((N=this.api.getVideoData())==null?0:ce(N))(N=this.api.getProgressState().seekableEnd)&&J>N&&(J=N,O.position=I0(this.U,N)*Ap(this).K),V=this.U.j; fEd(this)&&(V=this.U.j);N=m||g.Nw(this.MU?J-this.U.K:J-V);V=O.position+this.h0;J-=this.api.HY();var x;if((x=this.j)==null||!x.isEnabled)if(this.api.wq()){if(this.K.length>1){x=PV(this,this.UR.x,!0);if(!this.ih)for(y=0;y1)for(y=0;y0)for(x=this.UR.x,y=g.n(this.S),l=y.next();!l.done;l=y.next())l=l.value,H=uu(this,l.timeRangeStartMillis/ (this.U.K*1E3),Ap(this)),g.yf(l.element,"ytp-timed-marker-hover",H<=x&&H+6>=x);y=this.tooltip.scale;x=this.api.L("delhi_modern_web_player")?67:45;F=(isNaN(F)?0:F)-x*y;this.api.L("web_key_moments_markers")?this.NE?(x=wz5(this.S,J*1E3),x=x!=null?this.S[x].title:""):(x=$5(this.K,J*1E3),x=this.K[x].title):(x=$5(this.K,J*1E3),x=this.K[x].title);x||(F+=16*y);this.tooltip.scale===.6&&(g.ZG(this.api.Y())?(F=this.api.tv().getPlayerSize().height-225,y=this.api.L("delhi_modern_web_player")?70:110,F=x?F+y:F+ y+16):F=x?110:126);y=$5(this.K,J*1E3);this.Vz=MQo(this,J,y)?y:MQo(this,J,y+1)?y+1:-1;g.yf(this.api.getRootNode(),"ytp-progress-bar-snap",this.Vz!==-1&&this.K.length>1);y=!1;l=g.n(this.heatMarkersDecorations);for(H=l.next();!H.done;H=l.next()){H=H.value;var W=J*1E3;W>=H.visibleTimeRangeStartMillis&&W<=H.visibleTimeRangeEndMillis&&(x=H.label,N=g.Nw(k5(this,O)),y=!0)}this.OE!==y&&(this.OE=y,this.api.logVisibility(this.ul,this.OE));g.yf(this.api.getRootNode(),"ytp-progress-bar-decoration",y);y=160*this.tooltip.scale* 2;l=x.length*(this.W?8.55:5.7);l=l<=y?l:y;H=l<160*this.tooltip.scale;y=3;!H&&l/2>O.position&&(y=1);!H&&l/2>this.V-O.position&&(y=2);this.api.Y().S&&(F-=10);this.D.length&&this.D[0].wN&&(F-=14*(this.W?2:1),this.yz||(this.yz=!0,this.api.logVisibility(this.lw,this.yz)));var U;if(G3(this)&&(((U=this.j)==null?0:U.isEnabled)||this.TL>0)){var Z;F-=((Z=this.j)==null?0:Z.isEnabled)?(this.W?135:90)-this.fD:this.TL}U=void 0;G3(this)&&!this.api.L("web_player_hide_fine_scrubbing_edu")&&(U="Pull up for precise seeking", this.LD||(this.LD=!0,this.api.logVisibility(this.JL,this.LD)));this.tooltip.fU(V,J,N,!!m,F,x,y,U)}else this.tooltip.fU(V,J,N,!!m,F);g.D0(this.api.getRootNode(),"ytp-progress-bar-hover");pQ7(this)}; g.T.hgn=function(){this.ez();g.Vf(this.api.getRootNode(),"ytp-progress-bar-hover");this.yz&&(this.yz=!1,this.api.logVisibility(this.lw,this.yz));this.LD&&(this.LD=!1,this.api.logVisibility(this.JL,this.LD));this.api.L("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.T.sGv=function(O,V){var J=g.mM(this.element);this.xr=O-J.x;G3(this)&&this.j&&(this.j.dW?gp(this.j,this.api.getCurrentTime()):OPY(this.j),this.j.show(),g.yf(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.j.isEnabled));this.bl&&(this.bl.dispose(),this.bl=null);this.lM=V;this.Z_=this.api.getCurrentTime();this.K.length>1&&this.Vz!==-1?this.api.seekTo(this.K[this.Vz].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(k5(this,Ap(this)),!1,void 0,void 0,7);g.D0(this.element,"ytp-drag");(this.z2= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.T.pnw=function(){if(G3(this)&&this.j){var O=(this.W?135:90)-this.fD;this.TL>=O*.5?(this.j.enable(),gp(this.j,this.api.getCurrentTime()),KvX(this,O)):Jx(this)}if(g.R(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var V;if((V=this.j)==null?0:V.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.K.length>1&&this.Vz!==-1)this.api.L("html5_enable_progress_bar_slide_seek_logging")&&Sj(this,this.Z_,this.K[this.Vz].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.K[this.Vz].startTime/1E3,void 0,void 0,void 0,7);else{O=k5(this,Ap(this));this.api.L("html5_enable_progress_bar_slide_seek_logging")&&Sj(this,this.Z_,O,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(O,void 0,void 0,void 0,7);V=g.n(this.heatMarkersDecorations);for(var J=V.next();!J.done;J=V.next())J=J.value,O*1E3>=J.visibleTimeRangeStartMillis&&O*1E3<=J.visibleTimeRangeEndMillis&& this.api.logClick(this.ul)}g.Vf(this.element,"ytp-drag");this.dW&&(this.O5.src=this.dW);this.z2&&!g.R(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.T.qEw=function(O,V){var J=this,y=Ap(this),l=k5(this,y);this.api.tv().Eo||(y.position>this.xr+2?this.dX&&(this.O5.src=this.dX):y.position1);this.PY(O&&this.G.tv().getPlayerSize().width>=400);this.G.logVisibility(this.element,this.vY);var V=1;O&&this.isActive()&&(V=2);if(this.K!==V){this.K=V;O=this.G.L("delhi_modern_web_player_icons");switch(V){case 1:this.updateValue("icon",O?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{X:"path",vB:!0,N:{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", O?{X:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{X:"path",N:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.ryp())}g.yf(this.element,"ytp-remote-button-active",this.isActive())}}; yF.prototype.j=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var O=this.mp,V=this.element;if(O.fK())O.x8();else{O.initialize();a:{var J=g.n(O.tL.items);for(var y=J.next();!y.done;y=J.next())if(y=y.value,y.priority===1){J=y;break a}J=null}J&&(J.open(),O.Zg(V));O.Zg(V)}}this.G.logClick(this.element)};g.I(lK,g.r);lK.prototype.K=function(O){var V=this.G.Y(),J=400;V.V?J=300:V.S&&(J=200);O=this.j&&O.width>=J;this.PY(O);this.G.logVisibility(this.element,O)}; lK.prototype.U=function(){if(this.mp.vY)this.mp.x8();else{var O=g.Yn(this.G.Fs());O&&!O.loaded&&(O.NU("tracklist",{includeAsr:!0}).length||O.load());this.G.logClick(this.element);this.mp.Zg(this.element)}}; lK.prototype.updateBadge=function(){var O=this.G.isHdr(),V=this.G.getPresentingPlayerType(),J=V!==2&&V!==3,y=g.Pe(this.G),l=J&&!!g.Be(this.G.Fs());V=l&&y.displayMode===1;y=l&&y.displayMode===2;J=(l=V||y)||!J?null:this.G.getPlaybackQuality();g.yf(this.element,"ytp-hdr-quality-badge",O);g.yf(this.element,"ytp-hd-quality-badge",!O&&(J==="hd1080"||J==="hd1440"));g.yf(this.element,"ytp-4k-quality-badge",!O&&J==="hd2160");g.yf(this.element,"ytp-5k-quality-badge",!O&&J==="hd2880");g.yf(this.element,"ytp-8k-quality-badge", !O&&J==="highres");g.yf(this.element,"ytp-3d-badge-grey",!O&&l&&V);g.yf(this.element,"ytp-3d-badge",!O&&l&&y)};g.I(mG,g.og);g.T=mG.prototype;g.T.Qz=function(){var O=this.G.getAvailableAudioTracks();if(O.length>1){var V=O.filter(function(l){return l.isAutoDubbed()}),J=O.filter(function(l){return!l.isAutoDubbed()}).map(this.lz); V.length>0&&(this.G.jB("ad_grp",{ad_c:V.length,t_c:O.length}),J.push(new $0r),J.push.apply(J,g.q(V.map(this.lz))));jg1(this,J);this.tracks=g.FC(O,this.lz,this);this.countLabel.setContent(O.length?" ("+O.length+")":"");this.publish("size-change");O=this.lz(this.G.getAudioTrack());this.bB(O);if(this.G.L("html5_enable_new_audio_settings_menu")){var y;(y=this.K)!=null&&y.setContent(O.toString())}this.enable(!0)}else this.G.L("html5_enable_new_audio_settings_menu")&&(V=this.K)!=null&&V.setContent(""), this.enable(!1)}; g.T.Tb=function(O){g.og.prototype.Tb.call(this,O);O=this.tracks[O];this.G.setAudioTrack(O);this.mp.jG();this.G.jB("ad_sel",{lang:O.wC.id})}; g.T.lz=function(O){return O.toString()}; g.T.P1=function(O){this.G.L("html5_enable_new_audio_settings_menu")?this.K&&(O?this.K.sR(this):this.K.vn(this)):g.og.prototype.P1.call(this,O)}; g.T.onClick=function(){this.G.logClick(this.element)};g.I(AW1,g.Ft);g.T=AW1.prototype;g.T.eE=function(){this.G.eE()}; g.T.open=function(){this.Ld.bL()>0&&g.Yi(this.mp,this.Ld)}; g.T.La=function(){this.Ld.bL()>0&&this.G.getPresentingPlayerType()!==2&&this.G.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.T.I2=function(O){O.defaultPrevented||(this.open(),O.preventDefault())}; g.T.sR=function(O){this.Ld.sR(O)}; g.T.vn=function(O){this.Ld.vn(O)};g.I($J,I3); $J.prototype.La=function(){var O=this.G.getPresentingPlayerType();if(O!==2&&O!==3&&g.Su(this.G))this.K||(this.mp.sR(this),this.K=!0,this.j.push(this.Z(this.G,"videodatachange",this.La)),this.j.push(this.Z(this.G,"videoplayerreset",this.La)),this.j.push(this.Z(this.G,"onPlaylistUpdate",this.La)),this.j.push(this.Z(this.G,"autonavchange",this.U)),O=this.G.getVideoData(),this.U(O.autonavState),this.G.logVisibility(this.element,this.K));else if(this.K){this.mp.vn(this);this.K=!1;O=g.n(this.j);for(var V= O.next();!V.done;V=O.next())this.oX(V.value)}}; $J.prototype.U=function(O){YG(this,O!==1)}; $J.prototype.onSelect=function(O){this.G.Qw(O?2:1);this.K&&(this.G.logVisibility(this.element,this.K),this.G.logClick(this.element))}; $J.prototype.U5=function(){this.K&&this.mp.vn(this);I3.prototype.U5.call(this)};g.I(rWd,g.Ft);rWd.prototype.onClick=function(O){O.preventDefault();var V,J;(V=g.Lj(this.G))==null||(J=V.gq())==null||J.x8();var y,l;(y=g.Lj(this.G))==null||(l=y.vF())==null||l.Zg(O.target)};g.I(iPd,g.og);g.T=iPd.prototype; g.T.La=function(){var O=this.G.getPresentingPlayerType();if(O!==2&&O!==3){this.lw=this.G.Kr();var V=this.G.getAvailableQualityLevels();if(this.K){this.j={};O=g.fj(this.G,"getAvailableQualityData",[]);O=g.n(O);for(var J=O.next();!J.done;J=O.next())J=J.value,this.j[J.qualityLabel]=J;O=Object.keys(this.j);V[V.length-1]==="auto"&&O.push("auto");this.fD=new Set(V)}else if(this.D){J=g.fj(this.G,"getAvailableQualityData",[]);O=[];J=g.n(J);for(var y=J.next();!y.done;y=J.next())y=y.value,this.V[y.quality]= y,y.quality&&O.push(y.quality);V[V.length-1]==="auto"&&O.push("auto")}else O=V;g.EyY(this.G)&&this.G.EP()&&O.unshift("missing-qualities");V=this.G.app.ZN();J=V.getVideoData();if(!J.j||!J.j.video||J.j.video.qualityOrdinal<1080||J.H5)V=!1;else{y=/^qsa/.test(J.clientPlaybackNonce);var l="r";J.j.id.indexOf(";")>=0&&(y=/^[a-p]/.test(J.clientPlaybackNonce),l="x");y?(V.jB("iqss",{trigger:l},!0),V=!0):V=!1}V&&O.unshift("inline-survey");this.w8(O);V=this.G.getVideoData().cotn?!0:!1;J=this.KD.fE();J=!g.ZG(this.G.Y())|| !(V===void 0?0:V)||!(J===void 0||J);V=this.Ld;J=J===void 0?!1:J;V.q_&&g.yf(V.DN("ytp-panel-footer"),"ytp-panel-hide-footer",J===void 0?!1:J);if(O.length){this.ZY();this.enable(!0);return}}this.enable(!1)}; g.T.ZY=function(){if(this.K){var O=this.G.getPreferredQuality();this.fD.has(O)&&(this.W=this.G.getPlaybackQuality(),this.S=this.G.getPlaybackQualityLabel(),O==="auto"?(this.bB(O),this.setContent(this.r0(O))):this.bB(this.S))}else O=this.G.getPreferredQuality(),this.options[O]&&(this.W=this.G.getPlaybackQuality(),this.bB(O),O==="auto"&&this.setContent(this.r0(O)))}; g.T.Tb=function(O){if(O!=="missing-qualities"){g.og.prototype.Tb.call(this,O);var V=this.K?this.j[O]:this.V[O];var J=V==null?void 0:V.quality,y=V==null?void 0:V.formatId,l=V==null?void 0:V.paygatedQualityDetails;V=l==null?void 0:l.endpoint;if(l){var m;l=(m=this.options[O])==null?void 0:m.element;this.G.logClick(l)}if(this.K){var H,F;if((H=g.e(V,wnE))==null?0:(F=H.popup)==null?0:F.notificationActionRenderer)this.G.MX("innertubeCommand",V);else if(V){this.G.MX("innertubeCommand",V);return}y?this.G.setPlaybackQuality(J, y):this.G.setPlaybackQuality(J)}else{if(this.D){var N,x;if((N=g.e(V,wnE))==null?0:(x=N.popup)==null?0:x.notificationActionRenderer)this.G.MX("innertubeCommand",V);else if(V){this.G.MX("innertubeCommand",V);return}}this.G.setPlaybackQuality(O)}this.mp.x8();this.La()}}; g.T.open=function(){for(var O=g.n(Object.values(this.options)),V=O.next();!V.done;V=O.next()){V=V.value;var J=void 0;this.G.hasVe((J=V)==null?void 0:J.element)&&(J=void 0,this.G.logVisibility((J=V)==null?void 0:J.element,!0))}g.og.prototype.open.call(this);this.G.logClick(this.element)}; g.T.mR=function(O,V,J){var y=this;if(O==="missing-qualities")return new g.Ft({X:"a",Fj:["ytp-menuitem"],N:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.Y().qX,tabindex:"0",role:"menuitemradio"},J:[{X:"div",Fj:["ytp-menuitem-label"],Rl:"{{label}}"}]},V,this.r0(O));if(O!=="inline-survey"){var l,m=(l=this.K?this.j[O]:this.V[O])==null?void 0:l.paygatedQualityDetails;l=m==null?void 0:m.veType;m=m==null?void 0:m.trackingParams;V=g.og.prototype.mR.call(this,O,V,J);m?(this.G.createServerVe(V.element, this,!0),this.G.setTrackingParams(V.element,m)):l&&this.G.createClientVe(V.element,this,l,!0);return V}O=[{X:"span",Rl:"Looks good?"}];J=g.n([!0,!1]);m=J.next();for(l={};!m.done;l={Zn:void 0},m=J.next())l.Zn=m.value,m=new g.r({X:"span",C:"ytp-menuitem-inline-survey-response",J:[l.Zn?JGX():StH()],N:{tabindex:"0",role:"button"}}),m.listen("click",function(H){return function(){var F=y.G.app.ZN();F.jB("iqsr",{tu:H.Zn});F.getVideoData().H5=!0;y.mp.x8();y.La()}}(l)),O.push(m); return new g.Ft({X:"div",C:"ytp-menuitem",N:{"aria-disabled":"true"},J:[{X:"div",Fj:["ytp-menuitem-label"],J:O}]},V)}; g.T.r0=function(O,V){V=V===void 0?!1:V;if(O==="missing-qualities")return{X:"div",Rl:"Missing options?"};if(O==="inline-survey")return"";var J=this.D||this.K?[PSY(this,O,V,!1)]:[BBn(this,O)];var y=this.G.getPreferredQuality();V||y!=="auto"||O!=="auto"||(J.push(" "),this.K?J.push(PSY(this,this.S,V,!0,["ytp-menu-label-secondary"])):this.D?J.push(PSY(this,this.W,V,!0,["ytp-menu-label-secondary"])):J.push(BBn(this,this.W,["ytp-menu-label-secondary"])));return{X:"div",J:J}};g.I(Hz,wp);g.T=Hz.prototype;g.T.IZ=function(){wp.prototype.IZ.call(this);this.S&&this.IN()}; g.T.FA5=function(){this.G.L("enable_web_premium_varispeed")&&Mp(this,Math.round(this.K/.05)*.05);this.T()}; g.T.EG=function(){this.G.setPlaybackRate(this.K,!0)}; g.T.IN=function(){this.S.textContent=this.K.toFixed(2)+"x";var O=this.K>2&&this.G.L("enable_web_premium_varispeed");this.KD.classList.toggle("ytp-speedslider-premium-badge",O);this.KD.setAttribute("aria-label",O?"Premium":"")}; g.T.q0=function(O){wp.prototype.q0.call(this,O);this.T();this.IN();this.G.L("web_enable_varispeed_panel")?(O.code==="ArrowUp"||O.code==="ArrowDown")&&O.preventDefault():O.preventDefault()};g.I(j_,g.r);g.T=j_.prototype;g.T.init=function(){this.Yj(this.K);this.updateValue("minvalue",this.j);this.updateValue("maxvalue",this.U)}; g.T.Zd=function(O){if(!O.defaultPrevented){switch(O.keyCode){case 37:case 40:var V=-this.S;break;case 39:case 38:V=this.S;break;default:return}this.Yj(this.K+V);O.preventDefault()}}; g.T.nN=function(O){var V=this.K;V+=(O.deltaX||-O.deltaY)<0?-this.T:this.T;this.Yj(V);O.preventDefault()}; g.T.Pb=function(O){O=(O-g.mM(this.D).x)/this.KD*this.range+this.j;this.Yj(O)}; g.T.Yj=function(O,V){V=V===void 0?"":V;O=g.BZ(O,this.j,this.U);V===""&&(V=O.toString());this.updateValue("valuenow",O);this.updateValue("valuetext",V);this.lw.style.left=(O-this.j)/this.range*(this.KD-this.dW)+"px";this.K=O}; g.T.focus=function(){this.Vz.focus()};g.I(CB,j_);CB.prototype.fD=function(){this.G.setPlaybackRate(this.K,!0)}; CB.prototype.IN=function(){this.W.textContent=kgr(this,this.K)+"x"}; CB.prototype.Yj=function(O){j_.prototype.Yj.call(this,O,kgr(this,O).toString());this.W&&(this.IN(),this.O5())}; CB.prototype.updateValues=function(){var O=this.G.getPlaybackRate();kgr(this,this.K)!==O&&(this.Yj(O),this.IN())};g.I(ShV,g.OF);ShV.prototype.focus=function(){this.K.focus()};g.I(Da5,sX);g.I(VcU,g.og);g.T=VcU.prototype;g.T.onVideoDataChange=function(O){O==="dataloaded"&&(O=this.G.getAvailablePlaybackRates(),g.$m(this.D,O)||(this.D=O,this.X$.dispose(),this.X$=new Hz(this.G)),this.Qz())}; g.T.r0=function(O){return O==="1"?"Normal":O.toLocaleString()}; g.T.Qz=function(){var O,V=(O=this.G.getVideoData())==null?void 0:O.Yr();O=this.G.getPresentingPlayerType(V);this.enable(O!==2&&O!==3);lnn(this)}; g.T.w8=function(O){g.og.prototype.w8.call(this,O);this.X$&&this.X$.j.focus()}; g.T.P1=function(O){g.og.prototype.P1.call(this,O);O?(this.KD=this.Z(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),lnn(this),JMY(this,this.G.getPlaybackRate()),this.G.L("enable_web_premium_varispeed_upsell")&&(this.G.logVisibility(this.element,!0),this.j&&this.G.logVisibility(this.S.element,!0))):(this.oX(this.KD),this.KD=null)}; g.T.onPlaybackRateChange=function(O){var V=this.G.getPlaybackRate();!this.W&&this.D.includes(V)||yMd(this,V);JMY(this,O)}; g.T.mR=function(O,V,J){return O===this.K&&$61(this.G)?g.og.prototype.mR.call(this,O,V,J,{X:"div",C:"ytp-speed-slider-menu-footer",J:[this.X$]}):O===this.j&&O0r(this.G,this.lw)?m6o(this,O,V,J):g.og.prototype.mR.call(this,O,V,J)}; g.T.Tb=function(O){g.og.prototype.Tb.call(this,O);O===this.j?(this.G.logClick(this.S.element),this.G.MX("innertubeCommand",this.lw)):O===this.K?this.G.setPlaybackRate(this.V,!0):this.G.setPlaybackRate(Number(O),!0);(!$61(this.G)||O!==this.K&&O!==this.j)&&this.mp.jG()}; g.T.gm=function(O){var V=O===this.K;this.W=!1;V&&F4(this.G)&&!$61(this.G)?(O=new Da5(this.G),g.Yi(this.mp,O)):g.og.prototype.gm.call(this,O)};g.I(j77,g.og);g.T=j77.prototype;g.T.bB=function(O){g.og.prototype.bB.call(this,O)}; g.T.HW=function(O){return O.option.toString()}; g.T.getOption=function(O){return this.settings[O]}; g.T.r0=function(O){return this.getOption(O).text||""}; g.T.Tb=function(O){g.og.prototype.Tb.call(this,O);this.publish("settingChange",this.setting,this.settings[O].option)};g.I(xJ,g.TW);xJ.prototype.OB=function(O){for(var V=g.n(Object.keys(O)),J=V.next();!J.done;J=V.next()){var y=J.value;if(J=this.o3[y]){var l=O[y].toString();y=!!O[y+"Override"];J.options[l]&&(J.bB(l),J.j.element.setAttribute("aria-checked",String(!y)),J.K.element.setAttribute("aria-checked",String(y)))}}}; xJ.prototype.i_=function(O,V){this.publish("settingChange",O,V)};g.I(Wz,g.og);Wz.prototype.K=function(O){return O.languageCode}; Wz.prototype.r0=function(O){return this.languages[O].languageName||""}; Wz.prototype.Tb=function(O){this.publish("select",O);this.G.logClick(this.element);g.ag(this.mp)};g.I(NZr,g.og);g.T=NZr.prototype;g.T.vL=function(O){return g.Id(O)?"__off__":O.displayName}; g.T.r0=function(O){return O==="__off__"?"Off":O==="__translate__"?"Auto-translate":O==="__contribute__"?"Add subtitles/CC":O==="__correction__"?"Suggest caption corrections":(O==="__off__"?{}:this.tracks[O]).displayName}; g.T.Tb=function(O){if(O==="__translate__")this.K.open();else if(O==="__contribute__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var V=g.vq(this.G.Y(),this.G.getVideoData());g.nJ(V)}else if(O==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var J=x6o(this);Ua(this,J);g.og.prototype.Tb.call(this,this.vL(J));var y,l;J=(V=this.G.getVideoData().getPlayerResponse())==null?void 0:(y=V.captions)==null?void 0:(l=y.playerCaptionsTracklistRenderer)== null?void 0:l.openTranscriptCommand;this.G.MX("innertubeCommand",J);this.mp.jG();this.j&&this.G.logClick(this.j)}else{if(O==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();V=x6o(this);Ua(this,V);g.og.prototype.Tb.call(this,this.vL(V));var m,H;V=(J=this.G.getVideoData().getPlayerResponse())==null?void 0:(m=J.captions)==null?void 0:(H=m.playerCaptionsTracklistRenderer)==null?void 0:H.openTranscriptCommand;this.G.MX("innertubeCommand",V)}else this.G.logClick(this.element), Ua(this,O==="__off__"?{}:this.tracks[O]),g.og.prototype.Tb.call(this,O);this.mp.jG()}}; g.T.Qz=function(){var O=this.G.getOptions();O=O&&O.indexOf("captions")!==-1;var V=this.G.getVideoData(),J=V&&V.ov,y,l=!((y=this.G.getVideoData())==null||!g.UJ(y));y={};if(O||J){var m;if(O){var H=this.G.getOption("captions","track");y=this.G.getOption("captions","tracklist",{includeAsr:!0});var F=l?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.FC(y,this.vL,this);l=g.Ia(y,this.vL);var N,x;x6o(this)&&((m=V.getPlayerResponse())==null?0:(N=m.captions)==null?0:(x=N.playerCaptionsTracklistRenderer)== null?0:x.openTranscriptCommand)&&l.push("__correction__");if(F.length&&!g.Id(H)){if((m=H.translationLanguage)&&m.languageName){var W=m.languageName;m=F.findIndex(function(U){return U.languageName===W}); mW7(F,m)}Crr(this.K,F);l.push("__translate__")}m=this.vL(H)}else this.tracks={},l=[],m="__off__";l.unshift("__off__");this.tracks.__off__={};J&&l.unshift("__contribute__");this.tracks[m]||(this.tracks[m]=H,l.push(m));this.w8(l);this.bB(m);H&&H.translationLanguage?this.K.bB(this.K.K(H.translationLanguage)):HyV(this.K);O&&this.D.OB(this.G.getSubtitlesUserSettings());this.countLabel.setContent(y&&y.length?" ("+y.length+")":"");this.publish("size-change");this.G.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.T.bZ=function(O){var V=this.G.getOption("captions","track");V=g.b2(V);V.translationLanguage=this.K.languages[O];Ua(this,V)}; g.T.i_=function(O,V){if(O==="reset")this.G.resetSubtitlesUserSettings();else{var J={};J[O]=V;this.G.updateSubtitlesUserSettings(J)}FxU(this,!0);this.W.start();this.D.OB(this.G.getSubtitlesUserSettings())}; g.T.ClN=function(O){O||g.r7(this.W)}; g.T.U5=function(){g.r7(this.W);g.og.prototype.U5.call(this)}; g.T.open=function(){g.og.prototype.open.call(this);this.options.__correction__&&!this.j&&(this.j=this.options.__correction__.element,this.G.createClientVe(this.j,this,167341),this.G.logVisibility(this.j,!0))};g.I(ZY,sX);ZY.prototype.onPlaybackRateChange=function(O){Mp(this.X$,O,!0);this.IN(O)}; ZY.prototype.IN=function(O){O=Math.round(O*20)/20;this.uc.element.textContent=O.toFixed(2)+"x";this.pn.element.classList.toggle("ytp-variable-speed-panel-premium-badge-visible",O>2)}; ZY.prototype.rQ=function(){for(var O=this.G.getPlayerSize().width,V=g.n(this.element.getElementsByClassName("ytp-variable-speed-panel-preset-button-wrapper")),J=V.next();!J.done;J=V.next()){J=J.value;var y=void 0,l=Number((y=J.dataset.priority)!=null?y:0);y=!0;O<680?y=l>1:O<1900&&(y=l>0);g.CD(J,y);J.setAttribute("aria-hidden",y?"false":"true")}};g.I(zi,g.og);zi.prototype.K=function(){var O,V=(O=this.G.getVideoData())==null?void 0:O.Yr();O=this.G.getPresentingPlayerType(V);this.enable(O!==2&&O!==3)}; zi.prototype.j=function(O){this.setContent(O===1?"Normal":O.toString())}; zi.prototype.open=function(){g.Yi(this.mp,new ZY(this.G))};g.I(Wx1,g.Ig);g.T=Wx1.prototype; g.T.initialize=function(){if(!this.isInitialized){var O=this.G.Y();this.isInitialized=!0;try{this.Q4=new iPd(this.G,this)}catch(J){g.en(Error("QualityMenuItem creation failed"))}g.t(this,this.Q4);var V=new NZr(this.G,this);g.t(this,V);O.enableSpeedOptions&&(O.L("web_enable_varispeed_panel")?(V=new zi(this.G,this),g.t(this,V)):(V=new VcU(this.G,this),g.t(this,V)));(g.R2(O)||O.V)&&(O.j||O.yz)&&(V=new rWd(this.G,this),g.t(this,V));O.zK&&!O.L("web_player_move_autonav_toggle")&&(V=new $J(this.G,this), g.t(this,V));O.L("html5_enable_new_audio_settings_menu")?(this.jU=new AW1(this.G,this),g.t(this,this.jU)):(O=new mG(this.G,this),g.t(this,O));this.G.publish("settingsMenuInitialized");uoh(this.settingsButton,this.tL.bL())}}; g.T.sR=function(O){this.initialize();this.tL.sR(O);uoh(this.settingsButton,this.tL.bL())}; g.T.vn=function(O){this.GL()||(this.vY&&this.tL.bL()<=1&&this.hide(),this.tL.vn(O),uoh(this.settingsButton,this.tL.bL()))}; g.T.Zg=function(O){this.initialize();this.tL.bL()>0&&g.Ig.prototype.Zg.call(this,O)}; g.T.x8=function(){this.z5?this.z5=!1:g.Ig.prototype.x8.call(this)}; g.T.show=function(){g.Ig.prototype.show.call(this);g.D0(this.G.getRootNode(),"ytp-settings-shown")}; g.T.hide=function(){g.Ig.prototype.hide.call(this);g.Vf(this.G.getRootNode(),"ytp-settings-shown")}; g.T.D_=function(O){this.G.logVisibility(this.element,O);this.G.publish("settingsMenuVisibilityChanged",O)}; g.T.eE=function(){this.G.eE()};g.I(zoV,g.r);g.T=zoV.prototype;g.T.onClick=function(){if(cz(this)&&(this.G.toggleSubtitles(),this.G.logClick(this.element),!this.isEnabled())){var O=!1,V=g.E$().s5(65);g.ZG(this.G.Y())&&V!=null&&(O=!V);O&&this.G.Y().L("web_player_nitrate_promo_tooltip")&&this.G.publish("showpromotooltip",this.element)}}; g.T.e_5=function(O){var V,J;(V=g.Lj(this.G))==null||(J=V.gq())==null||J.Zg(O)}; g.T.isEnabled=function(){var O=this.G.getOption("captions","track");return!(!O||!O.displayName)}; g.T.Qz=function(){var O=cz(this),V=300;this.G.Y().S&&(V=480);this.G.L("delhi_modern_web_player_icons")&&this.updateValue("icon",Z0o(this));var J=this.G.Y();if(J.L("html5_hide_unavailable_subtitles_button")?0:!J.V){if(O){var y;(y=this.DN("ytp-subtitles-button-icon"))==null||y.setAttribute("fill-opacity","1");this.G.Y().L("player_tooltip_data_title_killswitch")?this.updateValue("title",g.Kj(this.G,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.Kj(this.G,"Subtitles/closed captions", "c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"})}else{if(this.G.L("delhi_modern_web_player_icons")){var l;(l=this.DN("ytp-subtitles-button-icon"))==null||l.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var m;(m=this.DN("ytp-subtitles-button-icon"))==null||m.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subtitles/closed captions unavailable");this.update({"tooltip-title":"Subtitles/closed captions unavailable"});this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}J= this.G.L("player_disable_caption_button_if_captions_not_available")&&this.G.L("delhi_modern_web_player")?O:!0}else this.updateValue("title",g.Kj(this.G,"Subtitles/closed captions","c")),this.update({"tooltip-title":g.Kj(this.G,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"}),J=O;this.tooltip.s7();J=J&&this.G.tv().getPlayerSize().width>=V;this.PY(J);this.G.logVisibility(this.element,J);O?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed", !1)}; g.T.lR=function(O){g.r.prototype.lR.call(this,O)};g.I(g.sa,g.r);g.T=g.sa.prototype;g.T.canShowCountdown=function(){return!e_(this)&&!Ti(this)}; g.T.VK=function(){var O=this.api.tv().getPlayerSize().width,V=this.KD;this.api.Y().S&&(V=400);V=O>=V&&(!Ti(this)||!g.R(this.api.getPlayerStateObject(),64));this.PY(V);g.yf(this.element,"ytp-time-display-allow-autohide",V&&O<400);O=this.api.getProgressState();if(V){var J=this.api.getPresentingPlayerType();V=this.api.getCurrentTime(J,!1);this.j&&(V-=O.airingStart);e_(this)&&(V-=this.ih.startTimeMs/1E3);this.canShowCountdown()&&this.U&&(V-=this.api.getDuration(J,!1));var y=g.Nw(V);this.D!==y&&(this.updateValue("currenttime", y),this.D=y);J=e_(this)?(this.ih.endTimeMs-this.ih.startTimeMs)/1E3:this.api.getDuration(J,!1);y=g.Nw(J);this.W!==y&&(this.updateValue("duration",y),this.W=y);V=g.kv("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Nw(V,!0),DURATION:g.Nw(J,!0)});this.updateValue("timeDisplayAriaLabel",V)}cMU(this,O.isAtLiveHead);s75(this,this.api.getLoopRange())}; g.T.onLoopRangeChange=function(O){var V=this.ih!==O;this.ih=O;V&&(this.VK(),TZ7(this))}; g.T.Uqv=function(){this.api.setLoopRange(null)}; g.T.wBw=function(){this.U=!this.U;this.VK()}; g.T.onVideoDataChange=function(O,V,J){this.updateVideoData((this.api.Y().L("enable_topsoil_wta_for_halftime")||this.api.Y().L("enable_topsoil_wta_for_halftime_live_infra"))&&J===2?this.api.getVideoData({playerType:1}):V);this.VK();TZ7(this)}; g.T.updateVideoData=function(O){this.Hk=O.isLivePlayback&&!O.iQ;this.j=ce(O);this.isPremiere=O.isPremiere;var V,J,y;this.liveIndicatorText=(O=(V=O.getWatchNextResponse())==null?void 0:(J=V.playerOverlays)==null?void 0:(y=J.playerOverlayRenderer)==null?void 0:y.liveIndicatorText)?Wq(O):null;g.yf(this.element,"ytp-live",Ti(this));this.api.L("delhi_modern_web_player")&&this.DN("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.T.onClick=function(O){O.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.T.U5=function(){this.K&&this.K();g.r.prototype.U5.call(this)};g.I(YPH,g.r);g.T=YPH.prototype;g.T.xR=function(){anl(this)}; g.T.DIN=function(O){eoU(this,O);this.T&&anl(this)}; g.T.MY=function(O){if(!O.defaultPrevented){var V=O.keyCode,J=null;V===37?J=this.volume-5:V===39?J=this.volume+5:V===36?J=0:V===35&&(J=100);J!==null&&(J=g.BZ(J,0,100),J===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(J)),O.preventDefault())}}; g.T.Hb=function(O){var V=O.deltaX||-O.deltaY;O.deltaMode?this.api.setVolume(this.volume+(V<0?-10:10)):this.api.setVolume(this.volume+g.BZ(V/10,-10,10));O.preventDefault();var J,y;((J=this.api.Y())==null?0:(y=J.getWebPlayerContextConfig())==null?0:y.enableFullscreenComponentsFeature)&&O.stopPropagation()}; g.T.ZaW=function(){Is(this,this.K,!0,this.j,this.api.vc());this.KD=this.volume;this.api.isMuted()&&this.api.unMute()}; g.T.Yx=function(O){var V=this.U?78:52,J=this.U?18:12;O-=g.mM(this.S).x;J=g.BZ((O-J/2)/(V-J),0,1);this.T&&(J=g.BZ(O/V,0,1));V=J;V=this.api.L("web_player_non_linear_volume_controls")?V<=.25?V/.25*.1:.1+(V-.25)/.75*.9:V;this.api.setVolume(V*100)}; g.T.PlL=function(){Is(this,this.K,!1,this.j,this.api.vc());this.volume===0&&(this.api.mute(),this.api.setVolume(this.KD))}; g.T.onVolumeChange=function(O){Inp(this,O.volume,O.muted)}; g.T.q7=function(){Is(this,this.K,this.isDragging,this.j,this.api.vc())}; g.T.U5=function(){g.r.prototype.U5.call(this);g.Vf(this.V,"ytp-volume-slider-active")};g.I(YJ,g.r); YJ.prototype.onVideoDataChange=function(){var O=this.api.Y();this.zy();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData({playerType:1}).tC;this.PY(this.visible);this.api.logVisibility(this.element,this.visible&&this.qX);if(this.visible){var V=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",V)}O.U&&(this.K&&(this.oX(this.K),this.K=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.D0(this.element,"no-link")); V=this.api.Y();O=this.api.getVideoData();var J="";V.U||(V=g.Fi(V),V.indexOf("www.")===0&&(V=V.substring(4)),J=g.sJ(O)?"Watch on YouTube Music":V==="youtube.com"?"Watch on YouTube":g.kv("Watch on $WEBSITE",{WEBSITE:V}));this.api.L("player_tooltip_data_title_killswitch")?this.updateValue("title",J):this.updateValue("tooltip-title",J)}; YJ.prototype.onClick=function(O){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var V=this.api.Y(),J=this.api.getVideoUrl(!g.xo(O),!1,!0,!0);if(g.R2(V)){var y={};g.R2(V)&&g.fj(this.api,"addEmbedsConversionTrackingParams",[y]);J=g.pp(J,y)}g.bg(J,this.api,O);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; YJ.prototype.zy=function(){var O={X:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},J:[{X:"path",vB:!0,C:"ytp-svg-fill",N:{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,J=this.api.getVideoData();this.api.isEmbedsShortsMode()?O={X:"svg",N:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},J:[{X:"path",N:{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.sJ(J)&&(O={X:"svg",N:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},J:[{X:"path",N:{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"}},{X:"path",N:{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"}},{X:"path",N:{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"}},{X:"path",N:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{X:"path",N:{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"}},{X:"path",N:{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"}},{X:"path",N:{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"}},{X:"path",N:{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"}},{X:"path",N:{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"}},{X:"path",N:{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"}},{X:"path",N:{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"}},{X:"path",N:{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.sJ(J)?g.D0(this.element,"ytp-youtube-music-button"):g.Vf(this.element,"ytp-youtube-music-button");O.N=Object.assign({},O.N,{"aria-hidden":"true"});this.updateValue("logoSvg",O);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,V,!0)}; YJ.prototype.lR=function(O){g.r.prototype.lR.call(this,O);this.api.logVisibility(this.element,this.visible&&O)};g.I(fn7,g.jX);g.T=fn7.prototype;g.T.onProgress=function(){if(this.G.L("web_player_max_seekable_on_ended")||!g.R(this.G.getPlayerStateObject(),2))nG(this.xp),this.progressBar.VK(),this.o_.VK()}; g.T.Nl=function(){this.gf();if(nG(this.xp))this.progressBar.ez();else this.onProgress()}; g.T.Tp=function(){this.onProgress();this.T.start()}; g.T.gf=function(){var O;if(O=!this.G.Y().j){O=this.progressBar;var V=2*g.Uj()*O.V,J=O.U;O=(J.K-J.j)*1E3/O.api.getPlaybackRate()/V<300}O=O&&this.G.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;V=!O;nG(this.xp)&&(O=V=!1);V?this.lw||(this.lw=this.Z(this.G,"progresssync",this.onProgress)):this.lw&&(this.oX(this.lw),this.lw=null);O?this.T.isActive()||this.T.start():this.T.stop()}; g.T.zy=function(){var O=this.G.UY(),V=this.G.tv().getPlayerSize(),J=this.G.tv().Eo,y=oM1(this),l=vMd(this),m=Math.max(V.width-y*2,100);if(this.TL!==V.width||this.zL!==O||this.G.L("web_player_rtr_ctrls")&&this.pV!==J)this.TL=V.width,this.zL=O,this.pV=J,this.K.element.style.width=l+"px",this.K.element.style.left=y+"px",g.QJo(this.progressBar,y,l,O),this.G.Sy().Ys=l;J=this.j;m=Math.min(570*(O?1.5:1),m);O=Math.min(413*(O?1.5:1),Math.round((V.height-wcp(this))*.82));J.maxWidth=m;J.maxHeight=O;J.tK();this.gf(); this.Ks&&Iv1(this.E5,V.height)}; g.T.onVideoDataChange=function(){var O=this.G.getVideoData();this.ol.style.background=O.tC?O.gb:"";this.KD&&ocV(this.KD,O.showSeekingControls);this.qX&&ocV(this.qX,O.showSeekingControls)}; g.T.dC=function(){return this.K.element};g.I(Lxl,c9);g.T=Lxl.prototype;g.T.LV=function(O){O.target===this.dismissButton.element?this.K&&ztX(TX(),this.K):(this.onClickCommand&&(this.Aq(!1),this.G.MX("innertubeCommand",this.onClickCommand)),this.Q8())}; g.T.Q8=function(){this.enabled=!1;this.T.hide()}; g.T.onVideoDataChange=function(O,V){O==="dataloaded"&&nMo(this);O=[];var J,y,l,m;if(V=(m=g.e((J=V.getWatchNextResponse())==null?void 0:(y=J.playerOverlays)==null?void 0:(l=y.playerOverlayRenderer)==null?void 0:l.suggestedActionsRenderer,J0z))==null?void 0:m.suggestedActions)for(J=g.n(V),y=J.next();!y.done;y=J.next())(y=g.e(y.value,y0z))&&g.e(y.trigger,Vwy)&&O.push(y);if(O.length!==0){J=[];O=g.n(O);for(y=O.next();!y.done;y=O.next())if(y=y.value,l=g.e(y.trigger,Vwy)){m=(m=y.title)?g.yb(m):"View Chapters"; V=l.timeRangeStartMillis;var H=l.timeRangeEndMillis;l=l.onlyTriggersOnPlayerPause;y.tapCommand&&(V!=null&&H!=null&&J.push(new g.gz(V,H,{priority:9,namespace:"suggested_action_button_visible",id:m})),V!=null&&H!=null||l)&&(this.suggestedActions[m]=y,y.rendererContext&&!this.j&&(m=g.e(y.rendererContext,EEn))&&(l=void 0,m=(l=m.loggingDirectives)==null?void 0:l.trackingParams)&&(this.G.setTrackingParams(this.badge.element,m),this.j=!0),l=void 0,((l=y.dismissButtonClientVeSpec)==null?0:l.uiType)&&!this.K&& (this.K=HF(y.dismissButtonClientVeSpec.uiType),IY(TX(),this.K)))}this.G.aG(J)}}; g.T.RL=function(){return this.enabled}; g.T.D_=function(){this.enabled?this.LD.start():Zw(this);this.J4()}; g.T.onStateChange=function(O){for(var V=g.n(Object.keys(this.suggestedActions)),J=V.next();!J.done;J=V.next()){J=J.value;var y=void 0;if((y=g.e(this.suggestedActions[J].trigger,Vwy))==null?0:y.onlyTriggersOnPlayerPause){O.state.isPaused()&&!this.U?(Mcp(this,J),this.enabled=!0,this.D_(),this.U=!0):O.oldState.isPaused()&&(this.enabled=!1,this.D_());break}}}; g.T.U5=function(){nMo(this);c9.prototype.U5.call(this)};var hR={},fB=(hR.CHANNEL_NAME="ytp-title-channel-name",hR.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",hR.LINK="ytp-title-link",hR.SESSIONLINK="yt-uix-sessionlink",hR.SUBTEXT="ytp-title-subtext",hR.TEXT="ytp-title-text",hR.TITLE="ytp-title",hR);g.I(hx,g.r);hx.prototype.onClick=function(O){this.api.logClick(this.element);var V=this.api.Y(),J=this.api.getVideoUrl(!g.xo(O),!1,!0);g.R2(V)&&(V={},g.fj(this.api,"addEmbedsConversionTrackingParams",[V]),J=g.pp(J,V));g.bg(J,this.api,O)}; hx.prototype.Qz=function(){var O=this.api.getVideoData(),V=this.api.Y();this.updateValue("title",O.title);var J={X:"a",C:fB.CHANNEL_NAME,N:{href:"{{channelLink}}",target:"_blank"},Rl:"{{channelName}}"};this.api.Y().U?J={X:"span",C:fB.CHANNEL_NAME,Rl:"{{channelName}}",N:{tabIndex:"{{channelSubtextFocusable}}"}}:O.gA&&(J={X:"span",C:fB.SUBTEXT,Rl:O.gA});this.updateValue("subtextElement",J);XcH(this);this.api.getPresentingPlayerType()===2&&(J=this.api.getVideoData(),J.videoId&&J.isListed&&J.author&& J.LD&&J.profilePicture?(this.updateValue("channelLink",J.LD),this.updateValue("channelName",J.author),this.updateValue("channelTitleFocusable","0")):XcH(this));J=V.externalFullscreen||!this.api.isFullscreen()&&V.fP;g.yf(this.link,fB.FULLERSCREEN_LINK,J);V.lw||!O.videoId||J||O.tC||V.U?this.K&&(this.updateValue("url",null),this.oX(this.K),this.K=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.K||(this.K=this.Z(this.link,"click",this.onClick)));V.U&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.R2(V)?O.expandedTitle:O.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.I(g.os,g.r);g.T=g.os.prototype;g.T.setEnabled=function(O){if(this.type!=null)if(O)switch(this.type){case 3:case 2:vz(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.V=O}; g.T.fU=function(O,V,J,y,l,m,H,F){if(!this.O5||this.env.S){this.type===3&&this.ez();this.type!==1&&(g.k6(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.V&&this.fade.show(),this.j&&this.j.dispose(),(this.j=this.api.wq())&&this.j.subscribe("l",this.jO,this));if(F){var N=g.jR(this.bg).height||141;this.dW.style.bottom=N+2+"px"}else this.dW.style.display="none";this.env.L("delhi_modern_web_player")?(this.update({pillTimeStamp:J,pillTitle:m!=null?m:"",eduText:F!=null?F:""}),g.D0(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:J,title:m!=null?m:"",eduText:F!=null?F:""}),g.yf(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!m));this.api.isInline()&&g.D0(this.bottomText,"ytp-modern-tooltip-text");g.yf(this.element,"ytp-text-detail",!!y);J=-1;this.j&&(J=ml(this.j,243*this.scale),this.env.L("web_l3_storyboard")&&this.j.levels.length===4&&(J=this.j.levels.length-1),J=O97(this.j,J,V));qPl(this,J);if(H)switch(V=g.jR(this.element).width,H){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"}gMX(this,!!y,O,l)}}; g.T.n7=function(){this.type===1&&this.ez()}; g.T.pZ=function(O,V){if(this.type)if(this.type===3)this.ez();else return;EMH(this,O,3,V)}; g.T.s7=function(){this.K&&!this.S&&(this.env.L("player_tooltip_data_title_killswitch")?this.K.hasAttribute("title")&&(this.U=this.K.getAttribute("title")||"",this.K.removeAttribute("title"),this.V&&vz(this)):this.K.hasAttribute("data-tooltip-title")&&(this.U=this.K.getAttribute("data-tooltip-title")||"",this.K.removeAttribute("data-tooltip-title"),this.V&&vz(this)))}; g.T.jO=function(O,V){O<=this.D&&this.D<=V&&(O=this.D,this.D=NaN,qPl(this,O))}; g.T.XYj=function(){SEo(this.j,this.D,243*this.scale)}; g.T.ez=function(){switch(this.type){case 2:var O=this.K;O.removeEventListener("mouseout",this.T);O.addEventListener("mouseover",this.W);O.removeEventListener("blur",this.T);O.addEventListener("focus",this.W);Q7Y(this);break;case 3:Q7Y(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.jO,this),this.j=null),this.api.removeEventListener("videoready",this.KD),this.lw.stop()}this.type=null;this.V&&this.fade.hide()}; g.T.CB=function(){if(this.K)for(var O=0;O=0;V--)if(this.xk[V]===O){this.xk.splice(V,1);break}LG(this.xp,64,this.xk.length>0)}; g.T.QM=function(){this.api.eG()&&this.api.Wi();return!!this.gR||i0r(this)||g.Aj.prototype.QM.call(this)}; g.T.wu=function(){var O=!this.QM(),V=O&&this.api.eG()&&!g.R(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().tC&&!this.api.Y().U&&!this.api.isEmbedsShortsMode(),J=this.kM&&g.iJ(this.api)&&g.R(this.api.getPlayerStateObject(),128);O||J?(this.Fw.show(),this.iX.show()):(this.Fw.hide(),this.iX.hide(),this.api.CB(this.rq.element));V?this.yu.Zg():this.yu.x8();this.Vu&&hor(this.Vu,this.XCn||!O);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&Rod(this);g.Aj.prototype.wu.call(this)}; g.T.bj=function(O,V,J,y,l){O.style.left="";O.style.top="";O.style.bottom="";var m=g.jR(O),H=y||this.Vu&&g.h8(this.Vu.dC(),V),F=y=null;J!=null&&H||(y=g.jR(V),F=g.$K(V,this.api.getRootNode()),J==null&&(J=F.x+y.width/2));J-=m.width/2;H?(V=this.Vu,y=oM1(V),F=vMd(V),H=this.api.tv().getPlayerSize().height,J=g.BZ(J,y,y+F-m.width),m=H-wcp(V)-m.height):g.h8(this.rq.element,V)?(V=this.api.tv().getPlayerSize().width,J=g.BZ(J,12,V-m.width-12),m=this.UY()?this.L_:this.wv,this.api.Y().playerStyle==="gvn"&&(m+= 20),this.kM&&(m-=this.UY()?26:18)):(V=this.api.tv().getPlayerSize(),J=g.BZ(J,12,V.width-m.width-12),m=F.y>(V.height-y.height)/2?F.y-m.height-12:F.y+y.height+12);O.style.top=m+(l||0)+"px";O.style.left=J+"px"}; g.T.Nl=function(O){O&&(this.api.CB(this.rq.element),this.Vu&&this.api.CB(this.Vu.dC()));this.Fi&&(g.yf(this.contextMenu.element,"ytp-autohide",O),g.yf(this.contextMenu.element,"ytp-autohide-active",!0));g.Aj.prototype.Nl.call(this,O)}; g.T.fq=function(){g.Aj.prototype.fq.call(this);this.Fi&&(g.yf(this.contextMenu.element,"ytp-autohide-active",!1),this.Fi&&(this.contextMenu.hide(),this.UB&&this.UB.hide()))}; g.T.Tt=function(O,V){var J=this.api.tv().getPlayerSize();J=new g.iB(0,0,J.width,J.height);if(O||!nG(this.xp)&&!this.QM()){if(this.api.Y().YQ||V)O=this.UY()?this.L_:this.wv,J.top+=O,J.height-=O;this.Vu&&(J.height-=wcp(this.Vu))}return J}; g.T.xR=function(O){var V=this.api.getRootNode();O?V.parentElement?(V.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.Y().externalFullscreen||(V.parentElement.insertBefore(this.J9.element,V),V.parentElement.insertBefore(this.Tc.element,V.nextSibling))):g.sk(Error("Player not in DOM.")):(V.setAttribute("aria-label","YouTube Video Player"),this.J9.detach(),this.Tc.detach());this.zy();this.yX()}; g.T.UY=function(){if(this.api.L("web_player_use_screen_width_for_big_mode")){var O;return this.api.tv().getPlayerSize().width>=((O=g.Ry(this.api.Y().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?O:2E3)}O=this.api.Y();return this.api.isFullscreen()&&!O.S||!1}; g.T.showControls=function(O){this.H7=!O;this.wu()}; g.T.zy=function(){var O=this.UY();this.tooltip.scale=O?1.5:1;this.contextMenu&&g.yf(this.contextMenu.element,"ytp-big-mode",O);this.wu();this.api.L("web_player_hide_overflow_button_if_empty_menu")||Rod(this);this.yX();var V=this.api.isEmbedsShortsMode();V&&O?(O=(this.api.tv().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Pp(this.rq.element,"padding-left",O+"px"),g.Pp(this.rq.element,"padding-right",O+"px")):V&&(g.Pp(this.rq.element,"padding-left",""),g.Pp(this.rq.element,"padding-right", ""));g.Aj.prototype.zy.call(this)}; g.T.Jo=function(){if(i0r(this)&&!g.iJ(this.api))return!1;var O=this.api.getVideoData();return!g.R2(this.api.Y())||this.api.getPresentingPlayerType()===2||!this.VO||((O=this.VO||O.VO)?(O=O.embedPreview)?(O=O.thumbnailPreviewRenderer,O=O.videoDetails&&g.e(O.videoDetails,K61)||null):O=null:O=null,O&&O.collapsedRenderer&&O.expandedRenderer)?g.Aj.prototype.Jo.call(this):!1}; g.T.yX=function(){g.Aj.prototype.yX.call(this);this.api.logVisibility(this.title.element,!!this.AI);this.Zj&&this.Zj.lR(!!this.AI);this.channelAvatar.lR(!!this.AI);this.overflowButton&&this.overflowButton.lR(this.Cu()&&!!this.AI);this.shareButton&&this.shareButton.lR(!this.Cu()&&!!this.AI);this.e2&&this.e2.lR(!this.Cu()&&!!this.AI);this.searchButton&&this.searchButton.lR(!this.Cu()&&!!this.AI);this.copyLinkButton&&this.copyLinkButton.lR(!this.Cu()&&!!this.AI);if(!this.AI){this.api.CB(this.rq.element); for(var O=0;O5&&V.jB("glrs",{cmt:J});V.seekTo(0,{seekSource:58});V.jB("glrre",{cmt:J})}}; LB.prototype.U5=function(){this.K=null;g.K.prototype.U5.call(this)};g.I(g.nB,ow);g.T=g.nB.prototype;g.T.isView=function(){return!0}; g.T.aS=function(){var O=this.mediaElement.getCurrentTime();if(O1;mT(O.hL(),y-.01)&&!l&&(Ea(this,4),J.isActive=!1,J.Yq=J.Yq||J.isActive,(this.W===1?this.K:this.j).jB("sbh",{}),V.isActive=!0,V.Yq=V.Yq||V.isActive,this.W!==0&&(this.K.getVideoData().ED=!0));O=this.D.j;if(this.D.K.isActive&&O.isActive&&(Ea(this,5),this.W!==0)){O=this.j.IF();J=this.K.IF(); this.K.jB("sbs",{citag:J==null?void 0:J.itag,nitag:O==null?void 0:O.itag});this.j.jB("gitags",{pitag:J==null?void 0:J.itag,citag:O==null?void 0:O.itag});var m;(m=this.j)==null||m.rG()}}}; g.T.mD=function(){this.Vi()&&this.bk("player-reload-after-handoff")}; g.T.bk=function(O,V){V=V===void 0?{}:V;if(!this.GL()&&this.status.status!==6){var J=this.status.status>=4&&O!=="player-reload-after-handoff";this.status={status:Infinity,error:O};if(this.K&&this.j){var y=this.j.getVideoData().clientPlaybackNonce;this.K.Kv(new g.DO("dai.transitionfailure",Object.assign(V,{cpn:y,transitionTimeMs:this.Ob,msg:O})));this.K.C5(J)}this.VX.reject(O);this.dispose()}}; g.T.Vi=function(){return this.status.status>=4&&this.status.status<6}; g.T.U5=function(){$ZH(this);this.K.unsubscribe("newelementrequired",this.mD,this);if(this.U){var O=this.U.j;this.U.K.BB.unsubscribe("updateend",this.I0,this);O.BB.unsubscribe("updateend",this.I0,this)}g.K.prototype.U5.call(this)}; g.T.M6=function(O){g.Jg(O,128)&&this.bk("player-error-event")};g.I(dy,g.K);dy.prototype.clearQueue=function(O,V){O=O===void 0?!1:O;V=V===void 0?!1:V;gy(this);this.D&&this.D.reject("Queue cleared");this.app.Y().L("html5_gapless_fallback_on_qoe_restart_v2")||V&&this.j&&this.j.C5(!1);qQ(this,O)}; dy.prototype.qE=function(){return!this.K}; dy.prototype.Vi=function(){var O;return((O=this.U)==null?void 0:O.Vi())||!1}; dy.prototype.U5=function(){gy(this);qQ(this);g.K.prototype.U5.call(this)};g.I(cRr,g.BF);g.T=cRr.prototype;g.T.getVisibilityState=function(O,V,J,y,l,m,H,F){return O?4:l&&r$X?7:uHH&&!(Hm()||document.hasFocus&&document.hasFocus())||Hm()?3:V?2:J?1:y?5:l&&!r$X?7:m?8:H?9:F?10:0}; g.T.Ws=function(O){this.fullscreen!==O&&(this.fullscreen=O,this.D_())}; g.T.setMinimized=function(O){this.j!==O&&(this.j=O,this.D_())}; g.T.setInline=function(O){this.inline!==O&&(this.inline=O,this.D_())}; g.T.jt=function(O){this.pictureInPicture!==O&&(this.pictureInPicture=O,this.D_())}; g.T.setSqueezeback=function(O){this.U!==O&&(this.U=O,this.D_())}; g.T.cM=function(O){this.D!==O&&(this.D=O,this.D_())}; g.T.R5=function(){return this.K}; g.T.YV=function(){return this.fullscreen!==0}; g.T.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.T.p6=function(){return this.fullscreen}; g.T.isMinimized=function(){return this.j}; g.T.isInline=function(){return this.inline}; g.T.isBackground=function(){return Hm()}; g.T.Lf=function(){return this.pictureInPicture}; g.T.uK=function(){return!1}; g.T.kZ=function(){return this.U}; g.T.yO=function(){return this.D}; g.T.D_=function(){this.publish("visibilitychange");var O=this.getVisibilityState(this.R5(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Lf(),this.uK(),this.kZ(),this.yO());O!==this.V&&this.publish("visibilitystatechange");this.V=O}; g.T.U5=function(){tKH(this.W);g.BF.prototype.U5.call(this)};g.I(g.QF,g.K);g.T=g.QF.prototype;g.T.U5=function(){this.videoData=this.playerState=null;g.K.prototype.U5.call(this)}; g.T.addCueRange=function(){}; g.T.tB=function(){}; g.T.Xr=function(){}; g.T.XQ=function(){return!1}; g.T.dO=function(){return!1}; g.T.i5=function(){}; g.T.JA=function(){}; g.T.Ly=function(){return[]}; g.T.eE=function(){}; g.T.xN=function(){}; g.T.qP=function(){return 1}; g.T.getAudioTrack=function(){return this.getVideoData().dD}; g.T.yJ=function(){return null}; g.T.getAvailableAudioTracks=function(){return[]}; g.T.Kr=function(){return[]}; g.T.Rb=function(){return[]}; g.T.Iu=function(){return this.B.L("web_player_misc_bugfix_b")?this.getVideoData().clientPlaybackNonce:""}; g.T.G2=function(){return[]}; g.T.CY=function(){}; g.T.Yp=function(){return 0}; g.T.getCurrentTime=function(){return 0}; g.T.EU=function(){}; g.T.IF=function(){}; g.T.qI=function(){return{}}; g.T.getDuration=function(){return 0}; g.T.g0=function(){return 0}; g.T.dN=function(){return 0}; g.T.cj=function(){return!1}; g.T.Y1=function(){return 0}; g.T.Hc=function(){return 0}; g.T.QG=function(){return null}; g.T.Mj=function(){return 0}; g.T.RT=function(){return!1}; g.T.U9=function(){return 0}; g.T.HB=function(){return null}; g.T.MK=function(){return null}; g.T.TK=function(){return 0}; g.T.xo=function(){return 0}; g.T.V1=function(){return g.Q(function(O){O.V()})}; g.T.Sr=d5(11);g.T.getPlaybackQuality=function(){return"auto"}; g.T.getPlaybackRate=function(){return 1}; g.T.getPlayerState=function(){this.playerState||(this.playerState=new g.nr);return this.playerState}; g.T.getPlayerType=function(){return 0}; g.T.getPlaylistSequenceForTime=function(){return null}; g.T.KE=function(){return function(){}}; g.T.DQ=function(){return""}; g.T.getPreferredQuality=function(){return"unknown"}; g.T.SQ=function(){}; g.T.getProximaLatencyPreference=function(){return 0}; g.T.zq=function(){return xZ}; g.T.getStartTime=function(){return NaN}; g.T.wq=function(){return null}; g.T.getStoryboardFormat=function(){return null}; g.T.getStreamTimeOffset=function(){return 0}; g.T.Cy=function(){return 0}; g.T.HY=function(){return 0}; g.T.JZ=function(){return{Pw:[],qJ:[],currentTime:0,Sd:"",droppedVideoFrames:0,isGapless:!1,qE:!0,Gv:0,ao:0,tY:0,Bp:0,hY:0,j_:[],nO:[],SO:null,J2:"0",s2:null,nx:"",totalVideoFrames:0}}; g.T.getUserAudio51Preference=function(){return 0}; g.T.getUserPlaybackQualityPreference=function(){return""}; g.T.getVideoData=function(){this.videoData||(this.videoData=new g.WL(this.B),g.t(this,this.videoData));return this.videoData}; g.T.uP=function(){return null}; g.T.P4=function(){return null}; g.T.Ai=function(){}; g.T.getVideoLoadedFraction=function(){return 0}; g.T.ZL=function(){}; g.T.handleError=function(){}; g.T.C5=function(){}; g.T.pT=function(){}; g.T.ZR=d5(36);g.T.aW=function(){return!1}; g.T.hasSupportedAudio51Tracks=function(){return!1}; g.T.isAd=function(){return!1}; g.T.r6=function(){return!1}; g.T.R5=function(){return!1}; g.T.isAtLiveHead=function(){return!1}; g.T.J7=function(){return!0}; g.T.isGapless=function(){return!1}; g.T.isHdr=function(){return!1}; g.T.hW=function(){return!1}; g.T.Af=function(){return!1}; g.T.rj=function(){return!1}; g.T.isProximaLatencyEligible=function(){return!1}; g.T.qE=function(){return!0}; g.T.iK=function(){return!1}; g.T.q1=function(){return!1}; g.T.TI=function(){}; g.T.vR=function(){}; g.T.rG=function(){}; g.T.y8=function(){}; g.T.GN=function(){}; g.T.cO=function(){}; g.T.wG=function(){}; g.T.qK=d5(46);g.T.e4=d5(17);g.T.ZW=function(){}; g.T.pauseVideo=function(){}; g.T.prefetchKeyPlay=function(){}; g.T.playVideo=function(){return g.Q(function(O){return O.return()})}; g.T.KG=function(){}; g.T.XJ=d5(23);g.T.Sz=d5(29);g.T.u4=function(){}; g.T.jB=function(){}; g.T.Zc=function(){}; g.T.Jq=function(){}; g.T.z$=function(){}; g.T.Kv=function(){}; g.T.Vw=function(){}; g.T.gx=function(){}; g.T.F9=function(){}; g.T.AQ=function(){}; g.T.wx=function(){}; g.T.xT=function(){}; g.T.removeCueRange=function(){}; g.T.qr=function(){}; g.T.iO=function(){return[]}; g.T.Dr=function(){}; g.T.DK=function(){}; g.T.vM=function(){}; g.T.B0=function(){}; g.T.Ln=function(){}; g.T.nF=function(){}; g.T.lr=function(){}; g.T.seekTo=function(){}; g.T.sendAbandonmentPing=function(){}; g.T.sendVideoStatsEngageEvent=function(){}; g.T.KI=function(){}; g.T.setLoop=function(){}; g.T.aE=function(){}; g.T.setMediaElement=function(){}; g.T.G6=function(){}; g.T.setPlaybackRate=function(){}; g.T.Hf=function(){}; g.T.le=function(){}; g.T.uV=function(){}; g.T.setProximaLatencyPreference=function(){}; g.T.L0=function(){}; g.T.xW=function(){}; g.T.iW=function(){}; g.T.Ij=function(){}; g.T.pU=function(){}; g.T.setUserAudio51Preference=function(){}; g.T.Jt=function(){}; g.T.OY=function(){return!1}; g.T.ZQ=function(){}; g.T.WH=function(){return!1}; g.T.AB=function(){}; g.T.PM=function(){}; g.T.ZJ=function(){}; g.T.stopVideo=function(){}; g.T.subscribe=function(){return NaN}; g.T.u3=function(){}; g.T.togglePictureInPicture=function(){}; g.T.A3=function(){return 0}; g.T.gr=function(){}; g.T.unsubscribe=function(){return!1}; g.T.Vq=function(){}; g.T.FW=function(){return!1}; g.T.xQ=function(){}; g.T.cZ=function(){}; g.T.zg=function(){};g.I(tx,g.K);g.T=tx.prototype;g.T.get=function(O){Gi(this);var V=this.data.find(function(J){return J.key===O}); return V?V.value:null}; g.T.set=function(O,V,J){this.remove(O,!0);Gi(this);O={key:O,value:V,expire:Infinity};J&&isFinite(J)&&(J*=1E3,O.expire=(0,g.cH)()+J);for(this.data.push(O);this.data.length>this.U;)(J=this.data.shift())&&uK(this,J,!0);KB(this)}; g.T.remove=function(O,V){V=V===void 0?!1:V;var J=this.data.find(function(y){return y.key===O}); J&&(uK(this,J,V),g.rV(this.data,function(y){return y.key===O}),KB(this))}; g.T.removeAll=function(O){if(O=O===void 0?!1:O)for(var V=g.n(this.data),J=V.next();!J.done;J=V.next())uK(this,J.value,O);this.data=[];KB(this)}; g.T.U5=function(){var O=this;g.K.prototype.U5.call(this);this.data.forEach(function(V){uK(O,V,!0)}); this.data=[]};g.I(g.Ax,g.K);g.T=g.Ax.prototype;g.T.U5=function(){for(var O=g.n(Object.values(this.U)),V=O.next();!V.done;V=O.next())V.value.dispose();sPY(this);this.V.dispose();g.K.prototype.U5.call(this)}; g.T.p7=function(O){return O?O===1?this.qX:this.j.getVideoData().enableServerStitchedDai&&O===2?this.j.getVideoData().hA?this.U[2]||this.j:this.j:this.U[O]||null:this.j}; g.T.Ku=function(O){var V=O.cpn;O=O.playerType;if(V)a:{O=g.n(Object.values(this.U));for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.Iu()===V){V=J;break a}V=this.D[V]||null}else V=O?this.p7(O):this.j;return V}; g.T.RB=function(){return this.qX}; g.T.JE=function(O){this.qX=O}; g.T.ZN=function(){return this.j}; g.T.DG=function(O){var V=[O],J=[this.j];this.j=O;ry(this,V,J)}; g.T.Nt=d5(42);g.T.Vb=d5(44);Xxn.prototype.Ph=function(O,V){for(var J=0;J<10;J++){var y=this.K[J],l=y+(J===0?O:0),m=1*Math.pow(2,J);if(l<=m)break;y=Math.min(1,(l-m*.5)/y);for(l=0;l<16;l++)m=this.values[J*16+l]*y,this.values[(J+1)*16+l]+=m,this.K[J+1]+=m,this.values[J*16+l]-=m,this.K[J]-=m}y=J=0;l=8192;V>8192&&(J=Math.ceil(Math.log(V/8192)/Math.log(2)),y=8192*Math.pow(2,J-1),l=y*2);J+2>16?this.values[15]+=O:(V=(V-y)/(l-y),this.values[J]+=O*(1-V),this.values[J+1]+=O*V);this.K[0]+=O}; Xxn.prototype.cC=function(){var O=O===void 0?this.j:O;var V=V===void 0?.02:V;var J=J===void 0?.98:J;for(var y=this.U,l=0;l<16;l++)y[l]=this.values[l];l=this.K[0];for(var m=1;m<11;m++){var H=this.K[m];if(H===0)break;for(var F=Math.min(1,(O-l)/H),N=0;N<16;N++)y[N]+=this.values[m*16+N]*F;l+=H*F;if(F<1)break}for(m=O=H=0;m<16;m++){F=H+y[m]/l;O+=Math.max(0,Math.min(F,J)-Math.max(H,V))*(m>0?8192*Math.pow(2,m-1):0);if(F>J)break;H=F}return O/(J-V)};Rs.prototype.Ph=function(O,V){O=Math.min(this.K,Math.max(1,Math.round(O*this.resolution)));O+this.j>=this.K&&(this.U=!0);for(;O--;)this.values[this.j]=V,this.j=(this.j+1)%this.K;this.GX=!0}; Rs.prototype.percentile=function(O){var V=this;if(!this.U&&this.j===0)return 0;this.GX&&(g.m$(this.W,function(J,y){return V.values[J]-V.values[y]}),this.GX=!1); return this.values[this.W[Math.round(O*((this.U?this.K:this.j)-1))]]||0}; Rs.prototype.cC=function(){return this.V?(this.percentile(this.D-this.V)+this.percentile(this.D)+this.percentile(this.D+this.V))/3:this.percentile(this.D)};g.I(Ejh,g.K);Ejh.prototype.nD=function(){var O;(O=this.yz)==null||O.start();vN(this)&&this.policy.T&&this.zL()};qVh.prototype.L=function(O){return this.experiments.Jv(O)};g.I(GGX,g.yc);g.T=GGX.prototype;g.T.EN=function(){}; g.T.Iu=function(){return this.videoData.clientPlaybackNonce}; g.T.getVideoData=function(){return this.videoData}; g.T.getCurrentTime=function(O){var V=g.yc.prototype.getCurrentTime.call(this);this.K===0?O||(V-=this.startTimeSecs,g.yc.prototype.getVideoData.call(this).L("html5_ssdai_log_missed_ad_impressions")&&this.j&&this.U&&V>1&&this.jB("sdai-admiss",{cpn:this.Iu(),ct:V.toFixed(3),pfs:this.U}),this.j=!1):O&&(V=this.K);return V}; g.T.getDuration=function(){return this.duration}; g.T.getPlayerType=function(){return 2}; g.T.getStartTime=function(){return this.startTimeSecs}; g.T.vH=function(O){this.duration=O};g.kJ.prototype.Tm=function(O,V){if(V===1)return this.K.get(O);if(V===2)return this.U.get(O);if(V===3)return this.j.get(O)}; g.kJ.prototype.wI=d5(64);g.kJ.prototype.Jl=function(O,V,J,y){J={G9:y,BL:J};V?this.U.set(O,J):this.K.set(O,J)}; g.kJ.prototype.clearAll=function(){this.K.clear();this.U.clear();this.j.clear()}; tvr.prototype.clear=function(){this.j=[];this.U.clear();this.D.clear();this.K.clear()}; tvr.prototype.Ku=function(O){return this.U.get(O)}; g.I(g.S_,g.K);g.T=g.S_.prototype;g.T.Ly=function(){var O=this.playback.Ly("serverstitchedcuerange",36E5);O=g.n(O);for(var V=O.next();!V.done;V=O.next())this.j.delete(V.value.getId())}; g.T.onCueRangeEnter=function(O){var V=O.getId();this.k8({oncueEnter:1,cpn:V,start:O.start,end:O.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Yp()||0).toFixed(3)});var J=this.K.Ku(V);this.k8({enterAdCueRange:1});var y=this.JO||this.j2().cpn,l;y=(l=this.K.Ku(y))!=null?l:this.j2();J&&(l=this.playback.getCurrentTime(),J.startTimeSecs=O.start/1E3,J={X4:y,fl:J,DF:l},hgd(this,V,O.start/1E3,l),m5(this,J));this.E5=!1}; g.T.K4=function(O,V,J){var y;if(O&&V&&O!==((y=this.app.Ic().K)==null?void 0:y.Iu()))if((this.app.Ic().D[O]||null)===null){var l;this.k8({nocpn:O,active:(l=this.app.Ic().K)==null?void 0:l.Iu()})}else{this.E5=J!=null?J:!1;var m;J=((m=this.app.Ic().K)==null?void 0:m.Iu())||this.playback.Iu();var H;m=(H=this.K.Ku(J))!=null?H:this.j2();var F;H=(F=this.K.Ku(O))!=null?F:this.j2();H.startTimeSecs=V;H.playerType===2&&(H.y0=H.y0!=null?Math.min(H.y0,V):V);F=this.playback.getCurrentTime();hgd(this,J,V,F);m5(this, {X4:m,fl:H,DF:F});if(this.playback.getVideoData().Yr()&&O===this.playback.Iu())if(V=this.NH.get(J)){var N;O=g.n((N=this.ol.get(V))!=null?N:[]);for(N=O.next();!N.done;N=O.next()){N=N.value;H=F=void 0;m=this.app.Ic();H=H===void 0?"":H;if(J=m.D[N])m.K===J&&(m.K=null),m.S===J&&(m.S=null),N===((F=m.T.get(H))==null?void 0:F.Iu())&&m.T.delete(H),delete m.D[N];this.fD.delete(N);this.NH.delete(N)}this.ol.delete(V)}else this.k8({no_abid:O})}}; g.T.Yo=function(O,V){if(O===this.playback.Iu())iK(this.app.Ic(),this.playback,!1);else{var J=this.fD.get(O);J?(O=!this.E5,J.K=0,J.startTimeSecs=V,J.U=O===void 0?!0:O,J.j=!0,iK(this.app.Ic(),J,!0)):this.k8({nop_s:O})}}; g.T.onCueRangeExit=function(O){var V=this.playback.getCurrentTime()*1E3,J=O.getId();this.k8({oncueExit:1,cpn:J,start:O.start,end:O.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Yp()||0).toFixed(3)});for(var y=g.n(this.j.values()),l=y.next();!l.done;l=y.next())if(l=l.value,l.getId()!==J&&V>=l.start&&V<=l.end)return;if(V=this.K.Ku(J))J=this.playback.getPlayerState(),this.B.L("html5_lifa_no_transition_on_ended")&&this.playback.getVideoData().Yr()&&g.R(J,2)||(J=this.playback.getCurrentTime(), y=this.j2(),y.startTimeSecs=O.end/1E3,V={X4:V,fl:y,DF:J},hgd(this,this.playback.Iu(),O.end/1E3,J),m5(this,V))}; g.T.j2=function(){return{cpn:this.playback.Iu(),durationMs:0,uR:0,playerType:1,OW:0,videoData:this.playback.getVideoData(),errorCount:0,sC:""}}; g.T.seekTo=function(O,V,J,y){O=O===void 0?0:O;V=V===void 0?{}:V;J=J===void 0?!1:J;y=y===void 0?null:y;lR(this,this.JO);if(this.playback.getVideoData().Yr()&&O<=this.O5)this.playback.pauseVideo(),this.O5=0,oVY(this,O);else if(this.E5=this.qX=!0,J)PUr(this,O,V);else{J=this.app.ZN();var l=J===this.Vz?this.UR:null;J3(this,!1);this.yc=O;this.oB=V;y!=null&&this.Xs.start(y);J&&(this.UR=l||J.getPlayerState(),J.ZJ(V),this.Vz=J)}}; g.T.U5=function(){J3(this,!1);NHp(this);xtH(this);g.K.prototype.U5.call(this)}; g.T.aK=function(O,V,J){if(J&&V){var y=this.t$.get(O);if(y){y.locations||(y.locations=new Map);var l=Number(V.split(";")[0]);J=new g.Nl(J);this.k8({hdlredir:1,itag:V,seg:O,hostport:ap(77,J)});y.locations.set(l,J)}}}; g.T.gS=function(O,V,J,y,l,m){var H=Number(J.split(";")[0]),F=y===3;O=Z$r(this,O,V,y,J,m);this.k8({gdu:1,seg:V,itag:H,pb:""+!!O});if(!O)return y4(this,V,F),null;O.locations||(O.locations=new Map);if(!O.locations.has(H)){var N,x;m=(N=O.videoData.getPlayerResponse())==null?void 0:(x=N.streamingData)==null?void 0:x.adaptiveFormats;if(!m)return this.k8({gdu:"noadpfmts",seg:V,itag:H}),y4(this,V,F),null;N=m.find(function(Z){return Z.itag===H}); if(!N||!N.url){var W=O.videoData.videoId;O=[];var U=g.n(m);for(y=U.next();!y.done;y=U.next())O.push(y.value.itag);this.k8({gdu:"nofmt",seg:V,vid:W,itag:H,fullitag:J,itags:O.join(",")});y4(this,V,F);return null}O.locations.set(H,new g.Nl(N.url,!0))}m=O.locations.get(H);if(!m)return this.k8({gdu:"nourl",seg:V,itag:H}),y4(this,V,F),null;m=new rI(m);this.eq&&(m.get("dvc")?this.k8({dvc:m.get("dvc")||""}):m.set("dvc","webm"));(y=(U=this.Tm(V-1,y,l))==null?void 0:U.G9)&&m.set("daistate",y);O.bQ&&V>=O.bQ&& m.set("skipsq",""+O.bQ);(U=this.playback.getVideoData().clientPlaybackNonce)&&m.set("cpn",U);U=[];O.sC&&(U=c5h(this,O.sC),U.length>0&&m.set("acpns",U.join(",")));F||this.t$.set(V,O);F=null;F=m.get("aids");y=m.Cv();(y==null?void 0:y.length)>2048&&this.k8({urltoolong:1,sq:V,itag:H,len:y.length});this.zL&&(y&&(m=O.cpn,l=O.sC,b$p(this,m,l),l&&!this.zK.has(l)&&(m=Ymp(this,m,l),N=a47(this,l),this.k8({iofa:m}),this.k8({noawnzd:N-m}),this.k8({acpns:U.join("."),aids:(W=F)==null?void 0:W.replace(/,/g,".")}), this.zK.add(l))),this.k8({gdu:"v",seg:V,itag:J,ast:O.uR.toFixed(3),alen:O.durationMs.toFixed(3),acpn:O.cpn,avid:O.videoData.videoId}));return y}; g.T.UJ=function(O,V,J){J=J===void 0?!1:J;var y=UtH(this,O,V);if(y){this.JL&&(this.dW=y);var l=void 0,m=y.sC;if(m){this.k8({skipadonsq:V,sts:J,abid:m,acpn:y.cpn,avid:y.videoData.videoId});J=this.K.K.get(m);if(!J)return;J=g.n(J);for(m=J.next();!m.done;m=J.next())m=m.value,m.bQ=V,m.Y4=O,m.uR>y.uR&&(l=m)}lR(this,this.JO);this.U=y.cpn;sDr(this);this.api.L("html5_ssdai_enable_media_end_cue_range")&&this.playback.gr(this.U);O=this.playback.getCurrentTime();egU(this,y,l,O,O,!1,!0);f4Y(this)}}; g.T.eR=function(){for(var O=g.n(this.K.j),V=O.next();!V.done;V=O.next())V=V.value,V.bQ=NaN,V.Y4=NaN;sDr(this);this.k8({rsac:"resetSkipAd",sac:this.U});this.Ks.delete(this.U);this.U="";this.JL&&(this.dW=void 0)}; g.T.Tm=function(O,V,J){return this.KD.Tm(O,V,J)}; g.T.wI=d5(63); g.T.Qe=function(O){var V=O.trackType,J;O=g.n((J=O.metadata)!=null?J:[]);for(J=O.next();!J.done;J=O.next()){var y=void 0;J=g.n((y=J.value.cgj)!=null?y:[]);for(y=J.next();!y.done;y=J.next()){var l=y.value,m=l.ji,H=l.sV;y=l.cpn;var F=l.loggingMetadata,N=l.hh;l=l.Dp;if(y&&y!==this.playback.getVideoData().clientPlaybackNonce){var x=this.K.Ku(y);if(V===2){if(m&&m.startTicks!==void 0&&m.XY!==void 0&&m.timescale!==void 0&&H&&H.startTicks!==void 0&&H.XY!==void 0&&H.timescale!==void 0&&N!==void 0){var W=m.startTicks/ m.timescale;m=H.startTicks/H.timescale;H=H.XY/H.timescale;x&&(x.y0=x.y0!==void 0?Math.min(x.y0,W):W,F&&(x.Hq=g.kH(F)));F=(W-m)*1E3;H=(m+H)*1E3;N=F+(l?H:Math.max(H+1E3,N));(l=this.j.get(y))?(l.start=F,l.end=N,this.playback.cO()):(l=$tH(F,N,y),this.j.set(y,l),this.playback.addCueRange(l))}this.Ly()}else V===1&&x&&F&&(x.bS=g.kH(F))}}}}; g.T.Jl=function(O,V,J,y,l,m,H,F){J.length>0&&this.k8({onssinfo:1,sq:O,start:V.toFixed(3),cpns:J.join(","),ds:y.join(","),isVideo:m?1:0});if(this.JL&&this.dW&&this.dW.bQ&&J.length>0)for(var N=g.n(J),x=N.next();!x.done;x=N.next())if(x=x.value,x===this.dW.cpn){this.dD!==x&&(this.k8({skiperror:1,sq:O,acpn:this.dW.cpn,skipsq:this.dW.bQ||0}),this.dD=x);break}F&&this.KD.Jl(O,m,H,F);if(m){if(J.length&&y.length)for(this.Ks.has(J[0])&&this.k8({skipfail:1,sq:O,acpn:J[0]}),O=V+this.Cy(),m=0;mthis.D.bz+1){this.k8({cueStChg:O.identifier,oldSt:this.D.bz.toFixed(3),newSt:O.startSecs.toFixed(3),abid:this.D.Zx});if(this.D.Zx){var J=O.startSecs-this.D.bz,y=this.K.K.get(this.D.Zx); if(y){y=g.n(y);for(var l=y.next();!l.done;l=y.next())l=l.value,l.uR>=0&&(l.uR+=J*1E3,this.k8({newApEt:l.uR,newApPrt:l.OW,acpn:l.cpn}))}}this.D.bz=O.startSecs}V?this.yz.add(O.identifier):this.yz.has(O.identifier)&&this.yz.delete(O.identifier);return V}; g.T.HU=function(O){var V=this;if(this.B.L("html5_lifa_ignore_multiple_skips")&&this.lw)return this.k8({ufs_ad:this.U,ufs_cur:this.JO,ufs_cont:this.j2().cpn}),!1;lR(this,this.JO);this.playback.pauseVideo();var J=this.playback.getCurrentTime(),y=this.K.Ku(this.JO);if(!y)return this.k8({skipFail:J}),!1;this.U=this.JO;this.qX=!1;this.api.L("html5_ssdai_enable_media_end_cue_range")&&this.playback.gr(this.U);this.Bg(y.sC);vVY(this,y,this.j2(),O);oVY(this,J,{seekSource:89,yK:"lifa_skip"});this.lw||(this.lw= this.events.Z(this.api,"progresssync",function(){NX(V.api.kI(),(0,g.cH)(),"ad_to_video");V.lw&&(V.events.oX(V.lw),V.lw=null)})); return!0}; g.T.Bg=function(O){if(this.playback.getVideoData().Yr()){var V=this.K.K.get(O);if(V){V=g.n(V);for(var J=V.next();!J.done;J=V.next()){J=J.value;var y=this.j.get(J.cpn);this.j.delete(J.cpn);y&&this.playback.removeCueRange(y);Bvn(this.K,J)}this.t$.clear();V=this.K;var l;J=(l=V.K.get(O))!=null?l:[];l=g.n(J);for(J=l.next();!J.done;J=l.next())Bvn(V,J.value);V.K.delete(O);(O=this.WB.get(O))&&this.ul&&this.playback.B0(O)}}}; g.T.k8=function(O,V){((V===void 0?0:V)||this.zL)&&this.playback.jB("sdai",O)};g.I(MGd,g.K);g.T=MGd.prototype;g.T.onCueRangeEnter=function(O){if(this.K===this.app.ZN()){var V=this.W.get(O);V?gV1(this,V.target,V.Ob,O):this.Kv("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:O.toString()})}else if(V=this.j.find(function(l){return l.Od.iB===O})){var J=V.Od,y=J.target; J=J.Ob;y?gV1(this,y,J,O):dtU(this,V.OW,J,O)}}; g.T.onQueuedVideoLoaded=function(){var O=this.S;Cb(this);if(O){if(!jZ(this,O)){var V=this.app.ZN();this.Kv("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:V==null?void 0:V.getVideoData().clientPlaybackNonce,ccpn:""+O.playerVars.cpn})}this.app.ZN().addCueRange(O.Od.iB)}}; g.T.seekTo=function(O,V,J,y){O=O===void 0?0:O;V=V===void 0?{}:V;y=y===void 0?null:y;if(J===void 0?0:J)w2Y(this,O,V);else{J=this.app.ZN()||null;var l=J===this.D?this.V:null;Fs(this,!1);this.KD=O;this.qX=V;y!=null&&this.T.start(y);J&&(this.V=l||J.getPlayerState(),J.ZJ(),this.D=J)}}; g.T.q8=function(O){g.Jg(O,128)&&tGn(this)}; g.T.isManifestless=function(){return Ey(this.K.getVideoData())}; g.T.U5=function(){Fs(this,!1);A5X(this);g.K.prototype.U5.call(this)}; g.T.Kv=function(O,V){this.K.Kv(new g.DO(O,V))}; var LOV=0;var r5X="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_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.I(Nj,g.K);Nj.prototype.x7=function(O){if(O)return this.j.get(O)}; Nj.prototype.U5=function(){this.K.removeAll();this.j.removeAll();g.K.prototype.U5.call(this)};g.uBI=Qx(function(){var O=window.AudioContext||window.webkitAudioContext;try{return new O}catch(V){return V.name}});g.I(ko5,g.r);g.T=ko5.prototype;g.T.a_=function(){g.Og(this.element,g.jF.apply(0,arguments))}; g.T.DK=function(){this.Kd&&(this.Kd.removeEventListener("focus",this.i$),g.fo(this.Kd),this.Kd=null)}; g.T.KC=function(){this.GL();var O=this.app.Y();O.N5||this.a_("tag-pool-enabled");O.V&&this.a_(g.gl.HOUSE_BRAND);O.playerStyle==="gvn"&&(this.a_("ytp-gvn"),this.element.style.backgroundColor="transparent");O.NH&&(this.Zv=g.AS("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.T.zo=function(O){g.Db(this.app.Y());this.Ue=!O;xc(this)}; g.T.resize=function(){if(this.Kd){var O=this.BK();if(!O.isEmpty()){this.app.cE.isFullscreen()&&G8()&&this.Vf.start();var V=!g.Vx(O,this.lJ.getSize()),J=JLo(this);V&&(this.lJ.width=O.width,this.lJ.height=O.height);O=this.app.Y();(J||V||this.pR||O.NH)&&this.app.cE.publish("resize",this.getPlayerSize())}}}; g.T.J_=function(O,V){this.updateVideoData(V)}; g.T.updateVideoData=function(O){if(this.Kd){var V=this.app.Y();EN&&(this.Kd.setAttribute("x-webkit-airplay","allow"),O.title?this.Kd.setAttribute("title",O.title):this.Kd.removeAttribute("title"));this.Kd.setAttribute("controlslist","nodownload");V.I_&&O.videoId?this.Kd.poster=O.O7("default.jpg"):kg()&&(SU!=null?SU:0)>=10&&(this.Kd.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}V=g.Az(O,"yt:bgcolor");this.dL.style.backgroundColor=V?V:"";this.J1=lj(g.Az(O, "yt:stretch"));this.z_=lj(g.Az(O,"yt:crop"),!0);g.yf(this.element,"ytp-dni",O.tC);this.resize()}; g.T.setGlobalCrop=function(O){this.O8=lj(O,!0);this.resize()}; g.T.setCenterCrop=function(O){this.Bw=O;this.resize()}; g.T.Ws=function(){}; g.T.getPlayerSize=function(){var O=this.app.Y(),V=this.app.cE.isFullscreen(),J=O.externalFullscreen&&g.R2(O);if(V&&G8()&&!J)return new g.Op(window.outerWidth,window.outerHeight);J=!isNaN(this.NS.width)&&!isNaN(this.NS.height);var y=this.app.Y().L("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.Y().L("web_watch_enable_fs_squeezeback_panels");if(V&&!J&&y)return new g.Op(this.element.clientWidth,this.element.clientHeight);if(V||O.fJ){if(window.matchMedia){O="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.vO&&this.vO.media===O||(this.vO=window.matchMedia(O));var l=this.vO&&this.vO.matches}if(l)return new g.Op(window.innerWidth,window.innerHeight)}else if(J)return this.NS.clone();return new g.Op(this.element.clientWidth,this.element.clientHeight)}; g.T.BK=function(){var O=this.app.Y().L("enable_desktop_player_underlay"),V=this.getPlayerSize(),J=g.Ry(this.app.Y().experiments,"player_underlay_min_player_width");return O&&this.oS&&V.width>J?(O=g.Ry(this.app.Y().experiments,"player_underlay_video_width_fraction"),new g.Op(Math.min(V.height*this.getVideoAspectRatio(),V.width*O),Math.min(V.height,V.width*O/this.getVideoAspectRatio()))):V}; g.T.getVideoAspectRatio=function(){return isNaN(this.J1)?Dtp(this):this.J1}; g.T.getVideoContentRect=function(O){var V=this.BK();O=Ow5(this,V,this.getVideoAspectRatio(),O);return new g.iB((V.width-O.width)/2,(V.height-O.height)/2,O.width,O.height)}; g.T.rM=function(O){this.oS=O;this.resize()}; g.T.FO=function(){return this.mW}; g.T.onMutedAutoplayChange=function(){xc(this)}; g.T.setInternalSize=function(O){g.Vx(this.NS,O)||(this.NS=O,this.resize())}; g.T.U5=function(){this.Zv&&g.rS(this.Zv);this.DK();g.r.prototype.U5.call(this)};g.T=lh5.prototype;g.T.click=function(O,V){this.elements.has(O);this.K.has(O);var J=g.Fe();J&&O.visualElement&&g.AP(J,O.visualElement,V)}; g.T.createClientVe=function(O,V,J,y){var l=this;y=y===void 0?!1:y;this.elements.has(O);this.elements.add(O);J=HF(J);O.visualElement=J;var m=g.Fe(),H=g.CY();m&&H&&(g.Ut("combine_ve_grafts")?IY(TX(),J,H):g.ii(g.nY)(void 0,m,H,J));V.addOnDisposeCallback(function(){l.elements.has(O)&&l.destroyVe(O)}); y&&this.j.add(O)}; g.T.createServerVe=function(O,V,J){var y=this;J=J===void 0?!1:J;this.elements.has(O);this.elements.add(O);V.addOnDisposeCallback(function(){y.destroyVe(O)}); J&&this.j.add(O)}; g.T.destroyVe=function(O){this.elements.has(O);this.elements.delete(O);this.U.delete(O);this.K.delete(O);this.j.delete(O)}; g.T.kt=function(O,V){this.clientPlaybackNonce!==V&&(this.clientPlaybackNonce=V,ek(TX(),O),mr7(this))}; g.T.setTrackingParams=function(O,V){this.elements.has(O);V&&(O.visualElement=g.$b(V))}; g.T.PY=function(O,V,J){this.elements.has(O);V?this.K.add(O):this.K.delete(O);var y=g.Fe(),l=O.visualElement;this.j.has(O)?y&&l&&(V?g.tP(y,[l]):g.u6(y,[l])):V&&!this.U.has(O)&&(y&&l&&g.KY(y,l,void 0,J),this.U.add(O))}; g.T.hasVe=function(O){return this.elements.has(O)};var AaE={RJl:0,IrL:1,XcK:2,bPn:3,0:"ECHO",1:"TRANSFER_MEDIA_SOURCE",2:"BUSY_WAIT",3:"IS_TYPE_SUPPORTED"};g.I(U3,g.K);U3.prototype.sendRequest=function(){var O=Object.values(AaE).filter(function(V){return typeof V==="number"}); switch(O[Math.floor(Math.random()*O.length)]){case 0:Hwr(this,this.S);break;case 1:jAd(this);break;case 2:CxH(this,this.W);break;case 3:FXY(this)}}; U3.prototype.request=function(O){this.Mq&&this.Mq.postMessage(O)}; U3.prototype.receive=function(O){if(!(this.D>=5E3)){var V=O.timeStamp,J=performance.now();O=O.data;var y=O[1];this.jB("worker",{type:O[0],t1:(O[2]-performance.timeOrigin-y).toFixed(3),t2:(O[3]-performance.timeOrigin-y).toFixed(3),t3:(V-y).toFixed(3),t4:(J-y).toFixed(3)});this.D++}}; U3.prototype.U5=function(){this.j!==void 0&&(clearInterval(this.j),this.j=void 0);var O;(O=this.Mq)==null||O.terminate();this.K=this.Mq=void 0;this.jB("workerDtor",{});g.K.prototype.U5.call(this)};g.I(g.Zv,g.K);g.Zv.create=function(O,V,J,y){try{var l=typeof O==="string"?O:"player"+g.pd(O),m=oP[l];if(m){try{m.dispose()}catch(F){g.sk(F)}oP[l]=null}var H=new g.Zv(O,V,J,y);H.addOnDisposeCallback(function(){oP[l]=null;H.UK&&H.UK()}); return oP[l]=H}catch(F){throw g.sk(F),(F&&F instanceof Error?F:Error(String(F))).stack;}}; g.T=g.Zv.prototype;g.T.hO=function(){return this.visibility}; g.T.JE=function(O){var V=this.RB();if(O!==V){O.getVideoData().autonavState=V.getVideoData().autonavState;V.Vq(this.qb,this);var J=V.getPlaybackRate();V.dispose();this.IX.JE(O);O.setPlaybackRate(J);O.u3(this.qb,this);cLl(this)}}; g.T.a5=function(){this.aQ||(this.aQ=g.B7(Vc(),TLo(),{wb:this.B.wb(),clientInterface:fs(this.B)}));return this.aQ}; g.T.DK=function(O){if(this.mediaElement){this.pm&&(this.events.oX(this.pm),this.pm=null);g.fz(this.FM);this.ZN().DK(!0,!1,O);this.template.DK();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.cJ()}catch(V){g.en(V)}this.mediaElement=null}}; g.T.DG=function(O,V,J){if(O!==this.ZN()){var y=null;if(J===void 0||!J){J=this.ZN();y=J.getPlayerState();fG(this.ZD,3);qj(this,"cuerangesremoved",J.G2());this.uM&&!O.isGapless()&&J.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();J=O.OY()&&J.OY();this.rC.du("iv_s");J=J===void 0?!0:J;var l;if(l=this.IG){l=this.IG;var m=this.mediaElement;l=!!m&&m===l.mediaElement}l&&(this.DK(),cO(this));l=this.ZN();l.DK(!J);l.Vq(this.Kn,this);l.getPlayerType()!==1&&l.dispose();J=this.IX;l=[J.j];J.j=J.V; ry(J,[],l)}O.getPlayerType()===1&&this.JE(O);J=O.getPlayerType();l=this.IX.U[J]||null;O!==this.RB()&&O!==l&&(l==null||l.dispose(),this.IX.U[J]=O);this.IX.DG(O);this.mediaElement&&O.setMediaElement(this.mediaElement);O.u3(this.Kn,this);O.q1()?Drh(this,"setPresenting",!1):(this.J_("newdata",O,O.getVideoData()),y&&!g.Qr(y,O.getPlayerState())&&this.d3(new g.OK(O.getPlayerState(),y)),V=V&&O.getPlayerType()===1,O.Af()&&!V&&this.J_("dataloaded",O,O.getVideoData()),(V=(V=O.getVideoData().j)&&V.video)&&this.cE.il("onPlaybackQualityChange", V.quality),qj(this,"cuerangesadded",O.G2()),V=O.getPlayerState(),g.R(V,2)?hP7(this):g.R(V,8)?O.playVideo():O.hW()&&O.pauseVideo(),V=this.RB(),O.getPlayerType()===2&&(O.getVideoData().In=V.getVideoData().clientPlaybackNonce),O.getPlayerType()!==2||this.T3()||(O=O.getVideoData(),V.KG(O.clientPlaybackNonce,O.Ks||"",O.breakType||0,O.ze,O.videoId||"")))}}; g.T.BR=function(){this.RB()!==this.ZN()&&this.DG(this.RB())}; g.T.Ic=function(){return this.IX}; g.T.Ku=function(O){return this.IX.Ku(O)}; g.T.p7=function(O){return this.IX.p7(O)}; g.T.RB=function(){return this.IX.RB()}; g.T.ZN=function(){return this.IX.ZN()}; g.T.Gc=d5(40);g.T.RhK=function(){Yc(this)||this.Ap(5)}; g.T.COz=function(){if(!Yc(this)){Bm7(this);var O=this.ZN(),V=O.getVideoData();this.B.L("html5_allow_multiview_tile_preload")&&V.MI&&O.seekTo(Infinity);V=O.getPlayerState();O.hW()?this.pauseVideo():V.isOrWillBePlaying()&&this.playVideo()}}; g.T.canPlayType=function(O){return yj(O)}; g.T.Y=function(){return this.B}; g.T.getVideoData=function(){return this.ZN().getVideoData()}; g.T.Tq=function(){return this.ZN().QG()}; g.T.hC=function(){return this.RB().getVideoData()}; g.T.getVideoLoadedFraction=function(O){return g.TL(this,{playerType:O}).getVideoLoadedFraction()}; g.T.tv=function(){return this.template}; g.T.Fs=function(){return this.ZD}; g.T.kI=function(){return this.rC}; g.T.wV=function(O,V,J){g.TL(this,{playerType:V===void 0?1:V}).KI(O,void 0,J)}; g.T.Xd=function(){var O=this.ZD.Xd();this.cE.publish("videoStatsPingCreated",O);return O}; g.T.getVolume=function(){return Math.round(this.cE.getVolume())}; g.T.isMuted=function(){return this.cE.isMuted()}; g.T.Sa=function(){if(this.RB()===this.ZN()&&this.ih)return this.ih.postId}; g.T.zcK=function(){var O=this;this.L("use_rta_for_player")||(g.F0(this.B)?g.bd(this.B,g.He(this.getVideoData())).then(function(V){J9(Vc(),V);eJ1(O.getVideoData(),O.B,O.a5())}):eJ1(this.getVideoData(),this.B,this.a5()))}; g.T.iT=function(O){this.cE.publish("poTokenVideoBindingChange",O)}; g.T.LZ=function(O){this.cE.publish("d6de4videobindingchange",O)}; g.T.VV=function(){this.BV&&this.BV.VV()}; g.T.g1=function(O){this.BV=O}; g.T.RH=function(O){if(O===1){this.rC.tick("vr");var V=this.ZN();V.Xr();ein(this.rC,V.getVideoData(),RPr(this));PZ1(this.ZD)}V=this.B;if(Ix(V)&&V.T||g.Vw(V)){var J;(((J=this.ZN().getVideoData())==null?0:J.enableServerStitchedDai)||!this.T3())&&this.cE.il("onAdStateChange",O)}}; g.T.setLoopVideo=function(O){var V=this.ZN();V===this.RB()&&V.RT()!==O&&(V.setLoop(O),this.cE.MX("onLoopChange",O))}; g.T.getLoopVideo=function(){return this.ZN().RT()}; g.T.setLoopRange=function(O){var V=!1;!!this.ih!==!!O?V=!0:this.ih&&O&&(V=this.ih.startTimeMs!==O.startTimeMs||this.ih.endTimeMs!==O.endTimeMs||this.ih.postId!==O.postId||this.ih.type!==O.type);if(V){V=this.ZN();p7(V.getVideoData())&&V.jB("slr",{et:(O==null?void 0:O.endTimeMs)||-1});V=this.RB();V.iO("applooprange");if(O){var J=new g.gz(O.startTimeMs,O.endTimeMs,{id:"looprange",namespace:"applooprange"});V.addCueRange(J)}else{this.hC().clipConfig=void 0;var y;((J=this.ih)==null?void 0:J.type)!=="repeatChapter"|| isNaN(Number((y=this.ih)==null?void 0:y.loopCount))||(J={loopCount:String(this.ih.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.l6("repeatChapterLoopEvent",J))}this.ih=O;this.cE.MX("onLoopRangeChange",O||void 0);this.RB()===this.ZN()&&(this.Yv(),V.i5())}}; g.T.getLoopRange=function(){return this.ih}; g.T.Yv=function(){var O="",V=this.RB();this.ih?V!==this.ZN()?O="pnea":Xrp(this,V.getCurrentTime())&&(this.ih.loopCount=0,O="ilr"):O="nlr";var J=this.ZN();if(p7(J.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var y,l;J.jB("slrre",{rej:O,ct:V.getCurrentTime(),lst:(y=this.ih)==null?void 0:y.startTimeMs,let:(l=this.ih)==null?void 0:l.endTimeMs})}else J.jB("slrre",{});O||drH(this)}; g.T.setPlaybackRate=function(O,V){if(!isNaN(O)){O=bwp(this,O);var J=this.RB();J.getPlaybackRate()!==O&&(J.setPlaybackRate(O),V&&!this.B.D&&g.oH("yt-player-playback-rate",O),this.cE.il("onPlaybackRateChange",O))}}; g.T.getCurrentTime=function(O,V){V=V===void 0?!0:V;var J=this.IX.lV;if(J)return J.getCurrentTime();O=(J=O===2&&this.getVideoData().enableServerStitchedDai)?this.ZN():g.TL(this,{playerType:O});return J&&this.bO?(J=this.IX.S)?J.getCurrentTime(V):O.getCurrentTime():V?(V=Iu(this,O),Lb(this,V.getCurrentTime(),V)):O.getCurrentTime()}; g.T.Hc=function(){var O=g.TL(this,{playerType:void 0});O=Iu(this,O);return Lb(this,O.Hc(),O)}; g.T.getDuration=function(O,V){V=V===void 0?!0:V;var J=this.IX.lV;if(J)return J.getDuration();J=this.getVideoData();var y=O===2&&J.enableServerStitchedDai;var l=y?this.ZN():g.TL(this,{playerType:O});if(J.hasProgressBarBoundaries()&&!y){var m,H=Number((m=J.progressBarStartPosition)==null?void 0:m.utcTimeMillis),F;m=Number((F=J.progressBarEndPosition)==null?void 0:F.utcTimeMillis);if(!isNaN(H)&&!isNaN(m))return(m-H)/1E3}return p7(J)&&!J.isLivePlayback?w1(this,O):V?(O=eZ(this,l),Lb(this,O.getDuration(), O)):y&&this.bO?(O=this.IX,O=O.K===O.S?O.K:null,(O==null?void 0:O.getDuration())||0):l.getDuration()}; g.T.dN=function(O){var V=g.TL(this,{playerType:O});return this.T3(V)?(V=eZ(this,V),V.dN()-V.getCurrentTime()+this.getCurrentTime(O)):V.dN()}; g.T.finishSegmentByCpn=function(){return[]}; g.T.KC=function(){this.template.KC();var O=this.cE;O.state.element=this.template.element;var V=O.state.element,J;for(J in O.state.K)O.state.K.hasOwnProperty(J)&&(V[J]=O.state.K[J]);(O=ZM7(this.template.element))&&this.events.Z(this.template,O,this.onFullscreenChange)}; g.T.getDebugText=function(O){var V=this.RB().qI(O),J=this.ZN();if(J!==this.RB()){J=J.qI(O);for(var y=g.n(Object.keys(J)),l=y.next();!l.done;l=y.next())l=l.value,V["ad"+l]=J[l];if(O){J=V;y={};if(l=FY(document,"movie_player"))y.bounds=l.getBoundingClientRect(),y["class"]=l.className;l={};var m=g.Up("video-ads");m?(Jvh(m,l),l.html=m.outerHTML):l.missing=1;m={};var H=g.Up("videoAdUiSkipContainer"),F=g.Up("ytp-ad-skip-button-container"),N=g.Up("ytp-skip-ad-button"),x=H||F||N;x?(Jvh(x,m),m.ima=H?1:0,m.bulleit= F?1:0,m.component=N?1:0):m.missing=1;y=JSON.stringify({player:y,videoAds:l,skipButton:m});J.ad_skipBtnDbgInfo=y}}O&&this.mediaElement&&(V["0sz"]=""+(+J8(this.mediaElement.getSize())===0),V.op=this.mediaElement.dh("opacity"),J=this.mediaElement.Qm().y+this.mediaElement.getSize().height,V.yof=""+(+J<=0),V.dis=this.mediaElement.dh("display"));O&&((O=(0,g.rM)())&&(V.gpu=O),(O=this.B.playerStyle)&&(V.ps=O),this.B.yz&&(V.webview=1),(O=this.webPlayerContextConfig.jsUrl)&&(V.js=O));V.debug_playbackQuality= this.cE.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.T.getFeedbackProductData=function(){var O={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.Y().experiments.experimentIds.join(", "),player_release:C[72]},V=this.getPlayerStateObject().o5;V&&(O.player_error_code=V.errorCode,O.player_error_details=JSON.stringify(V.errorDetail));return O}; g.T.getPresentingPlayerType=function(O){if(this.appState===1)return 1;if(Yc(this))return 3;var V,J,y;return(O&&this.B.gC().K.s5(ghh)?(y=(V=this.IX.K)==null?void 0:V.isAd())!=null&&y:(J=this.bO)==null?0:jDY(J,this.getCurrentTime()))?2:this.ZN().getPlayerType()}; g.T.LT=function(){return!1}; g.T.getPlayerStateObject=function(O){var V=this.IX.lV;return V?V.getPlayerState():g.TL(this,{playerType:O}).getPlayerState()}; g.T.getAppState=function(){return this.appState}; g.T.JL5=function(O){switch(O.type){case "loadedmetadata":this.Ei.start();O=g.n(this.On);for(var V=O.next();!V.done;V=O.next())V=V.value,iwd(this,V.id,V.M4n,V.YBX,void 0,!1);this.On=[];break;case "loadstart":this.rC.du("gv");break;case "progress":case "timeupdate":Hs(O.target.pE())>=2&&this.rC.du("l2s");break;case "playing":g.T0&&this.Ei.start();if(g.F0(this.B))O=!1;else{V=g.Be(this.Fs());O=this.mediaElement.dh("display")==="none"||J8(this.mediaElement.getSize())===0;var J=WO(this.template),y=this.ZN().getVideoData(), l=g.pJ(this.B);y=f7(y);V=!J||V||l||y||this.B.TL;O=O&&!V}O&&(O=this.ZN(),O.TI(),this.getVideoData().E5||(this.getVideoData().E5=1,this.u8(),O.playVideo()))}}; g.T.cLX=function(O){this.cE.qG("onLoadProgress",O)}; g.T.NN5=function(){this.cE.publish("playbackstalledatstart")}; g.T.Zvj=function(O,V){this.cE.publish("sabrCaptionsDataLoaded",O,V)}; g.T.L8i=function(O){this.ZN().xW(O)}; g.T.wni=function(O){this.ZN().L0(O)}; g.T.aDB=function(O){O=Iu(this,this.ZN());O=Lb(this,O.getCurrentTime(),O);this.cE.il("onVideoProgress",O);this.B.jr&&t21(this,this.visibility.Lf())&&this.pauseVideo()}; g.T.GGw=function(){this.cE.il("onAutoplayBlocked");var O=this.ZN().getVideoData();O&&(O.nm=!0);g.R2(this.B)&&(O={autoplayBrowserPolicy:qi(),autoplayIntended:Qh(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.l6("embedsAutoplayStatusChanged",O))}; g.T.nen=function(){this.cE.publish("progresssync")}; g.T.SWj=function(){this.cE.qG("onPlaybackPauseAtStart")}; g.T.fgE=function(O){if(this.getPresentingPlayerType()===1){g.Jg(O,1)&&!g.R(O.state,64)&&this.hC().isLivePlayback&&this.RB().isAtLiveHead()&&this.cE.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Jg(O,2)){if(this.ih&&this.ih.endTimeMs>=(this.getDuration()-1)*1E3){drH(this);return}hP7(this)}if(g.R(O.state,128)){var V=O.state;this.cancelPlayback(5);V=V.o5;JSON.stringify({errorData:V,debugInfo:this.getDebugText(!0)});this.cE.il("onError",LH5(V.errorCode));this.cE.qG("onDetailedError",{errorCode:V.errorCode, errorDetail:V.errorDetail,message:V.errorMessage,messageKey:V.d7,cpn:V.cpn});(0,g.cH)()-this.B.Pn>6048E5&&this.cE.qG("onReloadRequired")}V={};if(O.state.isPlaying()&&!O.state.isBuffering()&&!Ic("pbresume","ad_to_video")&&Ic("_start","ad_to_video")){var J=this.getVideoData();V.clientPlaybackNonce=J.clientPlaybackNonce;J.videoId&&(V.videoId=J.videoId);g.TJ(V,"ad_to_video");sB("pbresume",void 0,"ad_to_video");PZ1(this.ZD)}this.cE.publish("applicationplayerstatechange",O)}}; g.T.d3=function(O){this.IX.lV||this.cE.publish("presentingplayerstatechange",O)}; g.T.q8=function(O){s3(this,Kr(O.state));g.R(O.state,1024)&&this.cE.isMutedByMutedAutoplay()&&(ou(this,{muted:!1,volume:this.S4.volume},!1),vO(this,!1))}; g.T.onPlayerRequestSent=function(O){this.cE.MX("onPlayerRequestSent",O)}; g.T.Up=function(O,V){O==="newdata"&&cLl(this);this.cE.publish("applicationvideodatachange",O,V)}; g.T.kGj=function(O,V){Bm7(this);this.cE.qG("onPlaybackAudioChange",this.cE.getAudioTrack().wC.name);this.cE.publish("internalaudioformatchange",this.cE.getAudioTrack().wC.id,V)}; g.T.zgi=function(O){var V=this.ZN().getVideoData();O===V&&this.cE.il("onPlaybackQualityChange",O.j.video.quality)}; g.T.L3=function(){var O=this.IX.U[2]||null;O&&(O=O.getVideoData(),this.ZN().jB("ssdai",{cleanaply:1,acpn:O==null?void 0:O.clientPlaybackNonce,avid:O.videoId,isDai:this.hC().enableServerStitchedDai?1:0}),delete this.IX.U[2])}; g.T.TNl=function(O,V){this.J_(O,this.ZN(),V)}; g.T.J_=function(O,V,J){this.B.Sq()&&V.jB("vdc",{type:O,vid:J.videoId||"",cpn:J.clientPlaybackNonce||""});V===this.RB()&&(this.B.J0=J.oauthToken);V===this.RB()&&(this.getVideoData().enableServerStitchedDai&&!this.bO?(this.RB().jB("sdai",{initSstm:1}),this.bO=new g.S_(this.cE,this.B,this.RB(),this)):!this.getVideoData().enableServerStitchedDai&&this.bO&&(this.bO.dispose(),this.bO=null));if(O==="newdata")fG(this.ZD,2),this.cE.publish("videoplayerreset",V);else{if(!this.mediaElement)return;if(O==="dataloaded")if(this.RB()=== this.ZN()){if($$(J.WE,J.M9),!this.RB().getPlayerState().isError()){var y=Yc(this);this.hC().isLoaded();y&&this.Ap(6);wrd(this);RiV(this.ZD)||vhr(this)}}else wrd(this);if(V.getPlayerType()===1&&(this.B.Vz&&Vb1(this),this.getVideoData().isLivePlayback&&!this.B.Hl&&this.bk("html5.unsupportedlive",2,"DEVICE_FALLBACK"),J.isLoaded()&&((QiY(J)||this.getVideoData().rk)&&this.cE.publish("legacyadtrackingpingchange",this.getVideoData()),J.hasProgressBarBoundaries()))){var l;y=Number((l=this.getVideoData().progressBarEndPosition)== null?void 0:l.utcTimeMillis)/1E3;!isNaN(y)&&(l=this.dN())&&(l-=this.getCurrentTime(),y=(y-l)*1E3,l=this.u6.progressEndBoundary,(l==null?void 0:l.start)!==y&&(l&&this.qr([l]),y=new g.gz(y,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.RB().addCueRange(y),this.u6.progressEndBoundary=y))}this.cE.publish("videodatachange",O,J,V.getPlayerType())}this.cE.il("onVideoDataChange",{type:O,playertype:V.getPlayerType()});this.Yv();(O=J.SC)?this.iY.kt(O,J.clientPlaybackNonce): mr7(this.iY)}; g.T.yP=function(){bR(this,null);this.cE.qG("onPlaylistUpdate")}; g.T.K85=function(O){delete this.u6[O.getId()];this.RB().removeCueRange(O);a:{O=this.getVideoData();var V,J,y,l,m,H,F,N,x,W,U=((V=O.fD)==null?void 0:(J=V.contents)==null?void 0:(y=J.singleColumnWatchNextResults)==null?void 0:(l=y.autoplay)==null?void 0:(m=l.autoplay)==null?void 0:m.sets)||((H=O.fD)==null?void 0:(F=H.contents)==null?void 0:(N=F.twoColumnWatchNextResults)==null?void 0:(x=N.autoplay)==null?void 0:(W=x.autoplay)==null?void 0:W.sets);if(U)for(V=g.n(U),J=V.next();!J.done;J=V.next())if(J= J.value,l=y=void 0,J=J.autoplayVideo||((y=J.autoplayVideoRenderer)==null?void 0:(l=y.autoplayEndpointRenderer)==null?void 0:l.endpoint),y=g.e(J,g.eW),m=l=void 0,J!=null&&((l=y)==null?void 0:l.videoId)===O.videoId&&((m=y)==null?0:m.continuePlayback)){O=J;break a}O=null}(V=g.e(O,g.eW))&&this.cE.MX("onPlayVideo",{sessionData:{autonav:"1",itct:O==null?void 0:O.clickTrackingParams},videoId:V.videoId,watchEndpoint:V})}; g.T.Ap=function(O){O!==this.appState&&(O===2&&this.getPresentingPlayerType()===1&&(s3(this,-1),s3(this,5)),this.appState=O,this.cE.publish("appstatechange",O))}; g.T.bk=function(O,V,J,y,l){this.RB().Hf(O,V,J,y,l)}; g.T.FX=d5(9);g.T.isAtLiveHead=function(O,V){V=V===void 0?!1:V;var J=g.TL(this,{playerType:O});O=eZ(this,J);J=Iu(this,J);return O!==J?O.isAtLiveHead(Lb(this,J.getCurrentTime(),J),!0):O.isAtLiveHead(void 0,V)}; g.T.Y1=function(){var O=g.TL(this,{playerType:void 0});return eZ(this,O).Y1()}; g.T.seekTo=function(O,V,J,y,l,m){V=V!==!1;y=g.TL(this,{playerType:y});this.appState===2&&fb(this);if(this.T3(y))nb(this)?this.bO.seekTo(O,{seekSource:l},V,J):this.Qc.seekTo(O,{seekSource:l},V,J);else{this.L("html5_sabr_csdai_seek_log")||(m="");var H;y.seekTo(O,{JK:!V,O_:J,yK:"application"+((H=m)!=null?H:""),seekSource:l})}}; g.T.seekBy=function(O,V,J,y){this.seekTo(this.getCurrentTime()+O,V,J,y,void 0,"_by")}; g.T.bvz=function(){this.cE.il("SEEK_COMPLETE")}; g.T.Fiz=function(){this.cE.MX("onAbnormalityDetected")}; g.T.Myw=function(O){this.cE.MX("onSnackbarMessage",O)}; g.T.HvN=function(O){var V=this.ZN(),J=V.getVideoData();if(this.appState===1||this.appState===2)J.startSeconds=O;this.appState===2?g.R(V.getPlayerState(),512)||fb(this):this.cE.il("SEEK_TO",O)}; g.T.ivN=function(){this.cE.publish("airplayactivechange")}; g.T.oeD=function(){this.cE.publish("airplayavailabilitychange")}; g.T.showAirplayPicker=function(){this.ZN().ZQ()}; g.T.VyB=function(){this.cE.publish("beginseeking")}; g.T.wfi=function(){this.cE.publish("endseeking")}; g.T.getStoryboardFormat=function(O){O=g.TL(this,{playerType:O});return eZ(this,O).getStoryboardFormat()}; g.T.wq=function(O){O=g.TL(this,{playerType:O});return eZ(this,O).getVideoData().wq()}; g.T.T3=function(O){O=(O||this.ZN()).getVideoData();if(nb(this))O=O===this.bO.playback.getVideoData();else a:{var V=this.Qc;if(O===V.K.getVideoData()&&V.j.length)O=!0;else{V=g.n(V.j);for(var J=V.next();!J.done;J=V.next())if(O.ke===J.value.ke){O=!0;break a}O=!1}}return O}; g.T.e0=function(O,V,J,y,l,m,H,F){var N=nb(this);this.ZN().jB("appattl",{sstm:this.bO?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:N});N?(J=l47(this.bO,O,V,J,y,l,m,H,F),O=(J==null?void 0:J.clientPlaybackNonce)||"",(this.L("html5_ssdai_new_decoration_logic")||this.RB().getVideoData().n0)&&this.RB().iW(F||{nB:""},V,(J==null?void 0:J.clientPlaybackNonce)||"")):O=EVr(this.Qc,O,J,y,l,m);return O}; g.T.E0=function(O,V,J,y,l,m,H,F){if(nb(this)){var N,x=(N=this.bO)==null?void 0:l47(N,O,V,J,y,l,m,H,F);this.RB().getVideoData().n0&&this.B.gC().K.s5(RHI)&&this.RB().iW(F||{nB:""},V,(x==null?void 0:x.clientPlaybackNonce)||"")}}; g.T.E3=function(O){(this.L("html5_ssdai_new_decoration_logic")||this.RB().getVideoData().n0)&&this.RB().iW(O,"","");var V;(V=this.bO)==null||V.E3(O.nB||"")}; g.T.l9=function(O,V){O=O===void 0?-1:O;V=V===void 0?Infinity:V;nb(this)||A5X(this.Qc,O,V)}; g.T.xq=function(O,V,J){if(nb(this)){var y=this.bO,l=y.K.Ku(O);l?(J===void 0&&(J=l.OW),FOn(y,l,V,J)):y.sB("Invalid_cpn_"+O+"_specified")}else{y=this.Qc;l=null;for(var m=g.n(y.j),H=m.next();!H.done;H=m.next())if(H=H.value,H.ke===O){l=H;break}l?(J===void 0&&(J=l.OW),uAn(y,l,V,J)):$c(y,"InvalidTimelinePlaybackId timelinePlaybackId="+O)}}; g.T.enqueueVideoByPlayerVars=function(O,V,J,y){J=J===void 0?Infinity:J;y=y===void 0?"":y;this.T3();O=new g.WL(this.B,O);y&&(O.ke=y);QAV(this,O,V,J)}; g.T.queueNextVideo=function(O,V,J,y,l){J=J===void 0?NaN:J;O=this.preloadVideoByPlayerVars(O,V===void 0?1:V,J,y===void 0?"":y,l===void 0?"":l);V=this.ZN();O&&(this.L("html5_check_queue_on_data_loaded")?this.Y().supportsGaplessShorts()&&V.getVideoData().S&&(J=this.PZ,y=this.uM.W,J.D!==O&&(J.j=V,J.D=O,J.U=1,J.K=O.getVideoData(),J.W=y,J.K.isLoaded()?J.V():J.K.subscribe("dataloaded",J.V,J))):(J=OA7(V,O,this.uM.W),J!=null?(V.jB("sgap",J),V.getVideoData().S&&V.C5(!1)):(O=O.getVideoData(),V=this.PZ,V.K!== O&&(V.K=O,V.U=1,O.isLoaded()?V.S():V.K.subscribe("dataloaded",V.S,V)))))}; g.T.RI=function(O,V,J,y){var l=this;J=J===void 0?0:J;y=y===void 0?0:y;eZ(this,this.ZN()).aE();Fbr(this.uM,O,V,J,y).then(function(){l.cE.qG("onQueuedVideoLoaded")},function(){})}; g.T.qE=function(){return this.uM.qE()}; g.T.m5=function(O){var V=this.uM.K;return V?V.dO(O):!1}; g.T.clearQueue=function(O,V){this.uM.clearQueue(O===void 0?!1:O,V===void 0?!1:V)}; g.T.loadVideoByPlayerVars=function(O,V,J,y,l,m){V=V===void 0?1:V;var H=this.RB();if(V===2&&this.hC().enableServerStitchedDai&&H&&!H.r6())return H.jB("lvonss",{vid:(O==null?void 0:O.videoId)||"",ptype:V}),!1;var F=!1;H=new g.WL(this.B,O);H.t0=m;g.sj(this.B)&&!H.ZI&&xn(this.rC);var N;m=this.rC;var x=(N=H.qX)!=null?N:"";m.timerName=x;this.rC.Y3("pl_i");this.L("web_player_early_cpn")&&H.clientPlaybackNonce&&this.rC.infoGel({clientPlaybackNonce:H.clientPlaybackNonce});zJr(H).supportsVp9Encoding===!1&& this.ZN().jB("noVp9enc",{});if(this.Y().supportsGaplessShorts()){N=zkV(this.uM,H,V);if(N==null){s3(this,-1);var W;((W=this.uM.K)==null?0:W.getVideoData().isAd())||Xs(this);O=this.uM;O.app.Y().L("html5_gapless_new_slr")?Mj(O.app,"gaplessshortslooprange"):O.app.setLoopRange(null);O.app.getVideoData().Nx=!0;var U;(U=O.K)==null||U.nF();var Z;(Z=O.K)==null||Z.AQ();J={yK:"gapless_to_next_video",seekSource:60,ZT:O.W.K};y=ZA1(O);if(O.W.K){var z;l=((z=O.U)==null?void 0:X4(z))||{};H=l.Lp;l=l.Oa;l!=null&&H!= null&&(y=l-H+.001)}var c;(c=O.app.ZN())==null||c.seekTo(y,J);if(!O.app.getPlayerStateObject(V).isPlaying()){var Y;(Y=O.app.ZN())==null||Y.playVideo(!0)}UZp(O,y);var b;(b=O.app.ZN())==null||b.vM();O.T();return!0}c=this.L("html5_shorts_gapless_preload_fallback");Y=this.uM.K;c&&Y&&!Y.GL()&&(b=Y.getVideoData(),b=E3(this,V,b),this.IX.W.set(b,Y,3600));this.uM.clearQueue(c);this.ZN().jB("sgap",{f:N})}if(l){for(;H.qc.length&&H.qc[0].isExpired();)H.qc.shift();c=H.qc.length-1;F=c>0&&l.j(H.qc[c])&&l.j(H.qc[c- 1]);H.qc.push(l)}J||(O&&a8Y(O)?(x$(this.B)&&!this.GP&&(O.fetch=0),bR(this,O)):this.playlist&&bR(this,null),O&&(this.GP=O$(!1,O.external_list)));this.cE.publish("loadvideo");c=this.W0(H,V,y);F&&this.bk("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+H.qc.join()).replace(/[;:,]/g,"_"));return c}; g.T.preloadVideoByPlayerVars=function(O,V,J,y,l){V=V===void 0?1:V;J=J===void 0?NaN:J;l=l===void 0?"":l;y=V;var m=l,H=m2(O);y=GVl(this,y,H,m,O.autonav==="1"||O.autonav===!0,O.autoplay==="1"||O.autoplay===!0||O.autoplay===1);if(y=this.IX.W.get(y)||null)return y;O=new g.WL(this.B,O);l&&(O.ke=l);l=E3(this,V,O);y=this.ZN();m=E3(this,y.getPlayerType(),y.getVideoData());l===m?(y.AB(!0),O.dispose(),J=null):(O.zK=!0,O.Tw=!0,y=zL(this,V,O,!0),(V!==1||!z0(this.B)||this.B.L("html5_allow_multiview_tile_preload")&& O.MI)&&y.AB(!0),this.IX.W.set(l,y,J||3600),J=y);return J}; g.T.setMinimized=function(O){this.visibility.setMinimized(O);(O=Otl(this.ZD))&&(this.isMinimized()?O.load():O.unload());this.cE.publish("minimized")}; g.T.setInline=function(O){this.visibility.setInline(O)}; g.T.setInlinePreview=function(O){this.visibility.setInline(O)}; g.T.jt=function(O){uxp(this,O)||this.visibility.jt(O)}; g.T.setSqueezeback=function(O){this.visibility.setSqueezeback(O)}; g.T.Tn=function(){var O,V=(O=this.mediaElement)==null?void 0:O.dC();V&&(this.B.GT&&sM(ZA(function(){return document.exitFullscreen()}),function(){}),sM(ZA(function(){return zb(V)}),function(){}))}; g.T.yiD=function(){this.mediaElement.dC();this.mediaElement.dC().webkitPresentationMode==="picture-in-picture"?this.jt(!0):this.jt(!1)}; g.T.togglePictureInPicture=function(){this.ZN().togglePictureInPicture()}; g.T.W0=function(O,V,J){V=V===void 0?1:V;Ic("_start",this.rC.timerName)||g.ii(NF)(void 0,this.rC.timerName);var y=!1,l=nhV(this,V,O,!1);l?(y=!0,O.dispose(),l.getVideoData().MI&&l.jB("app_lv",{pdl:l.Af()})):(l=zL(this,V,O,!0,J),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&l.XQ()&&l.AB(),this.Ei.stop(),V===1&&V!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,V),this.DG(l));O.videoId&&this.YS.includes(O.videoId)&&l.jB("mvt",{});l===this.RB()&&(this.B.J0=O.oauthToken); if(!l.XQ())return!1;if(l===this.RB())return this.Ap(1),O=fb(this),y&&l.getPlayerType()===1&&l.Af()&&this.J_("dataloaded",l,l.getVideoData()),O;l.PM();return!0}; g.T.cueVideoByPlayerVars=function(O,V){var J=this;V=V===void 0?1:V;var y=this.RB();if(this.hC().enableServerStitchedDai&&y&&!y.r6()&&O&&Object.keys(O).length>0)y.jB("qvonss",{vid:(O==null?void 0:O.videoId)||"",ptype:V});else if(O&&a8Y(O))if(this.h7=!0,bR(this,O),(O=g.Wi(this.playlist))&&O.wN())g1(this,O,V);else this.playlist.onReady(function(){pb(J)}); else{V||(V=this.getPresentingPlayerType());V===1&&this.yP();y=new g.WL(this.B,O);var l=g.R2(this.B)&&!this.B.lw&&V===1&&!y.isAd()&&!y.Ks;this.cE.publish("cuevideo",V);l?(this.ZN().getVideoData().loading=!0,wiY(y,O?O:{}).then(function(m){g1(J,m,V)}),y.dispose()):g1(this,y,V)}}; g.T.Gd=function(O,V,J,y,l,m,H){if(!O&&!J)throw Error("Playback source is invalid");if(Pj(this.B)||g.jS(this.B))return V=V||{},V.lact=C2(),V.vis=this.cE.getVisibilityState(),this.cE.MX("onPlayVideo",{videoId:O,watchEndpoint:m,sessionData:V,listId:J}),!1;I87(this.rC);this.rC.reset();O={video_id:O};y&&(O.autoplay="1");y&&(O.autonav="1");m&&(O.player_params=m.playerParams);H&&(O.oauth_token=H);J?(O.list=J,this.loadPlaylist(O)):this.loadVideoByPlayerVars(O,1);return!0}; g.T.cuePlaylist=function(O,V,J,y){this.h7=!0;ALp(this,O,V,J,y)}; g.T.loadPlaylist=function(O,V,J,y){this.h7=!1;ALp(this,O,V,J,y)}; g.T.t9=function(){return this.cE.isMutedByMutedAutoplay()?!1:this.IX.lV?!0:!(!this.playlist||!this.playlist.hasNext())}; g.T.gw=d5(7); g.T.nextVideo=function(O,V){var J=g.IT(this.RB().getVideoData());g.Su(this.cE)&&J?this.Gd(J.videoId,V?J.Z5:J.sessionData,J.playlistId,V,void 0,J.Qf||void 0):this.GP?this.cE.qG("onPlaylistNext"):this.getPresentingPlayerType()===3?rA(this.ZD).nextVideo():!this.playlist||x$(this.B)&&!this.cE.isFullscreen()||(this.playlist.hasNext(O)&&f8p(this.playlist,bGp(this.playlist)),this.playlist.loaded?(O=V&&this.B.L("html5_player_autonav_logging"),V&&this.cE.publish("playlistautonextvideo"),this.W0(g.Wi(this.playlist,void 0, V,O),1)):this.h7=!1)}; g.T.previousVideo=function(O){this.GP?this.cE.qG("onPlaylistPrevious"):this.getPresentingPlayerType()===3?rA(this.ZD).Dy():!this.playlist||x$(this.B)&&!this.cE.isFullscreen()||(this.playlist.hasPrevious(O)&&f8p(this.playlist,pih(this.playlist)),this.playlist.loaded?this.W0(g.Wi(this.playlist),1):this.h7=!1)}; g.T.playVideoAt=function(O){this.GP?this.cE.qG("onPlaylistIndex",O):this.playlist&&(this.playlist.loaded?this.W0(g.Wi(this.playlist,O),1):this.h7=!1,f8p(this.playlist,O))}; g.T.getPlaylist=function(){return this.playlist}; g.T.f6=d5(15);g.T.Fz=function(O){this.On=g.L1(this.On,function(m){return m.id!==O}); for(var V=this.RB(),J=V.G2(),y=0;y0&&(N=Math.floor(x/1E3))}N=V?V.rN:N;var W={AD_BLOCK:this.K++,AD_BREAK_LENGTH:N,AUTONAV_STATE:GL(this.player.Y()),CA_TYPE:"image",CPN:F.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Y1()*1E3,LACT:C2(),LIVE_INDEX:V?this.U++:1,LIVE_TARGETING_CONTEXT:V&&V.context?V.context: "",MIDROLL_POS:m?Math.round(m.start/1E3):0,MIDROLL_POS_MS:m?Math.round(m.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.tv().BK().height,P_W:this.player.tv().BK().width,YT_REMOTE:l?l.join(","):""},U=mt(lM);Object.keys(U).forEach(function(z){U[z]!=null&&(W[z.toUpperCase()]=U[z].toString())}); J!==""&&(W.BISCOTTI_ID=J);J={};yd(O)&&(J.sts="20480",(V=this.player.Y().forcedExperiments)&&(J.forced_experiments=V));var Z=Ot(g.bL(O,W),J);return Z.split("?").length!==2?hF(Error("Invalid AdBreakInfo URL")):g.bd(this.player.Y(),F==null?void 0:F.oauthToken).then(function(z){if(z&&Jy()){var c=Vc();J9(c,z)}z=y.player.a5(c);c=aC7(y,Z,W,F.isMdxPlayback,H);return g.fU(z,c,"/youtubei/v1/player/ad_break").then(function(Y){return Y})})}; Kb.prototype.reset=function(){this.U=this.K=1};g.I(bQl,Kb); bQl.prototype.j=function(O,V,J){V=V===void 0?{}:V;var y=V.A7;var l=V.iB;var m=V.cueProcessedMs;J=J===void 0?"":J;V=this.K;this.K++;var H=this.player.Y().L("h5_disable_macro_substitution_in_get_ad_break")?O:p1l(this,O,{A7:y,iB:l,cueProcessedMs:m},J,V);if(H.split("?").length!==2)return Math.random()<.1&&g.en(Error("Invalid AdBreakInfo URL")),hF(Error("Invalid AdBreakInfo URL"));var F=t3(this).isMdxPlayback,N=J;J=zvY.exec(H);J=J!=null&&J.length>=2?J[1]:"";O=cv1.test(H);var x=svY.exec(H);x=x!=null&&x.length>= 2?x[1]:"";var W=TKo.exec(H);W=W!=null&&W.length>=2&&!Number.isNaN(Number(W[1]))?Number(W[1]):1;var U=evn.exec(H);U=U!=null&&U.length>=2?U[1]:"0";var Z=mq(this.player.Y().bV),z=g.GE(t3(this).KD,!0);FFl(this,z,H,N===""?"":N,this.player.Y(),t3(this));N={splay:!1,lactMilliseconds:String(C2()),playerHeightPixels:Math.trunc(this.player.tv().BK().height),playerWidthPixels:Math.trunc(this.player.tv().BK().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:20480,autonavState:GL(this.player.Y())}; if(F){F={};var c=this.player.Y().t0;WFd(F,c?c.join(","):"")&&(N.mdxContext=F)}if(F=IC1.includes(Z)?void 0:g.Mz("PREF")){c=F.split(RegExp("[:&]"));for(var Y=0,b=c.length;Y1&&M[1].toUpperCase()==="TRUE"){z.user.lockedSafetyMode=!0;break}}N.autoCaptionsDefaultOn=ZQn(F)}H=YY5.exec(H);(H=H!=null&&H.length>=2?H[1]:"")&&x&&(z.user.credentialTransferTokens=[{token:H,scope:"VIDEO"}]);H={contentPlaybackContext:N}; N=t3(this).getGetAdBreakContext();F=t3(this).clientPlaybackNonce;c=m!==void 0?Math.round(m).toString():void 0;Y=(y==null?0:y.context)?y.context:void 0;b=0;m&&l&&!y&&(l=l.end-l.start,l>0&&(b=Math.floor(l/1E3)));y=(y=Math.trunc((y?y.rN:b)*1E3))?String(y):void 0;l=this.player.Y1()*1E3;l=Number.isNaN(l)?0:Math.trunc(l);V={adBlock:V,params:J,breakIndex:W,breakPositionMs:U,clientPlaybackNonce:F,topLevelDomain:Z,isProxyAdTagRequest:O,context:z,overridePlaybackContext:H,cueProcessedMs:c,videoId:x?x:void 0, liveTargetingParams:Y,breakLengthMs:y,driftFromHeadMs:l?String(l):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:N?N:void 0};return fCo(this,V)};var iaV={P2D:"replaceUrlMacros",nPB:"onAboutThisAdPopupClosed",g1N:"executeCommand"};hv5.prototype.UI=function(){return"adPingingEndpoint"}; hv5.prototype.H4=function(O,V,J){xfd(this.gW.get(),O,V,J)};ow7.prototype.UI=function(){return"changeEngagementPanelVisibilityAction"}; ow7.prototype.H4=function(O){this.G.MX("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:O})};vwH.prototype.UI=function(){return"loggingUrls"}; vwH.prototype.H4=function(O,V,J){O=g.n(O);for(var y=O.next();!y.done;y=O.next())y=y.value,xfd(this.gW.get(),y.baseUrl,V,J,y.attributionSrcMode)};g.I(MbV,g.K);LFl.prototype.k8=function(O,V){var J={};V=Object.assign({},V,(J.cc=this.lL.nC(),J));this.lL.G.jB(O,V)};g.I(A3,g.K);g.T=A3.prototype;g.T.addListener=function(O){this.listeners.push(O)}; g.T.removeListener=function(O){this.listeners=this.listeners.filter(function(V){return V!==O})}; g.T.SG=function(O,V,J,y,l,m,H,F){if(O==="")DJ("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(O!==this.K||J){this.K=O;this.Av.get().SG(O,V,J,y,l,m,H,F);this.CD.get().SG(O,V,J,y,l,m,H,F);var N;(N=this.Ql)==null||N.get().SG(O,V,J,y,l,m,H,F);this.j.SG(O,V,J,y,l,m,H,F);N=g.n(this.listeners);for(var x=N.next();!x.done;x=N.next())x.value.SG(O,V,J,y,l,m,H,F)}else DJ("Duplicate content video loaded signal")}; g.T.zhv=function(){this.K&&this.KP(this.K)}; g.T.KP=function(O){this.K=void 0;for(var V=g.n(this.listeners),J=V.next();!J.done;J=V.next())J.value.KP(O)};r1.prototype.Rv=function(O,V,J,y,l){nw5(this);this.W=!V&&J===0;var m=this.G.getVideoData({playerType:1}),H=this.G.getVideoData({playerType:2});m&&(this.contentCpn=m.clientPlaybackNonce,this.videoId=m.videoId,this.K=m.V);H&&(this.adCpn=H.clientPlaybackNonce,this.adVideoId=H.videoId,this.adFormat=H.adFormat);this.D=O;y<=0?(nw5(this),this.W=!V&&J===0):(this.actionType=this.W?V?"unknown_type":"video_to_ad":V?"ad_to_video":"ad_to_ad",this.videoStreamType=l?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD", this.actionType!=="unknown_type"&&(this.U=!0,Ic("_start",this.actionType)&&dGn(this)))}; r1.prototype.reset=function(){return new r1(this.G)};g.I(iR,g.K);iR.prototype.addCueRange=function(O,V,J,y,l,m,H,F,N){m=m===void 0?3:m;H=H===void 0?1:H;this.K.has(O)?DJ("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:O}):(O=new gwV(O,V,J,y,m,F,N),this.K.set(O.id,{iB:O,listener:l,Bv:H}),this.G.aG([O],H))}; iR.prototype.removeCueRange=function(O){var V=this.K.get(O);V?(this.G.HX([V.iB],V.Bv),this.K.delete(V.iB.id)):DJ("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:O})}; iR.prototype.onCueRangeEnter=function(O){if(this.K.has(O.id))this.K.get(O.id).listener.onCueRangeEnter(O.id)}; iR.prototype.onCueRangeExit=function(O){if(this.K.has(O.id))this.K.get(O.id).listener.onCueRangeExit(O.id)}; g.I(gwV,g.gz);Ru.prototype.addPlayerResponseForAssociation=function(O){this.G.addPlayerResponseForAssociation(O)};BO.prototype.RH=function(O){this.G.RH(O)}; BO.prototype.Yk=function(O){var V=g.jF.apply(1,arguments);O==="onAdStart"||O==="onAdEnd"?this.G.il.apply(this.G,[O].concat(g.q(V))):this.G.MX.apply(this.G,[O].concat(g.q(V)))};var kar=null;g.I(Pq1,g.BF);Pq1.prototype.NV=function(O){return this.K.hasOwnProperty(O)?this.K[O].NV():{}}; g.zD("ytads.bulleit.getVideoMetadata",function(O){return kc().NV(O)}); g.zD("ytads.bulleit.triggerExternalActivityEvent",function(O,V,J){var y=kc();J=BKp(J);J!==null&&y.publish(J,{queryId:O,viewabilityString:V})});g.T=SZ.prototype;g.T.EY=function(O,V){if(!this.K.has(O))return{};if(V==="seek"){V=!1;V=V===void 0?!1:V;var J=hU(Sa).sX(O,{});J?rf(J):V&&(O=hU(Sa).oH(null,QT(),!1,O),O.XC=3,P4H([O]));return{}}V=DGd(V);if(V===null)return{};var y=this.G.P4();if(!y)return{};var l=this.G.getPresentingPlayerType(!0);if((J=this.G.getVideoData({playerType:l}))==null||!J.isAd())return{};J={opt_adElement:y,opt_fullscreen:this.Av.get().isFullscreen()};return PsH(V,O,J)}; g.T.LI=function(O,V,J,y,l){this.K.has(O)&&(y<=0||l<=0||hU(Sa).LI(O,V,J,y,l))}; g.T.Ve=function(O){var V;(V=this.K.get(O.queryId))==null||V.Ve()}; g.T.Ge=function(O){var V;(V=this.K.get(O.queryId))==null||V.Ge()}; g.T.wd=function(O){var V;(V=this.K.get(O.queryId))==null||V.wd()}; g.T.o1=function(O){var V;(V=this.K.get(O.queryId))==null||V.o1()}; g.T.kR=function(O){var V;(V=this.K.get(O.queryId))==null||V.kR()};HXY.prototype.send=function(O,V,J,y){try{jXp(this,O,V,J,y===void 0?!1:y)}catch(l){}};g.I(Ct7,HXY);Fnh.prototype.send=function(O,V,J,y){var l=!1;try{if(y==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")l=!0,O=QfU(O);y=l;var m=g.c$(O);if(m[1]==="https")var H=O;else m[1]="https",H=zu("https",m[2],m[3],m[4],m[5],m[6],m[7]);var F=EQH(H);m=[];var N=oS1(H)&&this.Xj.get().G.Y().experiments.Jv("add_auth_headers_to_remarketing_google_dot_com_ping");if(yd(H)||N)m.push({headerType:"USER_AUTH"}),m.push({headerType:"PLUS_PAGE_ID"}),m.push({headerType:"VISITOR_ID"}),m.push({headerType:"EOM_VISITOR_ID"}), m.push({headerType:"AUTH_USER"}),m.push({headerType:"DATASYNC_ID"});this.K.send({baseUrl:H,scrubReferrer:F,headers:m},V,J,y)}catch(x){}};ye.prototype.KE=function(){return this.G.KE(1)};g.I(lS,g.K);g.T=lS.prototype;g.T.nC=function(){return this.G.getVideoData({playerType:1}).clientPlaybackNonce}; g.T.addListener=function(O){this.listeners.push(O)}; g.T.removeListener=function(O){this.listeners=this.listeners.filter(function(V){return V!==O})}; g.T.SG=function(){this.NO.clear();this.PG=null;this.MP.get().clear()}; g.T.KP=function(){}; g.T.lIL=function(O,V,J){V.videoId==="nPpU29QrbiU"&&this.G.jB("ads_ssm_vdc_s",{pt:J,dvt:O});bz(this.Xj.get())&&O!=="dataloaded"||TYr(this,V,J)}; g.T.ALl=function(O){if(this.G.getVideoData({playerType:1}).enableServerStitchedDai){O=g.n(O.started);for(var V=O.next();!V.done;V=O.next()){V=V.value;var J=this.G.getStartTime({cpn:V.cpn}),y=this.G.getVideoData({cpn:V.cpn}),l=this.G.getPlayerType(V.cpn),m=null;l===2&&(this.PG=V.cpn,J===void 0?DJ("Expected ad video start time on SS video changed"):this.NO.set(V.cpn,J),m=C9(this.MP.get(),V.cpn));var H=void 0,F=void 0;this.G.getVideoData({playerType:1}).jB("ads_ssvc",{pt:l,cpn:(H=y)==null?void 0:H.clientPlaybackNonce, crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:J,pid:V.cpn,slid:(F=m)==null?void 0:F.layoutId});y&&l?TYr(this,y,l):DJ("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:V.cpn})}}}; g.T.Quz=function(O,V){O!==void 0&&(this.PG=O,V===void 0||isNaN(V)?DJ("Expected ad video start time on SS video changed"):this.NO.set(O,V));var J=this.G.getPresentingPlayerType(!0),y=this.G.getVideoData({playerType:J}),l=O===void 0?null:C9(this.MP.get(),O);this.G.getVideoData({playerType:1}).jB("ads_ssvc",{pt:J,cpn:y==null?void 0:y.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:V,pid:O,slid:l==null?void 0:l.layoutId});y?TYr(this,y,J):DJ("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.G.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:O})}; g.T.Uc=function(O,V){var J=O.author,y=O.clientPlaybackNonce,l=O.isListed,m=O.ke,H=O.title,F=O.Rz,N=O.yI,x=O.isMdxPlayback,W=O.F$,U=O.mdxEnvironment,Z=O.isAutonav,z=O.Ou,c=O.ZI,Y=O.UP,b=O.videoId||"",M=O.profilePicture||"",w=O.iL||"",L=O.xb()||!1,X=O.Yr()||!1;O=O.rR||void 0;m=C9(this.MP.get(),m)||{layoutId:null,slotId:null};var u=this.G.getVideoData({playerType:1}),G=u.Gy();u=u.getPlayerResponse();V=1E3*this.G.getDuration(V);var k=1E3*this.G.getDuration(1),D,Oo,md=(u==null?void 0:(D=u.playerConfig)== null?void 0:(Oo=D.daiConfig)==null?void 0:Oo.enableDai)||!1,xY,V7;D=(u==null?void 0:(xY=u.playerConfig)==null?void 0:(V7=xY.daiConfig)==null?void 0:V7.enablePreroll)||!1;return Object.assign({},m,{videoId:b,author:J,clientPlaybackNonce:y,Yd:V,GM:k,daiEnabled:md,y9:D,isListed:l,Gy:G,profilePicture:M,title:H,iL:w,Rz:F,yI:N,rR:O,isMdxPlayback:x,F$:W,mdxEnvironment:U,isAutonav:Z,Ou:z,ZI:c,UP:Y,xb:L,Yr:X})}; g.T.U5=function(){this.listeners.length=0;this.FQ=null;g.K.prototype.U5.call(this)};g.I(mv,g.K);g.T=mv.prototype;g.T.SG=function(){var O=this;this.IU=G5(function(){O.G.GL()||O.G.uV("ad",1)})}; g.T.KP=function(){}; g.T.addListener=function(O){this.listeners.push(O)}; g.T.removeListener=function(O){this.listeners=this.listeners.filter(function(V){return V!==O})}; g.T.W8=function(){}; g.T.playVideo=function(){this.G.playVideo()}; g.T.pauseVideo=function(){this.G.pauseVideo()}; g.T.resumeVideo=function(O){this.oT(O)&&this.G.playVideo()}; g.T.oT=function(O){return this.G.getPlayerState(O)===2}; g.T.getCurrentTimeSec=function(O,V){var J=this.CD.get().PG;return O!==2||V||J===null?this.G.getCurrentTime(O,V):HQ(this,J)}; g.T.getVolume=function(){return this.G.getVolume()}; g.T.isMuted=function(){return this.G.isMuted()}; g.T.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)}; g.T.getPlayerState=function(O){return this.G.getPlayerState(O)}; g.T.getGetAdBreakContext=function(){return this.G.getGetAdBreakContext()}; g.T.isFullscreen=function(){return this.G.isFullscreen()}; g.T.isAtLiveHead=function(){return this.G.isAtLiveHead()}; g.T.rM=function(O){this.G.rM(O)}; g.T.l_E=function(){var O=this.G.getPresentingPlayerType(!0),V=this.getCurrentTimeSec(O,!1);if(O===2){O=g.n(this.listeners);for(var J=O.next();!J.done;J=O.next())J.value.QZ(V)}else if(O===1)for(O=g.n(this.kY),J=O.next();!J.done;J=O.next())J.value.W8(V)}; g.T.Eev=function(O){for(var V=g.n(this.listeners),J=V.next();!J.done;J=V.next())J.value.pw(O,this.getPresentingPlayerType())}; g.T.onFullscreenToggled=function(O){for(var V=g.n(this.listeners),J=V.next();!J.done;J=V.next())J.value.onFullscreenToggled(O)}; g.T.onVolumeChange=function(){for(var O=g.n(this.listeners),V=O.next();!V.done;V=O.next())V.value.onVolumeChange()}; g.T.mx=function(){for(var O=this.G.isMinimized(),V=g.n(this.listeners),J=V.next();!J.done;J=V.next())J.value.mx(O)}; g.T.FC=function(O){for(var V=g.n(this.listeners),J=V.next();!J.done;J=V.next())J.value.FC(O)}; g.T.zy=function(){for(var O=this.G.tv().BK(),V=g.n(this.listeners),J=V.next();!J.done;J=V.next())J.value.O9(O)}; g.T.A_=function(O){for(var V=g.n(this.listeners),J=V.next();!J.done;J=V.next())J.value.A_(O)}; g.T.oW=function(){for(var O=g.n(this.listeners),V=O.next();!V.done;V=O.next())V.value.oW()};g.I(bXn,g.K);g.I(Fo,g.K);Fo.prototype.U5=function(){this.VQ.GL()||this.VQ.get().removeListener(this);g.K.prototype.U5.call(this)};Na.prototype.fetch=function(O){var V=O.B7;return this.K.fetch(O.Lb,{A7:O.A7===void 0?void 0:O.A7,iB:V,cueProcessedMs:O.cueProcessedMs===void 0?0:O.cueProcessedMs}).then(function(J){return pD7(J,V)})};g.I(xq,g.K);g.T=xq.prototype;g.T.addListener=function(O){this.listeners.push(O)}; g.T.removeListener=function(O){this.listeners=this.listeners.filter(function(V){return V!==O})}; g.T.Rt=function(O){fXY(this,O,1)}; g.T.onAdUxClicked=function(O,V){WQ(this,function(J){J.Nf(O,V)})}; g.T.Ra=function(O){WQ(this,function(V){V.Fu(O)})}; g.T.m2=function(O){WQ(this,function(V){V.rT(O)})}; g.T.pBw=function(O){WQ(this,function(V){V.hV(O)})};Uh.prototype.reduce=function(O){switch(O.event){case "unknown":return}var V=O.identifier;var J=this.K[V];J?V=J:(J={wR:null,sT:-Infinity},V=this.K[V]=J);J=O.startSecs+O.K/1E3;if(!(J=this.K.startSecs&&J.startSecs<=this.K.startSecs+this.K.rN)){var y=void 0;if(pk(this.Xj.get())&&J.identifier!==((y=this.K)==null?void 0:y.identifier)){var l=y=void 0,m=void 0,H=void 0;xW(this.gW.get(),"ocud","ccpi."+J.identifier+";ccpe."+J.event+";ccps."+J.startSecs+";\n ccpd."+J.rN+";pcpi."+((y=this.K)==null?void 0:y.identifier)+ ";pcpe."+((l=this.K)==null?void 0:l.event)+";\n pcps."+((m=this.K)==null?void 0:m.startSecs)+";pcpd."+((H=this.K)==null?void 0:H.rN)+";")}y=void 0;J.identifier!==((y=this.K)==null?void 0:y.identifier)&&DJ("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.K=J,vko(this,J)}}; g.T.U5=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.u$,this),this.j=null);this.listeners.length=0;this.T6.length=0;g.K.prototype.U5.call(this)};g.T=cQ.prototype;g.T.e0=function(O,V,J,y,l,m,H,F){return this.G.e0(O,V,J,y,l,m,H,F!==void 0?{nB:F}:void 0)}; g.T.l9=function(O,V){this.G.l9(O,V)}; g.T.xq=function(O,V,J){this.G.xq(O,V,J)}; g.T.E3=function(O){this.G.E3({nB:O})}; g.T.E0=function(O,V,J,y,l,m,H,F){this.G.E0(O,V,J,y,l,m,H,F!==void 0?{nB:F}:void 0)}; g.T.WH=function(O){return this.G.WH(O)}; g.T.finishSegmentByCpn=function(O,V,J){J=Lnl(J);this.G.finishSegmentByCpn(O,V,J)};g.I(sh,g.K);g.I(XDl,g.K);g.I(Ekn,g.K);g.I(dfY,g.K);g.I(gkH,g.K);g.I(qbp,g.K);g.I(Gyn,g.K);Gyn.prototype.U=function(){return this.j};g.I(Knn,nI); Knn.prototype.U=function(O){var V=O.content;if(V.componentType==="shopping-companion")switch(O.actionType){case 1:case 2:O=this.K.getVideoData({playerType:1});this.K.MX("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId,shoppingCompanionCarouselRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.K,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:this.K.MX("updateKevlarOrC3Companion",{})}else if(V.componentType==="action-companion")switch(O.actionType){case 1:case 2:O=this.K.getVideoData({playerType:1}); this.K.MX("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId,actionCompanionAdRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.K,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V.renderer&&(V=this.K.getVideoData({playerType:1}),this.K.MX("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId})),this.K.MX("updateKevlarOrC3Companion",{})}else if(V.componentType==="image-companion")switch(O.actionType){case 1:case 2:O=this.K.getVideoData({playerType:1}); this.K.MX("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId,imageCompanionAdRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.K,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V=this.K.getVideoData({playerType:1}),this.K.MX("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId}),this.K.MX("updateKevlarOrC3Companion",{})}else if(V.componentType==="top-banner-image-text-icon-buttoned")switch(O.actionType){case 1:case 2:O=this.K.getVideoData({playerType:1}); this.K.MX("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId,topBannerImageTextIconButtonedLayoutViewModel:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.K,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V.renderer&&(V=this.K.getVideoData({playerType:1}),this.K.MX("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId})),this.K.MX("updateKevlarOrC3Companion",{})}else if(V.componentType==="banner-image")switch(O.actionType){case 1:case 2:O= this.K.getVideoData({playerType:1});this.K.MX("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId,bannerImageLayoutViewModel:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.K,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V=this.K.getVideoData({playerType:1}),this.K.MX("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId}),this.K.MX("updateKevlarOrC3Companion",{})}else if(V.componentType==="ads-engagement-panel")switch(V=V.renderer,O.actionType){case 1:case 2:this.K.MX("updateEngagementPanelAction", V.addAction);this.K.MX("changeEngagementPanelVisibility",V.expandAction);break;case 3:this.K.MX("changeEngagementPanelVisibility",V.hideAction),this.K.MX("updateEngagementPanelAction",V.removeAction)}else if(V.componentType==="ads-engagement-panel-layout"){var J=V.renderer;switch(O.actionType){case 1:case 2:this.K.MX("updateEngagementPanelAction",{action:pY(J.addAction),layoutId:V.layoutId,onLayoutVisibleCallback:V.K,interactionLoggingClientData:V.interactionLoggingClientData});this.K.MX("changeEngagementPanelVisibility", pY(J.expandAction));break;case 3:this.K.MX("changeEngagementPanelVisibility",pY(J.hideAction)),this.K.MX("updateEngagementPanelAction",{action:pY(J.removeAction)})}}};g.I(tM1,KI);g.T=tM1.prototype;g.T.init=function(O,V,J){KI.prototype.init.call(this,O,V,J);g.Pp(this.U,"stroke-dasharray","0 "+this.j);this.U.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.T.clear=function(){this.hide()}; g.T.hide=function(){uo(this);KI.prototype.hide.call(this)}; g.T.show=function(){tV(this);KI.prototype.show.call(this)}; g.T.Ub=function(){this.hide()}; g.T.Uk=function(){if(this.K){var O=this.K.getProgressState();O!=null&&O.current!=null&&g.Pp(this.U,"stroke-dasharray",O.current/O.seekableEnd*this.j+" "+this.j)}};g.I(u9V,Vb);g.T=u9V.prototype; g.T.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);if(V.image&&V.image.thumbnail)if(V.headline)if(V.description)if(V.backgroundImage&&V.backgroundImage.thumbnail)if(V.actionButton&&g.e(V.actionButton,tE))if(O=V.durationMilliseconds||0,typeof O!=="number"||O<=0)g.sk(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+O));else if(V.navigationEndpoint){var y=this.api.getVideoData({playerType:2});if(y!=null){var l=V.image.thumbnail.thumbnails; l!=null&&l.length>0&&g.Ku(g.Qt(l[0].url))&&(l[0].url=y.profilePicture,g.Ku(g.Qt(y.profilePicture))&&arX("VideoPlayer",239976093,"Expected non-empty profile picture."));l=V.backgroundImage.thumbnail.thumbnails;l!=null&&l.length>0&&g.Ku(g.Qt(l[0].url))&&(l[0].url=y.O7());l=V.headline;l!=null&&g.Ku(g.Qt(l.text))&&(l.text=y.author)}this.T.init(i6("ad-image"),V.image,J);this.W.init(i6("ad-text"),V.headline,J);this.U.init(i6("ad-text"),V.description,J);this.yz.init(i6("ad-image"),V.backgroundImage,J);y= ["ytp-ad-action-interstitial-action-button","ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.U.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.Y().L("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-mono-dark"):y.push("ytp-ad-action-interstitial-action-button-dark"); this.api.Y().j&&(y.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),this.api.Y().L("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-mono-dark"):y.push("ytp-ad-action-interstitial-action-button-dark"));this.api.Y().L("enable_unified_action_endcap_on_web")&&!this.api.Y().j&&(this.api.Y().L("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-unified-mono"):y.push("ytp-ad-action-interstitial-action-button-unified"), this.nD.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.TL.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.ou.classList.add("ytp-ad-action-interstitial-card-unified"),this.lw.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.dW.classList.add("ytp-ad-action-interstitial-headline-container-unified"), this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.ol.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.LD.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new YN(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,y);g.t(this,this.actionButton);this.actionButton.rW(this.nD);this.actionButton.init(i6("button"),g.e(V.actionButton,tE), J);g7(this.actionButton.element);y=Gz(this.actionButton.element);QX(this.actionButton.element,y+" This link opens in new tab");this.navigationEndpoint=V.navigationEndpoint;this.D.Z(this.ol,"click",this.OQ,this);this.D.Z(this.lw,"click",this.OQ,this);this.api.Y().j||this.D.Z(this.dW,"click",this.OQ,this);this.K=this.CR?new CJ(this.api,O):new F6(O);g.t(this,this.K);if(V.skipButton){(O=g.e(V.skipButton,UWz))&&this.K&&(this.skipButton=new yk(this.api,this.layoutId,this.interactionLoggingClientData,this.HE, this.K,this.jh),g.t(this,this.skipButton),this.skipButton.rW(this.element),this.skipButton.init(i6("skip-button"),O,J));if(J=V.adBadgeRenderer)if(J=g.e(J,WC1))O=new HS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,!0,!0),O.rW(this.LD),O.init(i6("simple-ad-badge"),J,this.macros),g.t(this,O);if(J=V.adInfoRenderer)if(J=g.e(J,Gw))O=new qo(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.element,void 0,!0),O.rW(this.LD),O.init(i6("ad-info-hover-text-button"),J,this.macros), g.t(this,O)}else V.nonskippableOverlayRenderer&&(O=g.e(V.nonskippableOverlayRenderer,K6))&&this.K&&(this.j=new io(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.K,!1),g.t(this,this.j),this.j.rW(this.element),this.j.init(i6("ad-preview"),O,J));V.countdownRenderer&&(V=V.countdownRenderer,g.e(V,ZdV)&&this.K&&(J=new tM1(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.K),g.t(this,J),J.rW(this.element),J.init(i6("timed-pie-countdown"),g.e(V,ZdV),this.macros))); this.show();this.element.focus()}else g.sk(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.sk(Error("AdActionInterstitialRenderer has no button."));else g.sk(Error("AdActionInterstitialRenderer has no background AdImage."));else g.sk(Error("AdActionInterstitialRenderer has no description AdText."));else g.sk(Error("AdActionInterstitialRenderer has no headline AdText."));else g.sk(Error("AdActionInterstitialRenderer has no image."))}; g.T.clear=function(){g.fz(this.D);this.hide()}; g.T.show=function(){AkH(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.j&&this.j.show();Vb.prototype.show.call(this)}; g.T.hide=function(){AkH(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.j&&this.j.hide();Vb.prototype.hide.call(this)}; g.T.OQ=function(){this.navigationEndpoint&&(this.layoutId?this.HE.executeCommand(this.navigationEndpoint,this.layoutId):g.sk(Error("Missing layoutId for ad action interstitial.")))};var Ptd={iconType:"CLOSE"},Yq=new g.Op(320,63);g.I(BYl,Vb);g.T=BYl.prototype; g.T.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);this.D=V;this.T=g.kE(this.D.onClickCommands||[]);this.LD=this.D.onErrorCommand||null;if(O=this.D.contentSupportedRenderer)O=this.D.contentSupportedRenderer,V=this.D.adInfoRenderer||null,g.e(O,FCW)?(this.W=g.Up("ytp-ad-overlay-ad-info-button-container",this.U.element),kyV(this,V),O=Dfd(this,g.e(O,FCW))):g.e(O,NV1)?(this.W=g.Up("ytp-ad-overlay-ad-info-button-container",this.j.element),kyV(this,V),O=OlH(this,g.e(O,NV1))):g.e(O,xWW)?(this.W= g.Up("ytp-ad-overlay-ad-info-button-container",this.K.element),kyV(this,V),O=VO5(this,g.e(O,xWW))):(g.sk(Error("InvideoOverlayAdRenderer content could not be initialized.")),O=!1);O&&(this.show(),Jfr(this,!0))}; g.T.clear=function(){Jfr(this,!1);this.ol.reset();this.lw=0;this.U.hide();this.logVisibility(this.U.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.hide();this.dispose()}; g.T.tjB=function(){this.nD&&(this.layoutId?this.HE.executeCommand(this.nD,this.layoutId):g.sk(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.T.mH=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var O=this.D.closeButton.buttonRenderer;if(O.serviceEndpoint){O=[O.serviceEndpoint];break a}}O=[]}O=g.n(O);for(var V=O.next();!V.done;V=O.next())V=V.value,this.layoutId?this.HE.executeCommand(V,this.layoutId):g.sk(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.T.ha5=function(){this.yz||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.T.SA=function(){this.yz||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.SA("invideo-overlay")}; g.T.eaB=function(O){O.target===this.W&&g.Up("ytp-ad-button",this.TL.element).click()};g.I(yfn,KI);g.T=yfn.prototype;g.T.init=function(O,V,J){KI.prototype.init.call(this,O,V,J);O=V.durationMs;this.U=O==null||O===0?0:O+this.K.getProgressState().current*1E3;if(V.text)var y=V.text.templatedAdText;else V.staticMessage&&(y=V.staticMessage);this.messageText.init(i6("ad-text"),y,J);this.messageText.rW(this.j.element);this.D.show(100);this.show()}; g.T.clear=function(){this.hide()}; g.T.hide=function(){lc5(this,!1);KI.prototype.hide.call(this);this.j.hide();this.messageText.hide();uo(this)}; g.T.show=function(){lc5(this,!0);KI.prototype.show.call(this);tV(this);this.j.show();this.messageText.show()}; g.T.Ub=function(){this.hide()}; g.T.Uk=function(){if(this.K!=null){var O=this.K.getProgressState();O!=null&&O.current!=null&&(O=1E3*O.current,!this.lw&&O>=this.U?(this.D.hide(),this.lw=!0):this.messageText&&this.messageText.isTemplated()&&(O=Math.max(0,Math.ceil((this.U-O)/1E3)),O!==this.W&&(Gs(this.messageText,{TIME_REMAINING:String(O)}),this.W=O)))}};g.I(mCl,Vb);g.T=mCl.prototype; g.T.init=function(O,V,J){Vb.prototype.init.call(this,O,V,{});V.image&&V.image.thumbnail?V.headline?V.description?V.actionButton&&g.e(V.actionButton,tE)?(this.U.init(i6("ad-image"),V.image,J),this.j.init(i6("ad-text"),V.headline,J),this.D.init(i6("ad-text"),V.description,J),this.actionButton=new YN(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,["ytp-ad-underlay-action-button"]),V.backgroundColor&&g.Pp(this.element,"background-color",g.fJ(V.backgroundColor)),g.t(this,this.actionButton), this.actionButton.rW(this.W),this.actionButton.init(i6("button"),g.e(V.actionButton,tE),J),O=g.Ry(this.api.Y().experiments,"player_underlay_video_width_fraction"),this.api.Y().L("place_shrunken_video_on_left_of_player")?(V=this.K,g.Vf(V,"ytp-ad-underlay-left-container"),g.D0(V,"ytp-ad-underlay-right-container"),g.Pp(this.K,"margin-left",Math.round((O+.02)*100)+"%")):(V=this.K,g.Vf(V,"ytp-ad-underlay-right-container"),g.D0(V,"ytp-ad-underlay-left-container")),g.Pp(this.K,"width",Math.round((1-O-.04)* 100)+"%"),this.api.FO()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.TE.bind(this)),this.api.addEventListener("resize",this.N6.bind(this))):g.sk(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.sk(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.sk(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.sk(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.T.show=function(){$Cr(!0);this.actionButton&&this.actionButton.show();Vb.prototype.show.call(this)}; g.T.hide=function(){$Cr(!1);this.actionButton&&this.actionButton.hide();Vb.prototype.hide.call(this)}; g.T.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.TE.bind(this));this.api.removeEventListener("resize",this.N6.bind(this));this.hide()}; g.T.onClick=function(O){Vb.prototype.onClick.call(this,O);this.actionButton&&g.h8(this.actionButton.element,O.target)&&this.api.pauseVideo()}; g.T.TE=function(O){O==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):O==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):O==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))}; g.T.N6=function(O){O.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):O.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.Pp(this.j.element,"font-size",O.width/40+"px")};g.I(aJ,Vb); aJ.prototype.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);V.toggledLoggingParams&&(this.toggledLoggingParams=V.toggledLoggingParams);V.answer&&g.e(V.answer,tE)?(O=new YN(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),O.rW(this.answer),O.init(i6("ytp-ad-survey-answer-button"),g.e(V.answer,tE),J),O.show()):V.answer&&g.e(V.answer,I7)&&(this.K=new Mo(this.api,this.layoutId,this.interactionLoggingClientData,this.HE, ["ytp-ad-survey-answer-toggle-button"]),this.K.rW(this.answer),g.t(this,this.K),this.K.init(i6("survey-answer-button"),g.e(V.answer,I7),J));this.show()}; aJ.prototype.C8=function(O){this.layoutId?hu(this.HE,O,this.layoutId,this.macros):(O=new g.pn("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.sk(O))}; aJ.prototype.onClick=function(O){Vb.prototype.onClick.call(this,O);if(this.api.Y().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; aJ.prototype.clear=function(){this.hide()};g.I(Hlp,Vb);Hlp.prototype.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);V.answer&&g.e(V.answer,I7)&&(this.button=new Mo(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.rW(this.K),this.button.init(i6("survey-none-of-the-above-button"),g.e(V.answer,I7),J));this.show()};g.I(bS,YN);bS.prototype.init=function(O,V,J){YN.prototype.init.call(this,O,V,J);O=!1;V.text&&(V=g.yb(V.text),O=!g.Ku(V));O||g.en(Error("No submit text was present in the renderer."))}; bS.prototype.onClick=function(O){this.publish("l");YN.prototype.onClick.call(this,O)};g.I(pP,Vb); pP.prototype.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);if(O=V.skipOrPreviewRenderer)g.e(O,zC)?(O=g.e(O,zC),J=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.D,!0),J.rW(this.skipOrPreview),J.init(i6("skip-button"),O,this.macros),g.t(this,J),this.K=J):g.e(O,K6)&&(O=g.e(O,K6),J=new io(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.D,!1),J.rW(this.skipOrPreview),J.init(i6("ad-preview"),O,this.macros),J.lw.show(100),J.show(),g.t(this,J), this.K=J);this.K==null&&(O=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(V)),g.sk(O));V.submitButton&&(O=V.submitButton,g.e(O,tE)&&(O=g.e(O,tE),J=new bS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),J.rW(this.submitButton),J.init(i6("survey-submit"),O,this.macros),g.t(this,J),this.j=J));if(O=V.adBadgeRenderer)O=g.e(O,WC1),J=new HS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,!0,!0,!0),J.rW(this.U),J.init(i6("simple-ad-badge"), O,this.macros),this.adBadge=J.element,g.t(this,J);if(O=V.adDurationRemaining)O=g.e(O,Hdm),J=new WS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.D,void 0,!0),J.rW(this.U),J.init(i6("ad-duration-remaining"),O,this.macros),g.t(this,J);(V=V.adInfoRenderer)&&g.e(V,Gw)&&(O=new qo(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.element,void 0,!0),g.t(this,O),this.adBadge!==void 0?this.U.insertBefore(O.element,this.adBadge.nextSibling):O.rW(this.U),O.init(i6("ad-info-hover-text-button"), g.e(V,Gw),this.macros));this.show()}; pP.prototype.clear=function(){this.hide()};g.I(fP,Vb);fP.prototype.init=function(O,V,J){Vb.prototype.init.call(this,O,V,J);xCX(this)}; fP.prototype.show=function(){this.U=Date.now();Vb.prototype.show.call(this)}; fP.prototype.r$=function(){};g.I(Wuh,fP);g.T=Wuh.prototype;g.T.init=function(O,V,J){var y=this;fP.prototype.init.call(this,O,V,J);V.questionText&&jKU(this,V.questionText);V.answers&&V.answers.forEach(function(l,m){g.e(l,TH)&&C55(y,g.e(l,TH),J,m)}); this.W=new Set(this.j.map(function(l){return l.K.K})); (O=V.noneOfTheAbove)&&(O=g.e(O,CmW))&&UCn(this,O,J);V.surveyAdQuestionCommon&&NDd(this,V.surveyAdQuestionCommon);V.submitEndpoints&&(this.submitEndpoints=V.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.T.r$=function(){Zlr(this,!1);this.D.j.subscribe("l",this.z_D,this)}; g.T.onChange=function(O){O.target===this.noneOfTheAbove.button.K?zZ7(this):this.W.has(O.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Zlr(this,!0))}; g.T.z_D=function(){var O=[],V=this.j.reduce(function(l,m,H){var F=m.toggledLoggingParams;m.K&&m.K.isToggled()&&F&&(l.push(F),O.push(H));return l},[]).join("&"),J=this.submitEndpoints.map(function(l){if(!l.loggingUrls)return l; l=g.pu(l);l.loggingUrls=l.loggingUrls.map(function(m){m.baseUrl&&(m.baseUrl=fp(m.baseUrl,V));return m}); return l}); if(J){J=g.n(J);for(var y=J.next();!y.done;y=J.next())y=y.value,this.layoutId?hu(this.HE,y,this.layoutId,this.macros):g.sk(Error("Missing layoutId for multi_select_question."))}this.api.Y().L("supports_multi_step_on_desktop")&&this.lw(O)}; g.T.clear=function(){this.api.Y().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.I(hW,fP);hW.prototype.init=function(O,V,J){var y=this;fP.prototype.init.call(this,O,V,J);V.questionText&&jKU(this,V.questionText);V.answers&&V.answers.forEach(function(l,m){g.e(l,TH)&&C55(y,g.e(l,TH),J,m)}); V.surveyAdQuestionCommon?NDd(this,V.surveyAdQuestionCommon):TK(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(V)));this.show()}; hW.prototype.clear=function(){this.api.Y().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.I(oJ,Vb);oJ.prototype.init=function(O,V,J){var y=this;Vb.prototype.init.call(this,O,V,J);if(this.api.Y().L("supports_multi_step_on_desktop")){var l;this.conditioningRules=(l=V.conditioningRules)!=null?l:[];var m;this.j=(m=V.questions)!=null?m:[];var H;((H=V.questions)==null?0:H.length)&&eZn(this,0)}else(V.questions||[]).forEach(function(F){g.e(F,q3)?sKr(y,g.e(F,q3),J):g.e(F,gh)&&TDU(y,g.e(F,gh),J)}); this.show()}; oJ.prototype.clear=function(){this.api.Y().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; oJ.prototype.D=function(O){var V=this;if(this.api.Y().L("supports_multi_step_on_desktop")){var J;if((J=this.conditioningRules)==null?0:J.length){var y;if(O.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(l){return l.questionIndex===V.K})==null)g.sk(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(l){if(l.questionIndex===V.K)switch(l.condition){case "CONDITION_ALL_OF":var m;if((m=l.answerIndices)==null?0:m.every(function(F){return O.includes(F)}))y=l.nextQuestionIndex; break;case "CONDITION_ANY_OF":var H;if((H=l.answerIndices)==null?0:H.some(function(F){return O.includes(F)}))y=l.nextQuestionIndex; break;default:g.sk(Error("Expected specified condition in survey conditioning rules."))}}),y!=null)eZn(this,y); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.sk(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.I(vQ,Vb); vQ.prototype.init=function(O,V,J){var y=this;Vb.prototype.init.call(this,O,V,J);O=V.timeoutSeconds||0;if(typeof O!=="number"||O<0)g.sk(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+O));else if(V.timeoutCommands)if(V.text)if(V.ctaButton&&g.e(V.ctaButton,tE))if(V.brandImage)if(V.backgroundImage&&g.e(V.backgroundImage,uf)&&g.e(V.backgroundImage,uf).landscape){this.layoutId||g.sk(Error("Missing layoutId for survey interstitial."));Icr(this.interstitial,g.e(V.backgroundImage, uf).landscape);Icr(this.logoImage,V.brandImage);g.o1(this.text,g.yb(V.text));var l=["ytp-ad-survey-interstitial-action-button"];l.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new YN(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,l);g.t(this,this.actionButton);this.actionButton.rW(this.j);this.actionButton.init(i6("button"),g.e(V.ctaButton,tE),J);this.actionButton.show();this.K=new CJ(this.api,O*1E3);this.K.subscribe("g",function(){y.transition.hide()}); g.t(this,this.K);this.Z(this.element,"click",function(m){var H=m.target===y.interstitial;m=y.actionButton.element.contains(m.target);if(H||m)if(y.transition.hide(),H)y.api.onAdUxClicked(y.componentType,y.layoutId)}); this.transition.show(100)}else g.sk(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.sk(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.sk(Error("SurveyTextInterstitialRenderer has no button."));else g.sk(Error("SurveyTextInterstitialRenderer has no text."));else g.sk(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; vQ.prototype.clear=function(){this.hide()}; vQ.prototype.show=function(){Yr5(!0);Vb.prototype.show.call(this)}; vQ.prototype.hide=function(){Yr5(!1);Vb.prototype.hide.call(this)};g.I(wB,KI);g.T=wB.prototype; g.T.init=function(O,V){KI.prototype.init.call(this,O,V,{});if(V.durationMilliseconds){if(V.durationMilliseconds<0){g.sk(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+V.durationMilliseconds));return}this.j=V.durationMilliseconds}else this.j=this.K.wS();var J;if((J=V.previewText)==null||!J.text||g.Ku(V.previewText.text))g.sk(Error("No text is returned for AdPreview."));else{this.W=V.previewText;V.previewText.isTemplated||g.o1(this.U,V.previewText.text);var y; if(((y=this.api.getVideoData({playerType:1}))==null?0:y.SD)&&V.previewImage){var l,m;(O=((m=$L(((l=V.previewImage)==null?void 0:l.sources)||[],52,!1))==null?void 0:m.url)||"")&&O.length?(this.previewImage=new g.OF({X:"img",C:"ytp-preview-ad__image",N:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",O),g.t(this,this.previewImage),this.previewImage.rW(this.element)):g.sk(Error("Failed to get imageUrl in AdPreview."))}else this.U.classList.add("ytp-preview-ad__text--padding--wide")}}; g.T.clear=function(){this.hide()}; g.T.hide=function(){uo(this);KI.prototype.hide.call(this)}; g.T.show=function(){tV(this);KI.prototype.show.call(this)}; g.T.Ub=function(){this.hide()}; g.T.Uk=function(){if(this.K){var O=this.K.getProgressState();if(O!=null&&O.current)if(O=1E3*O.current,O>=this.j)this.transition.hide();else{var V;if((V=this.W)==null?0:V.isTemplated)if(V=Math.max(0,Math.ceil((this.j-O)/1E3)),V!==this.D){var J,y;(O=(J=this.W)==null?void 0:(y=J.text)==null?void 0:y.replace("{TIME_REMAINING}",String(V)))&&g.o1(this.U,O);this.D=V}}}};g.I(Ma,Vb); Ma.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});var J,y;if((O=((y=$L(((J=V.image)==null?void 0:J.sources)||[],acp(V),!0))==null?void 0:y.url)||"")&&O.length){J=this.DN("ytp-ad-avatar");J.src=O;var l,m;if(y=(l=V.interaction)==null?void 0:(m=l.accessibility)==null?void 0:m.label)J.alt=y;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.sk(Error("Failed to get imageUrl in AdAvatar."))}; Ma.prototype.clear=function(){this.hide()}; Ma.prototype.onClick=function(O){Vb.prototype.onClick.call(this,O)};g.I(LP,Vb); LP.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});var J;O=(J=V.label)==null?void 0:J.content;if((J=O!=null&&!g.Ku(O))||V.iconImage){J&&(this.buttonText=new g.OF({X:"span",C:"ytp-ad-button-vm__text",Rl:O}),g.t(this,this.buttonText),this.buttonText.rW(this.element));var y,l,m=((y=V.interaction)==null?0:(l=y.accessibility)==null?0:l.label)||J?O:"";m&&QX(this.element,m+" This link opens in new tab");g7(this.element);if(V.iconImage){y=void 0;if(V.iconImage){a:{l=V.iconImage;if(l.sources)for(l= g.n(l.sources),O=l.next();!O.done;O=l.next()){O=O.value;m=void 0;if((m=O.clientResource)==null?0:m.imageName){l=O;break a}if(O.customImageSource){var H=m=void 0;if((m=g.e(O.customImageSource,MFm))==null?0:(H=m.clientResource)==null?0:H.icon){l=O;break a}}}l=void 0}if(l){var F;y={iconType:(F=l.clientResource)==null?void 0:F.imageName}}}F=IC(y,!1,this.j);F!=null&&(this.buttonIcon=new g.OF({X:"span",C:"ytp-ad-button-vm__icon",J:[F]}),g.t(this,this.buttonIcon),V.iconLeading?(po(this.element,this.buttonIcon.element, 0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):J?(this.buttonIcon.rW(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):(this.buttonIcon.rW(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_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.L("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.K?"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.en(Error("AdButton does not have label or an icon."))}; LP.prototype.clear=function(){this.hide()}; LP.prototype.onClick=function(O){Vb.prototype.onClick.call(this,O)};g.I(blh,KI);g.T=blh.prototype; g.T.init=function(O,V){KI.prototype.init.call(this,O,V,{});if(O=g.e(V.avatar,KP)){var J=V.headline;if(J){var y=V.description;if(y){var l=g.e(V.button,uS);l?(this.adAvatar.init(i6("ad-avatar"),O),this.headline.init(i6("ad-simple-attributed-string"),new Zf(J)),this.description.init(i6("ad-simple-attributed-string"),new Zf(y)),J.content&&J.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(i6("ad-button"),l), this.startMilliseconds=V.startMs||0,this.api.FO()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.JD.bind(this)),tV(this)):g.sk(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.sk(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.sk(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.sk(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.T.Uk=function(){if(this.K){var O=this.K.getProgressState();O&&O.current&&1E3*O.current>=this.startMilliseconds&&(uo(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.T.Ub=function(){this.clear()}; g.T.onClick=function(O){this.api.pauseVideo();KI.prototype.onClick.call(this,O)}; g.T.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.JD.bind(this))}; g.T.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();KI.prototype.show.call(this)}; g.T.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();KI.prototype.hide.call(this)}; g.T.JD=function(O){O==="hidden"?this.show():this.hide()};g.I(nP,Vb);g.T=nP.prototype; g.T.init=function(O,V){Vb.prototype.init.call(this,O,V,{});if(!V.label||g.Ku(V.label))g.sk(Error("No label is returned for SkipAdButton."));else if(g.o1(this.D,V.label),O=IC({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.L("delhi_modern_web_player_icons")),O==null)g.sk(Error("Unable to retrieve icon for SkipAdButton"));else if(this.U=new g.OF({X:"span",C:"ytp-skip-ad-button__icon",J:[O]}),g.t(this,this.U),this.U.rW(this.element),this.api.Y().experiments.Jv("enable_skip_to_next_messaging")&&(V=g.Qt(V.targetId)))this.j= !0,this.element.setAttribute("data-tooltip-target-id",V),this.element.setAttribute("data-tooltip-target-fixed","")}; g.T.onClick=function(O){O&&O.preventDefault();var V,J;q$Y(O,{contentCpn:(J=(V=this.api.getVideoData({playerType:1}))==null?void 0:V.clientPlaybackNonce)!=null?J:""})===0?this.api.MX("onAbnormalityDetected"):(Vb.prototype.onClick.call(this,O),this.api.MX("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.T.clear=function(){this.K.reset();this.hide()}; g.T.hide=function(){Vb.prototype.hide.call(this)}; g.T.show=function(){this.K.start();Vb.prototype.show.call(this);this.j&&this.api.Y().experiments.Jv("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.I(p4r,KI);g.T=p4r.prototype; g.T.init=function(O,V){KI.prototype.init.call(this,O,V,{});O=g.e(V.preskipState,YzW);var J;if((J=this.api.getVideoData())==null?0:J.isDaiEnabled()){if(!O){g.sk(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.j=new wB(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.K);g.t(this,this.j);this.j.rW(this.element);var y;(y=this.j)==null||y.init(i6("preview-ad"),O);(J=this.j)!=null&&(J.transition.show(100),J.show())}(J=g.e(V.skippableState,bds))?(V.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=V.skipOffsetMilliseconds:(g.en(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.U.init(i6("skip-button"),J),this.show()):g.sk(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.T.show=function(){tV(this);KI.prototype.show.call(this)}; g.T.hide=function(){!this.isSkippable&&this.j?this.j.hide():this.U&&this.U.hide();uo(this);KI.prototype.hide.call(this)}; g.T.clear=function(){var O;(O=this.j)==null||O.clear();this.U&&this.U.clear();uo(this);KI.prototype.hide.call(this)}; g.T.Ub=function(){this.hide()}; g.T.Uk=function(){if(1E3*this.K.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var O;(O=this.j)!=null&&O.transition.hide();(O=this.U)!=null&&(O.transition.show(),O.show())}};g.I(Xo,Vb); Xo.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});if(V.label){var J;((J=V.label)==null?0:J.content)&&!g.Ku(V.label.content)&&(this.linkText=new g.OF({X:"span",C:"ytp-visit-advertiser-link__text",Rl:V.label.content}),g.t(this,this.linkText),this.linkText.rW(this.element));var y,l;if((y=V.interaction)==null?0:(l=y.accessibility)==null?0:l.label)QX(this.element,V.interaction.accessibility.label+" This link opens in new tab");else{var m;((m=V.label)==null?0:m.content)&&!g.Ku(V.label.content)&&QX(this.element, V.label.content+" This link opens in new tab")}g7(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.sk(Error("No label found in VisitAdvertiserLink."))}; Xo.prototype.onClick=function(O){Vb.prototype.onClick.call(this,O);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Xo.prototype.clear=function(){this.hide()};g.I(Eh,Vb); Eh.prototype.init=function(O,V,J,y){Vb.prototype.init.call(this,O,V,{});if(V.skipOrPreview){J=V.skipOrPreview;O=g.e(J,pnm);J=g.e(J,YzW);if(O)this.UJ=new p4r(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.j),g.t(this,this.UJ),this.UJ.rW(this.T),this.UJ.init(i6("skip-ad"),O);else{var l;J&&((l=this.api.getVideoData())==null?0:l.isDaiEnabled())&&(this.D=new wB(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.j,1),g.t(this,this.D),this.D.rW(this.T),this.D.init(i6("ad-preview"), J),l=this.D,l.transition.show(100),l.show())}if(l=g.e(V.skipOrPreview,pnm))var m=l.skipOffsetMilliseconds}V.playerAdCard&&(l=g.e(V.playerAdCard,a1F))&&(this.playerAdCard=new blh(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.j),g.t(this,this.playerAdCard),this.playerAdCard.rW(this.dW),this.playerAdCard.init(i6("ad-avatar-lockup-card"),l));V.adBadgeRenderer&&((l=g.e(V.adBadgeRenderer,tW))?(this.U=new cS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,!0),g.t(this, this.U),this.U.rW(this.K),this.U.init(i6("ad-badge"),l)):g.sk(Error("AdBadgeViewModel is not found in player overlay layout.")));V.adPodIndex&&(l=g.e(V.adPodIndex,szC))&&(this.adPodIndex=new sK(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.adPodIndex),this.adPodIndex.rW(this.K),this.adPodIndex.init(i6("ad-pod-index"),l));V.adInfoRenderer&&((l=g.e(V.adInfoRenderer,Gw))?(this.adInfoButton=new qo(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.element, void 0,!0),g.t(this,this.adInfoButton),this.U!==void 0?this.K.insertBefore(this.adInfoButton.element,this.U.element.nextSibling):this.adInfoButton.rW(this.K),this.adInfoButton.init(i6("ad-info-hover-text-button"),l,this.macros)):g.en(Error("AdInfoRenderer is not found in player overlay layout.")));var H;l=(H=this.api.getVideoData())==null?void 0:H.isDaiEnabled();V.adDurationRemaining&&l&&(H=g.e(V.adDurationRemaining,Hdm))&&(this.adDurationRemaining=new WS(this.api,this.layoutId,this.interactionLoggingClientData, this.HE,this.j,y.videoAdDurationSeconds,!0),g.t(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.K.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.rW(this.K),this.adDurationRemaining.init(i6("ad-duration-remaining"),H,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));V.visitAdvertiserLink&&(y=g.e(V.visitAdvertiserLink,hyI))&&(this.visitAdvertiserLink=new Xo(this.api,this.layoutId, this.interactionLoggingClientData,this.HE),g.t(this,this.visitAdvertiserLink),this.visitAdvertiserLink.rW(this.K),this.visitAdvertiserLink.init(i6("visit-advertiser-link"),y));V.adDisclosureBanner&&(V=g.e(V.adDisclosureBanner,cIs))&&(this.adDisclosureBanner=new TE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.adDisclosureBanner),this.adDisclosureBanner.rW(this.lw),this.adDisclosureBanner.init(i6("ad-disclosure-banner"),V));this.W=new Yo(this.api,this.j,m,!0);g.t(this, this.W);g.kD(this.api,this.W.element,4);this.show()}; Eh.prototype.clear=function(){this.hide()};g.I(fcn,Vb);g.T=fcn.prototype; g.T.init=function(O,V){Vb.prototype.init.call(this,O,V,{});if(V!=null&&V.title)if(O=V.title)if(this.headline.init(i6("ad-simple-attributed-string"),new Zf(O)),O=g.e(V.moreInfoButton,uS)){if(this.moreInfoButton.init(i6("ad-button"),O),V.descriptions)V.descriptions.length>0&&(O=V.descriptions[0])&&(this.K=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.K),this.K.rW(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.K.init(i6("ad-simple-attributed-string"), new Zf(O))),V.descriptions.length>1&&(V=V.descriptions[1])&&(this.j=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.j),this.j.rW(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.j.init(i6("ad-simple-attributed-string"),new Zf(V)))}else g.sk(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.sk(Error("No headline found in AdGridCardText."));else g.sk(Error("No headline found in AdGridCardText."))}; g.T.onClick=function(O){Vb.prototype.onClick.call(this,O);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.T.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var O;(O=this.K)==null||O.clear();var V;(V=this.j)==null||V.clear()}; g.T.hide=function(){this.headline.hide();this.moreInfoButton.hide();var O;(O=this.K)==null||O.hide();var V;(V=this.j)==null||V.hide();Vb.prototype.hide.call(this)}; g.T.show=function(){Vb.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var O;(O=this.K)==null||O.show();var V;(V=this.j)==null||V.show()};g.I(dB,Vb);dB.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});if(V!=null&&V.gridCards)if(V.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.sk(Error("Only single column style is currently supported in AdGridCardCollection."));else for(O=g.n(V.gridCards),V=O.next();!V.done;V=O.next()){if(V=g.e(V.value,I1I)){var J=new fcn(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,J);J.rW(this.element);J.init(i6("ad-grid-card-text"),V);this.K.push(J)}}else g.sk(Error("No grid cards found in AdGridCardCollection."))}; dB.prototype.show=function(){for(var O=g.n(this.K),V=O.next();!V.done;V=O.next())V.value.show();Vb.prototype.show.call(this)}; dB.prototype.clear=function(){this.hide();for(var O=g.n(this.K),V=O.next();!V.done;V=O.next())V.value.clear()}; dB.prototype.hide=function(){for(var O=g.n(this.K),V=O.next();!V.done;V=O.next())V.value.hide();Vb.prototype.hide.call(this)};g.I(gB,KI);g.T=gB.prototype;g.T.init=function(O,V,J,y,l){l=l===void 0?0:l;KI.prototype.init.call(this,O,V,J,y);this.playerProgressOffsetMs=l;tV(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Jr.bind(this));this.api.addEventListener("resize",this.zE.bind(this));this.api.FO()?(this.j=!0,this.api.rM(!0),this.show()):this.hide()}; g.T.Uk=function(){if(this.K){var O=this.K.getProgressState();O&&O.current&&!this.j&&1E3*O.current>=this.playerProgressOffsetMs&&(this.j=!0,this.api.rM(!0),this.show())}}; g.T.Ub=function(){this.j&&this.api.rM(!1);this.hide()}; g.T.clear=function(){this.api.rM(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Jr.bind(this));this.api.removeEventListener("resize",this.zE.bind(this));uo(this);this.hide()}; g.T.hide=function(){hZ5(!1);KI.prototype.hide.call(this)}; g.T.show=function(){hZ5(!0);KI.prototype.show.call(this)};g.I(o0r,gB);g.T=o0r.prototype; g.T.init=function(O,V,J,y){if(V!=null&&V.adGridCardCollection)if(V!=null&&V.adButton){var l=Number(V.playerProgressOffsetMs||"0");isNaN(l)?gB.prototype.init.call(this,O,V,J,y):gB.prototype.init.call(this,O,V,J,y,l);O=V.headline;J=g.e(V.adAvatar,KP);O&&J?(this.headline=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.headline),this.headline.rW(this.DN("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(i6("ad-simple-attributed-string"),new Zf(O)), this.adAvatar=new Ma(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.adAvatar),this.adAvatar.rW(this.DN("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(i6("ad-avatar"),J)):this.D.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");O=g.e(V.adGridCardCollection,eys);this.adGridCardCollection.init(i6("ad-grid-card-collection"),O);V=g.e(V.adButton,uS);this.adButton.init(i6("ad-button"),V); this.hide()}else g.sk(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.sk(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.T.onClick=function(O){(this.adButton&&g.h8(this.adButton.element,O.target)||this.adAvatar&&g.h8(this.adAvatar.element,O.target))&&this.api.pauseVideo();gB.prototype.onClick.call(this,O);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.T.zE=function(){}; g.T.clear=function(){this.hide();var O;(O=this.headline)==null||O.clear();var V;(V=this.adAvatar)==null||V.clear();this.adGridCardCollection.clear();this.adButton.clear();gB.prototype.clear.call(this)}; g.T.show=function(){var O;(O=this.headline)==null||O.show();var V;(V=this.adAvatar)==null||V.show();this.adGridCardCollection.show();this.adButton.show();gB.prototype.show.call(this)}; g.T.hide=function(){var O;(O=this.headline)==null||O.hide();var V;(V=this.adAvatar)==null||V.hide();this.adGridCardCollection.hide();this.adButton.hide();gB.prototype.hide.call(this)}; g.T.Jr=function(O){O==="transitioning"?(this.U.classList.remove("ytp-ad-underlay-clickable"),this.show()):O==="visible"?this.U.classList.add("ytp-ad-underlay-clickable"):O==="hidden"&&(this.hide(),this.U.classList.remove("ytp-ad-underlay-clickable"))};g.I(qa,Vb); qa.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});if(V.attributes===void 0)g.sk(Error("No attributes found in AdDetailsLineViewModel."));else if(V.style===void 0)g.sk(Error("No style found in AdDetailsLineViewModel."));else{O=g.n(V.attributes);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.text!==void 0){J=J.text;var y=V.style,l=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,l);l.rW(this.element);a:switch(y){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":y="ytp-ad-details-line__text--style-responsive"; break a;default:y="ytp-ad-details-line__text--style-standard"}l.element.classList.add(y);l.init(i6("ad-simple-attributed-string"),new Zf(J));this.K.push(l)}this.show()}}; qa.prototype.show=function(){this.K.forEach(function(O){O.show()}); Vb.prototype.show.call(this)}; qa.prototype.clear=function(){this.hide()}; qa.prototype.hide=function(){this.K.forEach(function(O){O.hide()}); Vb.prototype.hide.call(this)};g.I(Qe,Vb);Qe.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});var J,y;(O=((y=$L(((J=V.image)==null?void 0:J.sources)||[]))==null?void 0:y.url)||"")&&O.length?(J=this.DN("ytp-image-background-image"),g.Pp(J,"backgroundImage","url("+O+")"),V.blurLevel!==void 0&&g.Pp(J,"filter","blur("+V.blurLevel+"px)"),V.gradient!==void 0&&(V=new g.r({X:"div",Fj:["ytp-image-background--gradient-vertical"]}),g.t(this,V),V.rW(this.element)),this.show()):g.sk(Error("Failed to get imageUrl in ImageBackground."))}; Qe.prototype.clear=function(){this.hide()};g.I(v0U,KI);g.T=v0U.prototype;g.T.init=function(O,V){KI.prototype.init.call(this,O,V,{});g.Pp(this.U,"stroke-dasharray","0 "+this.j);this.show()}; g.T.clear=function(){this.hide()}; g.T.hide=function(){uo(this);KI.prototype.hide.call(this)}; g.T.show=function(){tV(this);KI.prototype.show.call(this)}; g.T.Ub=function(){this.hide()}; g.T.Uk=function(){if(this.K){var O=this.K.getProgressState();O!=null&&O.current!=null&&g.Pp(this.U,"stroke-dasharray",O.current/O.seekableEnd*this.j+" "+this.j)}};g.I(Gg,Vb); Gg.prototype.init=function(O,V){Vb.prototype.init.call(this,O,V,{});if(MOl(V)){this.adAvatar=new Ma(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,this.adAvatar);this.adAvatar.rW(this.DN("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(i6("ad-avatar"),g.e(V.adAvatar,KP));this.headline=new zE(this.api,this.layoutId,this.interactionLoggingClientData,this.HE);g.t(this,this.headline);this.headline.rW(this.DN("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(i6("ad-simple-attributed-string"),new Zf(V.headline));if(O=g.e(V.adDetailsLine,zy1))this.detailsLine=new qa(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.detailsLine),this.detailsLine.rW(this.DN("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(i6("ad-details-line"),O);this.adButton=new LP(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,!0);g.t(this,this.adButton); this.adButton.rW(this.DN("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(i6("ad-button"),g.e(V.adButton,uS));this.adBadge=new cS(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,!0);g.t(this,this.adBadge);this.adBadge.rW(this.D);this.adBadge.init(i6("ad-badge"),g.e(V.adBadge,tW));this.adInfoButton=new qo(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.element,void 0,!0);g.t(this,this.adInfoButton);this.adInfoButton.rW(this.D); this.adInfoButton.init(i6("ad-info-hover-text-button"),g.e(V.adInfoRenderer,Gw),this.macros);if(O=g.e(V.skipAdButton,bds))this.skipAdButton=new nP(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.skipAdButton),this.skipAdButton.rW(this.element),this.skipAdButton.init(i6("skip-button"),O);this.j=new F6(V.durationMilliseconds);g.t(this,this.j);if(O=g.e(V.countdownViewModel,f1C))this.K=new v0U(this.api,this.layoutId,this.interactionLoggingClientData,this.HE,this.j),g.t(this, this.K),this.K.rW(this.DN("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.K.init(i6("timed-pie-countdown"),O);if(V=g.e(V.imageBackground,TVz))this.imageBackground=new Qe(this.api,this.layoutId,this.interactionLoggingClientData,this.HE),g.t(this,this.imageBackground),this.imageBackground.rW(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(i6("image-background"), V);this.show();this.element.focus()}}; Gg.prototype.clear=function(){g.fz(this.U);this.hide()}; Gg.prototype.show=function(){w45(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Vb.prototype.show.call(this)}; Gg.prototype.hide=function(){w45(!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.K&&this.K.hide();this.imageBackground&&this.imageBackground.hide();Vb.prototype.hide.call(this)};g.I(AW,g.BF);g.T=AW.prototype;g.T.wS=function(){return 1E3*this.api.getDuration(this.Bv,!1)}; g.T.stop=function(){this.K&&this.handler.oX(this.K)}; g.T.VK=function(){var O=this.api.getProgressState(this.Bv);this.j={seekableStart:O.seekableStart,seekableEnd:O.seekableEnd,current:this.api.getCurrentTime(this.Bv,!1)};this.publish("h")}; g.T.getProgressState=function(){return this.j}; g.T.zp=function(O){g.Jg(O,2)&&this.publish("g")};var RQF="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.I(rB,nI); rB.prototype.U=function(O){var V=O.id,J=O.content,y=J.componentType;if(!RQF.includes(y))switch(O.actionType){case 1:a:{O=this.api;var l=this.HE,m=J.layoutId,H=J.interactionLoggingClientData,F=J instanceof vE?J.CR:!1,N=J instanceof vE||J instanceof jo?J.jh:!1;H=H===void 0?{}:H;F=F===void 0?!1:F;N=N===void 0?!1:N;switch(y){case "invideo-overlay":O=new BYl(O,m,H,l);break;case "player-overlay":O=new b1(O,m,H,l,new AW(O),N);break;case "player-overlay-layout":O=new Eh(O,m,H,l,new AW(O));break;case "survey":O= new oJ(O,m,H,l);break;case "ad-action-interstitial":O=new u9V(O,m,H,l,F,N);break;case "video-interstitial-buttoned-centered":O=new Gg(O,m,H,l);break;case "survey-interstitial":O=new vQ(O,m,H,l);break;case "ad-message":O=new yfn(O,m,H,l,new AW(O,1));break;case "player-underlay":O=new mCl(O,m,H,l);break;case "display-underlay-text-grid-cards":O=new o0r(O,m,H,l,new AW(O));break;default:O=null;break a}}if(!O){g.en(Error("No UI component returned from ComponentFactory for type: "+y));break}g.s2(this.components, V)?g.en(Error("Ad UI component already registered: "+V)):this.components[V]=O;O.bind(J);J instanceof hY?this.j?this.j.append(O.lN):g.en(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(O.lN);break;case 2:V=LuU(this,O);if(V==null)break;V.bind(J);break;case 3:J=LuU(this,O),J!=null&&(g.C1(J),g.s2(this.components,V)?(J=this.components,V in J&&delete J[V]):g.en(Error("Ad UI component does not exist: "+V)))}}; rB.prototype.U5=function(){g.FM(Object.values(this.components));this.components={};nI.prototype.U5.call(this)};g.I(n0X,g.zm);g.T=n0X.prototype;g.T.create=function(){try{X4h(this),this.load(),this.created=!0,X4h(this)}catch(O){DJ(O instanceof Error?O:String(O))}}; g.T.load=function(){g01(this)}; g.T.destroy=function(){var O=this.player.getVideoData({playerType:1});this.K.K.LQ.KP(O&&O.clientPlaybackNonce||"");this.unload();this.created=!1}; g.T.unload=function(){g.zm.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(V){DJ(V instanceof Error?V:String(V))}if(this.j!=null){var O=this.j;this.j=null;O.dispose()}this.U.reset()}; g.T.W1=function(){return!1}; g.T.getAdState=function(){return-1}; g.T.getOptions=function(){return Object.values(iaV)}; g.T.NU=function(O,V){V=V===void 0?{}:V;switch(O){case "replaceUrlMacros":return O=V,O.url?(V=yk5(this.player),Object.assign(V,O.sbW),O=g.bL(O.url,V)):O=null,O;case "onAboutThisAdPopupClosed":this.Bi(V);break;case "executeCommand":O=V;O.command&&O.layoutId&&this.executeCommand(O);break;default:return null}}; g.T.SJ=function(O){var V;return!((V=this.K.K.Ql)==null||!V.get().SJ(O))}; g.T.Bi=function(O){O.isMuted&&iOU(eQ(this.K).Bc,eQ(this.K).w6,O.layoutId);this.Tf&&this.Tf.Bi()}; g.T.executeCommand=function(O){eQ(this.K).HE.executeCommand(O.command,O.layoutId)};g.zD("yt.player.Application.create",g.Zv.create);g.zD("yt.player.Application.createAlternate",g.Zv.create);z7V(Uk(),raF);var BOV=g.cn("ytcsi.tick");BOV&&BOV("pe");g.Z8("ad",n0X);g.I(g.BQ,g.K);g.BQ.prototype.start=function(O,V,J){this.config={from:O,to:V,duration:J,startTime:(0,g.cH)()};this.next()}; g.BQ.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.BQ.prototype.next=function(){if(this.config){var O=this.config,V=O.from,J=O.to,y=O.duration;O=O.startTime;O=(0,g.cH)()-O;var l=this.K;y=g.BZ(pGU(l,fl7(l,O/y)),0,1);this.callback(V+(J-V)*y);y<1&&this.delay.start()}};g.I(g.PQ,g.r);g.T=g.PQ.prototype;g.T.hasSuggestions=function(){return this.suggestionData.length>0}; g.T.aA=function(){this.j&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.T.show=function(){g.r.prototype.show.call(this);uJ5(this)}; g.T.sG=function(){this.j&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.T.xR=function(){this.zy(this.api.tv().getPlayerSize())}; g.T.zy=function(O){var V=this.api.isEmbedsShortsMode()?.5625:16/9,J=this.api.UY();O=O.width-(J?112:58);J=Math.ceil(O/(J?320:192));var y=(O-J*8)/J;V=Math.floor(y/V);for(var l=g.n(this.K),m=l.next();!m.done;m=l.next())m=m.value.DN("ytp-suggestion-image"),m.style.width=y+"px",m.style.height=V+"px";this.suggestions.element.style.height=V+"px";this.D=y;this.S=V;this.containerWidth=O;this.columns=J;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.kq(this)}; g.T.onVideoDataChange=function(){var O=this.api.Y(),V=this.api.getVideoData();this.W=V.tC?!1:O.D;this.suggestionData=V.suggestions?g.L1(V.suggestions,function(J){return J&&!J.playlistId}):[]; rfX(this);V.tC?this.title.update({title:g.kv("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:V.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.T.scrollTo=function(O){O=g.BZ(O,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.V.start(this.scrollPosition,O,1E3);this.scrollPosition=O;g.kq(this);uJ5(this)};})(_yt_player);